|
|
发表于 2005-12-21 14:42:51
|
显示全部楼层
字符下可以用 cfdisk , 或更强大的 fdisk
图形的可以用 gparted 或 qtparted
- hua@vgh:~$ sudo fdisk /dev/hda
- The number of cylinders for this disk is set to 9964.
- There is nothing wrong with that, but this is larger than 1024,
- and could in certain setups cause problems with:
- 1) software that runs at boot time (e.g., old versions of LILO)
- 2) booting and partitioning software from other OSs
- (e.g., DOS FDISK, OS/2 FDISK)
- Command (m for help): p
- Disk /dev/hda: 81.9 GB, 81964302336 bytes
- 255 heads, 63 sectors/track, 9964 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Device Boot Start End Blocks Id System
- /dev/hda1 1 1000 8029728 83 Linux
- Partition 1 does not end on cylinder boundary.
- /dev/hda2 1001 2432 11502540 83 Linux
- /dev/hda3 2433 9500 56773710 5 Extended
- /dev/hda5 2433 2675 1951866 82 Linux swap / Solaris
- /dev/hda6 2676 8754 48829536 83 Linux
- /dev/hda7 8755 9500 5992213+ 83 Linux
- Command (m for help): p
- Disk /dev/hda: 81.9 GB, 81964302336 bytes
- 255 heads, 63 sectors/track, 9964 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Device Boot Start End Blocks Id System
- /dev/hda1 * 1 1000 8029728 83 Linux
- Partition 1 does not end on cylinder boundary.
- /dev/hda2 1001 2432 11502540 83 Linux
- /dev/hda3 2433 9500 56773710 5 Extended
- /dev/hda5 2433 2675 1951866 82 Linux swap / Solaris
- /dev/hda6 2676 8754 48829536 83 Linux
- /dev/hda7 8755 9500 5992213+ 83 Linux
- Command (m for help): w
- The partition table has been altered!
- Calling ioctl() to re-read partition table.
- WARNING: Re-reading the partition table failed with error 16: 设备或资源忙.
- The kernel still uses the old table.
- The new table will be used at the next reboot.
- Syncing disks.
- hua@vgh:~$ sudo fdisk -l
- Disk /dev/hda: 81.9 GB, 81964302336 bytes
- 255 heads, 63 sectors/track, 9964 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Device Boot Start End Blocks Id System
- /dev/hda1 * 1 1000 8029728 83 Linux
- Partition 1 does not end on cylinder boundary.
- /dev/hda2 1001 2432 11502540 83 Linux
- /dev/hda3 2433 9500 56773710 5 Extended
- /dev/hda5 2433 2675 1951866 82 Linux swap / Solaris
- /dev/hda6 2676 8754 48829536 83 Linux
- /dev/hda7 8755 9500 5992213+ 83 Linux
- hua@vgh:~$
- .
复制代码 |
|