grml /dev/sdb doesnt have a valid fake msdos partition table

Du kommst mit der Installation nicht voran oder willst noch was nachfragen? Schau auch in den "Tipps und Tricks"-Bereich.
Antworten
bullgard
Beiträge: 1654
Registriert: 14.09.2012 23:03:01

grml /dev/sdb doesnt have a valid fake msdos partition table

Beitrag von bullgard » 16.04.2013 08:34:44

Hi,
ich habe ein Live Grml 2013/2 auf einen USB-Stick kopiert und mache damit meine ersten Schritte. Damit kann ich meinen Laptop-Rechner booten. Der X-Server läuft damit, Internetzugang funktioniert noch nicht.

Code: Alles auswählen

~$ sudo fdisk -l /dev/sdb
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.
   Device Boot      Start         End      Blocks     Id    System
/dev/sdb1   *           0     1497087    748544    17   Hidden HPFS/NTFS

Code: Alles auswählen

~$ sudo gparted
======================
libparted : 2.3
======================
/dev/sdb contains GPT signatures, indicating that it has a GPT table.  However, it does not have a valid fake msdos partition table, as it should.  Perhaps it was corrupted -- possibly by a program that doesn't understand GPT partition tables.  Or perhaps you deleted the GPT table, and are now using an msdos partition table.  Is this a GPT partition table?
The backup GPT table is not at the end of the disk, as it should be.  This might mean that another operating system believes the disk is smaller.  Fix, by moving the backup to the end (and removing the old backup)?

Code: Alles auswählen

$ sudo dd if=/dev/sdb bs=512 count=1 | hexdump
1+0 Datensätze ein
1+0 Datensätze aus
512 Bytes (512 B) kopiert, 0,00168785 s, 303 kB/s
und den Code in http://paste.debian.net/249828/
Wie sollte ich das reparieren?

NAB
Beiträge: 5501
Registriert: 06.03.2011 16:02:23
Lizenz eigener Beiträge: MIT Lizenz

Re: grml /dev/sdb doesnt have a valid fake msdos partition t

Beitrag von NAB » 16.04.2013 15:09:17

Ja, was soll denn deiner Meinung nach auf /dev/sdb sein?
Und gibt es /dev/sda?
Never change a broken system. It could be worse afterwards.

"No computer system can be absolutely secure." Intel Document Number: 336983-001

rendegast
Beiträge: 15041
Registriert: 27.02.2006 16:50:33
Lizenz eigener Beiträge: MIT Lizenz

Re: grml /dev/sdb doesnt have a valid fake msdos partition t

Beitrag von rendegast » 16.04.2013 16:15:52

Mal parted ran lassen?

Code: Alles auswählen

parted /dev/sdb p

und mit Sektoren
parted /dev/sdb u s p
Bis jetzt ist es ja nur eine Warnung, daß der zweite GPT-Block nicht gefunden werden kann.

Dein hexdump umgemodelt und per xxd binär gemacht

Code: Alles auswählen

$ file dfde.hexdu.toxxd_bytes_single_paste_PLAIN-rev
dfde.hexdu.toxxd_bytes_single_paste_PLAIN-rev:
 x86 boot sector; partition 1: ID=0x17, active, starthead 0, startsector 0, 1497088 sectors, code offset 0xed
Drücken Sie eine Taste zum Fortfahren...
steht noch was mit isolinux.bin drin:

Code: Alles auswählen

$ xxd dfde.hexdu.toxxd_bytes_single_paste_PLAIN-rev
0000000: 33ed 9090 9090 9090 9090 9090 9090 9090  3...............
0000010: 9090 9090 9090 9090 9090 9090 9090 9090  ................
0000020: 33ed fa8e d5bc 007c fbfc 6631 db66 31c9  3......|..f1.f1.
0000030: 6653 6651 0657 8edd 8ec5 52be 007c bf00  fSfQ.W....R..|..
0000040: 06b9 0001 f3a5 ea4b 0600 0052 b441 bbaa  .......K...R.A..
0000050: 5531 c930 f6f9 cd13 7216 81fb 55aa 7510  U1.0....r...U.u.
0000060: 83e1 0174 0b66 c706 f106 b442 eb15 eb00  ...t.f.....B....
0000070: 5a51 b408 cd13 83e1 3f5b 510f b6c6 4050  ZQ......?[Q...@P
0000080: f7e1 5352 50bb 007c b904 0066 a1b0 07e8  ..SRP..|...f....
0000090: 4400 0f82 8000 6640 80c7 02e2 f266 813e  D.....f@.....f.>
00000a0: 407c fbc0 7870 7509 fabc ec7b ea44 7c00  @|..xpu....{.D|.
00000b0: 00e8 8300 6973 6f6c 696e 7578 2e62 696e  ....isolinux.bin
00000c0: 206d 6973 7369 6e67 206f 7220 636f 7272   missing or corr
00000d0: 7570 742e 0d0a 6660 6631 d266 0306 f87b  upt...f`f1.f...{
00000e0: 6613 16fc 7b66 5266 5006 536a 016a 1089  f...{fRfP.Sj.j..
00000f0: e666 f736 e87b c0e4 0688 e188 c592 f636  .f.6.{.........6
0000100: ee7b 88c6 08e1 41b8 0102 8a16 f27b cd13  .{....A......{..
0000110: 8d64 1066 61c3 e81e 004f 7065 7261 7469  .d.fa....Operati
0000120: 6e67 2073 7973 7465 6d20 6c6f 6164 2065  ng system load e
0000130: 7272 6f72 2e0d 0a5e acb4 0e8a 3e62 04b3  rror...^....>b..
0000140: 07cd 103c 0a75 f1cd 18f4 ebfd 0000 0000  ...<.u..........
0000150: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000160: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000170: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000180: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000190: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00001a0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00001b0: 8c4d 1600 0000 0000 7eb4 6473 0000 8000  .M......~.ds....
00001c0: 0100 173f a0da 0000 0000 00d8 1600 0000  ...?............
00001d0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00001e0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00001f0: 0000 0000 0000 0000 0000 0000 0000 55aa  ..............U.
mfg rendegast
-----------------------
Viel Eifer, viel Irrtum; weniger Eifer, weniger Irrtum; kein Eifer, kein Irrtum.
(Lin Yutang "Moment in Peking")

bullgard
Beiträge: 1654
Registriert: 14.09.2012 23:03:01

Re: grml /dev/sdb doesnt have a valid fake msdos partition t

Beitrag von bullgard » 16.04.2013 21:16:27

NAB hat geschrieben:Ja, was soll denn deiner Meinung nach auf /dev/sdb sein?
Und gibt es /dev/sda?
Das habe ich doch oben klar geschrieben: Das Grml 2013/2.
Ja, es gibt ein /dev/sda. Es ist die Festplatte meines Debian wheezy.

bullgard
Beiträge: 1654
Registriert: 14.09.2012 23:03:01

Re: grml /dev/sdb doesnt have a valid fake msdos partition t

Beitrag von bullgard » 16.04.2013 21:32:06

rendegast hat geschrieben:Mal parted ran lassen?

Code: Alles auswählen

parted /dev/sdb p

Code: Alles auswählen

~$ sudo parted /dev/sdb p
Warning: /dev/sdb contains GPT signatures, indicating that it has a GPT table.
However, it does not have a valid fake msdos partition table, as it should.
Perhaps it was corrupted -- possibly by a program that doesn't understand GPT
partition tables.  Or perhaps you deleted the GPT table, and are now using an
msdos partition table.  Is this a GPT partition table?
Yes/No? Yes                                                               
Error: The backup GPT table is not at the end of the disk, as it should be.
This might mean that another operating system believes the disk is smaller.
Fix, by moving the backup to the end (and removing the old backup)?
Fix/Ignore/Cancel?
und mit Sektoren

Code: Alles auswählen

parted /dev/sdb u s p
~$ parted /dev/sdb u s p

Code: Alles auswählen

bash: parted: Kommando nicht gefunden.
detlef@T61:~$ sudo parted /dev/sdb u s p
Warning: /dev/sdb contains GPT signatures, indicating that it has a GPT table.
However, it does not have a valid fake msdos partition table, as it should.
Perhaps it was corrupted -- possibly by a program that doesn't understand GPT
partition tables.  Or perhaps you deleted the GPT table, and are now using an
msdos partition table.  Is this a GPT partition table?
Yes/No? Yes                                                               
Error: The backup GPT table is not at the end of the disk, as it should be.
This might mean that another operating system believes the disk is smaller.
Fix, by moving the backup to the end (and removing the old backup)?
Fix/Ignore/Cancel?
Bis jetzt ist es ja nur eine Warnung, daß der zweite GPT-Block nicht gefunden werden kann.

Dein hexdump umgemodelt und per xxd binär gemacht

Code: Alles auswählen

$ file dfde.hexdu.toxxd_bytes_single_paste_PLAIN-rev
dfde.hexdu.toxxd_bytes_single_paste_PLAIN-rev:
 x86 boot sector; partition 1: ID=0x17, active, starthead 0, startsector 0, 1497088 sectors, code offset 0xed
Drücken Sie eine Taste zum Fortfahren...
steht noch was mit isolinux.bin drin:

Code: Alles auswählen

$ xxd dfde.hexdu.toxxd_bytes_single_paste_PLAIN-rev
0000000: 33ed 9090 9090 9090 9090 9090 9090 9090  3...............
0000010: 9090 9090 9090 9090 9090 9090 9090 9090  ................
0000020: 33ed fa8e d5bc 007c fbfc 6631 db66 31c9  3......|..f1.f1.
0000030: 6653 6651 0657 8edd 8ec5 52be 007c bf00  fSfQ.W....R..|..
0000040: 06b9 0001 f3a5 ea4b 0600 0052 b441 bbaa  .......K...R.A..
0000050: 5531 c930 f6f9 cd13 7216 81fb 55aa 7510  U1.0....r...U.u.
0000060: 83e1 0174 0b66 c706 f106 b442 eb15 eb00  ...t.f.....B....
0000070: 5a51 b408 cd13 83e1 3f5b 510f b6c6 4050  ZQ......?[Q...@P
0000080: f7e1 5352 50bb 007c b904 0066 a1b0 07e8  ..SRP..|...f....
0000090: 4400 0f82 8000 6640 80c7 02e2 f266 813e  D.....f@.....f.>
00000a0: 407c fbc0 7870 7509 fabc ec7b ea44 7c00  @|..xpu....{.D|.
00000b0: 00e8 8300 6973 6f6c 696e 7578 2e62 696e  ....isolinux.bin
00000c0: 206d 6973 7369 6e67 206f 7220 636f 7272   missing or corr
00000d0: 7570 742e 0d0a 6660 6631 d266 0306 f87b  upt...f`f1.f...{
00000e0: 6613 16fc 7b66 5266 5006 536a 016a 1089  f...{fRfP.Sj.j..
00000f0: e666 f736 e87b c0e4 0688 e188 c592 f636  .f.6.{.........6
0000100: ee7b 88c6 08e1 41b8 0102 8a16 f27b cd13  .{....A......{..
0000110: 8d64 1066 61c3 e81e 004f 7065 7261 7469  .d.fa....Operati
0000120: 6e67 2073 7973 7465 6d20 6c6f 6164 2065  ng system load e
0000130: 7272 6f72 2e0d 0a5e acb4 0e8a 3e62 04b3  rror...^....>b..
0000140: 07cd 103c 0a75 f1cd 18f4 ebfd 0000 0000  ...<.u..........
0000150: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000160: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000170: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000180: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000190: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00001a0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00001b0: 8c4d 1600 0000 0000 7eb4 6473 0000 8000  .M......~.ds....
00001c0: 0100 173f a0da 0000 0000 00d8 1600 0000  ...?............
00001d0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00001e0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00001f0: 0000 0000 0000 0000 0000 0000 0000 55aa  ..............U.
Meine Frage bleibt bestehen: Wie repariert man das?

Benutzeravatar
habakug
Moderator
Beiträge: 4314
Registriert: 23.10.2004 13:08:41
Lizenz eigener Beiträge: MIT Lizenz

Re: grml /dev/sdb doesnt have a valid fake msdos partition t

Beitrag von habakug » 17.04.2013 00:50:25

Hallo!

Die GPT hat einen MBR an LBA 0, den hast du ja auch schon ausgelesen. Dieser "protective MBR" soll dafür sorgen, das Programme wie fdisk, die mit GPT nicht umgehen können, eine Warnung ausgeben und einen "fake"-Eintrag über die gesamte Platte (evtl. nur bis 2TB-Grenze) mit der ID "ee". So sieht das im allgemeinen aus:

Code: Alles auswählen

# fdisk -l
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sda1               1   125045423    62522711+  ee  GPT
Bei dir sieht das etwas anders aus, es scheint dich aber nicht weiter zu stören das "hidden NTFS" angezeigt wird. Du müßtest also mal erzählen wie du das grml auf den Stick bekommen hast.
Besser ist es gdisk oder parted zu verwenden, die mit einer GPT umgehen können:

Code: Alles auswählen

# parted /dev/sda print
Partitionstabelle: gpt

Nummer  Anfang  Ende    Größe   Dateisystem  Name              Flags
 1      1049kB  16,1GB  16,1GB               Linux filesystem  legacy_boot
 2      16,1GB  64,0GB  47,9GB               Linux filesystem
Die Fehlermeldung von parted wird z.B. durch das Schreiben eines Images auf einen Datenträger verursacht. Die Partitionstabelle von GPT hält am Ende des Datenträgers ein Backup [1]. Schreibt man ein Image liegt dieses Backup am Ende des Images und nicht am Ende des Datenträgers. Das möchte das Helferlein jetzt korrigieren und das Backup an das Ende des Datenträgers legen, sowie das "falsche" Backup löschen.
Was genau möchtest du denn an diesen Partitionen bearbeiten/verändern?

Gruß, habakug

[1] http://en.wikipedia.org/wiki/File:GUID_ ... Scheme.svg
( # = root | $ = user | !! = mod ) (Vor der PN) (Debianforum-Wiki) (NoPaste)

Antworten