XXX@XXX:~$ df -lh
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 20G 6.2G 13G 34% /
none 994M 248K 994M 1% /dev
none 1002M 1.5M 1001M 1% /dev/shm
none 1002M 316K 1002M 1% /var/run
none 1002M 0 1002M 0% /var/lock
/dev/sdb2 181G 127G 45G 75% /home
/dev/sda7 20G 5.3G 13G 29% /opt
XXX@XXX:~$ sudo fdisk -l
[sudo] password for XXX:
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 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: 0x7fd17fd1
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1960 15743668+ c W95 FAT32 (LBA)
/dev/sda2 1961 7182 41942976 f W95 Ext'd (LBA)
/dev/sda3 7182 9730 20463616 83 Linux
/dev/sda5 1961 4510 20482843+ 7 HPFS/NTFS
/dev/sda6 7061 7182 976562+ 82 Linux swap / Solaris
/dev/sda7 4511 7060 20482843+ 83 Linux
Partition table entries are not in disk order
Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 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: 0xb753b753
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 6528 52436128+ 7 HPFS/NTFS
/dev/sdb2 6529 30401 191759872+ 83 Linux
vi etc/fstab:
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda3 during installation
UUID=53f8b838-b268-4848-a624-3067cf50c9c0 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=45350edc-a95b-40ff-a790-ef1991af6138 none swap sw 0 0
/dev/sda7 /opt ext4 defaults 0 2
/dev/sdb2 /home ext4 defaults 0 3
(责任编辑:IT) |