LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 04-13-2002, 07:24 AM   #1
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
Which came first...the chicken or the egg?


When loading the kernel thru lilo or loadlin,
one of the parameters is the device path of
where to mount root (eg /dev/hda1). Question is,
how does it make sense of the file path since the file
system does not exist yet and all it understands
is raw sectors?

Last edited by ugenn; 04-13-2002 at 08:55 AM.
 
Old 04-13-2002, 08:02 AM   #2
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
My guess is that it takes a peek at the partition table and decides where hda1 would be. It works well, though: my partition table is a mess, I had hda3 as the 15th partition on the disk, and yet lilo still managed to boot QNX ok.
 
Old 04-13-2002, 09:06 AM   #3
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Thymox
My guess is that it takes a peek at the partition table and decides where hda1 would be. It works well, though: my partition table is a mess, I had hda3 as the 15th partition on the disk, and yet lilo still managed to boot QNX ok.
Yeah, but that's not really addressing the issue. How does it make sense of /dev/hda1 when / itself isn't mounted yet?
 
Old 04-13-2002, 09:17 AM   #4
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
/ doesn't have to be mounted. /dev/hda1 is a device, and although Linux treats everything as a file, that doesn't mean that anthing has to be mounted in order for the device to exist. Take this fine example:

You have multiple distros on your harddisk (say, Mandy and Slack); you're running Slack at the moment; you can see that there is a partition called /dev/hda9, but you can't get to the information on it because it's not mounted. Does this mean that hda9 doesn't exist?

Because the harddisk is physically present, and has been recognised by the BIOS, there will be a partition table availble to the program (lilo or loadlin in this case). What the program chooses to do with the information it gains from the partition table is another story.
 
  


Reply



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
compiler chicken and egg problem novasoy Linux - Newbie 4 06-24-2004 01:18 PM
strange egg problems? ego er alt Linux - Software 3 05-29-2004 06:08 PM
Easter egg in calender DavidPhillips *BSD 0 03-29-2004 08:08 PM
I'm having a chicken (motherboard) and egg (video card) problem. mrwritestuff Linux - Hardware 3 10-06-2003 05:33 PM
Swap file-to chicken to try it fail66 Linux - General 15 12-31-2001 07:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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