LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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

Reply
 
Search this Thread
Old 03-05-2003, 07:22 AM   #1
Oren
LQ Newbie
 
Registered: Mar 2003
Location: Asia
Distribution: Evil Entity, LFS
Posts: 6

Rep: Reputation: 0
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.
 
Old 03-05-2003, 08:08 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
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?
 
Old 03-05-2003, 08:30 AM   #3
Oren
LQ Newbie
 
Registered: Mar 2003
Location: Asia
Distribution: Evil Entity, LFS
Posts: 6

Original Poster
Rep: Reputation: 0
i'm pretty sure i did that, i have hdb and hdb1-hdb20
 
Old 03-05-2003, 08:46 AM   #4
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
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.
 
Old 03-05-2003, 08:50 AM   #5
Oren
LQ Newbie
 
Registered: Mar 2003
Location: Asia
Distribution: Evil Entity, LFS
Posts: 6

Original Poster
Rep: Reputation: 0
ok, i'll compile without devfs. also, will this solve my second error? thanks.
 
Old 03-05-2003, 08:57 AM   #6
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
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.
 
Old 03-06-2003, 02:31 AM   #7
Oren
LQ Newbie
 
Registered: Mar 2003
Location: Asia
Distribution: Evil Entity, LFS
Posts: 6

Original Poster
Rep: Reputation: 0
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

Quote:
system out of input data
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)
 
Old 03-06-2003, 02:36 AM   #8
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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
 
Old 03-06-2003, 03:06 AM   #9
Oren
LQ Newbie
 
Registered: Mar 2003
Location: Asia
Distribution: Evil Entity, LFS
Posts: 6

Original Poster
Rep: Reputation: 0
yea, i did

Quote:
cp /mnt/lfs/boot/lfskernel /boot
and
Quote:
lilo -v
and also copied the configuration things into lfs

thanks
 
Old 03-06-2003, 08:37 AM   #10
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
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.
 
Old 03-07-2003, 02:23 AM   #11
Oren
LQ Newbie
 
Registered: Mar 2003
Location: Asia
Distribution: Evil Entity, LFS
Posts: 6

Original Poster
Rep: Reputation: 0
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dual boot problems, now no boot loader after fixmbr mipia Debian 2 04-04-2004 09:43 PM
Dual boot for Redhat 9 and Solaris 9 boot manager problems steve_2010 Red Hat 1 01-30-2004 09:14 PM
Kernel update boot problems, no boot loader StaticSage Red Hat 2 01-09-2004 06:05 AM
Boot problems, carn't boot Linux anymore Thom_Redhat Linux - General 2 01-01-2004 08:21 AM
Boot problems, NTLDR missing but trying to boot on second hard drive Outabux Linux - Newbie 0 04-09-2003 05:29 PM


All times are GMT -5. The time now is 08:19 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration