日期:2014-05-16  浏览次数:20632 次

我的扩展分区哪去了
大家好,本人目前在使用vmware虚拟机装red hat enterprise linux 5.6的时候,使用df命令发现
给虚拟机分配的20G硬盘空间全部挂载在/home目录下,/目录下只有很少的空间。如下:
[root@localhost ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 3960348 3052392 703532 82% /
/dev/sda5 14301224 167312 13395728 2% /home
/dev/sda1 46633 11309 32916 26% /boot
tmpfs 513036 0 513036 0% /dev/shm

于是使用vmware-vdiskmanager.exe工具给虚拟机扩展了10G的空间,如下:
[root@localhost ~]# fdisk -l

Disk /dev/sda: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot Start End Blocks Id System
/dev/sda1 * 1 6 48163+ 83 Linux
/dev/sda2 7 515 4088542+ 83 Linux
/dev/sda3 516 772 2064352+ 82 Linux swap / Solaris
/dev/sda4 773 2610 14763735 5 Extended
/dev/sda5 773 2610 14763703+ 83 Linux

请问我该如何将扩展的10G空间增加到/目录下去。

------解决方案--------------------
fdisk 增加新分区,mkfs格式化新分区,挂载新分区
------解决方案--------------------
貌似 sda2 + sda5 差不多 18G 吧
------解决方案--------------------
怎么添加的?你的partition都未曾出现在fdisk -l当中。
------解决方案--------------------
linux增加根分区大小(非LVM)
http://qianxunniao.iteye.com/blog/1393694

给你参考。

------解决方案--------------------
如果没啥东西,建议你干掉,重做成LVM