????Linux?????????????????????????????????????????????????????????á????濴?????????裺
????1.????Fdisk ??l ??????????′??????
[root@aaaa ~]# fdisk -l
Disk /dev/sda: 300.0 GB?? 300000000000 bytes
255 heads?? 63 sectors/track?? 36472 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1305    10482381   83  Linux
/dev/sda2            1306        2610    10482412+  82  Linux swap / Solaris
/dev/sda3            2611       36472   271996515   83  Linux
Disk /dev/hdb: 2147 MB?? 2147483648 bytes
16 heads?? 63 sectors/track?? 4161 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk /dev/hdb doesn't contain a valid partition table
??????????????п???????????????????????/dev/hdb????С?2G??δ?????????????
????2.??Fdisk /dev/hdb?????з?????????
[root@linux1 ~]# fdisk /dev/hdb
Device contains neither a valid DOS partition table?? nor Sun?? SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only??
until you decide to write them. After that?? of course?? the previous
content won't be recoverable.
The number of cylinders for this disk is set to 4161.
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)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): n //????N?????????????
Command action
e extended
p primary partition (1-4)
p //p ????????????????
Partition number (1-4): 1 //1 ????????????1.
First cylinder (1-4161?? default 1): 1 //1?????????????????.????????????????????????????????????
Last cylinder or size or sizeM or sizeK (1-4161?? default 4161): // ????: ??? ?????????????????.???????????????????
Using default value 4161
Command (m for help): w //???????
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.