[Bug 803078] New: grub2-install on USB thumbdrive never returns, uses 100% CPU
https://bugzilla.novell.com/show_bug.cgi?id=803078 https://bugzilla.novell.com/show_bug.cgi?id=803078#c0 Summary: grub2-install on USB thumbdrive never returns, uses 100% CPU Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: i686 OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: Bootloader AssignedTo: jsrain@suse.com ReportedBy: jdelvare@suse.com QAContact: jsrain@suse.com Found By: Community User Blocker: --- I have installed openSUSE 12.2 on a USB thumbdrive. It uses grub2 as the bootloaded, which by default was installed on the only partition. As a maintenance update once prevented the drive to be booted until I manually ran grub2-install again, I was advised to install grub2 on the MBR instead. So I tried: # grub2-install --root-directory=/mnt/usb /dev/sdb However this command never returns, and grub2-bios-setup uses 100% CPU. I'll attach the debug log I gathered. I installed debuginfo packages and got the following backtrace when attaching gdb to the stuck grub2-bios-setup process: (gdb) bt #0 0x080a77cd in grub_strncmp () #1 0x08068c4d in grub_iso9660_susp_iterate () #2 0x080690ce in set_rockridge () #3 0x08069288 in grub_iso9660_mount () #4 0x0806a0d7 in grub_iso9660_dir () #5 0x080a6cac in grub_fs_probe () #6 0x0804a9ae in setup () #7 0x0804c730 in main () (gdb) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=803078
https://bugzilla.novell.com/show_bug.cgi?id=803078#c1
--- Comment #1 from Jean Delvare
https://bugzilla.novell.com/show_bug.cgi?id=803078
https://bugzilla.novell.com/show_bug.cgi?id=803078#c
Jiri Srain
https://bugzilla.novell.com/show_bug.cgi?id=803078
https://bugzilla.novell.com/show_bug.cgi?id=803078#c2
--- Comment #2 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=803078
https://bugzilla.novell.com/show_bug.cgi?id=803078#c3
--- Comment #3 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=803078
https://bugzilla.novell.com/show_bug.cgi?id=803078#c4
--- Comment #4 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=803078
https://bugzilla.novell.com/show_bug.cgi?id=803078#c5
--- Comment #5 from Jean Delvare
https://bugzilla.novell.com/show_bug.cgi?id=803078
https://bugzilla.novell.com/show_bug.cgi?id=803078#c6
--- Comment #6 from Jean Delvare
https://bugzilla.novell.com/show_bug.cgi?id=803078
https://bugzilla.novell.com/show_bug.cgi?id=803078#c7
Jean Delvare
https://bugzilla.novell.com/show_bug.cgi?id=803078
https://bugzilla.novell.com/show_bug.cgi?id=803078#c8
--- Comment #8 from Jean Delvare
https://bugzilla.novell.com/show_bug.cgi?id=803078
https://bugzilla.novell.com/show_bug.cgi?id=803078#c9
--- Comment #9 from Jean Delvare
https://bugzilla.novell.com/show_bug.cgi?id=803078
https://bugzilla.novell.com/show_bug.cgi?id=803078#c10
Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=803078
https://bugzilla.novell.com/show_bug.cgi?id=803078#c11
--- Comment #11 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=803078
https://bugzilla.novell.com/show_bug.cgi?id=803078#c13
--- Comment #13 from Steffen Winterfeldt
https://bugzilla.novell.com/show_bug.cgi?id=803078
https://bugzilla.novell.com/show_bug.cgi?id=803078#c14
--- Comment #14 from Jean Delvare
https://bugzilla.novell.com/show_bug.cgi?id=803078
https://bugzilla.novell.com/show_bug.cgi?id=803078#c16
--- Comment #16 from Jean Delvare
Btw, is fixmbr work for you ? (I suppose not ..).
You are right, I just tried it and it did not help. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=803078
https://bugzilla.novell.com/show_bug.cgi?id=803078#c18
--- Comment #18 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=803078
https://bugzilla.novell.com/show_bug.cgi?id=803078#c19
--- Comment #19 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=803078
https://bugzilla.novell.com/show_bug.cgi?id=803078#c20
--- Comment #20 from Steffen Winterfeldt
However grub2-install still cannot work because iso9660 fs doesn't provide any embedded area for bootloader (which is expected) ..
Actually iso9660 has 32k empty space at the fs start. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=803078
https://bugzilla.novell.com/show_bug.cgi?id=803078#c21
--- Comment #21 from Jean Delvare
https://bugzilla.novell.com/show_bug.cgi?id=803078
https://bugzilla.novell.com/show_bug.cgi?id=803078#c22
--- Comment #22 from Jean Delvare
https://bugzilla.novell.com/show_bug.cgi?id=803078
https://bugzilla.novell.com/show_bug.cgi?id=803078#c23
--- Comment #23 from Steffen Winterfeldt
https://bugzilla.novell.com/show_bug.cgi?id=803078
https://bugzilla.novell.com/show_bug.cgi?id=803078#c24
--- Comment #24 from Jean Delvare
https://bugzilla.novell.com/show_bug.cgi?id=803078
https://bugzilla.novell.com/show_bug.cgi?id=803078#c25
--- Comment #25 from Jean Delvare
https://bugzilla.novell.com/show_bug.cgi?id=803078
https://bugzilla.novell.com/show_bug.cgi?id=803078#c26
Michael Chang
My problem is solved, so feel free to close this bug when you're finished working on it. Thanks a lot Michael and Steffen for explaining all the details and driving me to a solution.
Hi Jean, Thanks for valuable time and feedback. I think it's good to me to set status to resolved fixed as well. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=803078
https://bugzilla.novell.com/show_bug.cgi?id=803078#c27
--- Comment #27 from Michael Chang
However grub2-install still cannot work because iso9660 fs doesn't provide any embedded area for bootloader (which is expected) ..
Actually iso9660 has 32k empty space at the fs start.
Yes you're right. I simply missed it. The problem now is grub2 as to why not offer any embed callback for iso9660 file system, like btrfs and zfs. To me it could be that iso9660 was designed on read-only optical media as it's mainstream usage (The hybrid iso could be an exotic product of isolinux project.) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com