LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-18-2002, 08:54 PM   #1
kalzanth
LQ Newbie
 
Registered: Aug 2002
Posts: 7

Rep: Reputation: 0
Talking The boot process, need help!


Ok I have an oddball question. I'm still fairly new with linux so any advice is much appreciated. Here's my situation. I have an IBM thinkpad that's about 4 years old, the hard drive died out. Well is broken actually and those fools at IBM wanted like $400 for a 5 gig. Ya, right. Anyways, I found a version of linux that's on a CD and run staight from the CD and memory, so no hard drive required. So I can start putting my laptop to some use again. Well the problem is that the CD is bootable, and for some unknown reason none of the laptop will not boot from the CD, keeps looking for a disk. So what I need is a bootable floppy that once ran, will boot and then point the computer to the CD's startup program. I dont really know anything about scripting for Linux, or what programs do what, anyone have any advice? I do have a bootable floppy for emergencies that I can load and mount the CD, but how do I start the CD from there? Thanks
 
Old 08-18-2002, 11:04 PM   #2
darkmage
Member
 
Registered: Jun 2002
Location: Lousiville,KY
Distribution: Gentoo
Posts: 89

Rep: Reputation: 15
First: Have you tried going into the BIOS and changing the boot order from floppy first to cdrom first?
 
Old 08-18-2002, 11:18 PM   #3
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
If your bios doesn't support a bootable cdrom, then you will need to have the kernel on a floppy and there is a couple of options

put the kernel on there at the beginning of the drive so it will boot

you would do that with dd

dd if=kernel of=/dev/fd0 bs=1k

next you will set the kernels root device with rdev

rdev /dev/fd0 /dev/hd?

where ever the cdrom is

when the kernel loads it will expect the root device on /dev/hd?

it will look on /dev/hd? for /bin/init

which will look for /etc/inittab and run /bin/login



The other option and maybe the best, would be to install lilo on the floppy you run lilo with the cdrom in and it should let you know if it has a problem with your lilo.conf or finding the floppy

check this out, just remember that the difference here is that it's not /dev/fd0 but /dev/hd?

http://www.tldp.org/HOWTO/Bootdisk-HOWTO/

Last edited by DavidPhillips; 08-18-2002 at 11:20 PM.
 
Old 08-18-2002, 11:26 PM   #4
kalzanth
LQ Newbie
 
Registered: Aug 2002
Posts: 7

Original Poster
Rep: Reputation: 0
Well in response to the first reply, yes, the bios is set to boot from the cd first, it's just not, ibm hardware go figure.

As for the second response. That's a lot to take in, heh, I'll have to fiddle around a bit, I'll hollar if I get lost. Less someone can convert that too noob.
 
Old 08-19-2002, 12:21 AM   #5
kalzanth
LQ Newbie
 
Registered: Aug 2002
Posts: 7

Original Poster
Rep: Reputation: 0
Ug, does anyone have a step by step on how to make this boot disk. I think I've been at this too long, 13 hours, no caffeine. Heh, anyways I've been reading and comparing to the generic boot disk I have, which is rather difficult since it's compressed on the disk.

There must be a bootloader out there that can fit on a disk that you can tell it where too look. Hmm, Any advice? heh Thanks.
 
Old 08-19-2002, 12:39 AM   #6
kalzanth
LQ Newbie
 
Registered: Aug 2002
Posts: 7

Original Poster
Rep: Reputation: 0
Ok after some caffeine did a bit of thinking. I could modify the existing boot disk I have, so that instead of loading the kernel from the floppy, it would load the kernel from the CDROM. Which brings up a couple questions, first off the kernel IS the first thing loaded correct? Secondly, most likely the CD would have to be mounted prior to it loading the kernel but that doesn't sound quite right if the kernel is first.

Someone let me know if I am Waaaay off track here.

My next issue is how do I edit the files. Still somewhat new to linux the only text editor I could locate so far was the VI command.

Last question of course is what's the filename of the first file loaded, looking at the floppy (ls -a) here is what shows on the disk.

boot.b map settings.s bz2bzImage rc.custom.gz

Which one of these says ok unpack this file and go from there.

Thanks for the advice
 
Old 08-19-2002, 09:32 AM   #7
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I would use the kernel on the floppy and use lilo on the floppy.

That way all you need to do to change kernels later on is to make another floppy.

However, since you say your bios supports booting a cdrom I think your cdrom is not made correctly if you have other cds that will boot.

check the live cdrom howto

http://www.linuxgazette.com/issue54/nielsen.html
 
Old 08-19-2002, 11:16 PM   #8
kalzanth
LQ Newbie
 
Registered: Aug 2002
Posts: 7

Original Poster
Rep: Reputation: 0
Well I have tried some things to no avail. Can someone spell out just how to do this? Need a floppy to boot from, that turns around and tells the computer to boot from the CD, nothing more. The CD I have will boot (tested on other computers) just this one will not boot to it, good old ibm hardware. Anyways, someone said put the kernal and lilo on the disk and edit something or another, ug. The point of getting this CD to work is so I can learn more about linux and put some use to this laptop. Help! Thanks
 
Old 08-20-2002, 12:12 AM   #9
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
what was the result of the attempt you made. If you can post something we can see where you went wrong.

Is the disk booting, errors, etc...
 
Old 08-20-2002, 12:43 AM   #10
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
here is the easy way
I will call your kernel bzImage your floppy fd0 and your cdrom hdc

adjust these to match what you have


dd if=bzImage of=/dev/fd0 bs=1k

rdev /dev/fd0 /dev/hdc

let us know how it turns out

Last edited by DavidPhillips; 08-20-2002 at 12:45 AM.
 
Old 08-23-2002, 06:25 PM   #11
kalzanth
LQ Newbie
 
Registered: Aug 2002
Posts: 7

Original Poster
Rep: Reputation: 0
Well I finally got it to work. Wasn't how anyone suggested but thanks to everyone who helped! Now I can actually start fiddeling more with it and learn more. Here's how I got it to work.

I used a regular win98 boot disk, loaded with CD rom support.

This I used Loadlin to start the CD up. Here's the Command in case anyone else has this problem.

loadlin e:\isolinux\vmlinuz initrd=e:\isolinux\initrd.gz init=/linuxrc prompt_ramdisk=0 rw root=/dev/ram0 vga=normal

my cdrom was E but you can change that to anything

Thanks again for all the support and hope this helps someone else.
 
  


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
Linux boot up process Vs. Windows boot up process darkskull Linux - Software 7 12-30-2006 05:21 PM
Start process at boot frkstein Ubuntu 1 05-15-2005 02:53 PM
asking help in fixing the boot process jbrush Mandriva 2 01-03-2005 12:54 AM
Understanding the boot process? rene.dd Programming 1 06-09-2004 11:36 AM
How do I change the look of the boot process? hecresper Fedora 4 02-02-2004 03:54 PM


All times are GMT -5. The time now is 12:46 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