How to finish lfs
Hello,
I am building lfs for the first time using the lfs 6.0 and livecd I am getting close to the end (chapter 8) I need a litle help/guidance on how to finish lfs I know this is a bit tricky going from the livecd to booting for the first time I want to try it out first if I can so I need to make some kind of boot floppy or some other way of booting than what is in the book I read a little bit ahead and noticed the warning about grub overwriting the current boot loader I don't want to mess with the MBR at this time if I can avoid it. I don't want to overwrite the boot loader and then find out that I don't have a working system and render my windows useless |
If you have another Linux distro, just edit it's menu.lst or lilo.conf and add the LFS. Otherwise, the GRUB manual has instructions for creating a boot floppy or CD/DVD. Just insert the instructions for making a floppy when you get to section 8.4.
|
Hello,
Thanks for the link to the grub manual. I will look into that. |
Hello,
I got to the point of making the floppy but it doesn't seem to do anything. I have to ask this first to make sure I am doing this right. Do I make the floppy while I am inside chroot ? I tried to mount the floppy while inside chroot but it did not work I got "mount: /dev/fd0 is not a block device (maube try '-o loop'?) I am thinking it may be a better idea to add lfs to the windows xp boot menu but I am not sure how to do that. I already have it set up for multi boot with windows98 Still, it would be nice if I could make a boot disk in case something goes wrong with the windows xp boot or the MBR. |
Hello,
I am still trying to make a boot floppy but it doesn't seem to work After I enter the 2 commands for stage1 and stage2 I can look at /dev/fd0 and I can see that the file size has increased but nothing is happening on the floppy Are those commands supposed to make the boot floppy ? Should the floppy be mounted somewhere special ? Seems like I am missing something here. |
If you can't do it chrooted into LFS, you still can do it from the other operating system (the host system you used to build your LFS).
|
Hello,
Ammm... I am not sure I can do that because I used the live cd so I don't have a linux host on the computer. I just have windows 98 and xp I tried to install it on the hard drive but that's not working either because I get a grub error "Error 21: Selected disk does not exist" Not that I want to do it but I just wanted to try it to see if that works I tried "root (fd" and then the tab key and completed it so it found fd0 even though it doesn't see it as a floppy but it doesn't find hd0 no matter what partition I use. I have to do more research and try different things in order learn more about this so I can figure out what is going on. |
Can't you do it from LFS livecd? I mean you can type "grub" and get into grub shell and do all the commands in it, right?
|
Hello,
Yes I can use grub if I am not inside chroot . It recognizes (hd0,6) as ext2fs filesystem which is where I have LFS installed and also shows the other fat filesystems that I have but if I am inside chroot it doesn't recognize any filesystem on hd Is grub supposed to work the same inside and outside chroot ? I noticed that outside of chroot it's probing for devices and finding them but it doesn't appear to do that inside chroot. It just goes straight to the grub prompt. Do you think there is something wrong with the grub command or something with the fstab file perhaps ? Where is grub looking for the mounted devices and filesystems ? |
The file size has increased?!?
Quote:
Sadly, I don't have a Linux box with a floppy disk drive around, or I might be able to give you a mknod command to create it properly, but take my word for it, /dev/fd0 should not change in file size because it should not have a file size! How to check: Code:
ls -l /dev/fd0 Code:
brw-r----- Hm... according to some message on a mailing list somewhere (I'm tired, and my Google-fu is unwilling to play) the commands: Code:
mknod /dev/fd0 b 2 0 EDIT: P.S.: Please note - none of this is guaranteed to help in any way. If your system refuses to do any of this, dumps core, or starts a small fire, I take no responsibility. |
Hello,
I was going to try that this weekend since I saw it a couple of days ago on the internet but that was for other situation so I wasn't sure if it was going to work for me. It's a lot better to get confirmation plus I wouldn't have known about adding the "chgrp" at the end so I am not sure if it would have worked. Anyway I tried it out and it works. Thanks for your help. Now I have to figure out the next step When I boot from the floppy it goes into grub. I have to create the menu.lst I am just not sure where to place it. Should I place it where it says in the book (that would be on the hard drive) or on the boot floppy that I just made ? |
Hello,
Adding the menu.lst to the hard drive has no effect. I can use the commands from the menu.lst but I am still in the grub shell Looks like I am missing something here to be able to boot LFS. |
Hello,
I made a little more progress. I typed boot after entering the commands from the menu.lst so it booted for the first time. I am guessing I will have to create the menu.lst on the floppy or point to where it's located on the hard drive. When it first booted it was checking the partition where lfs was installed and found some errors and said to reboot which I did. Then the second time I had an error something to do with the network. This I should be able to fix I just need some advice. In chapter 7.10 of the LFS 6.0 book there is a line "echo "HOSTNAME=[lfs]" > /etc/sysconfig/network" and the book says "[lfs] needs to be replaced with the name the computer is to be called" I wasn't sure what to put here so I skipped it at the time I was building LFS but I guess now it's time to put something there. The question is what should I replace it with ? Can it be any name or does it have to be something specific to my computer ? There is one other issue After pressing Enter to continue after that error I get to a login "(none) login:" What should be entered here for login and password ? |
Quote:
Quote:
Quote:
Code:
passwd root |
Hello,
This boot floppy seems to be different than the regular floppy. I can't seem to mount it ar maybe I am not supposed to. Should I be using the dd command to copy the menu.lst to the floppy ? Thanks for the advice for the hostname I used LFS.So now it doesn't stop at that error anymore All that does is that it puts lfs instead of none at the login so now I have [LFS]login I was able to change the password too. I must have forgot what I used for the password since it was quite a while ago So now my prompt looks like this -bash-3.00# Is that correct ? One thing I noticed was that it doesn't show the working directory in the prompt but I think that can be fixed So everything seems to be working I still have to work on adding the menu.lst to the floppy but at least I can boot now. |
All times are GMT -5. The time now is 10:01 AM. |