Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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?
/ 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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.