Bug#496040: error: unknown device hd1

Arthur Marsh arthur.marsh at internode.on.net
Sat Aug 30 17:03:36 UTC 2008



Robert Millan wrote, on 30/08/08 23:58:
> On Sat, Aug 30, 2008 at 08:17:37PM +0930, Arthur Marsh wrote:
>> Yes, removing the line
>>
>> (fd0) /dev/fd0
>>
>> from /boot/grub/device.map silences the error messages
>>
>> error: cannot open `(null)' while attempting to get disk size
> 
> Great.  I think we nailed the problem down now.
> 
> One more check, please;  could you add the floppy line back (exactly in
> the same position), and test with this change?
> 
> I think this should be the last test;  Thank you very much for your help
> so far!

With:

/boot/grub# more device.map
(fd0)   /dev/fd0
(hd0)   /dev/hda
(hd1)   /dev/hdb


I now get:

# ls -al `which update-grub`
-rwxr-xr-x 1 root root 5034 2008-08-31 02:14 /usr/sbin/update-grub
# update-grub
Updating /boot/grub/grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.27-rc4-686
Found initrd image: /boot/initrd.img-2.6.27-rc4-686
Found linux image: /boot/vmlinuz-2.6.27-rc4
Found initrd image: /boot/initrd.img-2.6.27-rc4
Found linux image: /boot/vmlinuz-2.6.26-1-686
Found initrd image: /boot/initrd.img-2.6.26-1-686
Found linux image: /boot/vmlinuz-2.6.26
Found initrd image: /boot/initrd.img-2.6.26
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 95/98/Me on /dev/hda1
Found Windows 95/98/Me on /dev/hda7
done

In other words, no output referencing the floppy drive.

Arthur.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: biosdisk.c
Type: text/x-csrc
Size: 21099 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20080831/7f8b0ecd/attachment.c 


More information about the Pkg-grub-devel mailing list