LinuxQuestions.org
Help answer threads with 0 replies.
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 06-01-2008, 09:46 AM   #1
dracayr
LQ Newbie
 
Registered: May 2008
Posts: 23

Rep: Reputation: 15
first boot


hi,

I (almost) finished the book, all that remains is booting. When I try to boot the LFS, it sais:

fsck.ext3:no such file or directory while trying to open /dev/sda5

so I thought I could copy the device files from the host System. The problem is, I have
Code:
dd if=/dev/sda of=$LFS/dev/sda
running for over an hour now, and nothing happens, except that conky monitors a high disk io. Is there another possibility to obtain the device files?

dracayr
 
Old 06-01-2008, 09:51 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
That command does not look like it is copying device files.....It is copying the entire contents of /dev/sda to $LFS/dev/sda. Without knowing the contents of the variable $LFS, it's hard to know exactly what is happening.
 
Old 06-01-2008, 10:21 AM   #3
dracayr
LQ Newbie
 
Registered: May 2008
Posts: 23

Original Poster
Rep: Reputation: 15
the command has terminated now (and it did copy the file). I am repeating the procedure now with the rest of the sda's

As this is the linux from scratch forum, $LFS is the path to the partition where the lfs is built

Edit: I guess you were right. /dev/sda worked fine, but when I try /dev/sda5, my partition slowly fills itself. But how do I get the files then?

dracayr

Last edited by dracayr; 06-01-2008 at 10:44 AM.
 
Old 06-02-2008, 07:03 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I am not clear on what you are trying to do. Your original post included this error message:
Quote:
fsck.ext3:no such file or directory while trying to open /dev/sda5
That would not be fixed by copying files from the /dev directory.

Where in the boot sequence did you get this message?
 
Old 06-02-2008, 07:26 AM   #5
dracayr
LQ Newbie
 
Registered: May 2008
Posts: 23

Original Poster
Rep: Reputation: 15
I'm on a different computer right now, but I'll say as much as I remember. This is about what I can see when the error occurs (before it goes too fast to read):

EDIT: Ok, changed it now to the actual values

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; 06-02-2008 at 09:20 AM.
 
  


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
Boot Camp (fixing boot loaders, learning your way around boot & chainloaders) Siljrath Linux - General 8 01-20-2015 11:00 AM
When I boot my comp. (dual boot sys-Suse 10.1 & Win XP) the first boot stalls. philip niedermeyer Linux - Desktop 5 11-13-2006 06:04 PM
Kind souls: help getting Mandriva install 2 boot? edit boot.ini/grub /boot device or NoMoreReinstallMS Linux - Newbie 1 08-09-2006 04:34 AM
GRUB: How to boot WinXP (NTLDR, NTDETECT.COM & BOOT.INI) from boot partition (EXT2) ? Rayen16 Linux - Software 1 05-25-2006 12:09 PM
failed features: boot.shm boot.loadmodules boot.swap cccc SUSE / openSUSE 1 08-08-2005 07:23 AM

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

All times are GMT -5. The time now is 08:31 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