ÎÊÒ»¸öÓйØfdiskÃüÁîµÄÎÊÌâ
ÎÒÏëÎÊÏÂÓйØÓÚfdiskÃüÁîÖеÄÒ»¸öÑ¡Ïî(-a)µÄÎÊÌâ,ÊéÉÏ˵ËüµÄ×÷ÓÃÊÇ:Òýµ¼±êÖ¾¿ª¹Ø.ÕâÊÇʲôÒâË¼ÄØ?ÎÒÕÒÁ˺ܶà×ÊÁ϶¼²»ÖªËüÊÇʲôÒâ˼.¿ÒÇëijλ¸ßÈËÖ¸µãÒ»ÏÂ. LinuxµÄfdiskÓÐÕâ¸ö²ÎÊýÑ¡ÏîÂð£¿Äı¾ÊéÉÏ˵µÄ£¿ ???ÔÚÄÐÈËÀï¿´²»µ½¸ÃÑ¡Ïî:L û´í,ÊÇÓÐÕâ¸öÑ¡Ïî,ÁíÍâÎÒÏë¶Ô¶þÂ¥µÄÖ¸ÕýÒ»¸ö´íÎó.ÔÚlinuxÖвÎÊý¾ÍÊDzÎÊý,Ñ¡Ïî¾ÍÊÇÑ¡Ïî.ÕâÊÇÁ½¸ö²»Í¬µÄ¸ÅÄî¡£²»ÄÜ»ìÔÚÒ»Æð. ²»»¹Òâ˼£¬ÎÒÏÖÔÚʹÓõĺÍÒÔǰʹÓõÄfdiskÔÚÏß°ïÖúÀïOptionsÈ«¶¼¶¼Ã»ÓÐÕâ¸ö£a£¬ËùÒÔÇëÄã°Ñ³ö´¦µÄÁ´½Ó¹ÒÉÏ¡£
[code]
ÒÔÏÂÊÇman fdisk£º
FDISK(8) Linux Programmer's Manual FDISK(8)
NAME
fdisk - Partition table manipulator for Linux
SYNOPSIS
fdisk [-u] [-b sectorsize] [-C cyls] [-H heads] [-S sects] device
fdisk -l [-u] [device ...]
fdisk -s partition ...
fdisk -v
...
OPTIONS
-b sectorsize
Specify the sector size of the disk. Valid values are 512, 1024,
or 2048. (Recent kernels know the sector size. Use this only on
old kernels or to override the kernel's ideas.)
-C cyls
Specify the number of cylinders of the disk. I have no idea why
anybody would want to do so.
-H heads
Specify the number of heads of the disk. (Not the physical num-
ber, of course, but the number used for partition tables.) Rea-
sonable values are 255 and 16.
-S sects
Specify the number of sectors per track of the disk. (Not the
physical number, of course, but the number used for partition
tables.) A reasonable value is 63.
-l List the partition tables for the specified devices and then
exit. If no devices are given, those mentioned in /proc/parti-
tions (if that exists) are used.
-u When listing partition tables, give sizes in sectors instead of
cylinders.
-s partition
The size of the partition (in blocks) is printed on the standard
output.
-v Print version number of fdisk program and exit.
...
[/code]
Ò³:
[1]