[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: libgparted bug.



On Friday 09 February 2018 13:13:42 Thomas Schmitt wrote:

> Hi,
>
> Gene Heskett wrote:
> > When did fdisk learn about GPT part tables?
>
> Dunno. It recognizes GPT by type "ee" of the "Protective MBR" entry in
>
> the partition table of the MBR:
> >              Device Boot       Start         End      Blocks   Id 
> > System rock-img-shrunk.img 1              1   125171711    62585855+
> >  ee  GPT
>
> For further investigations use gdisk:
>
>   /sbin/gdisk -l rock-img-shrunk.img
>
> which should show the partitions you know.
gene@coyote:~/rock64.imgs$ /sbin/gdisk -l rock-img-shrunk.img
GPT fdisk (gdisk) version 0.8.5

Warning! Disk size is smaller than the main header indicates! Loading
secondary header from the last sector of the disk! You should use 'v' to
verify disk integrity, and perhaps options on the experts' menu to repair
the disk.
Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.

Warning! Error 25 reading partition table for CRC check!
Warning! One or more CRCs don't match. You should repair the disk!

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: damaged

****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but 
disk
verification and recovery are STRONGLY recommended.
****************************************************************************
Disk rock-img-shrunk.img: 15624960 sectors, 7.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 1C7D4C86-35A6-4E6A-B3E3-2A6BEB44FDD0
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 125171678
Partitions will be aligned on 64-sector boundaries
Total free space is 108670973 sectors (51.8 GiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1              64            8063   3.9 MiB     8300  loader1
   2            8064            8191   64.0 KiB    8300  reserved1
   3            8192           16383   4.0 MiB     8300  reserved2
   4           16384           24575   4.0 MiB     8300  loader2
   5           24576           32767   4.0 MiB     8300  atf
   6           32768          262143   112.0 MiB   0700  boot
   7          262144        16500735   7.7 GiB     8300  root

Humm, atf? Decode plz. This is (presumably) a u-boot machine, no grub 
stuff to be found.

Thanks.
>
> > gene@coyote:~/rock64.imgs$  /sbin/fdisk -l /dev/sdd
> >   Device Boot       Start         End      Blocks   Id  System
> > /dev/sdd 1          32768   125042687    62504960    7 
> > HPFS/NTFS/exFAT
>
> This is probably an unpartitioned "disk" with MS-Windows filesystem.
>
> In any case it is not a copy of rock-img-shrunk.img .
>
>
> Have a nice day :)
>
> Thomas



-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>


Reply to: