Linux - SoftwareThis 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
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.
I'm experimenting a bit with Linux From Scratch and I want to try if it's bootable. Everything is installed in my home, and since /home is is on /dev/hda7, I want to add something to lilo.conf like:
image=/user/lfs/boot/vmlinuz-2.6.19.2(this should be the mounted path from the base system to /boot of the created system)
ex image =/mnt/hda1/lfs/boot/vmlinuz(ver).
append = "root=/dev/hda7/user/lfs"
root = /dev/hda7
label = LFS
read-only
Fstab i was able to leave the same base off the appended value. just have to be sure the path exists to /user/lfs/boot exists in the system you are building (and booting) from. Sorry for the typo .
EDIT: Its been a while since I used lilo, so I might be a bit rusty.
Sorry, I don't understand the ex image option. I can't seem to find anything about it in the man page. And could you post the fstab line, I'm afraid I don't understand that one either.
Trying to make it a little easier. Have a couple of options.
1) Could create a link too vmlinuz-2.6.19.2 in or copy it into the /boot directory on /dev/hda7.
Then lilo.conf will look something like:
image=/boot/vmlinuz-2.6.19.2 (the copy or like too the file)
append = "root=/dev/hda7/user/lfs" (system path for /)
root=/dev/hda7 (lilo's answer for which drive)
label=LFS
read-only
2) Try booting as currently setup.
image=/user/lfs/boot/vmlinuz-2.6.19.2 (LFS vmlinuz)
append = "root=/dev/hda7/user/lfs" (system path for /)
root=/dev/hda7 (lilo still booting to hda7)
label=LFS
read-only
The append will hopefully work like a chmod to /user/lfs to test you system and will be set as root for it. Sorry for being sketchy, like I said its been a while. I tried to use settings that would be closer to your setup. I know that I have gotten something line option #1 to work.
Don't remember for sure, I do remember having to do a lot of tinkering to get it to work. But one of the things I can't remember for sure is if append="root=/dev/hda7/user/lfs" worked of I had to use append="root=/user/lfs". Only thing I remember is the next time I created a LFS system I used grub lol.
Ok, now I understand everything. But I still don't know how to edit the fstab file. If my system under /dev/hda7/user/lfs mounts /dev/hda7 as / , that should give problems, no?
Edit: Maybe I give grub a try, but than this question still holds I think.
Last edited by merchtemeagle; 07-11-2007 at 11:51 AM.
The trick is with the append option. The append= sets root wherever you want it so if it works then fstab has no problem and requires no special modification. This keeps /dev/hda7 from being / and sets it somewhere else in this case /user/lfs. root= is just for lilo so it will boot to /dev/hda7 but the append= is where your system setups up / and it will override the root= once the system is booting.
EDIT: WOW... That looks like geek to me.
If nothing is appended then the system assumes that the root= location specified is to be set as root. If the append works correctly, you can cut and paste your current fstab into the LFS system and it should work which is what you want anyway .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.