alt installer: Running 'grub-install --no-floppy "(hd0)"' failed.

Bug #280270 reported by Carl Karsten
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub-installer (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: grub-installer

daily alt installer

loader
Oct 8 00:14:39 debconf: <-- 0 OK
Oct 8 00:14:39 grub-installer: info: Installing grub on '(hd0)'
Oct 8 00:14:39 grub-installer: info: grub-install supports --no-floppy
Oct 8 00:14:39 grub-installer: info: Running chroot /target grub-install --no-
floppy "(hd0)"
Oct 8 00:14:39 grub-installer: You shouldn't call /sbin/grub-install. Please ca
ll /usr/sbin/grub-install instead!
Oct 8 00:14:39 grub-installer:
Oct 8 00:14:39 grub-installer: /dev/sdb1 does not have any corresponding BIOS d
rive.
Oct 8 00:14:39 grub-installer: error: Running 'grub-install --no-floppy "(hd0
)"' failed.
Oct 8 00:14:39 debconf: --> SUBST grub-installer/grub-install-failed BOOTDEV (h
d0)

/target/boot/grub # df
Filesystem 1k-blocks Used Available Use% Mounted on
tmpfs 516452 36 516416 0% /dev
/dev/sdb1 10325748 3066020 6735208 31% /target
/dev/sdb1 10325748 3066020 6735208 31% /dev/.static/dev
tmpfs 516452 36 516416 0% /target/dev

/target/boot/grub # mount
rootfs on / type rootfs (rw)
none on /proc type proc (rw)
tmpfs on /dev type tmpfs (rw)
sysfs on /sys type sysfs (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
/dev/sdb1 on /target type ext3 (rw,relatime,errors=remount-ro,data=ordered)
/dev/sdb1 on /dev/.static/dev type ext3 (rw,relatime,errors=remount-ro,data=ordered)
tmpfs on /target/dev type tmpfs (rw)
it

Revision history for this message
Carl Karsten (carlfk) wrote :
Revision history for this message
Carl Karsten (carlfk) wrote :

~ # chroot /target grub-install --no-floppy "(hd0)"
/dev/sdb1 does not have any corresponding BIOS drive.

~ # chroot /target grub-install --no-floppy "(hd0)" --root-directory=/ --recheck
Probing devices to guess BIOS drives. This may take a long time.
Installing GRUB to (hd0) as (hd0)...
Installation finished. No error reported.
This is the contents of the device map //boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(hd0) /dev/sda
(hd1) /dev/sdb

Before the install the box did not boot. It would hang at

bios POST...
Grub loading stage 1.5.
Grub loading, please wait
Error 2.

then I ran the ibex-alt-install, got the error, tried various grub commands, all would report an error until the last one containing --recheck. Then I rebooted. So I can not say for sure that the final one is the one that fixed it. There is a chance that something else fixed it that I am unaware of.

Revision history for this message
Carl Karsten (carlfk) wrote :
Revision history for this message
Carl Karsten (carlfk) wrote :

Used https://help.ubuntu.com/community/SmartBootManager to boot what it lists as the 2nd disk: HD1 - I have no idea which of my 2 disks that is. but picking that booted grub, and grub loaded my kernel, and the system came up. Here is what didn't work and what did:

juser@dhcp123:~$ sudo fdisk -l

Disk /dev/sda: 40.0 GB, 40000000000 bytes
255 heads, 63 sectors/track, 4863 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x6d7f6d7f

   Device Boot Start End Blocks Id System
/dev/sda1 * 1 4658 37415353+ 83 Linux
/dev/sda2 4659 4863 1646662+ 5 Extended
/dev/sda5 4659 4863 1646631 82 Linux swap / Solaris

Disk /dev/sdb: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

   Device Boot Start End Blocks Id System
/dev/sdb1 * 1 91201 732572001 83 Linux

juser@dhcp123:~$ sudo grub-install --no-floppy "(hd0)" --root-directory=/ --recheck
Installation finished. No error reported.
This is the contents of the device map //boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(hd0) /dev/sda
(hd1) /dev/sdb

juser@dhcp123:~$ sudo reboot

Grub Error 1.5

SmartBootManager again 2nd disk: HD1

juser@dhcp123:~$ sudo grub-install --no-floppy "(hd1)" --root-directory=/ --recheck
[sudo] password for juser:
Installation finished. No error reported.
This is the contents of the device map //boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(hd0) /dev/sda
(hd1) /dev/sdb
juser@dhcp123:~$ sudo reboot

This time it booted.

Revision history for this message
Carl Karsten (carlfk) wrote :

Hmm, my previous post is not about this bug. Problem is I can't find the bug it is for, but I am sure I reported it also about a year ago.

Revision history for this message
Phillip Susi (psusi) wrote :

Is this still an issue with 12.10?

Changed in grub-installer (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for grub-installer (Ubuntu) because there has been no activity for 60 days.]

Changed in grub-installer (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.