1 |
On 04/30 03:44, Andrea Conti wrote: |
2 |
> Hi, |
3 |
> |
4 |
> > > CONFIG_PARTITION_ADVANCED=y |
5 |
> > > CONFIG_MSDOS_PARTITION=y |
6 |
> > > CONFIG_EFI_PARTITION=y |
7 |
> |
8 |
> That's all you need. |
9 |
> |
10 |
> > This could be the key. Sector sizes have been changing from 512 to 4096 |
11 |
> > over many years. If your kernel has been updated to expect/use 4096 byte |
12 |
> > sectors, it might not be able to read the disk properly. |
13 |
> |
14 |
> Sector size is only a (fixed) property of a specific block device, not something expected or required by the kernel. |
15 |
> Sector sizes other than 512B have been around for ages without any problems, even in consumer hardware (e.g. CDs and DVDs have 2KB sectors). |
16 |
> |
17 |
> > Disklabel type: dos |
18 |
> |
19 |
> > Device Boot Start End Sectors Size Id Type |
20 |
> > /dev/sdb1 1 1953458175 1953458175 931.5G ee GPT |
21 |
> |
22 |
> That looks... broken. |
23 |
> fdisk is recognizing the disk as MBR (a GPT disk would have "Disklabel type: gpt"), but the partition table is a protective MBR, which makes no sense in a non-GPT disk. |
24 |
> |
25 |
> My guess is that this disk was at some time partitioned with GPT (possibly it came that way from WD?), but then it was only used in machines with no kernel support for GPT. |
26 |
> Such a machine will happily treat that as a normal MBR and allow you to access the protective entry as a normal partition, which means you can create a filesystem on it and fill it with data, destroying the GPT structures. |
27 |
> |
28 |
> A GPT-aware kernel on the other hand will recognize that as a protective MBR and it will ignore it --but since the disk does not contain any valid GPT structures, it will not show any partitions. |
29 |
> |
30 |
> Try running "gdisk -l /dev/sdb"; for a valid GPT disk it will say: |
31 |
> |
32 |
> Partition table scan: |
33 |
> MBR: protective |
34 |
> BSD: not present |
35 |
> APM: not present |
36 |
> GPT: present |
37 |
> |
38 |
> If that's not the case and you have no GPT, you will have to fix things manually. |
39 |
> Since the disk is only 1TB, there is no reason to use GPT at all, so your best bet is to use fdisk to make that a standard MBR by changing the partition type from 'ee' to '83'. |
40 |
> |
41 |
> andrea |
42 |
> |
43 |
|
44 |
Hi Andreas, |
45 |
|
46 |
thank you very much for your analysis! :) |
47 |
|
48 |
when doing a gdisk -l /dev/sdb I get this Rocky Horror Picture Show: |
49 |
|
50 |
|
51 |
PT fdisk (gdisk) version 1.0.5 |
52 |
|
53 |
Caution: invalid main GPT header, but valid backup; regenerating main header |
54 |
from backup! |
55 |
|
56 |
Caution! After loading partitions, the CRC doesn't check out! |
57 |
Warning: Invalid CRC on main header data; loaded backup partition table. |
58 |
Warning! Main and backup partition tables differ! Use the 'c' and 'e' options |
59 |
on the recovery & transformation menu to examine the two tables. |
60 |
|
61 |
Warning! One or more CRCs don't match. You should repair the disk! |
62 |
Main header: ERROR |
63 |
Backup header: OK |
64 |
Main partition table: ERROR |
65 |
Backup partition table: ERROR |
66 |
|
67 |
Partition table scan: |
68 |
MBR: protective |
69 |
BSD: not present |
70 |
APM: not present |
71 |
GPT: damaged |
72 |
|
73 |
**************************************************************************** |
74 |
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk |
75 |
verification and recovery are STRONGLY recommended. |
76 |
**************************************************************************** |
77 |
Disk /dev/sdb: 1953458176 sectors, 931.5 GiB |
78 |
Model: Elements 25A2 |
79 |
Sector size (logical/physical): 512/512 bytes |
80 |
Disk identifier (GUID): BCA95A74-1E0A-4648-9971-20ED4049CAE5 |
81 |
Partition table holds up to 128 entries |
82 |
Main partition table begins at sector 2 and ends at sector 33 |
83 |
First usable sector is 34, last usable sector is 1953458142 |
84 |
Partitions will be aligned on 2048-sector boundaries |
85 |
Total free space is 1953458109 sectors (931.5 GiB) |
86 |
|
87 |
Number Start (sector) End (sector) Size Code Name |
88 |
|
89 |
|
90 |
|
91 |
"fix manually" scares me...especially because I have no place for |
92 |
1TB of an image file to with which I can experiment ... |
93 |
|
94 |
Any ideas which could ease my burden and to un-scare my |
95 |
"need to fix it manually" ??? ;) ;) |
96 |
|
97 |
Cheers! |
98 |
Meino |