Gpart
gpart is a software utility which scans a storage device, examining the data in order to detect partitions which may exist but are absent from the disk's partition tables.[src] Gpart was written by Michail Brzitwa of Germany.[src] The release on the author's website is now older than the releases some distributions are using.[src] It appears that Michail Brzitwa does not actively maintain the code, instead the various distributions (I.E.[src] Fedora or Debian ) appear to maintain their own versions.[src] gpart tries to guess partitions from any device that can be partitioned, even a file.[src] If the primary partition table has been lost, overwritten or destroyed the partitions still exist on the media but the operating system cannot access them.[src] gpart ignores the primary partition table and scans the disk (or disk image file) sector after sector for several filesystem/partition types.[src] It does so by "asking" filesystem recognition modules if they think a given sequence of sectors resembles the beginning of a filesystem or partition type.[src] Michail Brzitwa,: man page "gpart(8) - Linux man page", January 2001 A list of these modules are listed below.[src] Also modules can be written for future filesystems and used in the detection process.…[src]
gpart is a software utility which scans a storage device, examining the data in order to detect partitions which may exist but are absent from the disk's partition tables.[src] Gpart was written by Michail Brzitwa of Germany.[src] The release on the author's website is now older than the releases some distributions are using.[src] It appears that Michail Brzitwa does not actively maintain the code, instead the various distributions (I.E.[src] Fedora or Debian ) appear to maintain their own versions.[src] gpart tries to guess partitions from any device that can be partitioned, even a file.[src] If the primary partition table has been lost, overwritten or destroyed the partitions still exist on the media but the operating system cannot access them.[src] gpart ignores the primary partition table and scans the disk (or disk image file) sector after sector for several filesystem/partition types.[src] It does so by "asking" filesystem recognition modules if they think a given sequence of sectors resembles the beginning of a filesystem or partition type.[src] Michail Brzitwa,: man page "gpart(8) - Linux man page", January 2001 A list of these modules are listed below.[src] Also modules can be written for future filesystems and used in the detection process.[src] If recovering partitions is needed that are damaged on the only bootable disk in a machine, a live CD can be used such as knoppix to start the machine and use the utilities from the disk.[src] It is also good at finding and listing the types, locations, and sizes of inadvertently-deleted partitions, both primary and logical.[src] It gives you the information you need to manually re-create them (using fdisk, cfdisk, sfdisk, etc.).[src] The guessed partition table can also be written to a file or (if you firmly believe the guessed table is entirely correct) directly to a disk device.[src] With some badly damaged devices, it is possible to use a utility such as ddrescue to make a backup.[src] gpart can guess the partitions on the copy.[src] If it is successful, they can be written back to the device.[src] Using ddrescue can get read errors because the device is damaged but if there are partitions readable with your copy then Mount (Unix) can retrieve the data from the copy.[src] $ mount -t /path/to/imagefile -o loop,offset= /mnt/loop This will mount the partition at offset on /mnt/loop so you can recover your data from the file.[src] To get the partition offset you can use either fdisk -ul /path/to/imagefile or use the output from gpart.[src] Look at the sample output at the size line, the last pair of round brackets has the start (16) and then end (3906559).[src] When specifying the offset, always specify the start.[src] ==References==[src]
35 sentences · 35 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Gpart." encyclopegia.org, 2026, https://encyclopegia.org/wiki/gpart. Accessed 25 November 2026.
Chicago
"Gpart." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/gpart.
APA
encyclopegia.org. (2026). Gpart. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/gpart
Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON