Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 05-25-2004, 09:42 PM   #1
Registered: Mar 2004
Posts: 47

Rep: Reputation: 15
Exclamation laughable boot problem. serious help needed!

hello all. Its laughable buy not so funy for me let me tell you.. lol

alright, to cut a long story short:

I originally was running a dual-boot systems, where each OS was on a different hdd (hda - windows, hdb1 - / linux partition. Note: hdb1 is the slave drive according to my BIOS). Now i am not entirely sure, i had grub as my bootloader, i think installed on the linux partition hdb.

For a chain of annoying and irritating windows reasons, i had to take the windows hdd out. Now my system will not boot. "INSERT SYSTEM DISK.." etc. etc. So, i ran my rescue disk and mounted my system. I assumed that i could just re-run grub from here and have it write a new MBR on this drive ( hdb ). :

#cd /mnt/sysimage/sbin

#./grub-install /dev/hdb1

/sbin/grub : Not Found.

according to ls /mnt/sysimage/sbin, grub is there, and so is grub-install.

odd eh?

same with lilo, i run lilo, and is gives me "/etc/lilo.conf Not Found". and it actaully is in /etc/ . ( is my old working system after all). Is it something to do with the way the rescue program works?

thanks for tuning in to some poor newbies problems...

Old 05-25-2004, 09:58 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
If you were using Grub as your bootloader, then the first part of Grub was installed to the MBR, which is on the Master drive (usually hda1). Otherwise, the only way to boot Linux would have been a boot floppy, on loadlin in the Windows partition.

If you have subsequently installed Grub to /dev/hdb1, you installed it to the MBR of the slave drive, where it isn't accessed when you turn power on. You would only be able to boot Windows.

Try the grub-install again, installing to /dev/hda1, and see what happens.


Do I misunderstand completely. You've taken out hda1, but have not replaced it? Then you probably need to edit the BIOS; tell it hdb1 is the only hdd, and it's the Master. Then the current Grub install should be good.
Old 05-25-2004, 10:17 PM   #3
Registered: May 2003
Distribution: Ubuntu, Windows XP
Posts: 90

Rep: Reputation: 16

chroot /mnt/sysimage

and then try grub-install

it should work
Old 05-25-2004, 10:18 PM   #4
Senior Member
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
I'm just going to pop in and suggest something. Assuming that there weren't any typos in your post (regarding the grub-install command and it's error), take a close look at the paths you stated:
/mnt/sysimage/sbin/grub <= where you located grub
/sbin/grub <= the location grub-install reported

It would suggest to me that grub-install is hardcoded (or defaulting) to /sbin to locate grub rather than the directory grub-install is located in.

One possible solution:
Take a look at "man chroot". Use your rescue disks, then after you system image is properly mounted, then use chroot to put yourself "at home" in /mnt/sysimage.

Another option:
copy /mnt/sysimage/sbin/grub to /sbin/grub (or symbolic link them). That's only "peeling the onion" though; it could croak on another file immediately after.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
/boot partition needed? Seiken Linux - General 4 04-18-2005 01:28 PM
Dual Boot Help! Needed macca03 Linux - Newbie 2 02-28-2005 12:21 PM
i test linux + win2k, results are laughable ! qwijibow Programming 7 09-22-2003 03:06 PM
help needed, unable to boot jaylee Linux - General 6 07-24-2003 11:05 PM
Boot errors, a little help needed. RecoilUK Linux From Scratch 5 06-11-2002 03:27 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:26 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration