LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Why does Grub take forever to load / search floppy drive? (https://www.linuxquestions.org/questions/linux-newbie-8/why-does-grub-take-forever-to-load-search-floppy-drive-629275/)

AncientPC 03-19-2008 02:30 PM

Why does Grub take forever to load / search floppy drive?
 
Short version: Grub takes ~60 seconds to load and searches floppy drive. menu.lst and partitions are listed below.

Long version: I had a WinXP / Ubuntu dual-boot system that I wanted to move another hdd. I Ghosted it over without realizing that Ghost 7.5 can't handle ext3 filesystems and had already formatted the original drive, oops. Basically saying that I had an existing Grub installation (that had this same problem).

I go ahead and install Linux Mint thinking that maybe it would reconfig Grub and fix the solution. Nope, instead I have the same problem of a long Grub loading time and searching the floppy disk. I'm not sure how to fix it.

Code:

# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
default                0

gfxmenu=/etc/grub/message.mint

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout                30

# Pretty colours
color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title                Windows 95/98/NT/2000
# root                (hd0,0)
# makeactive
# chainloader        +1
#
# title                Linux
# root                (hd0,1)
# kernel        /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/hdc2 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,1)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery mode) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## ## End Default Options ##

title                Linux Mint, kernel 2.6.22-14-generic
root                (hd0,1)
kernel                /boot/vmlinuz-2.6.22-14-generic root=/dev/hdc2 ro quiet splash
initrd                /boot/initrd.img-2.6.22-14-generic
boot

title                Linux Mint, kernel 2.6.22-14-generic (recovery mode)
root                (hd0,1)
kernel                /boot/vmlinuz-2.6.22-14-generic root=/dev/hdc2 ro single
initrd                /boot/initrd.img-2.6.22-14-generic
boot

title                Linux Mint, kernel memtest86+
root                (hd0,1)
kernel                /boot/memtest86+.bin
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title                Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hdc1
title                Microsoft Windows XP Professional
root                (hd0,0)
savedefault
makeactive
chainloader        +1

http://img178.imageshack.us/img178/3872/gpartmn6.png

jailbait 03-19-2008 04:52 PM

Quote:

Originally Posted by AncientPC (Post 3094166)
Short version: Grub takes ~60 seconds to load and searches floppy drive.

Do you have the BIOS set to boot from the floppy drive?

What is on the floppy drive?

Where did the menu.lst that you posted come from? Is it on the floppy or is it on a hard drive? When, if ever, does it come to play in the boot sequence?

----------------
Steve Stites

syg00 03-19-2008 05:21 PM

As suggested, check the BIOS, and move the floppy to be last device checked.

AncientPC 03-19-2008 07:34 PM

I just removed the floppy drive from the boot order. There has never been anything in the floppy drive, but perhaps it was only recently that I noticed that the floppy light would stay on conspicuously long.

After removing the floppy drive from the boot order, Grub still takes the ~60 seconds to get from the "Grub loading . . ." screen to the OS selection screen.

roy_lt_69 03-20-2008 12:35 AM

I am not an expert in Grub, but this looks funny!
gfxmenu=/etc/grub/message.mint

I am surprised it knows where to find /etc/grub/message.mint.
I would have expected gfxmenu (hd0,1)/etc/grub/message.mint or some such thing.

aus9 03-21-2008 02:36 AM

spot on Roy and normally gfxmenu resides in /boot/ and sometimes in /boot/grub/


All times are GMT -5. The time now is 11:03 PM.