LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 08-02-2003, 04:49 PM   #1
curtdodds
LQ Newbie
 
Registered: Jul 2003
Location: So. Calif
Distribution: gentoo,RH, mandrake, debian, slackware, lfs, and more.
Posts: 25

Rep: Reputation: 6
LFS compiled kernel can't read partition table


I can boot with a kernel compiled by Gentoo, and moved to the LFS
/boot directory.

Using LFS and the .config used by Gentoo and compiling in LFS
fails to boot.

Basic error is it can't read the partion table.
It fails the fsck.ext3 check, " no such file or directory"

Running fsck.ext3 from Gentoo says the LFS partion is clean.

I must have screwed up the compiler or libraries on LFS,
although I get no errors when compiling.

Any ideas?
 
Old 08-02-2003, 05:42 PM   #2
antken
Member
 
Registered: Nov 2000
Posts: 368

Rep: Reputation: Disabled
does your kernel panic on boot ?

if so i had this problem, make sure you have compiled the ext3 into your kernel, otherwise you will end up with a chicken and egg situation:

you cannot read the disk - need module to do so, modules on the disk, cannot read disk - need module to do so, module on disk....
its like putting the driver for a network card on a network server with out any means to get it to the workstation !

and so on i think you will get the idea.

as far as compiling problems go with LFS i found that mandrake as the host system is quite useless, most of the libs are missing etc. most people here recommend downloading knoppix of the internet, i followed their instructions and it works perfectly for me.

knoppix is a bootable linux cd ( a root boot i beleve is the correct term ) just stick it in and off you go
 
Old 08-02-2003, 05:58 PM   #3
curtdodds
LQ Newbie
 
Registered: Jul 2003
Location: So. Calif
Distribution: gentoo,RH, mandrake, debian, slackware, lfs, and more.
Posts: 25

Original Poster
Rep: Reputation: 6
No panic.
I used the exact .config file (kernel parameters) used by Gentoo.
I did "make mrproper" and "make clean".

If compiled by Gentoo it boots.
If compiled by LFS it can't read the partition.

Of course modules are not installed when compiled in Gentoo,
but the system boots ok.

I have knoppix, debian, suse and many other distributitions.
I have compiled kernels for most it not all of them. Never seen
this problem.
 
Old 08-02-2003, 06:36 PM   #4
antken
Member
 
Registered: Nov 2000
Posts: 368

Rep: Reputation: Disabled
hummm
sounds all okay

just to make sure do the make menu xconfig and check under file systems to see and make sure you have support for experimental stuff too

could you post the exact message so we can see where it happens on boot ?
 
Old 08-03-2003, 05:34 PM   #5
curtdodds
LQ Newbie
 
Registered: Jul 2003
Location: So. Calif
Distribution: gentoo,RH, mandrake, debian, slackware, lfs, and more.
Posts: 25

Original Poster
Rep: Reputation: 6
Screen messages:
Mounting proc file system [ok]
Mounting root file system in read-only mode [ok]
Checking file systems.....
fsck.ext3: no such file or diretroy while trying to open /dev/hdb10
/dev/hdb10: The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>

File system errors were encountered that couldn't be fixed automatically. This system cannot continue to boot and will therefore be halted until those errors fixed manually by a System Adminstrator.

When you press enter, this system will be halted.
Press enter to Continue.
 
Old 08-03-2003, 07:57 PM   #6
antken
Member
 
Registered: Nov 2000
Posts: 368

Rep: Reputation: Disabled
okay

i think your root filesystem should be mounted in read-write mode and not read-only ( i guess )

use a different kernel and see if the device hdb10 exists ( /dev/hdb10 ) under LFS

i am guessing not
 
Old 08-05-2003, 09:50 PM   #7
curtdodds
LQ Newbie
 
Registered: Jul 2003
Location: So. Calif
Distribution: gentoo,RH, mandrake, debian, slackware, lfs, and more.
Posts: 25

Original Poster
Rep: Reputation: 6
I have discovered that if I add :
append="devfs=nomount"
to lilo.conf, it boots just fine, without any errors.

Everything seems ok, with the exception of ping.
ifconfig shows eth0 and the network to be OK.
When I ping 192.168.0.1 or any address on my network, I get:
>ping: unknown protocol icmp

I doubt any relationship between ping and devfs.

Still no clue why the kernel compiled in Gentoo, and
moved to the lfs partition boots with devfs enabled.

Can anyone shorten my journey to understanding?
 
  


Reply



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
Re-read Partition Table sourceman Linux - General 11 01-10-2008 04:31 AM
Mandrake 10 can't read my partition table... robza Mandriva 3 04-13-2004 11:58 AM
Mandrake 10 install can't read partition table chessh Mandriva 7 03-14-2004 08:35 PM
Knoppix can't read partition table sb73542 Linux - General 1 10-13-2003 09:55 AM
Unable To Re-Read The Partition Table? EMF9 Linux - General 13 12-08-2002 06:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 06:31 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration