LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-10-2003, 09:01 PM   #1
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
how does this work?


My root partition is on /dev/hda5. My boot partition is on /dev/hda3. Here is where I am getting confused. In my file lilo.conf it make reference to my partition /dev/hda5(root=/dev/hda5), but not my boot partition, /dev/hda3. Doesn't it need the info off my boot partition first?

Doesn't lilo need the info on my boot partion to boot? It seems to me that that info is not on my root partition untill it boots(once it is mounted)

Forgive me about this question, I have been writing and rewriting, it is not very clear. I can not seem to get my thoughts into this post well.
 
Old 09-10-2003, 09:20 PM   #2
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
When the system boots, the motherboard runs through the boot-list... It's the order it checks devices to try to boot. You might have floppy, then cd-rom, then hard-drive.

When it checks the hard-drive, it reads the Master Boot Record, and runs any code there. If you have LILO installed on the MBR, that little bit of code knows where the boot partition is, and goes there to continue booting. The info in boot then brings up the kernel and inits the system. It runs through the init scripts to bring up the rest of the system. Somewhere in there, it mounts the root partition, and any partitions set to automatically mount at start-up.

There are some systems that don't mount boot into the root filesystem at start-up. This keeps it safe from errors / users / malicious programs. To make changes, the root user would have to manually mount /boot.

<< EDIT >>

If you used a boot-floppy instead of LILO on the MBR, then you wouldn't even need a boot partition.

Last edited by ranger_nemo; 09-10-2003 at 09:21 PM.
 
Old 09-10-2003, 09:43 PM   #3
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Original Poster
Rep: Reputation: 30
here is my lilo.conf. no where in there does it point to my boot partition(/dev/hda3). That is where my confusion is coming from. I must be missing something?

boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=300
message=/boot/message
lba32
default=Windoze

image=/boot/vmlinuz-2.4.20-20.9
label=linux
initrd=/boot/initrd-2.4.20-20.9.img
read-only
root=/dev/hda5

other=/dev/hda2
label=Windoze
 
Old 09-10-2003, 11:32 PM   #4
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
When you installed LILO, you installed it to the Master Boot Record of the hard-drive. There is a reference in the MBR to the boot partition. Normally, and for Windows/DOS, it points to the first partition. When you installed LILO, it changed it to point to the third partition. That little bit of code runs, and calls up the boot partition.

Imagine it like a little tiny boot-floppy sitting at the beginning of the hard-drive. The LILO program is on the MBR. You're lilo.conf is just a menu that gets called by LILO.

Once you make a choice of what to boot, and the initrd, system.map, and vmlinuz are read, the system is done with the boot partition.

It's like having the word "dictionary" defined in a dictionary. You need somebody to tell you what a dictionary is before you can look it up in the dictionary. In this case, that somebody is the LILO code in the MBR.
 
  


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
Does the mounting of a *BSD partition on linux work work well when rw ? kloss *BSD 3 10-08-2005 03:21 PM
Will Ubuntu Work work With my Wireless Card? PulsarSL Ubuntu 3 10-07-2005 11:33 PM
got ALSA to work in root, need help getting it to work in my user profile ic3 Slackware 2 11-28-2003 11:32 PM
FALCONS EYE (nethack) FAILS ON STARTUP, use to work, wont work even after reinstall roorings Linux - Software 0 10-08-2003 11:39 PM
UPS cable didn't work. A cool work-around jlangelier LinuxQuestions.org Member Success Stories 1 07-18-2003 06:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:06 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
Open Source Consulting | Domain Registration