LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-28-2009, 05:58 AM   #1
Couling
Member
 
Registered: Oct 2007
Posts: 30

Rep: Reputation: 15
How to find which drivers - configure kernel to boot off a USB stick without initrd


As a learning exercise I'm trying to build a really simple Linux system. (Grub, kernel, bash [static build]) on a usb stick (unbranded).

I'm having a lot of trouble configuring a kernel that will boot. Every time I get:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

According to what I've already read this is telling me that it cant read the root file system, probably because it doesn't have the right drivers.

If I take an ubuntu kernel and initrd everything works fine, but it needs the initrd otherwise it has the same problem.

How do I find which drivers are missing, or which drivers ubuntu is using to access the device?

Thanks for your time.
 
Old 10-28-2009, 11:48 AM   #2
hurry_hui
Member
 
Registered: Oct 2008
Location: Near Jakarta
Distribution: Slackware, Arch, Slax, Porteus, Tiny Core, Slitaz
Posts: 355
Blog Entries: 1

Rep: Reputation: 52
When configuring kernel for USB pay attention to this section:

USB Host Controller Drivers. This covers module UHCI, OHCI EHCI.

You might also want to enable SCSI (SATA_AHCI), USB Storage as well as Block Devices (i.e., for SD/MMC support)

CMIIW

Last edited by hurry_hui; 10-28-2009 at 11:53 AM.
 
Old 10-28-2009, 07:17 PM   #3
Couling
Member
 
Registered: Oct 2007
Posts: 30

Original Poster
Rep: Reputation: 15
Okay, tried all of those, still have the same problem. Have also tried turning on pretty much everything SATA, USB and SD. Is there a way to take a device (say /dev/sdd) and in some way back-track to find which drivers its using?

Last edited by Couling; 10-28-2009 at 07:21 PM.
 
Old 10-30-2009, 01:10 AM   #4
hurry_hui
Member
 
Registered: Oct 2008
Location: Near Jakarta
Distribution: Slackware, Arch, Slax, Porteus, Tiny Core, Slitaz
Posts: 355
Blog Entries: 1

Rep: Reputation: 52
You can check dmesg or syslog; you might get one from running LiveCD. When I first configured my kernel, I compared some distros in detecting my devices by looking at dmesg and syslog.

ATM, my dmesg shows scsi0 and scsi1 load ata_piix (this is because I use Intel machine) while sr and sd load scsi generic, and scsi CD-ROM.

You can also check available controllers such as USB UHCI, USB2 EHCI, SATA IDE, from the machine via 'lspci'

HTH
 
Old 10-30-2009, 09:04 PM   #5
ssenuta
Member
 
Registered: Mar 2006
Location: NYS
Distribution: Mandriva-2006
Posts: 123

Rep: Reputation: 16
Most usb-stick are a single type 06 partition formated vfat (fat16 fat32) & to boot them you must have the vfat driver built into your kernel. To check this try mounting your usb-stick & once mounted run the "df -T" command to display the filesystem type.

mount -t vfat /dev/sdd1 /mnt/misc
--or--
mount -t auto /dev/sdd1 /mnt/misc
df -T

Of course you can always repartition your usb-stick to a Linux type 83 partition & then format it to ext3 if you already have ext3 built into your kernel. But, regardless the filesystem format you have on your usb-stick must have a driver built into the kernel or you are forced to pre-load that driver via an initrd.

I hope this helps & good luck.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB boot; Could not find kernel dwives Linux - Newbie 12 09-22-2009 06:46 AM
joy stick / USB controller drivers? Levethix Linux - Software 3 03-12-2008 09:12 PM
Can't find where the usb stick is?? mustangfanatic01 Slackware 2 03-15-2006 05:02 AM
Where to find initrd .img and kernel parameter satimis Linux From Scratch 10 08-06-2005 04:23 AM
cant find usb memory stick in mandrake ziegen Linux - Hardware 3 04-05-2004 09:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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