📄 cfdisk.8
字号:
.B cfdisknext prompts you for the size of the partition you want to create.The default size, equal to the entire free space of the currentpartition, is display in megabytes. You can either press the.I Enterkey to accept the default size or enter a different size at theprompt..B cfdiskaccepts size entries in megabytes.RB ( M )[default], kilobytes.RB ( K ),cylinders.RB ( C )and sectors.RB ( S )by entering the number immediately followed by one of.RB ( M ", " K ", " C " or " S ).If the partition fills the free space available, the partition iscreated and you are returned to the main command line. Otherwise, thepartition can be created at the beginning or the end of the freespace, and.B cfdiskwill ask you to choose where to place the partition. After thepartition is created,.B cfdiskautomatically adjusts the other partition's partition types if all ofthe primary partitions are used..TP.B pPrint the partition table to the screen or to a file. There areseveral different formats for the partition that you can choose from:.sp.RS.TP.B rRaw data format (exactly what would be written to disk).TP.B sPartition table in sector order format.TP.B tPartition table in raw format.RE.RSThe.I raw data formatwill print the sectors that would be written to disk if a.BR w ritecommand is selected. First, the primary partition table is printed,followed by the partition tables associated with each logicalpartition. The data is printed in hex byte by byte with 16 bytes perline.The.I partition table in sector order formatwill print the partition table ordered by sector number. The fields,from left to right, are the number of the partition, the partitiontype, the first sector, the last sector, the offset from the firstsector of the partition to the start of the data, the length of thepartition, the filesystem type (with the hex value in parenthesis),and the flags (with the hex value in parenthesis). In addition to theprimary and logical partitions, free and unusable space is printed andthe extended partition is printed before the first logical partition.If a partition does not start or end on a cylinder boundary or if thepartition length is not divisible by the cylinder size, an asterisks.RB ( * )is printed after the non-aligned sector number/count. This usuallyindicates that a partition was created by an operating system thateither does not align partitions to cylinder boundaries or that useddifferent disk geometry information. If you know the disk geometry ofthe other operating system, you could enter the geometry informationwith the change geometry command.RB ( g ).For the first partition on the disk and for all logical partitions, ifthe offset from the beginning of the partition is not equal to thenumber of sectors per track (i.e., the data does not start on thefirst head), a number sign.RB ( # )is printed after the offset. For the remaining partitions, if theoffset is not zero, a number sign will be printed after the offset.This corresponds to the.I NCflag in the partitions section of the main display.The.I partition table in raw formatwill print the partition table ordered by partition number. It willleave out all free and unusable space. The fields, from left toright, are the number of the partition, the flags (in hex), thestarting head, sector and cylinder, the filesystem ID (in hex), theending head, sector and cylinder, the starting sector in the partitionand the number of sectors in the partition. The information in thistable can be directly translated to the.IR "raw data format" .The partition table entries only have 10 bits available to representthe starting and ending cylinders. Thus, when the absolute starting(ending) sector number is on a cylinder greater than 1023, the maximalvalues for starting (ending) head, sector and cylinder are printed.This is the method used by OS/2, and thus fixes the problemsassociated with OS/2's fdisk rewriting the partition table when it isnot in this format. Since Linux and OS/2 use absolute sector counts,the values in the starting and ending head, sector and cylinder arenot used..RE.TP.B qQuit program. This will exit the program without writing any data todisk..TP.B tChange the filesystem type. By default, new partitions are created as.I Linuxpartitions, but since.B cfdiskcan create partitions for other operating systems, change partitiontype allows you to enter the hex value of the filesystem you desire.A list of the know filesystem types is displayed. You can type in thefilesystem type at the prompt or accept the default filesystem type.RI [ Linux ]..TP.B uChange units of the partition size display. It will rotate throughmegabytes, sectors and cylinders..TP.B WWrite partition table to disk (must enter an upper case W). Sincethis might destroy data on the disk, you must either confirm or denythe write by entering `yes' or `no'. If you enter `yes',.B cfdiskwill write the partition table to disk and the tell the kernel tore-read the partition table from the disk. The re-reading of thepartition table works is most cases, but I have seen it fail. Don'tpanic. It will be correct after you reboot the system. In all cases,I still recommend rebooting the system--just to be safe..TP.I Up Arrow.TP.I Down ArrowMove cursor to the previous or next partition. If there are morepartitions than can be displayed on a screen, you can display the next(previous) set of partitions by moving down (up) at the last (first)partition displayed on the screen..TP.I CTRL-LRedraws the screen. In case something goes wrong and you cannot readanything, you can refresh the screen from the main command line..TP.B ?Print the help screen..REAll of the commands can be entered with either upper or lower caseletters (except for.BR W rites).When in a sub-menu or at a prompt to enter a filename, you can hit the.I ESCkey to return to the main command line..SH OPTIONS.TP.B \-aUse an arrow cursor instead of reverse video for highlighting thecurrent partition..TP.B \-vPrint the version number and copyright..TP.B \-zStart with zeroed partition table. This option is useful when youwant to repartition your entire disk..I Note:this option does not zero the partition table on the disk; rather, itsimply starts the program without reading the existing partitiontable..TP.BI \-c " cylinders".TP.BI \-h " heads".TP.BI \-s " sectors-per-track"Override the number of cylinders, heads and sectors per track readfrom the BIOS. If your BIOS or adapter does not supply thisinformation or if it supplies incorrect information, use these optionsto set the disk geometry values..TP.BI \-P " opt"Prints the partition table in specified formats..I optcan be one or more of "r", "s" or "t". See the.BR p rintcommand (above) for more information on the print formats..SH "SEE ALSO"fdisk(8).SH BUGSThe current version does not support multiple disks (future addition)..SH AUTHORKevin E. Martin (martin@cs.unc.edu)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -