Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] data recovery advice needed
Date: Wed, 19 Dec 2018 22:16:58
Message-Id: 5138848.JoqxQPOfia@dell_xps
In Reply to: Re: [gentoo-user] data recovery advice needed by Grant Taylor
1 On Wednesday, 19 December 2018 18:46:40 GMT Grant Taylor wrote:
2 > On 12/19/2018 04:43 AM, Mick wrote:
3
4 > > Partition table holds up to 128 entries
5 >
6 > 128 entries tells me that the disk has GPT partition table, not a
7 > classis MS-DOS / PC-BIOS partition table.
8 >
9 > This sounds like the (what I understand to be) the classic protection
10 > partition that GPT fakes in PC-BIOS partition tables.
11 >
12 > Do you have GPT partition support in your kernel?
13 >
14 > I'm guessing the one partition that you see is the size of the entire drive.
15 > > Main partition table begins at sector 2 and ends at sector 33
16 > > First usable sector is 34, last usable sector is 1953525134
17 > > Partitions will be aligned on 2048-sector boundaries
18 > > Total free space is 4770 sectors (2.3 MiB)
19 > >
20 > > Number Start (sector) End (sector) Size Code Name
21 > >
22 > > 1 2048 821247 400.0 MiB 2700 Basic data
23 > > partition
24 > > 2 821248 1353727 260.0 MiB EF00 EFI system
25 > > partition
26 > > 3 1353728 1615871 128.0 MiB 0C01 Microsoft
27 > > reserved
28 > >
29 > > ...
30 > >
31 > > 4 1615872 1911737034 910.8 GiB 0700 Basic data
32 > > partition
33 > > 5 1911738368 1915412479 1.8 GiB 2700
34 > > 6 1915412480 1953523711 18.2 GiB 0700 Basic data
35 > > partition
36 > >
37 > > I can see partition 4 I was trying to recover, but could not add it:
38 > >
39 > > partx --show --nr 4 /dev/sdb
40 > > NR START END SECTORS SIZE NAME UUID
41 > >
42 > > 4 1615872 1911737034 1910121163 910.8G Basic data partition fea85fb3-
43 > >
44 > > cfdb-4868-a1ad-bab264dad237
45 > >
46 > > partx --add --nr 4 /dev/sdb
47 > > partx: /dev/sdb: error adding partition 4
48 > >
49 > > partx --add /dev/sdb
50 > > partx: /dev/sdb: error adding partitions 1-6
51 >
52 > That really sounds like your kernel doesn't have GPT support (loaded).
53
54 Grant, you're spot on!
55
56 Symbol: EFI_PARTITION [=n]
57
58 I was under the impression I had it enabled, but clearly I hadn't on this PC;
59 which has a legacy BIOS with an MBR disk and which I used for troubleshooting
60 the faulty drive after I removed it from the laptop. Lesson learned. ;-)
61
62 --
63 Regards,
64 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] data recovery advice needed Grant Taylor <gtaylor@×××××××××××××××××××××.net>