fdisk(8)


NAME

fdisk - Partition table manipulator for Linux

SYNOPSIS

fdisk [ -l ] [ -v ] [ -s partition] [ device ]

DESCRIPTION

fdisk is a menu driven program for manipulation of the hard disk partition table. The device is usually one of the following:

/dev/hda /dev/hdb /dev/sda /dev/sdb
The partition is a device name followed by a partition number. For example, /dev/hda1 is the first partition on the first hard disk in the system.
If possible, fdisk will obtain the disk geometry automatically. This is not necessarily the physical disk geometry, but is the disk geometry that MS-DOS uses for the partition table. If fdisk warns you that you need to set the disk geometry, please believe this statement, and set the geometry. This should only be necessary with certain SCSI host adapters (the drivers for which are rapidly being modified to provide geometry information automatically).
Whenever a partition table is printed out, a consistency check is performed on the partition table entries. This check verifies that the physical and logical start and end points are identical, and that the partition starts and ends on a cylinder boundary (except for the first partition).
Old versions of fdisk (all versions prior to 1.1r [including 0.93]) incorrectly mapped the cylinder/head/sector specification onto absolute sectors. This may result in the first partition on a drive failing the consistency check. If you use LILO to boot, this situation can be ignored. However, there are reports that the OS/2 boot manager will not boot a partition with inconsistent data.
Some versions of MS-DOS create a first partition which does not begin on a cylinder boundary, but on sector 2 of the first cylinder. Partitions beginning in cylinder 1 cannot begin on a cylinder boundary, but this is unlikely to cause difficulty unless you have OS/2 on your machine.
In version 1.1r, a BLKRRPART ioctl() is performed before exiting when the partition table is updated. This is primarily to ensure that removable SCSI disks have their partition table information updated. If the kernel does not update its partition table information, fdisk warns you to reboot. If you do not reboot your system after receiving such a warning, you may lose or corrupt the data on the disk. Sometimes BLKRRPART fails silently, when installing Linux, you should always reboot after editing the partition table.

DOS 6.x FIGYELMEZTETÉS


A DOS 6.x FORMAT parancs keres néhány információt a partició adatterületének elsô szektorában, es úgy használja ezt az informaciót mintha megbizhatóbb lenne a patriciós táblában levô információknál. A DOS FORMAT elvárja DOS FDISK-tôl a partició adatterületének elsô 512 byte-jának törlését amikor a partició mérete vátozik. DOS FORMAT vizsgálni fogja ezt a többletinformációt mindig, mikor /U flag-et adunk -- Mi ezt egy hibának tartjuk a DOS FORMAT és DOS FDISK -ben.
A legalsó vonal azt jelenti hogy ha a cfdisk vagy fdisk-el változtatod meg a DOS particiós tábla bejegyzés méretét, akkor használnod kell a dd -t is, hogy lenullázd a partició elsô 512 byte-ját mielött formáznád a paticiót DOS FORMAT -tal. Például, ha te a cfdisk segítségével készitettél egy DOS particiós tábla bejegyzést /dev/hda1 -nak, akkor (az fdisk vagy cfdisk -bôl való kilépés és a Linux újraindítása után a particiós tábla információi érvényesek) használhatod a "dd if=/dev/zero of=/dev/hda1 bs=512 count=1" parancsot, hogy lenullázd a partició elsô 512 byte-ját. LÉGY RENDKÍVÜL OVATOS ha a dd parancsot használod, mert egy kis typo használhatattlanná tudja tenni a lemezed összes adatát.
LÉGY RENDKÍVÜL OVATOS ha a dd parancsot használod, mert egy kis typo használhatattlanná tudja tenni a lemezed összes adatát.
A legjobb eredményekért, mindig egy Operációs rendszer-specifikus particiós táblás programot kene hasznalnod. Példaul, a DOS FDISK program segítségével kellene DOS particiókat készítened és a Linux fdisk vagy Linux cfdisk program segítségével Linux particiókat.

OPCIOK

-v
Kiírja az fdisk program verziójának a számát.

-l
Kilistázza a particiós táblákat /dev/hda , /dev/hdb , /dev/sda , /dev/sdb , /dev/sdc , /dev/sdd , /dev/sde , /dev/sdf , /dev/sdg , /dev/sdh -nak, és utána kilép.

-s partició
Ha a partició nem egy DOS partició (a partició id nagyobb mint 10), akkor annak a particiónak a mérete jelenik meg a standard outputon. Ezt az értéket rendes korülmények között az mkfs (8) program használja fel mint egy argumentumát hogy megadjuk annak a particiónak a méretét, amelyik formázva lesz.

HIBÁK

Jollehet ez a man lap (írta faith@cs.unc.edu) szûkszavú, van egy kitûnô dokumentáció a README.fdisk fájlban, (írta LeBlanc@mcc.ac.uk) annak mindig az fdiskkel kellene lennie. Ha nem találod ezt a fájlt a util-linux-* könyvtárban vagy az fdisk.c forrás fájlban, akkor irnod kellene a te fdisked egyedárusítójának és elpanaszolni, hogy nincs meg neked az egész felhasználható dokumentació.

SZERZÔK

A. V. Le Blanc (LeBlanc@mcc.ac.uk)
v1.0r: SCSI és extfs támogatást hozzáadta Rik Faith (faith@cs.unc.edu)
v1.1r: Hibákat javította és bôvítette Rik Faith (faith@cs.unc.edu), speciális köszönet Michael Bischoff-nak (i1041905@ws.rz.tu-bs.de vagy mbi@mo.math.nat.tu-bs.de).
v1.3: Legutolsó bôvítéseket és hibák javítását A. V. Le Blanc végezte, beleértve az -s opció hozzáadását.