我已经CentOS 6.6
(32 位)运行在VMware Workstation 10.0.3 build-1895310
.我刚刚修改了虚拟机设置,将硬盘从20GB到30GB。我还创建了一个主分区类型的新分区,sda4
具有默认的开始和停止柱面号。
fdisk /dev/sda返回这个:
Disk /dev/sda: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0000fba6
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 2611 20458496 8e Linux LVM
/dev/sda4 2611 3916 10483750 83 Linux
当我尝试安装它时,使用挂载-t ext4 /dev/sda4 /data,显示以下错误:
mount: wrong fs type, bad option, bad superblock on /dev/sda4,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
为了获取文件系统类型,我输入了命令df-T,并有以下输出:
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg_box0-lv_root
ext4 17971068 4039580 13011936 24% /
tmpfs tmpfs 514720 228 514492 1% /dev/shm
/dev/sda1 ext4 487652 66444 395608 15% /boot
答案1
您仍然需要在新分区上创建文件系统。您创建了该分区,但它上面没有文件系统(如 中缺少条目所示df -T
)。
然后尝试mkfs -t ext4 /dev/sda4
安装它