GRUB refuse to boot from floppy when reconnecting Primary HD
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
GRUB refuse to boot from floppy when reconnecting Primary HD
After some messing around and rubbish install/configuring of Mandriva 10.1 I decided to give it up and try SuSE 9.1. As not to touch my XP files, I disconnected my primary HD - set as masetr - whilst installing Linux to my Seoncdary HD - set as slave. When it came to the bootloader i told it to write it to a floppy disk (GRUB).
Now the bootloader disk works when only the second HD is connected to the computer - set as slave - but once I reconnect the power and IDE cables to the primary HD and try to load Linux via the GRUB boot disk, it recognises that their is a boot disk in the drive and then it prints
GRUB
and then just seems to hang and not allow you to type in any commands.
Is there a way of getting the boot disk to load Linux? Or am I going to have to change the bootloader in Linux so that is it on the first part of the root partition of the secondary HD and then create a new floppy disk that will point to this when I want to access linux - if so how?
No the BIOS boot order is definatly set right. Goes Floppy, CD then IDE-0.
When the GRUB boot disk is inserted, its recognises that there is a boot disk in and starts loading the disk as if it were ready to boot but it just comes up with
Boooting from floppy - boot OK
GRUB
and then just hangs at the word grub and no other command prompt. When it does work with out the primary HD conected it does that but right after it says GRUB is starts to print a few other lines and about a second later it loads in to the GRUB boot menu for selecting if you want to boot to linux or into failsafe.
OK, then the floppy is booting OK. The problem is that You've changed the first Hard drive, and Grub can't boot what you put in. On the floppy, there should be a menu.1st or grub.conf file that you need to update to specify the second drive, instead of the first (or the opposite; it's hard to tell from your description which BIOS drive you are trying to boot after the recable). Change referenced to "hd0" to "hd1" (or "hd1" to "hd0"). For example,
root (hd0,0)
becomes
root (hd1,0)
Last edited by macemoneta; 05-06-2005 at 04:40 PM.
I have inserted the boot floppy and tried to access it through the my computer icon on the SuSE desktop. What is really wierd is that I there appears to be no files on the disk at all. Just says no files and no folders found along the bottom status bar and I have turned out show hidden files and still no success. Still the disk works to boot linux.
I have managed to recreate a GRUB boot disk that works to boot Linux.
The directory structure is as follows:
/
/boot/
/boot/message
/boot/grub/
/boot/grub/device.map
/boot/grub/menu.lst
/boot/grub/stage1
/boot/grub/stage2
The disk works fine in booting linux and the contents on menu.lst is
Code:
# Modified by YaST2. Last modification on Fri May 6 14:35:35 2005
color white/blue black/light-gray
default 0
timeout 8
gfxmenu (hd0,1)/boot/message
###Don't change this comment - YaST2 identifier: Original name: linux###
title Linux
kernel (hd0,1)/boot/vmlinuz root=/dev/hdb2 vga=0x31a splash=silent desktop resume=/dev/hdb1 showopts
initrd (hd0,1)/boot/initrd
###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe
kernel (hd0,1)/boot/vmlinuz root=/dev/hdb2 showopts ide=nodma apm=off acpi=off vga=normal noresume nosmp noapic maxcpus=0 3
initrd (hd0,1)/boot/initrd
~
~
~
~
"menu.lst" 17L, 626C 17,15 All
So should I just change the lines with (hd0,1) to (hd1, 1) and it should work or do i need to make changes to this section as well /dev/hdb2?
Just changed all the instances of (hd0,1) to (hd1,1) and now I can insert the disk when I want to boot into SuSE and otherwise just leave it as normal and it will boot into my old OS.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.