LinuxQuestions.org
Visit Jeremy's Blog.
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 07-12-2008, 07:05 AM   #1
dracayr
LQ Newbie
 
Registered: May 2008
Posts: 23

Rep: Reputation: 15
Makedev


Hi,

I built the LFS System using book version 6.3, but the Device node creation doesn't work. In chapter 7.4, I found this:

Quote:
Linux systems in general traditionally use a static device creation method, whereby a great many device nodes are created under /dev (sometimes literally thousands of nodes), regardless of whether the corresponding hardware devices actually exist. This is typically done via a MAKEDEV script, which contains a number of calls to the mknod program with the relevant major and minor device numbers for every possible device that might exist in the world.
On the host system, I found a MAKEDEV script. Can I copy that script to the LFS? How do I set it up?

host system is ubuntu hardy

EDIT: the problems with node creation look like this:

Code:
setting the console log-level to 7	[OK]
populating /dev with device nodes	[OK]
Activating al swap files/partitions
swapon: cannot stat /dev/sda2:no such file or direcory	[fail]
Setting system clock			[OK]
mounting root file System in read only mode	[OK]
checking file system
fsck.ext3:no such file or directory while trying to open /dev/sda5	[fail]
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>

failure: ...
that's quite strange because it says it mounted the root filesystems, but not sda5. Yet sda5 IS my root fs

dracayr

Last edited by dracayr; 07-12-2008 at 07:24 AM.
 
Old 07-12-2008, 12:15 PM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
You don't need the MAKEDEV script - and you would need to run it only once anyway.
udev is taking care of creating the devices for you - and this is reflected in the boot-log you gave:
populating /dev with device nodes [OK]

Even the read-only mount of your root is successful according to the messages
Only then errors occur - the problem lies elsewhere I'd think.
Start with a filesystem check - from a live cd or from the system you built LFS from and verify /etc/fstab ...
 
Old 07-13-2008, 11:04 AM   #3
dracayr
LQ Newbie
 
Registered: May 2008
Posts: 23

Original Poster
Rep: Reputation: 15
hi,
thanks for your answer, but I already found the solution: LFS uses the device names hda[1..6], while the host system uses sda[1..6]. I wrote the sda names in the /etc/fstab file, not the hda names...

FINALLY

But I thought S-ATA hard drives are handled as SCSI-drives in Linux and are thus called sda??

dracayr
 
  


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
Makedev strangeslack Slackware 2 09-20-2007 11:05 AM
cannot MAKEDEV video ssfrstlstnm Debian 1 03-19-2006 03:53 PM
Using MAKEDEV with UDEV sausagejohnson Fedora 0 04-26-2005 07:13 PM
MAKEDEV not found cadj *BSD 4 08-28-2004 09:19 PM
makedev watashiwaotaku7 Linux - Software 6 12-30-2002 12:00 AM

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

All times are GMT -5. The time now is 08:13 AM.

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