Welcome! Log In Create A New Profile

Advanced

Trouble booting new drive

Posted by Only1KW 
Trouble booting new drive
January 15, 2019 11:13PM
I'm attempting to upgrade the HDD I have attached to my pogoplug v4 mobile from a 1TB to a 4TB. To support a single partition greater than 2TB, I'm using a GPT partition table rather than an msdos partition table. I'm using GParted 0.33.0 to do so. When I attempt to boot the drive, I see the following in netconsole:

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:34:01 -0700)
Pogoplug V4
gcc (Debian 6.3.0-18) 6.3.0 20170516
GNU ld (GNU Binutils for Debian) 2.28
Hit any key to stop autoboot:  0 
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

Reset IDE: ide_preinit failed
Card did not respond to voltage select!
mmc_init: -95, time 11

Partition Map for USB device 0  --   Partition Type: EFI

GPT: first_usable_lba incorrect: 22 > 0
part_print_efi: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0xD7B4EDBFEED6233B != 0x5452415020494645
part_print_efi: *** ERROR: Invalid Backup GPT ***

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
GPT: first_usable_lba incorrect: 22 > 0
part_get_info_efi: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0xD7B4EDBFEED6233B != 0x5452415020494645
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
** Invalid partition 1 **

no IDE devices available
Card did not respond to voltage select!
mmc_init: -95, time 11
running scan_disk ...
Scan device usb
device usb 0:1
GPT: first_usable_lba incorrect: 22 > 0
part_get_info_efi: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0xD7B4EDBFEED6233B != 0x5452415020494645
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
** Invalid partition 1 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide

Reset IDE: ide_preinit failed
device ide 0:1
** Bad device ide 0 **
device ide 1:1
** Bad device ide 1 **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
Scan device mmc
Card did not respond to voltage select!
mmc_init: -95, time 11
device mmc 0:1
Card did not respond to voltage select!
mmc_init: -95, time 11
Card did not respond to voltage select!
mmc_init: -95, time 11
** Bad device mmc 0 **
device mmc 1:1
MMC Device 1 not found
MMC Device 1 not found
** Bad device mmc 1 **
device mmc 2:1
MMC Device 2 not found
MMC Device 2 not found
** Bad device mmc 2 **
device mmc 3:1
MMC Device 3 not found
MMC Device 3 not found
** Bad device mmc 3 **
loading uImage ...
GPT: first_usable_lba incorrect: 22 > 0
part_get_info_efi: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0xD7B4EDBFEED6233B != 0x5452415020494645
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
** Invalid partition 1 **
loading uInitrd ...
GPT: first_usable_lba incorrect: 22 > 0
part_get_info_efi: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0xD7B4EDBFEED6233B != 0x5452415020494645
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
** Invalid partition 1 **
loading DTB /boot/dts/kirkwood-pogoplug_v4.dtb ...
GPT: first_usable_lba incorrect: 22 > 0
part_get_info_efi: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0xD7B4EDBFEED6233B != 0x5452415020494645
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
** Invalid partition 1 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
ubi0: attaching mtd1
ubi0: scanning is finished
ubi0: attached mtd1 (name "mtd=4", size 112 MiB)
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
ubi0: good PEBs: 896, bad PEBs: 0, corrupted PEBs: 0
ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 0
ubi0: available PEBs: 0, total reserved PEBs: 896, PEBs reserved for bad PEB handling: 8
Loading file 'uboot.mtd0.dockstar.original.kwb' to addr 0x00800000...
Done
## Starting application at 0x00800200 ...

If I switch to creating a smaller partition on the same disk using msdos partition table, I can boot just fine. What am I doing wrong? Is gparted creating this hybrid partition table I keep reading about, even though I select "gpt"?
Re: Trouble booting new drive
January 16, 2019 02:06AM
Only1KW,

> If I switch to creating a smaller partition on the
> same disk using msdos partition table, I can boot
> just fine. What am I doing wrong? Is gparted
> creating this hybrid partition table I keep
> reading about, even though I select "gpt"?

Most likely your guess is correct. There are more than one partition on your disk (as u-boot sees it).

GPT: first_usable_lba incorrect: 22 > 0
part_print_efi: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0xD7B4EDBFEED6233B != 0x5452415020494645
part_print_efi: *** ERROR: Invalid Backup GPT ***

Try using command parted to have more control, where you can completely remove all partitions and then create a new GPT partition. Using Ext3 if you could. If you want to use Ext4, make sure that the file system is finalized right after formatting (Ext4 has this lazy default, so the unfinalized partition cannot be use as boot partition with u-boot).

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Trouble booting new drive
January 16, 2019 11:36PM
Still not working.

[root@crono tmp]# parted /dev/sdc
GNU Parted 3.2
Using /dev/sdc
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel GPT                                                      
Warning: The existing disk label on /dev/sdc will be destroyed and all data on this disk will be lost. Do you want to continue?
Yes/No? Y                                                                 
(parted) p                                                                
Model: SEAGATE ST4000NM0033 (scsi)
Disk /dev/sdc: 4001GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start  End  Size  File system  Name  Flags

(parted) mkpart
Partition name?  []?                                                      
File system type?  [ext2]? ext3                                           
Start? 0                                                                  
End? 100GB                                                                
Warning: The resulting partition is not properly aligned for best performance.
Ignore/Cancel? I                                                          
(parted) p                                                                
Model: SEAGATE ST4000NM0033 (scsi)
Disk /dev/sdc: 4001GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size   File system  Name  Flags
 1      17.4kB  100GB  100GB  ext3

(parted) q                                                                
Information: You may need to update /etc/fstab.
           
[root@crono tmp]# mke2fs.ext3 /dev/sdc1
-bash: mke2fs.ext3: command not found
[root@crono tmp]# /sbin/mkfs.ext3 /dev/sdc1
mke2fs 1.44.4 (18-Aug-2018)
/dev/sdc1 alignment is offset by 3072 bytes.
This may result in very poor performance, (re)-partitioning suggested.
Creating filesystem with 24414058 4k blocks and 6111232 inodes
Filesystem UUID: cb0d5754-64fa-4288-9a46-4ba2046d9568
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
	4096000, 7962624, 11239424, 20480000, 23887872

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (131072 blocks): done
Writing superblocks and filesystem accounting information: done   

[root@crono tmp]# e2label /dev/sdc1 rootfs
[root@crono tmp]# mount /dev/sdc1 /tmp/rootfs/
[root@crono tmp]# cd /tmp/rootfs/
[root@crono rootfs]# tar -xjf /home/username/Downloads/Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2
[root@crono rootfs]# cd ..
[root@crono tmp]# umount /tmp/rootfs/
[root@crono tmp]# nc -l -u -p 6666

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:34:01 -0700)
Pogoplug V4
Hit any key to stop autoboot:  0 
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

Reset IDE: ide_preinit failed
Card did not respond to voltage select!
mmc_init: -95, time 11

Partition Map for USB device 0  --   Partition Type: EFI

GPT: first_usable_lba incorrect: 22 > 0
part_print_efi: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0xD7B4EDBFEED6233B != 0x5452415020494645
part_print_efi: *** ERROR: Invalid Backup GPT ***

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
GPT: first_usable_lba incorrect: 22 > 0
part_get_info_efi: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0xD7B4EDBFEED6233B != 0x5452415020494645
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
** Invalid partition 1 **

no IDE devices available
Card did not respond to voltage select!
mmc_init: -95, time 11
running scan_disk ...
Scan device usb
device usb 0:1
GPT: first_usable_lba incorrect: 22 > 0
part_get_info_efi: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0xD7B4EDBFEED6233B != 0x5452415020494645
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
** Invalid partition 1 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide

Reset IDE: ide_preinit failed
device ide 0:1
** Bad device ide 0 **
device ide 1:1
** Bad device ide 1 **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
Scan device mmc
Card did not respond to voltage select!
mmc_init: -95, time 11
device mmc 0:1
Card did not respond to voltage select!
mmc_init: -95, time 11
Card did not respond to voltage select!
mmc_init: -95, time 11
** Bad device mmc 0 **
device mmc 1:1
MMC Device 1 not found
MMC Device 1 not found
** Bad device mmc 1 **
device mmc 2:1
MMC Device 2 not found
MMC Device 2 not found
** Bad device mmc 2 **
device mmc 3:1
MMC Device 3 not found
MMC Device 3 not found
** Bad device mmc 3 **
loading uImage ...
GPT: first_usable_lba incorrect: 22 > 0
part_get_info_efi: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0xD7B4EDBFEED6233B != 0x5452415020494645
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
** Invalid partition 1 **
loading uInitrd ...
GPT: first_usable_lba incorrect: 22 > 0
part_get_info_efi: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0xD7B4EDBFEED6233B != 0x5452415020494645
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
** Invalid partition 1 **
loading DTB /boot/dts/kirkwood-pogoplug_v4.dtb ...
GPT: first_usable_lba incorrect: 22 > 0
part_get_info_efi: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0xD7B4EDBFEED6233B != 0x5452415020494645
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
** Invalid partition 1 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
ubi0: attaching mtd1
ubi0: scanning is finished
ubi0: attached mtd1 (name "mtd=4", size 112 MiB)
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
ubi0: good PEBs: 896, bad PEBs: 0, corrupted PEBs: 0
ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 0
ubi0: available PEBs: 0, total reserved PEBs: 896, PEBs reserved for bad PEB handling: 8
Loading file 'uboot.mtd0.dockstar.original.kwb' to addr 0x00800000...
Done
## Starting application at 0x00800200 ...

Even with forcing parted to start the partition at offset 0 (and ignoring all performance warnings along the way), the partition was started at 17.4kB. Also, uboot continues to call out first_usable_lba as 22, even though that's what it was before. I checked before deleting and recreating with parted, and gparted had set the start of the partition at 1049kB. So how is first_usable_lba 22 both times? If the first usable LBA is 22, and the sector size is 512B, shouldn't that mean the partition starts at 11kB?
Re: Trouble booting new drive
January 17, 2019 12:05AM
Only1KW,

Try using the entire disk for the single partition.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Trouble booting new drive
January 17, 2019 09:54PM
Same issue.

[root@crono tmp]# parted /dev/sdc                                         
GNU Parted 3.2
Using /dev/sdc
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel GPT                                                      
Warning: The existing disk label on /dev/sdc will be destroyed and all data on this disk will be lost. Do you want to continue?
Yes/No? yes                                                               
(parted) mkpart
Partition name?  []?                                                      
File system type?  [ext2]? ext3                                           
Start? 0                                                                  
End? 100%                                                                 
Warning: The resulting partition is not properly aligned for best performance.
Ignore/Cancel? I                                                          
(parted) p                                                                
Model: SEAGATE ST4000NM0033 (scsi)
Disk /dev/sdc: 4001GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name  Flags
 1      17.4kB  4001GB  4001GB  ext3

(parted) q                                                                
Information: You may need to update /etc/fstab.

[root@crono tmp]# mkfs.ex
mkfs.exfat  mkfs.ext2   mkfs.ext3   mkfs.ext4   
[root@crono tmp]# mkfs.ext3 /dev/sdc1 
mke2fs 1.44.4 (18-Aug-2018)
/dev/sdc1 contains a ext3 file system labelled 'rootfs'
	last mounted on /tmp/rootfs on Wed Dec 31 18:00:22 1969
Proceed anyway? (y,N) Y
/dev/sdc1 alignment is offset by 3072 bytes.
This may result in very poor performance, (re)-partitioning suggested.
Creating filesystem with 976754637 4k blocks and 244195328 inodes
Filesystem UUID: 72b08f4e-2b99-451d-9042-abd9e9db687a
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
	4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 
	102400000, 214990848, 512000000, 550731776, 644972544

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (262144 blocks): done
Writing superblocks and filesystem accounting information: done       

[root@crono tmp]# e2label /dev/sdc1 rootfs
[root@crono tmp]# mount /dev/sdc1 /tmp/rootfs/
[root@crono tmp]# cd /tmp/rootfs/
[root@crono rootfs]# tar -xjf /home/username/Downloads/Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2
[root@crono rootfs]# cd ..
[root@crono tmp]# umount /tmp/rootfs/
[root@crono tmp]# nc -l -u -p 6666

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:34:01 -0700)
Pogoplug V4
Hit any key to stop autoboot:  0 
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

Reset IDE: ide_preinit failed
Card did not respond to voltage select!
mmc_init: -95, time 11

Partition Map for USB device 0  --   Partition Type: EFI

GPT: first_usable_lba incorrect: 22 > 0
part_print_efi: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0xD7B4EDBFEED6233B != 0x5452415020494645
part_print_efi: *** ERROR: Invalid Backup GPT ***

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
GPT: first_usable_lba incorrect: 22 > 0
part_get_info_efi: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0xD7B4EDBFEED6233B != 0x5452415020494645
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
** Invalid partition 1 **

no IDE devices available
Card did not respond to voltage select!
mmc_init: -95, time 11
running scan_disk ...
Scan device usb
device usb 0:1
GPT: first_usable_lba incorrect: 22 > 0
part_get_info_efi: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0xD7B4EDBFEED6233B != 0x5452415020494645
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
** Invalid partition 1 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide

Reset IDE: ide_preinit failed
device ide 0:1
** Bad device ide 0 **
device ide 1:1
** Bad device ide 1 **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
Scan device mmc
Card did not respond to voltage select!
mmc_init: -95, time 11
device mmc 0:1
Card did not respond to voltage select!
mmc_init: -95, time 10
Card did not respond to voltage select!
mmc_init: -95, time 10
** Bad device mmc 0 **
device mmc 1:1
MMC Device 1 not found
MMC Device 1 not found
** Bad device mmc 1 **
device mmc 2:1
MMC Device 2 not found
MMC Device 2 not found
** Bad device mmc 2 **
device mmc 3:1
MMC Device 3 not found
MMC Device 3 not found
** Bad device mmc 3 **
loading uImage ...
GPT: first_usable_lba incorrect: 22 > 0
part_get_info_efi: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0xD7B4EDBFEED6233B != 0x5452415020494645
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
** Invalid partition 1 **
loading uInitrd ...
GPT: first_usable_lba incorrect: 22 > 0
part_get_info_efi: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0xD7B4EDBFEED6233B != 0x5452415020494645
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
** Invalid partition 1 **
loading DTB /boot/dts/kirkwood-pogoplug_v4.dtb ...
GPT: first_usable_lba incorrect: 22 > 0
part_get_info_efi: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0xD7B4EDBFEED6233B != 0x5452415020494645
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
** Invalid partition 1 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
ubi0: attaching mtd1
ubi0: scanning is finished
ubi0: attached mtd1 (name "mtd=4", size 112 MiB)
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
ubi0: good PEBs: 896, bad PEBs: 0, corrupted PEBs: 0
ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 0
ubi0: available PEBs: 0, total reserved PEBs: 896, PEBs reserved for bad PEB handling: 8
Loading file 'uboot.mtd0.dockstar.original.kwb' to addr 0x00800000...
Done
## Starting application at 0x00800200 ...

I'll just switch to msdos partition table with two partitions. Fighting with gpt isn't worth the time at this point.
Re: Trouble booting new drive
January 17, 2019 11:03PM
Only1KW,

My recommendation:

Was the 4TB HDD plugged in as USB? if it was, plug in as SATA and then use parted to format.

-bodhi
===========================
Forum Wiki
bodhi's corner
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: