Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
03-05-2003, 07:22 AM
|
#1
|
LQ Newbie
Registered: Mar 2003
Location: Asia
Distribution: Evil Entity, LFS
Posts: 6
Rep:
|
boot problems
hey guys. i've some errors when starting up lfs
Quote:
swapon: cannot stat /dev/hdb3: no such file or directory
unforseen error took place in /etc/rc.d/rcsysinit.d/S10swap
|
Quote:
fsck.ext2: no such fiile or directory while trying to open /dev/hdb6
file system could not be fixed automatically
|
heres what i did: installed everything up to chapter 9 correctly, but I forgot to read chapter 9 and didnt unmount $LFS and $LFS/proc (if that matters) also, i have not stripped the debug values
I have my current distro on hda and am installing lfs on hdb5, swap is on hdb3
Quote:
/dev/hda1 * 1 525 4217031 83 Linux native
/dev/hdb1 * 128 4864 38049952+ f Win95 Ext'd (LBA)
/dev/hdb2 1 13 104391 83 Linux native
/dev/hdb3 14 78 522112+ 82 Linux swap
/dev/hdb5 3590 4864 10241406 b Win95 FAT32
/dev/hdb6 128 3589 27808452 83 Linux native
|
any advice? thanks.
|
|
|
03-05-2003, 08:08 AM
|
#2
|
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316
Rep:
|
Well it says it can't stat /dev/hdb3 because the file doesn't exist. Did you run MAKEDEV? What have you got in the /dev directory?
|
|
|
03-05-2003, 08:30 AM
|
#3
|
LQ Newbie
Registered: Mar 2003
Location: Asia
Distribution: Evil Entity, LFS
Posts: 6
Original Poster
Rep:
|
i'm pretty sure i did that, i have hdb and hdb1-hdb20
|
|
|
03-05-2003, 08:46 AM
|
#4
|
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316
Rep:
|
Hmm well somehow they seem to be not present when you are booting your system. I've never really used devfs but could it be a conflict with it trying to use that?
You could always try booting directly into a shell and skip the whole init process. Then you can look around and see if the files it needs are present.
|
|
|
03-05-2003, 08:50 AM
|
#5
|
LQ Newbie
Registered: Mar 2003
Location: Asia
Distribution: Evil Entity, LFS
Posts: 6
Original Poster
Rep:
|
ok, i'll compile without devfs. also, will this solve my second error? thanks. 
|
|
|
03-05-2003, 08:57 AM
|
#6
|
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316
Rep:
|
Well the first one mentions no such file or directory for /dev/hdb3
And the second one says no such file or directory for /dev/hdb6
So I'm pretty sure solving one would resolve the other too.
|
|
|
03-06-2003, 02:31 AM
|
#7
|
LQ Newbie
Registered: Mar 2003
Location: Asia
Distribution: Evil Entity, LFS
Posts: 6
Original Poster
Rep:
|
okay, i recompiled the kernel without devfs using the Installing Linux-2.4.19 instructions in chapter 8, and did the instructions up to the end of chapter 8, unmounted and rebooted. now, when i choose lfs in LILO, right after it uncompresses the kernel image it says something like
and halts the system, what did i do this time?
thanks.
(btw, when compiling the kernel i only added in options and did not take any out)
|
|
|
03-06-2003, 02:36 AM
|
#8
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Did you copy your new kernel over to the /boot directory(or partition) and then run lilo to reinstall the image to the MBR?
Cool
|
|
|
03-06-2003, 03:06 AM
|
#9
|
LQ Newbie
Registered: Mar 2003
Location: Asia
Distribution: Evil Entity, LFS
Posts: 6
Original Poster
Rep:
|
yea, i did
Quote:
cp /mnt/lfs/boot/lfskernel /boot
|
and and also copied the configuration things into lfs
thanks
|
|
|
03-06-2003, 08:37 AM
|
#10
|
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316
Rep:
|
Well it doesn't print that message after it's uncompressed the kernel but while it's uncompressing it. You might want to check your lilo.conf file again and make sure it's pointing to the right locations. Double check if the kernel you are pointing to is the one you actually copied.
If you are sure you got everything right and it's still giving you errors you might want to try posting your lilo.conf file.
By the way do you have a .config file from the kernel of your main system. You might want to copy that to your lfs kernel and then run make oldconfig. That way you should at least be able to start off with a config that you know works. You can add/delete options after that and recompile.
|
|
|
03-07-2003, 02:23 AM
|
#11
|
LQ Newbie
Registered: Mar 2003
Location: Asia
Distribution: Evil Entity, LFS
Posts: 6
Original Poster
Rep:
|
thanks for the help Mik and MasterC, it turns out that I didn't run some lilo commands
now i find that my network isn't detected and i can't mount my cdrom because i haven't set it up, back to reading.
thanks!
|
|
|
All times are GMT -5. The time now is 01:31 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|