LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-04-2010, 03:44 AM   #1
ibelkhayat
LQ Newbie
 
Registered: May 2010
Location: Morocco
Distribution: FEDORA
Posts: 2

Rep: Reputation: 0
Unhappy Can't mount root system from sata dique (usb-storage)


Hello Every body,
I am using LFS 6.3, all packages are successfully build.
I have build vmlinux and modules from .config fedora file.
And added new line for my new distrib in grub file configuration.

where loading an initrd, kernel can't detect my sata disq.

My initrd is like this.
insmod usb-storage.
mount -v -t ext4 /dev/sda4 /new_dir don't work.

And just later in console i see sda, sda1,sda2,sda3

Do you have a solution for my probléme.
Thank you.
 
Old 05-04-2010, 03:59 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

If I understand correctly you successfully build LFS 6.3 and are having trouble with the kernel part.

You mention using fedora's .config (and kernel??) when building the LFS kernel. That might not be a good idea. Use the kernel that comes with LFS 6.3.

I do not understand the initrd part. LFS does not use this mechanism (there is an old LFS hint about it initrd for LFS [2004!!]).

Could you tell a bit more about what you did?

Hope this helps.
 
Old 05-05-2010, 02:28 AM   #3
ibelkhayat
LQ Newbie
 
Registered: May 2010
Location: Morocco
Distribution: FEDORA
Posts: 2

Original Poster
Rep: Reputation: 0
Smile

Hi,

Thank you, As you wrote, LFS does not use mechanism of initrd, but without initrd i have a kernel panic, because kernel is not able to mout my root system, can detect my /dev/sda3.

the disc is externe and attached by usb.
This night i've found a solution, using samples in the net,

After this line :
insmod usb-storage
I added sleep 5 to wait 5 sec
And next i use a mount command.
Thank you.
 
Old 05-05-2010, 02:45 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Quote:
Thank you, As you wrote, LFS does not use mechanism of initrd, but without initrd i have a kernel panic, because kernel is not able to mout my root system, can detect my /dev/sda3.
As I stated before: If you are building a LFS system you should use the kernel that comes with LFS. Using a kernel from another distro you will complicate things. You do not need initrd.

Have a good look at the kernel options (make menuconfig) and try to find out what settings are missing/incorrect (I'm assuming you use the LFS kernel).

Quote:
the disc is externe and attached by usb.
If you are building LFS on an external disk, do make sure your bios is able to boot it. The LFS book does assume you build it on a partition on one of your internal harddisk(s).

Hope this helps.
 
  


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
Hardware Requirements for SATA storage system - what's the minimum? jantman Linux - Hardware 2 02-26-2008 08:25 PM
SCSI, SATA, USB storage, hotplug and speed tovis Linux - Hardware 0 10-07-2007 08:36 AM
Need to mount Gateway 840 SATA Storage Enclosure. Thru fstab? bship Linux - Hardware 7 12-12-2005 08:05 AM
USB mass storage broken after switch to native SATA dbertolo Linux - Hardware 3 09-03-2004 04:12 PM

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

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