Adding a new system to the Slackware LILO boot loader & Please help me!
I used Slackware 13.37 to install LFS in partition sda2 # ext3
My friend told me that: "After you finish LFS you have an extra OS, which is completely independent from your host" I need to boot into LFS. I mean "Adding a new system to the Slackware LILO boot loader" Thank you very much! |
If you read /etc/lilo.conf you can figure out what to put there. Eg
Code:
image = /path/to/lfs/kernel |
There are 2 paths
In LFS environment root:/boot# ls config-3.5.2 System.map-3.5.2 vmlinuz-3.5.2-lfs-7.2 In Slackware root@localhost:/boot# ls README.initrd@ config@ slack.bmp System.map@ config-generic-2.6.37.6 vmlinuz@ System.map-generic-2.6.37.6 config-generic-smp-2.6.37.6-smp vmlinuz-generic-2.6.37.6 System.map-generic-smp-2.6.37.6-smp config-huge-2.6.37.6 vmlinuz-generic-smp-2.6.37.6-smp System.map-huge-2.6.37.6 config-huge-smp-2.6.37.6-smp vmlinuz-huge-2.6.37.6 System.map-huge-smp-2.6.37.6-smp diag1.img vmlinuz-huge-smp-2.6.37.6-smp boot.0800 diag2.img boot_message.txt map I read on some documentations Quote:
I don't know how to added a second kernel. Hope you show me! Thank you very much! |
Boot slackware, mount your lfs partition on /mnt edit the /etc/lilo.conf and add the following
Quote:
|
This is my kernel vmlinuz-3.5.2-lfs-7.2 !
Please help me! |
Why don't you read either Slackware documentation or the LFS one instead of some outdated ones. The reference you used is from 2001. It will not work soon or later. Have you read what segmentation_fault suggested. Check the lilo conf section here http://docs.slackware.com/slackbook:...91;]=lilo#lilo
Fix your lilo.conf file, run lilo. If you have errors when running lilo, post back here with your lilo.conf |
1 Attachment(s)
Attached file is my lilo.conf which was modified.
After modification, I pressed <Ctrl> O. This is the first time I use nano. Thus I opened new Konsole and run lilo The result I couldn't add lfs. It's still old kernel. Quote:
|
For your /etc/lilo.conf to work like it is you will have to copy the lfs kernel to Slackwares /boot then rerun lilo.
|
1 Attachment(s)
:cry:I copied 3 files
config-3.5.2 System.map-3.5.2 vmlinuz-3.5.2-lfs-7.2 to directory root@localhost:/boot It would be Quote:
The result's okey. Added lfs * Then I executed command-lines as following: a)http://www.linuxfromscratch.org/lfs/...09/theend.html b)http://www.linuxfromscratch.org/lfs/...09/reboot.html Finally I rebooted computer. And the output is not as expectation. I kept it in attached file. Might you help me? Thank you very much! |
looks like your kernel is missing some drivers to boot correctly and/or you need to create an initrd. If you make an initrd you will need to copy it to the slackwares /boot and rerun lilo.
|
Member Response
Hi,
@OP If you do not have the newest LFS book then look at: www.linuxfromscratch.org/lfs/downloads/6.5/LFS-BOOK-6.5.pdf EDIT: Current Book: LFS-BOOK-7.2.pdf Plus beta Slackbook: http://slackbook.org/beta/#id342781 Slackware Doc Project is new documentation project that has loads of useful information. Plus a few more; Quote:
|
1 Attachment(s)
After I added
initrd = /boot/initrd It look like more optimistic than the first. However it's still a my bug. Did you see it before which I kept it in attached file? This one took me a long time. Hope me will receive your help to complete it! Thank you so much! See you tomorrow. Good night! |
add this line to the lfs entry
Code:
append = "root=/dev/sda?" |
Sorry!It still doesn't work! :(
|
Hello,
I'd like to see the output of Code:
fdisk -l Code:
df -h Markus BTW: maybe you'd be better off if you use Slackware for some month and get some experience with it. Then you're ready for LFS. |
Thank for your advice! I will try more.
|
All times are GMT -5. The time now is 04:05 PM. |