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 - 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-23-2014, 08:26 PM   #16
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097

The Slackware Huge-Kernel config is a good place to start.

After you see how the Slackware kernel operates, you can more or less get a feel of how you can trim down the kernel, keep only the required as module components as such and other things built-into the kernel.

I've had to use a Slackware-Huge kernel config more than a few times to trim and trim and trim down everything until I had a working setup.
 
Old 07-23-2014, 11:14 PM   #17
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836

Original Poster
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
Well, i chrooted and built a kernel based on the slackware huge config, same result. Panic on mounting the root fs.
I'll probably start over again...

This configuration/kernel i tested with qemu (direct boot in vm without bootloader):
Code:
qemu-system-x86_64 -kernel /mnt/lfs/boot/vmlinuz-3.13.3  -append "root=/dev/sdb2 ro"
I don't know.
 
Old 07-23-2014, 11:26 PM   #18
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
It could be a problem with qemu rather than LFS. One reason I avoid using a VM.

I'd start over, and use this formula of a setup:

- create a single partition for /(root) and one for swap
- format /(root) using ext4
- set swap at 4GB maximum (8GB if you're going to be expanding into BLFS heavily)
- Rebuild and follow the book to the letter (no deviations)
- Complete LFS as a book, and import the Rebooting chapter recommended packages and dependencies for OpenSSH, OpenSSL, Wget, Lynx, GPM, and dhclient (you may want wget's SSL certificates as well), and complete at least Chapter 3 of the BLFS book.
- Import the latest Slackware Huge Kernel config and run "make olddefconfig" against it (this will update non-set parameters to the defaults)
- Setup using Grub-2 as the bootloader from the HOST operating system. (most distributions already supply Grub2)

...and it should work.
 
Old 07-24-2014, 12:11 AM   #19
turtleli
Member
 
Registered: Aug 2012
Location: UK
Posts: 206

Rep: Reputation: Disabled
Did you compile the correct SATA driver for your system into the kernel? If you don't know which one is correct then just include them all, you can always recompile the kernel later.

If that doesn't work or doesn't work reliably, then you may also have a device naming issue and you'll need to use an initramfs combined with UUIDs. The BLFS initramfs will do just fine.
 
Old 07-24-2014, 03:06 AM   #20
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
The Huge kernel from Slackware should have all known drivers enabled.
 
Old 07-24-2014, 09:24 AM   #21
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836

Original Poster
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
It can't be a problem with qemu, as i said, the same panic/error happens with everything. From lilo, to grub, grub2, and even syslinux for the bootloader. I used qemu to rule out the bootloader being misconfigured.

Tried editing fstab for sd{a,b}? and all variations in bootloader settings too, so it's not reordering the device names. they shouldn't change with qemu anyway, as it uses whatever the host system sees.
 
Old 07-24-2014, 12:42 PM   #22
turtleli
Member
 
Registered: Aug 2012
Location: UK
Posts: 206

Rep: Reputation: Disabled
And what about the SATA drivers in your kernel? Perhaps you could compare the SATA drivers in your LFS kernel config and your Slackware custom kernel config?
 
Old 07-24-2014, 06:38 PM   #23
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836

Original Poster
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
Quote:
Originally Posted by turtleli View Post
And what about the SATA drivers in your kernel? Perhaps you could compare the SATA drivers in your LFS kernel config and your Slackware custom kernel config?
I ended up compiling a kernel yesterday with the slackware (huge) config as i wrote above, which resulted in the same error when trying to boot. Oddly it made no change as per the kernel panic complaining about 'VFS unable to mount root fs'.
 
Old 07-24-2014, 08:25 PM   #24
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Check your fstab.
 
Old 07-25-2014, 11:46 AM   #25
oblo
Member
 
Registered: May 2014
Location: Rome, Italy
Distribution: LFS 7.6
Posts: 55

Rep: Reputation: Disabled
VM was useful for me (like videos or reading) but honestly i have never been able to install lfs on it, i think it's more difficult.
 
Old 07-26-2014, 08:36 AM   #26
turtleli
Member
 
Registered: Aug 2012
Location: UK
Posts: 206

Rep: Reputation: Disabled
Have you tried using an initramfs combined with UUIDs? As a further debugging step, assuming you use the BLFS initramfs, you could add a /bin/sh line just before the do_mount_root line near the end of the init script so you can analyse /dev and look for all the hard drive related stuff there (/dev/sdxN, /dev/disk/by-uuid/*, etc.) and see if there's anything odd about it.

If that doesn't work and the debugging doesn't show anything peculiar then I'm completely out of ideas.
 
Old 10-16-2014, 10:26 AM   #27
eduardogoncalves
LQ Newbie
 
Registered: Oct 2014
Location: Rondonópolis, MT, Brazil
Distribution: Ubuntu, Debian, Slackware, PfSense
Posts: 3

Rep: Reputation: Disabled
Lightbulb Kernel panic – not syncing: VFS: Unable to mout root fs on unkown-block

For those who have difficulties with Slackware Linux 14.1's post installation on hyper-v and after the system perform the first boot and screen hangs at the following message "Kernel panic – not syncing: VFS: Unable to mout root fs on unkown-block". I made a step by step guide on how to fix this:
http://egoncalves.com.br/slackware/i...em-windows-10/

I hope I have contributed
 
Old 10-18-2014, 01:19 PM   #28
oblo
Member
 
Registered: May 2014
Location: Rome, Italy
Distribution: LFS 7.6
Posts: 55

Rep: Reputation: Disabled
Try grub with this:

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

insmod ext2
set root=(hd8,18)

menuentry "GNU/Linux, Linux 3.13.3-lfs-7.5" {
linux /boot/vmlinuz-3.13.3-lfs-7.5 root=/dev/sdb2 ro raid=noautodetect
}

Last edited by oblo; 10-18-2014 at 07:03 PM.
 
  


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
Kernel panic not syncing vfs unable to mount fs on unknown block? BickWhale Linux - Newbie 6 04-22-2014 04:13 AM
another kernel panic not synching vfs unknown block xcoldfyrex Linux - General 1 05-29-2006 09:07 AM
Kernel panic: VFS: cannot mount root fs on unknown-block headrift Slackware 1 02-07-2006 11:59 AM
Kernel Panic: VFS: Unable to mount root fs on unknown-block(3,65) kpaske Linux - Newbie 1 08-07-2004 12:03 AM
kernel panic VFS: unable to mount root fs on unknown-block (0,0) demmylls Linux - General 2 02-08-2004 10:18 AM

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

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