LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-10-2006, 03:51 PM   #1
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,209

Rep: Reputation: 55
First attempt at new kernel VFS cannot open root device


My first attempt build a new kernel. I follwed all the advice hereabouts for building and installing the new 2.6 kernel.

But on booting up I get

VFS cannot open root device "sdb1" or unknown - block(0,)
Please append a correct "root"=
Kernel panic - not syncing

The 2.4 kernel is fine if I select it

This is the relevant bit of grub menu.lst

title SlackwareLinux (on /dev/sdb1)
root (hd1,0)
kernel /boot/vmlinuz-custom-2.6.16.9 root=/dev/sdb1 ro
savedefault
boot

title SlackwareLinux-2.4 (on /dev/sdb1)
root (hd1,0)
kernel /boot/vmlinuz root=/dev/sdb1 ro
savedefault
boot

title SlackwareLinux-2.4 (on /dev/sdb1)
root (hd1,0)
kernel /boot/vmlinuz root=/dev/sdb1 ro
savedefault
boot

This is fstab
/dev/sdb2 swap swap defaults 0 0
/dev/sdb1 / ext3 defaults 1 1
/dev/sda2 /mnt/windows ntfs ro 1 0
/dev/sdb3 /mnt/kubuntu ext3 user,noauto 0 0
/dev/sdb5 /mnt/winlin vfat user,umask=0 0 0
/dev/sdb6 /mnt/winback vfat user,umask=0 0 0
/dev/sdc1 /mnt/flash1 vfat user,noauto,umask=0 0 0
/dev/sdd1 /mnt/flash2 vfat user,noauto,umask=0 0 0
/dev/hda /mnt/cdrom iso9660 user,noauto,rw 0 0
/dev/fd0 /mnt/floppy vfat user,noauto 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

Any ideas?
 
Old 05-10-2006, 03:53 PM   #2
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 65
You need to be sure that the fs for '/' is compiled in the kernel, not as a module.
 
Old 05-10-2006, 04:03 PM   #3
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,209

Original Poster
Rep: Reputation: 55
It is in the kernel.

In fact I just copied over the old .config from the 2.4 tree and the only change I made was to select the opteron processor
 
Old 05-10-2006, 04:05 PM   #4
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 65
Quote:
Originally Posted by arubin
It is in the kernel.

In fact I just copied over the old .config from the 2.4 tree and the only change I made was to select the opteron processor
CANNOT DO THAT.

Must get/make a config for the 2.6 kernel. Different beasts.

Just "make menuconfig" or "make xconfig", and make a new config file
 
Old 05-10-2006, 04:15 PM   #5
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,209

Original Poster
Rep: Reputation: 55
Sorry. I did not make myself clear. I copied over .config then ran make menuconfig
 
Old 05-10-2006, 04:19 PM   #6
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,781
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
The other usual cause for this is that you didn't compile in support for your hard disk drive (usually IDE support). Find out what IDE controller you use and make sure it is supported in Device Drivers > ATA/ATAPI/MFM/RLL. Or make sure the generic support is enabled.
 
Old 05-10-2006, 04:38 PM   #7
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,209

Original Poster
Rep: Reputation: 55
Well I have SATA drives. Could that be the problem? SCSI disk support is in. Low level drives are as modules. My 2.4 kernel is the sata.s installlation kernel.
 
Old 05-10-2006, 04:55 PM   #8
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,209

Original Poster
Rep: Reputation: 55
I have a result - of sorts

I added low level NVidia sata support and I have managed to boot to the command line.

The problem now is that the usb keyboard and mouse are not working. I presume this means back to menuconfig?
 
Old 05-11-2006, 07:04 AM   #9
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,781
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Yeah, that sounds like you didn't include USB support for Human Interface Devices. It is in the top level of the USB tree.
 
Old 05-11-2006, 04:07 PM   #10
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,209

Original Poster
Rep: Reputation: 55
Thumbs up

Thanks to everyone that has helped me with this.

I had two more problems:

Compiling the NVidia driver. Searching LQ revealed that this needed patching.
Lack of sound. I had to compile ALSA into the kernel.

It is now working.

One more question. During this testing phase everytime I wanted to switch from 2.4 to 2.6 I had to re-install the nvidia drivers. Is there anyway of having the two sets co-existing on the system. Installin one lot uninstalls the others.
 
  


Reply

Tags
kernel


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Trouble: VFS: Cannot open root device Optimistic Debian 2 09-19-2005 02:41 PM
New kernel - VFS: Cannot open root device "301" or unknown block(3,1) j0y Debian 2 04-30-2005 09:14 PM
Kernel Panic - VFS unable to open root device JcB Slackware 17 10-30-2004 11:27 AM
Kernel Panic:VFS: Cannot open root device "hda3" or 00:10 shivendnrab Linux - General 1 07-01-2004 03:08 AM
VFS: Cannot open root device Mamour Linux - Software 8 04-20-2004 01:21 PM


All times are GMT -5. The time now is 10:41 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration