Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub2-install hangs on grub2-probe
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Splooshie123
n00b
n00b


Joined: 16 Apr 2012
Posts: 27

PostPosted: Thu Apr 25, 2013 2:13 am    Post subject: Grub2-install hangs on grub2-probe Reply with quote

I am trying to install grub2-efi to my EFI System Partition. But it never finishes. It just hangs using 100% of the CPU Doesn't even spit out an error. Same thing happens when I run grub2-mkconfig.

This is the command I'm using:
Code:
grub2-install --target=x86_64-efi --efi-directory=/boot --boot-directory=/boot/efi --bootloader-id=grub2 --recheck --debug


The debug flag shows it gets stuck here:
Code:

/usr/sbin/grub2-probe -t fs /boot/efi/grub2


In grub2-mkconfig it also gets stuck at grub2-probe:
Code:

/usr/sbin/grub2-probe --device /dev/sda1 --target=fs_uuid


/dev/sda1 is a FAT32 EFI system partition mounted under /boot.

Running the two grub2-probe commands manually doesn't work either, they just hang until I abort:
Code:

$ /usr/sbin/grub2-probe -t fs /boot/efi
^C
$ /usr/sbin/grub2-probe --device /dev/sda1 --target=fs_uuid
^C
$


Verbose grub2-probe:
Code:

$ grub2-probe -vvv -t fs /boot/efi
grub2-probe: info: cannot open `/boot/grub2/device.map': No such file or directory.
grub2-probe: info: Looking for /dev/sda1.
grub2-probe: info: /dev/sda is a parent of /dev/sda1.
grub2-probe: info: /dev/sda1 starts from 2048.
grub2-probe: info: opening the device hostdisk//dev/sda.
grub-core/kern/disk.c:230: Opening `hostdisk//dev/sda'...
grub2-probe: info: the size of hostdisk//dev/sda is 625142448.
grub-core/kern/disk.c:230: Opening `hostdisk//dev/sda'...
grub2-probe: info: the size of hostdisk//dev/sda is 625142448.
grub-core/disk/diskfilter.c:135: Scanning for DISKFILTER devices on disk hostdisk//dev/sda
grub2-probe: info: Scanning for DISKFILTER devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for mdraid1x devices on disk hostdisk//dev/sda.
grub-core/kern/emu/hostdisk.c:909: opening the device `/dev/sda' in open_device()
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/sda'
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/sda'
grub2-probe: info: Scanning for mdraid09 devices on disk hostdisk//dev/sda.
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/sda'
grub2-probe: info: Scanning for mdraid09_be devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for dmraid_nv devices on disk hostdisk//dev/sda.
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/sda'
grub2-probe: info: Scanning for ldm devices on disk hostdisk//dev/sda.
grub2-probe: info: scanning hostdisk//dev/sda for LDM.
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/sda'
grub-core/partmap/gpt.c:90: Read a valid GPT header
grub-core/partmap/gpt.c:114: GPT entry 0: start=2048, length=409600
grub-core/partmap/gpt.c:114: GPT entry 1: start=411648, length=624730767
grub2-probe: info: no LDM signature found.
grub2-probe: info: Scanning for lvm devices on disk hostdisk//dev/sda.
grub2-probe: info: no LVM signature found.
grub-core/partmap/gpt.c:90: Read a valid GPT header
grub-core/partmap/gpt.c:114: GPT entry 0: start=2048, length=409600
grub-core/disk/diskfilter.c:135: Scanning for DISKFILTER devices on disk hostdisk//dev/sda
grub2-probe: info: Scanning for DISKFILTER devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for mdraid1x devices on disk hostdisk//dev/sda.
grub-core/kern/emu/hostdisk.c:909: opening the device `/dev/sda1' in open_device()
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/sda1'
grub2-probe: info: Scanning for mdraid09 devices on disk hostdisk//dev/sda.
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/sda1'
grub2-probe: info: Scanning for mdraid09_be devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for dmraid_nv devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for ldm devices on disk hostdisk//dev/sda.
grub2-probe: info: scanning hostdisk//dev/sda for LDM.
grub2-probe: info: no LDM signature found.
grub2-probe: info: Scanning for lvm devices on disk hostdisk//dev/sda.
grub2-probe: info: no LVM signature found.
grub-core/partmap/msdos.c:181: partition 0: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 1: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 0: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 1: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 0: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 1: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/apple.c:123: bad magic (found 0xeb58; wanted 0x4552
grub-core/partmap/gpt.c:114: GPT entry 1: start=411648, length=624730767
grub-core/disk/diskfilter.c:135: Scanning for DISKFILTER devices on disk hostdisk//dev/sda
grub2-probe: info: Scanning for DISKFILTER devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for mdraid1x devices on disk hostdisk//dev/sda.
grub-core/kern/emu/hostdisk.c:909: opening the device `/dev/sda2' in open_device()
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/sda2'
grub2-probe: info: Scanning for mdraid09 devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for mdraid09_be devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for dmraid_nv devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for ldm devices on disk hostdisk//dev/sda.
grub2-probe: info: scanning hostdisk//dev/sda for LDM.
grub2-probe: info: no LDM signature found.
grub2-probe: info: Scanning for lvm devices on disk hostdisk//dev/sda.
grub2-probe: info: no LVM signature found.
grub-core/partmap/apple.c:123: bad magic (found 0x4c55; wanted 0x4552
grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552
grub-core/kern/disk.c:326: Closing `hostdisk//dev/sda'.
grub-core/partmap/gpt.c:90: Read a valid GPT header
grub-core/partmap/gpt.c:114: GPT entry 0: start=2048, length=409600
grub2-probe: info: Partition 0 starts from 2048.
grub-core/kern/disk.c:326: Closing `hostdisk//dev/sda'.
grub2-probe: info: Looking for /dev/sda1.
grub2-probe: info: /dev/sda is a parent of /dev/sda1.
grub2-probe: info: /dev/sda1 starts from 2048.
grub2-probe: info: opening the device hostdisk//dev/sda.
grub-core/kern/disk.c:230: Opening `hostdisk//dev/sda'...
grub2-probe: info: the size of hostdisk//dev/sda is 625142448.
grub-core/kern/disk.c:230: Opening `hostdisk//dev/sda'...
grub2-probe: info: the size of hostdisk//dev/sda is 625142448.
grub-core/disk/diskfilter.c:135: Scanning for DISKFILTER devices on disk hostdisk//dev/sda
grub2-probe: info: Scanning for DISKFILTER devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for mdraid1x devices on disk hostdisk//dev/sda.
grub-core/kern/emu/hostdisk.c:909: opening the device `/dev/sda' in open_device()
grub2-probe: info: Scanning for mdraid09 devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for mdraid09_be devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for dmraid_nv devices on disk hostdisk//dev/sda.
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/sda'
grub2-probe: info: Scanning for ldm devices on disk hostdisk//dev/sda.
grub2-probe: info: scanning hostdisk//dev/sda for LDM.
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/sda'
grub-core/partmap/gpt.c:90: Read a valid GPT header
grub-core/partmap/gpt.c:114: GPT entry 0: start=2048, length=409600
grub-core/partmap/gpt.c:114: GPT entry 1: start=411648, length=624730767
grub2-probe: info: no LDM signature found.
grub2-probe: info: Scanning for lvm devices on disk hostdisk//dev/sda.
grub2-probe: info: no LVM signature found.
grub-core/partmap/gpt.c:90: Read a valid GPT header
grub-core/partmap/gpt.c:114: GPT entry 0: start=2048, length=409600
grub-core/disk/diskfilter.c:135: Scanning for DISKFILTER devices on disk hostdisk//dev/sda
grub2-probe: info: Scanning for DISKFILTER devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for mdraid1x devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for mdraid09 devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for mdraid09_be devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for dmraid_nv devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for ldm devices on disk hostdisk//dev/sda.
grub2-probe: info: scanning hostdisk//dev/sda for LDM.
grub2-probe: info: no LDM signature found.
grub2-probe: info: Scanning for lvm devices on disk hostdisk//dev/sda.
grub2-probe: info: no LVM signature found.
grub-core/partmap/msdos.c:181: partition 0: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 1: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 0: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 1: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 0: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 1: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/apple.c:123: bad magic (found 0xeb58; wanted 0x4552
grub-core/partmap/gpt.c:114: GPT entry 1: start=411648, length=624730767
grub-core/disk/diskfilter.c:135: Scanning for DISKFILTER devices on disk hostdisk//dev/sda
grub2-probe: info: Scanning for DISKFILTER devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for mdraid1x devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for mdraid09 devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for mdraid09_be devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for dmraid_nv devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for ldm devices on disk hostdisk//dev/sda.
grub2-probe: info: scanning hostdisk//dev/sda for LDM.
grub2-probe: info: no LDM signature found.
grub2-probe: info: Scanning for lvm devices on disk hostdisk//dev/sda.
grub2-probe: info: no LVM signature found.
grub-core/partmap/apple.c:123: bad magic (found 0x4c55; wanted 0x4552
grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552
grub-core/kern/disk.c:326: Closing `hostdisk//dev/sda'.
grub-core/partmap/gpt.c:90: Read a valid GPT header
grub-core/partmap/gpt.c:114: GPT entry 0: start=2048, length=409600
grub2-probe: info: Partition 0 starts from 2048.
grub-core/kern/disk.c:326: Closing `hostdisk//dev/sda'.
grub2-probe: info: Looking for /dev/sda1.
grub2-probe: info: /dev/sda is a parent of /dev/sda1.
grub2-probe: info: /dev/sda1 starts from 2048.
grub2-probe: info: opening the device hostdisk//dev/sda.
grub-core/kern/disk.c:230: Opening `hostdisk//dev/sda'...
grub2-probe: info: the size of hostdisk//dev/sda is 625142448.
grub-core/kern/disk.c:230: Opening `hostdisk//dev/sda'...
grub2-probe: info: the size of hostdisk//dev/sda is 625142448.
grub-core/disk/diskfilter.c:135: Scanning for DISKFILTER devices on disk hostdisk//dev/sda
grub2-probe: info: Scanning for DISKFILTER devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for mdraid1x devices on disk hostdisk//dev/sda.
grub-core/kern/emu/hostdisk.c:909: opening the device `/dev/sda' in open_device()
grub2-probe: info: Scanning for mdraid09 devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for mdraid09_be devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for dmraid_nv devices on disk hostdisk//dev/sda.
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/sda'
grub2-probe: info: Scanning for ldm devices on disk hostdisk//dev/sda.
grub2-probe: info: scanning hostdisk//dev/sda for LDM.
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/sda'
grub-core/partmap/gpt.c:90: Read a valid GPT header
grub-core/partmap/gpt.c:114: GPT entry 0: start=2048, length=409600
grub-core/partmap/gpt.c:114: GPT entry 1: start=411648, length=624730767
grub2-probe: info: no LDM signature found.
grub2-probe: info: Scanning for lvm devices on disk hostdisk//dev/sda.
grub2-probe: info: no LVM signature found.
grub-core/partmap/gpt.c:90: Read a valid GPT header
grub-core/partmap/gpt.c:114: GPT entry 0: start=2048, length=409600
grub-core/disk/diskfilter.c:135: Scanning for DISKFILTER devices on disk hostdisk//dev/sda
grub2-probe: info: Scanning for DISKFILTER devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for mdraid1x devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for mdraid09 devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for mdraid09_be devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for dmraid_nv devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for ldm devices on disk hostdisk//dev/sda.
grub2-probe: info: scanning hostdisk//dev/sda for LDM.
grub2-probe: info: no LDM signature found.
grub2-probe: info: Scanning for lvm devices on disk hostdisk//dev/sda.
grub2-probe: info: no LVM signature found.
grub-core/partmap/msdos.c:181: partition 0: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 1: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 0: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 1: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 0: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 1: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/msdos.c:181: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
grub-core/partmap/apple.c:123: bad magic (found 0xeb58; wanted 0x4552
grub-core/partmap/gpt.c:114: GPT entry 1: start=411648, length=624730767
grub-core/disk/diskfilter.c:135: Scanning for DISKFILTER devices on disk hostdisk//dev/sda
grub2-probe: info: Scanning for DISKFILTER devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for mdraid1x devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for mdraid09 devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for mdraid09_be devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for dmraid_nv devices on disk hostdisk//dev/sda.
grub2-probe: info: Scanning for ldm devices on disk hostdisk//dev/sda.
grub2-probe: info: scanning hostdisk//dev/sda for LDM.
grub2-probe: info: no LDM signature found.
grub2-probe: info: Scanning for lvm devices on disk hostdisk//dev/sda.
grub2-probe: info: no LVM signature found.
grub-core/partmap/apple.c:123: bad magic (found 0x4c55; wanted 0x4552
grub-core/partmap/apple.c:123: bad magic (found 0x0; wanted 0x4552
grub-core/kern/disk.c:326: Closing `hostdisk//dev/sda'.
grub-core/partmap/gpt.c:90: Read a valid GPT header
grub-core/partmap/gpt.c:114: GPT entry 0: start=2048, length=409600
grub2-probe: info: Partition 0 starts from 2048.
grub-core/kern/disk.c:326: Closing `hostdisk//dev/sda'.
grub2-probe: info: opening hostdisk//dev/sda,gpt1.
grub-core/kern/disk.c:230: Opening `hostdisk//dev/sda,gpt1'...
grub2-probe: info: the size of hostdisk//dev/sda is 625142448.
grub-core/partmap/gpt.c:90: Read a valid GPT header
grub-core/partmap/gpt.c:114: GPT entry 0: start=2048, length=409600
grub-core/kern/fs.c:55: Detecting zfs...
grub-core/kern/emu/hostdisk.c:909: opening the device `/dev/sda1' in open_device()
grub-core/fs/zfs/zfs.c:1136: label ok 0
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/sda1'
grub-core/fs/zfs/zfs.c:953: check 2 passed
grub-core/fs/zfs/zfs.c:3237: incorrect nvlist header
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/sda1'
grub-core/fs/zfs/zfs.c:1136: label ok 1
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/sda1'
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/sda1'
grub-core/fs/zfs/zfs.c:953: check 2 passed
grub-core/fs/zfs/zfs.c:3237: incorrect nvlist header
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/sda1'
grub-core/fs/zfs/zfs.c:1136: label ok 2
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/sda1'
grub-core/kern/emu/hostdisk.c:886: reusing open device `/dev/sda1'
grub-core/fs/zfs/zfs.c:953: check 2 passed
^C


But grub2-probe works correctly for other partitions, including another FAT32 partition on a USB hard drive:
Code:

$ /usr/sbin/grub2-probe -t fs /media/Transcend
fat
$ /usr/sbin/grub2-probe --device /dev/sdc1 --target=fs_uuid
FC49-3F29


I'm guessing that means there's something wrong with the partition. But dosfsck doesn't find any errors.
EDIT: Running grub-probe from the liveCD I'm using (Ubuntu 12.04) works. It doesn't look like the partition is not at fault. Maybe my version of grub2-probe is corrupt?

I don't understand why it doesn't work. It worked fine when I tested it out yesterday.
Back to top
View user's profile Send private message
ryao
Retired Dev
Retired Dev


Joined: 27 Feb 2012
Posts: 132

PostPosted: Tue Jun 04, 2013 2:55 pm    Post subject: Reply with quote

This was fixed in sys-boot/grub-2.00-r3.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum