FDISK.8
资源名称:os_source.zip [点击查看]
上传用户:datang2001
上传日期:2007-02-01
资源大小:53269k
文件大小:2k
源码类别:
操作系统开发
开发平台:
C/C++
- .TH FDISK 8
- .SH NAME
- fdisk - partition a hard disk [IBM]
- .SH SYNOPSIS
- fBfdiskfR [fB-hfImfR]fR [fB-sfInfR]fR [fIfilefR]fR
- .br
- .de FL
- .TP
- \fB\$1\fR
- \$2
- ..
- .de EX
- .TP 20
- \fB\$1\fR
- # \$2
- ..
- .SH OPTIONS
- .FL "fB-h" "Number of disk heads is fImfR"
- .FL "fB-s" "Number of sectors per track is fInfR"
- .SH EXAMPLES
- .EX "fdisk /dev/hd0" "Examine disk partitions"
- .EX "fdisk -h9 /dev/hd0" "Examine disk with 9 heads"
- .SH DESCRIPTION
- .PP
- When fIfdiskfR starts up, it reads in the partition table and displays
- it.
- It then presents a menu to allow the user to modify partitions, store the
- partition table on a file, or load it from a file. Partitions can be marked
- as
- s-2MINIXs+2,
- DOS or other, as well as active or not.
- Using fIfdiskfR is self-explanatory.
- However, be aware that
- repartitioning a disk will cause information on it to be lost.
- Rebooting the system fIimmediatelyfR
- is mandatory after changing partition sizes and parameters.
- s-2MINIXs+2,
- &s-2XENIXs0, s-2PC-IXs0, and s-2MS-DOSs0 all have different
- partition numbering schemes.
- Thus when using multiple systems on the same disk, be careful.
- .PP
- Note that
- s-2MINIXs+2,
- unlike
- &MS-DOS ,
- cannot access the last sector in a partition with an odd number of sectors.
- The reason that odd partition sizes do not cause a problem with
- s-2MS-DOSs0 is that s-2MS-DOSs0 allocates disk space in units of
- 512-byte sectors, whereas
- s-2MINIXs+2
- uses 1K blocks.
- fIFdiskfR has a variety of other features that can be seen by typing fIhfR.
- .PP
- .I Fdisk
- normally knows the geometry of the device by asking the driver. You can use
- the fB-hfP and fB-sfP options to override the numbers found.
- .SH "SEE ALSO"
- .BR part (8).