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 09-26-2017, 02:11 PM   #1
challengersky
LQ Newbie
 
Registered: Sep 2017
Location: SoCal
Distribution: Linux from Scratch (Debian / Ubuntu)
Posts: 15

Rep: Reputation: Disabled
Question lfs-8.1 kernel panic VFS can't mount root on "sda1" shown available partitions none.


Hello all,

I'm beyond stumped. I've built the kernel more times than I can count. (LFS-8.1). I have tried the book, then 'oldconfig', 'localyesconfig', 'defconfig', tried copying the running kernel .config. I've run lsmod, lspci. The kernel builds just fine each time. My issue is the exact same Kernel Panic each time, nothing changes it. I've read through all the 'kernel panic' threads and tried many different things.

System: Diamond Systems Helix SBC, "DMP Vortex86DX3 SoC".

Here's 5 attachments of screen shots of my booting system. Below is the output of lspci and lsmod and grub.cfg.

Any help with this is greatly appreciated.

lsmod-----
00:00.0 Host bridge: RDC Semiconductor, Inc. Device 6023 (rev 02)
00:01.0 PCI bridge: RDC Semiconductor, Inc. Device 1031 (rev 01)
00:02.0 PCI bridge: RDC Semiconductor, Inc. Device 1031 (rev 01)
00:07.0 ISA bridge: RDC Semiconductor, Inc. Device 6035 (rev 01)
00:07.1 ISA bridge: RDC Semiconductor, Inc. Device 6035 (rev 01)
00:08.0 Ethernet controller: RDC Semiconductor, Inc. R6040 MAC Controller
00:0a.0 USB controller: RDC Semiconductor, Inc. R6060 USB 1.1 Controller (rev 14)
00:0a.1 USB controller: RDC Semiconductor, Inc. R6061 USB 2.0 Controller (rev 08)
00:0c.0 IDE interface: RDC Semiconductor, Inc. Device 1012 (rev 02)
00:0d.0 VGA compatible controller: RDC Semiconductor, Inc. Device 2015
00:0e.0 Audio device: RDC Semiconductor, Inc. Device 3010 (rev 01)
00:10.0 Unassigned class [ffff]: RDC Semiconductor, Inc. Device 1330
00:10.2 Unassigned class [ffff]: RDC Semiconductor, Inc. Device 1710
01:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)
02:00.0 IDE interface: ASMedia Technology Inc. ASM1061 SATA IDE Controller (rev 02)

lspci------
Module Size Used by
snd_hda_codec_realtek 174313 1
snd_hda_intel 32719 4
snd_hda_codec 109562 2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 13276 1 snd_hda_codec
snd_pcm 80916 2 snd_hda_intel,snd_hda_codec
snd_seq_midi 13132 0
snd_rawmidi 25424 1 snd_seq_midi
snd_seq_midi_event 14475 1 snd_seq_midi
snd_seq 51592 2 snd_seq_midi,snd_seq_midi_event
snd_timer 28931 2 snd_pcm,snd_seq
snd_seq_device 14172 3 snd_seq_midi,snd_rawmidi,snd_seq
snd 62218 17 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,sn d_seq_device
soundcore 14635 1 snd
serio_raw 13027 0
snd_page_alloc 14115 2 snd_hda_intel,snd_pcm
rfcomm 38139 4
bnep 17830 2
parport_pc 32114 0
bluetooth 158447 10 rfcomm,bnep
ppdev 12849 0
mac_hid 13077 0
shpchp 32265 0
lp 17455 0
parport 40930 3 parport_pc,ppdev,lp
usb_storage 39646 2
usbhid 41937 0
hid 81731 1 usbhid
pata_rdc 12926 0
r6040 17782 0

grub.cfg---------
# Begin /boot/grub/grub.cfg
set default=0
set timeout=5

insmod ext2
set root=(hd0,1)

menuentry "GNU/Linux, Linux 3.2.1-lfs-8.1" {
linux /boot/vmlinuz-3.2.1-lfs-8.1 root=/dev/sda1 ro
}
Attached Thumbnails
Click image for larger version

Name:	2Untitled.jpg
Views:	92
Size:	63.3 KB
ID:	25972   Click image for larger version

Name:	3Untitled.jpg
Views:	58
Size:	68.1 KB
ID:	25973   Click image for larger version

Name:	4Untitled.jpg
Views:	52
Size:	68.0 KB
ID:	25974   Click image for larger version

