> Ok, another in the continuing saga.

When I upgrade Grub2 which is frequently, I get the following error message
when I reboot:

  Booting 'Debian Gnu/Linux, Linux 2.6.30-1-686
error: unknown argument '--no-floppy'
failed to boot default entries.
press any key to continue.

If I press any key I see the edit screen of Grub and it only contains the one
line:

set root=(hd0,1)

If I reboot it with CTRL+ALT+DEL and restore the default script I can edit
that and remove the offending '--no-floppy' part of the line and then boot
normally with the CTRL+x command

my solution to this in the past has been to 're-edit' the following file:

/boot/grub/grub.cfg

where I take out all the references to '--no-floppy'

This is part of that file edited:

=====================================================

# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=5
set root=(hd0,1)
search --fs-uuid --set 8c502a23-b2ab-4670-b4e8-86d79b595aa5
if loadfont /usr/share/grub/ascii.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, Linux 2.6.30-1-686" {
        set root=(hd0,1)
        search --fs-uuid --set 8c502a23-b2ab-4670-b4e8-86d79b595aa5
        linux   /boot/vmlinuz-2.6.30-1-686
root=UUID=8c502a23-b2ab-4670-b4e8-86d79b595aa5 ro  quiet
        initrd  /boot/initrd.img-2.6.30-1-686
}

===================================================================

All references to a floppy are removed. I don't have a floppy and there isn't
one mentioned in the bios, so..

Question: If I commented out every line in the file starting with:

#search --no-floppy --fs-uuid --set 8c502a23-b2ab-4670-b4e8-86d79b595aa5
would the same thing be accomplish without screwing things up?

Question: is there a way to prevent this file from being replaced every time
Grub upgrades or would that not be wise?

-- 

Thanks,

C.Kroeger



Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to