gptboot: invalid backup gtp header

Installing and upgrading FreeBSD.

gptboot: invalid backup gtp header

Postby bsdnews » 03 Mar 2012, 15:37

Hi all,

So as I said in my self-introduction, I have installed FreeBSD yesterday on an external HDD in order to use it on my laptop.
The installation was good; I used the entire disk (931 GB : 64kb as boot partition, 927GB FreeBSD-UFS and 4GB FreeBSD-swap). At start time, when I want to launch FreeBSD I have this message:
Code: Select all
gptboot: invalid backup gtp header

I try to reinstall FreeBSD and clean GTP with gdisk but it doesn’t work.
What can I do?
Thanks to all
bsdnews
Junior Member
 
Posts: 9
Joined: 03 Mar 2012, 15:13

Postby Morte » 04 Mar 2012, 04:09

I'd probably start with manually clearing the GPT partition data using
[cmd=]dd if=/dev/zero of=/dev/{drive} bs=1m count=10[/cmd]
Or something to that effect. To truly clear the old GPT data, you have to clear the back of the drive as well. I'm not sure on a good way to calculate how to skip most of the drive data (usually I just guess until I get close enough).

During the install process, you may want to use the manual partitioning system and try MBR instead of GPT and see if that works for you.
Morte
Junior Member
 
Posts: 45
Joined: 02 Mar 2012, 02:11

Postby wblock@ » 04 Mar 2012, 05:16

[man=8]gpart[/man] has commands to destroy and recover GPT partition tables. Too little information given to tell why the backup GPT table was corrupted.
User avatar
wblock@
Old Fart
 
Posts: 10155
Joined: 07 Sep 2009, 23:23
Location: Milky Way galaxy

Postby bsdnews » 04 Mar 2012, 12:04

Hi,

Thanks a lot for your answers. So I try to use [FILE]dd[/FILE], but it doesn't change anything, I still have this message. I will try to use MBR instead of GPT (I will seek how to do it). About my configuration, so I have my internal HDD ([FILE]ad0[/FILE]) on which I have Fedora and Ubuntu, I have the MBR here and I'm using Grub2. FreeBSD is installed on an external HDD ([FILE]hd0[/FILE]). Gdisk says that I have:
Code: Select all
Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Code: Select all
Disk /dev/sdf: 1953468416 sectors, 931.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 02220102-65EB-11E1-9830-485D609AB9A9
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1953468382
Partitions will be aligned on 8-sector boundaries
Total free space is 1019837 sectors (498.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1              34             161   64.0 KiB    A501 
   2             162      1944059937   927.0 GiB   A503 
   3      1944059938      1952448545   4.0 GiB     A502 

Code: Select all
Disk size is 1953468416 sectors (931.5 GiB)
MBR disk identifier: 0x00000000
MBR partitions:

Number  Boot  Start Sector   End Sector   Status      Code
   1      *              1   1953468415   primary     0xEE


Does that help you?
bsdnews
Junior Member
 
Posts: 9
Joined: 03 Mar 2012, 15:13

Postby wblock@ » 04 Mar 2012, 17:05

It would be more helpful to see what [man=8]gpart[/man] says about that disk. One guess would be something changed after the install that wiped out the secondary GPT table, like one of the GEOM modules for mirroring or striping or encryption.
User avatar
wblock@
Old Fart
 
Posts: 10155
Joined: 07 Sep 2009, 23:23
Location: Milky Way galaxy

Postby bsdnews » 05 Mar 2012, 06:21

Hi,

Sorry it took me all the night to have this information. Here is the scan of [FILE]gpart[/FILE]:

Code: Select all
gpart /dev/sdb

Begin scan...
End scan.

Checking partitions...
Ok.

Guessed primary partition table:
Primary partition(1)
   type: 000(0x00)(unused)
   size: 0mb #s(0) s(0-0)
   chs:  (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r

Primary partition(2)
   type: 000(0x00)(unused)
   size: 0mb #s(0) s(0-0)
   chs:  (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r

Primary partition(3)
   type: 000(0x00)(unused)
   size: 0mb #s(0) s(0-0)
   chs:  (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r

Primary partition(4)
   type: 000(0x00)(unused)
   size: 0mb #s(0) s(0-0)
   chs:  (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r
bsdnews
Junior Member
 
Posts: 9
Joined: 03 Mar 2012, 15:13

Postby wblock@ » 05 Mar 2012, 19:12

Actually, I meant the FreeBSD [man=8]gpart[/man], after booting into FreeBSD. The output above looks like it's from Linux (sdb) and also looks like it's finding the partition table empty.
User avatar
wblock@
Old Fart
 
Posts: 10155
Joined: 07 Sep 2009, 23:23
Location: Milky Way galaxy

Postby bsdnews » 05 Mar 2012, 21:25

Sorry, I misunderstand but with my issue I can't boot on FreeBSD. Indeed I just see this screen and I can do nothing (I can just reboot).
bsdnews
Junior Member
 
Posts: 9
Joined: 03 Mar 2012, 15:13

Postby wblock@ » 05 Mar 2012, 23:25

Well, there's mfsBSD. But it might be quicker just to try an MBR setup.
User avatar
wblock@
Old Fart
 
Posts: 10155
Joined: 07 Sep 2009, 23:23
Location: Milky Way galaxy

Postby bsdnews » 06 Mar 2012, 21:52

Well thanks to you all is install (I'm using the MBR now):
Code: Select all
ad0: 931 MBR
 adOa 931 BSD
  adOa1 900  FreeBSD-ufs /
  adOa2 4     FreeBSD-swap none
  adOa3 10   FreeBSD /var
  adOa4 7    FreeBSD /tmp
  adOa5 10  FreeBSD /usr
 


I follow your howto but unfortunatly I have this message now:
Code: Select all
Guessed BIOS device 0×ffffffffff not found by probes, defaulting to disk0. Can't load 'kernel'

What should I do?
bsdnews
Junior Member
 
Posts: 9
Joined: 03 Mar 2012, 15:13

Postby bsdnews » 06 Mar 2012, 21:59

I forgot to say that I have this message when I'm booting on my external DD where FreeBSD is.
(In order to boot on it, I'm selecting the DD in my BIOS, I haven't yet configure my GRUB2 for launching FreeBSD)
bsdnews
Junior Member
 
Posts: 9
Joined: 03 Mar 2012, 15:13

Postby wblock@ » 07 Mar 2012, 03:51

That's a new one for me. But it is referenced on a BugBusting page: http://wiki.freebsd.org/BugBusting/Commonly_reported_issues
User avatar
wblock@
Old Fart
 
Posts: 10155
Joined: 07 Sep 2009, 23:23
Location: Milky Way galaxy

Postby bsdnews » 07 Mar 2012, 21:25

Hi, thanks I will read this page I hope I will understand and find something.
I don't understand what happen. Indeed when I installed FreBSD for the first time it worked perfectly and now it's impossible to boot on it.
I will try mfsBSD to see if it's work.

(I'm sorry about my mistakes like the space or the I, english is not my mother tongue)
bsdnews
Junior Member
 
Posts: 9
Joined: 03 Mar 2012, 15:13

Postby wblock@ » 07 Mar 2012, 22:56

The output shown in #10 looks wrong. MBR partitions ("slices") have an "s": [file]ada0s1[/file]. Also, FreeBSD 9 would call that device [file]ada0[/file] (not "ad0"). So it should be [file]ada0s1a[/file], [file]ada0s1b[/file], and so on. What that shows is the good old "dangerously dedicated" mode, which is not an MBR. Also, the filesystems should be type [file]freebsd-ufs[/file]. That alone will not keep it from working, but it's good procedure.
User avatar
wblock@
Old Fart
 
Posts: 10155
Joined: 07 Sep 2009, 23:23
Location: Milky Way galaxy

Postby bsdnews » 09 Mar 2012, 12:35

Hi,

Great news! I succeeded :-)

I have my FreeBSD on my external HDD and it works (I'm using it at this time). In fact, I tried to install PCBSD and it worked, so I tried a new installation of FreeBSD with GPT. I use the same configuration as in PCBSD, that is to say I have this configuration:
Code: Select all
64KB freebsd-boot
4GB freebsd-swap
20GB freebsd-ufs /
907GB freebsd-zfs

I still have this message:
Code: Select all
gptboot: invalid backup gtp header

But now I can launch FreeBSD :-) It's really great.

Thanks a lot for your help.
bsdnews
Junior Member
 
Posts: 9
Joined: 03 Mar 2012, 15:13


Return to Installing & Upgrading

Who is online

Users browsing this forum: No registered users and 1 guest