Anonymous avatar Anonymous committed 5efe081

Update docs with a few bits from parted. Copy units from cfdisk to fdisk. (fdisk@sv.gnu.org/fdisk--main--0--patch-49)
fdisk@sv.gnu.org/fdisk--main--0--patch-49
Keywords:

Comments (0)

Files changed (2)

 * Options::
 * Units::
 * Usage::
+* Flags::
 @end menu
 
 @node Invoking cfdisk
 Run a filesystem rescue by looking for deleted partitions within a free space. It requires that everything is commited to the disk immediately. Looking for partitions over the existing partitions is not supported and doesn't seem much meaningful, but if you need it, you can try deleting the partitions. You can select the range where to look for partitions by pressing `c', or if you want to check the whole free space, you should press `g'.
 
 @item @b{b}
-Shows a list of the flags allowing you to change them. You will most likely need this to make the partition bootable. It is not recommended to touch any flags other than the bootable flag. Do not do it, unless you know what they are for, and have in mind that changing certain flags is known not to work. You change the flag by pressing space or enter, and you leave the list with Esc.
+Shows a list of the flags allowing you to change them. You will most likely need this to make the partition bootable. It is not recommended to touch any flags other than the bootable flag. Do not do it, unless you know what they are for, and have in mind that changing certain flags is known not to work. You change the flag by pressing space or enter, and you leave the list with Esc. See the next section a description of all possible flags.
 
 @item @b{t}
 Changes the system type on the partition. This does not convert the filesystem, it just changes the information stored in the partition. This is useful for cases where the system type on the partition doesn't match the filesystem type, for example you have an fat32 partition on an DOS type partition table, having an ext2 filesystem on it. Changing the system type is not really meaningful on all partition table types. The default is to automatically determine the system type from the current filesystem with `a'. You can also select a custom filesystem by pressing `c', but this is not recommended. Direct choosing a specific system type is not supported.
 
 @end table
 
+@node Flags
+
+@section Flags
+
+@table @samp
+@item boot
+(Mac, MS-DOS, PC98) - should be enabled if you want to boot off the
+partition.  The semantics vary between disk labels.  For MS-DOS disk
+labels, only one partition can be bootable.  If you are installing LILO
+on a partition that partition must be bootable.
+For PC98 disk labels, all ext2 partitions must be bootable (this is
+enforced by Parted).
+
+@item lba
+(MS-DOS) - this flag can be enabled to tell MS DOS, MS Windows 9x and
+MS Windows ME based operating systems to use Linear (LBA) mode.
+
+@item root
+(Mac) - this flag should be enabled if the partition is the root device
+to be used by Linux.
+
+@item swap
+(Mac) - this flag should be enabled if the partition is the swap
+device to be used by Linux.
+
+@item hidden
+(MS-DOS, PC98) - this flag can be enabled to hide partitions from
+Microsoft operating systems.
+
+@item raid
+(MS-DOS) - this flag can be enabled to tell linux the partition is a
+software RAID partition. 
+
+@item LVM
+(MS-DOS) - this flag can be enabled to tell linux the partition is a
+physical volume.
+
+@item PALO
+(MS-DOS) - this flag can be enabled so that the partition can be used
+by the Linux/PA-RISC boot loader, palo.
+
+@item PREP
+(MS-DOS) - this flag can be enabled so that the partition can be used
+as a PReP boot partition on PowerPC PReP or IBM RS6K/CHRP hardware.
+
+@end table
+
 @node Bugs
 
 @chapter Bugs
 * Overview::
 * Options::
 * Commands and usage::
+* Units::
 @end menu
 
 @node Invoking fdisk
 table to the disk. Those that need to write to the disk immediately, warn the user
 about it and are only available when not running in Linux fdisk compatibility mode.
 The default unit used is cylinder and can be changed to sector. Partition sizes
-can be specified in any other available unit, though.
+can be specified in any other available unit, though. See the next section for 
+more information.
 
 @table @code
 @item @b{m}
 a filesystem on the partition, it will be destroyed.
 @end table
 
+@node Units
+
+@section Units
+While you can select either cylinders or sectors as display units, 
+you can specify the positions and sizes in units of your choice,
+by entering the size followed by the unit. This is a list of the units
+that are available. Please note, that at the time of writing, using some
+of the units, like percent, as a position or size is broken.
+
+ @table @code
+
+@item @b{compact}
+Display each size in the most suitable unit from B, kB, MB, GB and TB.
+
+@item @b{B}
+One byte
+
+@item @b{kB }
+One kilobyte (1,000 bytes)
+
+@item @b{MB}
+One megabyte (1,000,000 bytes)
+
+@item @b{GB}
+One gigabyte (1,000,000,000 bytes)
+
+@item @b{TB}
+One terabyte (1,000,000,000,000 bytes)
+
+@item @b{KiB}
+One kilo binary byte (1,024 bytes)
+
+@item @b{MiB}
+One mega binary byte (1,048,576 bytes)
+
+@item @b{GiB}
+One giga binary byte (1,073,741,824 bytes)
+
+@item @b{TiB}
+One tera binary byte (1,099,511,627,776 bytes)
+
+@item @b{s}
+One sector. It depends on the sector size of the disk. You can use it if you want to see or choose the exact size in sectors.
+
+@item @b{%}
+One percent from the size of the disk
+
+@item @b{cyl}
+One cylinder. It depends on the cylinder size.
+
+@item @b{chs}
+Use CHS display units.
+
+@end table
+
 @node Bugs
 
 @chapter Bugs
-disk and be detected by the OS. If you have created a BSD-type partition, you need to write the changes to the disk. If fdisk fails to notify the OS about the changes in partition table, you need to restart your computer. As fdisk tries to guess the device holding the BSD disklabel, it might fail to edit it at all, even if the OS has detected it. In this case you are adviced to simply open the device with fdisk directly. It is possible that it doesn't work on some operating systems.
+Before editing a BSD disklabel, the partition with  the  disklabel  should
+already exist on the disk and be detected by the OS. If you have created a BSD-type
+partition, you need to write the changes to the disk. If fdisk fails to notify 
+the OS about the changes in partition table, you need to restart your computer.
+As fdisk tries to guess the device holding the BSD disklabel, it might fail to
+edit it at all, even if the OS has detected it. In this case you are adviced to
+simply open the device with fdisk directly. It is possible that it doesn't work
+on some operating systems.
 
 
 Getting the size of a partition with -s might fail, if fdisk fails to guess the disk device, for the same reasons as with the previous bug.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.