¹ØÓÚÓÃshellµ÷Óý»»¥Ê½ÃüÁîµÄÎÊÌâ
ÏÖÔÚÏë±àдһ¸ö½Å±¾ ËüµÄÄÚÈÝÊǵ÷ÓÃfdiskÃüÁÏÖÓÐÓ²Å̵ÄËùÓзÖÇøÉ¾³ý,È»ºó°´×Ô¶¨Òå´óСÔÚµ±Ç°Ó²ÅÌÉÏн¨3¸ö·ÖÇø,µ«ÊÇfdiskÃüÁîÊǽ»»¥Ê½µÄ~ ¾ÍÊÇÄãÔÚÃüÁîÐÐÊäÈëÒ»¸ö²ÎÊý,ËüÖ´ÐÐÒ»µã,È»ºóÄãÔÙÊäÈëÒ»¸ö²ÎÊý,ËüÔÙÖ´ÐÐÒ»µã.....ÔõôÍê³ÉÕâ¸öshell Ŷ [code][color=blue]-(dearvoid@LinuxEden:tty3)-(~/tmp)-
[4017 0][/color] [color=red]; cat file
[/color]p
d
4
p
q
[color=blue]-(dearvoid@LinuxEden:tty3)-(~/tmp)-
[4017 0][/color] [color=red]; fdisk /dev/hda < file
[/color]
The number of cylinders for this disk is set to 4863.
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):
Disk /dev/hda: 40.0 GB, 40000000000 bytes
255 heads, 63 sectors/track, 4863 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1216 9767488+ 83 Linux
/dev/hda2 1217 3555 18788017+ 83 Linux
/dev/hda3 3556 4830 10241437+ 83 Linux
/dev/hda4 4831 4863 265072+ 82 Linux swap / Solaris
Command (m for help): Partition number (1-4):
Command (m for help):
Disk /dev/hda: 40.0 GB, 40000000000 bytes
255 heads, 63 sectors/track, 4863 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1216 9767488+ 83 Linux
/dev/hda2 1217 3555 18788017+ 83 Linux
/dev/hda3 3556 4830 10241437+ 83 Linux
Command (m for help):
[color=blue]-(dearvoid@LinuxEden:tty3)-(~/tmp)-
[4017 0][/color] [color=red]; o
[/color][/code] sfdisk ¿ÉÄܸüºÃÓÃһЩ ÎÒµÄÒâ˼ÊÇ˵ ÎÒÏë°Ñÿһ²½´«¸øfdiskµÄ²ÎÊýÒ»´ÎÐԵĴ«¸øshell½Å±¾,È»ºóÖ»ÔËÐÐÒ»´Î½Å±¾À´ÊµÏÖ¶ÔÖ¸¶¨Å̵Äɾ³ý·ÖÇøºóÔÙ½¨Á¢·ÖÇøµÄ²Ù×÷,ÔËÐнű¾ºó¾Í²»ÔÙ½»»¥Ê½µÄ´«¸ø½Å±¾²ÎÊýÁË~~~ÒòΪÕâ¸ö½Å±¾ÊÇÐèÒª±»c³ÌÐòµ÷ÓõÄ.
»¹Çë¸÷λ¸ßÊÖ°ïæ! dearvoidʦÐÖµÄÒâ˼²»ÊǺÜÃ÷°×Ŷ,ÄÜ·ñ½âÊÍһϠºÃô?
Ò³:
[1]