Name:	5Untitled.jpg
Views:	50
Size:	69.8 KB
ID:	25975   Click image for larger version

Name:	6Untitled.jpg
Views:	85
Size:	60.5 KB
ID:	25976  

 
Old 09-26-2017, 02:34 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Your SATA controller seems to be in IDE mode. Shouldn't be.
Anyhow, the only important piece of information is the (0,0) after kernel panic. This tells us your kernel is unable to access the hard drive. You should put your controller in AHCI mode and then enable the AHCI driver in kernel. Furthermore you need the partition table support and root filesystem support enabled in kernel as <*>, not as <M>.
 
Old 09-26-2017, 02:47 PM   #3
challengersky
LQ Newbie
 
Registered: Sep 2017
Location: SoCal
Distribution: Linux from Scratch (Debian / Ubuntu)
Posts: 15

Original Poster
Rep: Reputation: Disabled
Emerson,

Ok, I'll check that. I don't have any kernel options selected as <M>, they are all <*>. The lsmod / lspci is from the system running Xubuntu.

Thanks.
 
Old 09-26-2017, 04:27 PM   #4
challengersky
LQ Newbie
 
Registered: Sep 2017
Location: SoCal
Distribution: Linux from Scratch (Debian / Ubuntu)
Posts: 15

Original Poster
Rep: Reputation: Disabled
Emerson,

My system has a funky BIOS and chipset I guess. It doesn't support AHCI, it is IDE only. It will boot from a SATA DOM, it will boot from CD/DVD and USB. As well as from an external mSATA drive when the SATA DOM is removed and a jumper for 5VDC changed.

There's only IDE settings in the BIOS.

So I'm not exactly sure then what I need to configure in the kernel to get this to work.

Any other ideas? I'm stubborn and want to figure this out.
 
Old 09-26-2017, 04:43 PM   #5
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Than you need to enable PATA drivers in kernel and use piix4 or whatever it shows when booted into Linux.
Code:
lspci -k
 
Old 09-27-2017, 10:41 AM   #6
challengersky
LQ Newbie
 
Registered: Sep 2017
Location: SoCal
Distribution: Linux from Scratch (Debian / Ubuntu)
Posts: 15

Original Poster
Rep: Reputation: Disabled
Hi Emerson,

I got it to boot today, albeit not all the way, but past this problem. Thanks for the help. I hand edited the .config file (done this for years / I actually prefer it over the menuconfig), turned off AHCI and turned on all IDE and SATA.

The boot this morning stopped when fsck.ext4 failed, can't find the file. Disk has errors which couldn't be auto-fixed. So I'm working on this.

Thanks for your help and suggestions, they really helped.
 
Old 09-27-2017, 10:58 AM   #7
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Not good. First, you should not edit the .config by hand, there are dependencies in the kernel config and you are breaking them by manual edit. Second, IDE code is deprecated, it should not be used (don't know why it is not removed from kernel). There are PATA drivers to use with IDE devices. Third, cluttering your kernel with all possible drivers is not the idea of a nice clean and lean custom kernel.

Tip: use make nconfig
 
Old 09-27-2017, 11:18 AM   #8
challengersky
LQ Newbie
 
Registered: Sep 2017
Location: SoCal
Distribution: Linux from Scratch (Debian / Ubuntu)
Posts: 15

Original Poster
Rep: Reputation: Disabled
Hi Emerson,

Boots perfectly now, no errors. Nice and fast too.
 
  


Reply

Tags
kernel, kernel panic, lspci, root



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
LFS error: boot lfs, Kernel panic -not syncing:VFS unable to mount root fs on unknown-block(0,0) XinyuLi Linux From Scratch 4 05-16-2017 01:17 AM
[SOLVED] "Kernel panic" :VFS: Unable to mount root fs on 08:05" rsol4747 Slackware 7 04-20-2011 05:34 AM
LFS 6.3 Kernel panic - not syncing:VFS: Unable to mount root fs on unknown-block(2,0) wyylling Linux From Scratch 4 09-24-2008 03:15 PM
"Kernel panic: VFS: Unable to mount root fs" - Kernel fails to boot linux Freedom Seeker Linux - General 11 11-12-2006 07:48 PM
error:"kernel panic: VFS: Unable to mount root fs":-( shyguy Linux - Newbie 1 07-23-2001 04:03 PM

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

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