[root@ root]# fdisk -l
Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 2356 18820147+ 83 Linux
/dev/sda3 2357 2610 2040255 82 Linux swap
/dev/sda4 2611 5221 20972857+ 83 Linux
可以看到空闲空间为sda4。
五、加载文件系统
[root@ etc]# mount /dev/sda4 /vmware1
[root@ etc]# du -csh /vmware1
20K /vmware1
20K total
[root@ etc]# mount
/dev/sda2 on / type ext3 (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/sda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
/dev/sda4 on /vmware1 type ext3 (rw)
[root@ etc]# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 18524524 9287492 8296028 53% /
/dev/sda1 101089 15126 80744 16% /boot
none 1293016 0 1293016 0% /dev/shm
/dev/sda4 20641788 32828 19560320 1% /vmware1
六、自动加载文件系统
[Oracle@guohuilinuxas31 etc]$ cat fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
/dev/sda4 /vmware1 ext3 defaults 1 3
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/sda3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0