LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-25-2004, 10:42 PM   #1
mindfestival
Member
 
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/ . (...it 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...

mindfestival
 
Old 05-25-2004, 10:58 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
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.

OR

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, 11:17 PM   #3
seidren
Member
 
Registered: May 2003
Distribution: Ubuntu, Windows XP
Posts: 90

Rep: Reputation: 16
try

chroot /mnt/sysimage

and then try grub-install

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

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
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.
 
  


Reply


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 02:28 PM
Dual Boot Help! Needed macca03 Linux - Newbie 2 02-28-2005 01:21 PM
i test linux + win2k, results are laughable ! qwijibow Programming 7 09-22-2003 04:06 PM
help needed, unable to boot jaylee Linux - General 6 07-25-2003 12:05 AM
Boot errors, a little help needed. RecoilUK Linux From Scratch 5 06-11-2002 04:27 AM


All times are GMT -5. The time now is 06:33 AM.

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