LinuxQuestions.org
Help answer threads with 0 replies.
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 11-15-2003, 03:21 AM   #1
eixem
LQ Newbie
 
Registered: May 2003
Posts: 27

Rep: Reputation: 15
Boot problems


How can I boot into my linux install from the linux rescue mode. What do I need to do at the prompt to either login to linux, or create a boot disk relative to my current install. Where is the boot.img located? I know there is one on the cd but thats not doing it for me. Help please... =(
 
Old 11-15-2003, 03:51 AM   #2
RickyJaff
Member
 
Registered: Oct 2003
Distribution: RedHaT, ELX, DragonLinux, Knoppix.
Posts: 89

Rep: Reputation: 15
Have .. u lost ur current install...
Just ask ur problem..
U have rather messed up ur question.. ask with little description...
 
Old 11-15-2003, 04:57 AM   #3
eixem
LQ Newbie
 
Registered: May 2003
Posts: 27

Original Poster
Rep: Reputation: 15
sorry for the lack of detail. I always have booted into linux with a boot floppy. I misplaced said floppy and now I cant boot into redhat 9. The cd's I used to install are not available to me right now so I downloaded an installation image and used rawrite for windows to write the image. So now I can enter the rescue mode and get to a prompt. This is where im stuck. I need help to take the next step. I need to either a; make a bootdisk that will boot my current installation or b; simply login to my install from the rescue prompt and make a new bootdisk in a terminal. Hopefully this new info helps.. Thanks for the reply too btw. As far as I know.. everything is exactly as it was before I lost the disk. I have not formated anything. The mbr never had redhat on it nor do I really desire it to. I would like to continue using a floppy to boot my redhat install.

Last edited by eixem; 11-15-2003 at 05:01 AM.
 
Old 11-15-2003, 05:09 AM   #4
Nimoy
Member
 
Registered: Jun 2003
Location: Currently Denmark
Distribution: Ubuntu 11.10
Posts: 334

Rep: Reputation: 30
At the boot prompt before the auto install/boot begins type:

linux rescue <Enter>

<Enter> = Press the key

That should get you into your system
 
Old 11-15-2003, 05:11 AM   #5
Nimoy
Member
 
Registered: Jun 2003
Location: Currently Denmark
Distribution: Ubuntu 11.10
Posts: 334

Rep: Reputation: 30
Then read the mkbootdisk man page... Think that should get you on the road...

Type:

man mkbootdisk <Enter>
 
Old 11-15-2003, 05:18 AM   #6
eixem
LQ Newbie
 
Registered: May 2003
Posts: 27

Original Poster
Rep: Reputation: 15
To point a fact,.. thats what I have been doing. (linux rescue) But how do I make a bootdisk from there? I see that it mounts my directories under sysimage and I can access all my files. But I still dont know how to make a boot disk. I tried mkbootdisk -help but the text scrolls off the screen and I cannot pgup to see it.
 
Old 11-15-2003, 05:19 AM   #7
eixem
LQ Newbie
 
Registered: May 2003
Posts: 27

Original Poster
Rep: Reputation: 15
hmm.. I missed the second post. I have not tried reading the man page on mkbootdisk.
 
Old 11-15-2003, 06:06 AM   #8
eixem
LQ Newbie
 
Registered: May 2003
Posts: 27

Original Poster
Rep: Reputation: 15
hmm I tried mkbootdisk --device /dev/fd0 2.4.20-8 and I cant seem to do it. What directory do I need to be in? I tried in the /sysimage/usr/src aswell as a few others. I keep getting an error /lib/modules//usr/src/2.4.20-8 is not a directory or something to that effect. I am sorry for making what is probably a very simply thing to do with the proper experience, seem so difficult. What directory is the boot.img located in? Can I simply navigate to that dir and cp that image to a floppy? Im convinced mkbootdisk will do the trick if I knew what else I had to put in the command. But I am still quite new to this enviroment.

Back to googlin.....

Last edited by eixem; 11-15-2003 at 06:12 AM.
 
Old 11-15-2003, 07:42 AM   #9
eixem
LQ Newbie
 
Registered: May 2003
Posts: 27

Original Poster
Rep: Reputation: 15
ok i boot from the cd and type this at the boot : linux root=/dev/hdb2 single initrd=

cool now im booting up my install. I get to a prompt and su to root@localhost:

now I try to create a boot disk with /sbin/mkbootdisk --device /dev/fd0 2.4.20-8 and I get an error saying cannot find root partition I also tried mkbootdisk 2.4.20-8 and everything else I could think of. What else could I possibly try?
 
Old 11-15-2003, 08:03 AM   #10
Nimoy
Member
 
Registered: Jun 2003
Location: Currently Denmark
Distribution: Ubuntu 11.10
Posts: 334

Rep: Reputation: 30
In rescue mode have you changed the system root yet... like the boot splash screen suggested - I'm not sure but this might be the reason that the mkbootdisk command can't find the location of your boot which is found in the etc/fstab file
 
Old 11-15-2003, 08:11 AM   #11
Nimoy
Member
 
Registered: Jun 2003
Location: Currently Denmark
Distribution: Ubuntu 11.10
Posts: 334

Rep: Reputation: 30
What does the etc/fstab file say?
 
Old 11-15-2003, 04:46 PM   #12
eixem
LQ Newbie
 
Registered: May 2003
Posts: 27

Original Poster
Rep: Reputation: 15
ok I was able to view the /etc/fstab file. But what am I looking for?
 
Old 11-15-2003, 05:24 PM   #13
eixem
LQ Newbie
 
Registered: May 2003
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Nimoy
In rescue mode have you changed the system root yet... like the boot splash screen suggested - I'm not sure but this might be the reason that the mkbootdisk command can't find the location of your boot which is found in the etc/fstab file
heh,.. the whole time the solution was right in front of my face.

chroot /mnt/sysimage <enter>
mkbootdisk 2.4.20-8 <enter>

......... simple!
 
Old 11-16-2003, 05:49 AM   #14
Nimoy
Member
 
Registered: Jun 2003
Location: Currently Denmark
Distribution: Ubuntu 11.10
Posts: 334

Rep: Reputation: 30
Greeeeeat!
 
  


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
dual boot problems, now no boot loader after fixmbr mipia Debian 2 04-04-2004 10:43 PM
Dual boot for Redhat 9 and Solaris 9 boot manager problems steve_2010 Red Hat 1 01-30-2004 10:14 PM
Kernel update boot problems, no boot loader StaticSage Red Hat 2 01-09-2004 07:05 AM
Boot problems, carn't boot Linux anymore Thom_Redhat Linux - General 2 01-01-2004 09:21 AM
Boot problems, NTLDR missing but trying to boot on second hard drive Outabux Linux - Newbie 0 04-09-2003 06:29 PM


All times are GMT -5. The time now is 10:04 PM.

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