LinuxQuestions.org
Visit the LQ Articles and Editorials section
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-25-2009, 01:42 AM   #1
farmerdave
Member
 
Registered: Mar 2008
Location: Adelaide, Australia
Distribution: Arch, Slackware 13.37
Posts: 101
Blog Entries: 1

Rep: Reputation: 16
kernel panic-not syncing VFS:unable to mount root fs on unknown-block(8,1)


I realise that this question has been asked before, i think i did a simple thing wrong which has given me the error message.

I had just finished a LFS 6.4 installation (a success!), and had booted into it just fine, and verified my Slackware installation was still ok, which it was. I went to alter my grub menu, just to switch the default number and add a different vga resolution to the kernel lines.

By mistake, i opened /etc/grub/menu.lst (which actually created the file) I realised this was an empty file, so i then opened /boot/grub/menu.lst, did my changes and then rebooted. It was immediately after this that i am stuck. Cannot boot slackware (gives the error message) and get a blank screen trying to boot LFS.

Any suggestions how to fix?
 
Old 09-25-2009, 07:30 PM   #2
mazinoz
Member
 
Registered: Mar 2003
Location: Mansfield Queensland Australia
Distribution: Debian Squeeze. Various live CD's Win7
Posts: 359

Rep: Reputation: 32
Use knoppix CD/DVD to boot or your distros DVD and select 'rescue' mode. Then change menu.lst back to the way it was and boot without CD/DVD.
 
Old 09-25-2009, 07:53 PM   #3
farmerdave
Member
 
Registered: Mar 2008
Location: Adelaide, Australia
Distribution: Arch, Slackware 13.37
Posts: 101
Blog Entries: 1

Original Poster
Rep: Reputation: 16
Thanks mazinoz, would you agree that my mistake with the menu.lst file is the actual cause?
 
Old 09-25-2009, 09:58 PM   #4
mazinoz
Member
 
Registered: Mar 2003
Location: Mansfield Queensland Australia
Distribution: Debian Squeeze. Various live CD's Win7
Posts: 359

Rep: Reputation: 32
Almost certainly.
 
Old 09-26-2009, 03:32 AM   #5
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Rep: Reputation: 55
just give the output of following command as root
Code:
fdisk -l
and specify which partition contains which OS.also post the contents of /boot/grub/menu.lst
 
Old 10-04-2009, 04:18 AM   #6
farmerdave
Member
 
Registered: Mar 2008
Location: Adelaide, Australia
Distribution: Arch, Slackware 13.37
Posts: 101
Blog Entries: 1

Original Poster
Rep: Reputation: 16
Quote:
sudo fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x5e0aec4d

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1245 10000431 83 Linux
/dev/sda2 9606 9729 996030 82 Linux swap / Solaris
/dev/sda3 1246 5689 35696430 83 Linux
/dev/sda4 5690 9605 31455270 83 Linux

Partition table entries are not in disk order
LFS is on /dev/sda4
Slackware is on /dev/sda1 with its home partition on /dev/sda3
 
Old 10-04-2009, 04:20 AM   #7
farmerdave
Member
 
Registered: Mar 2008
Location: Adelaide, Australia
Distribution: Arch, Slackware 13.37
Posts: 101
Blog Entries: 1

Original Poster
Rep: Reputation: 16
Quote:
# Begin /boot/grub/menu.lst

# By default boot the first menu entry
default 1

# Allow 10 seconds before booting the default
timeout 10

# Use colours
color green/black light-green/black

# The first entry is for LFS
title LFS 6.4
root (hd0,3)
kernel /boot/lfskernel-2.6.27.4 root=/dev/sda4 vga=773
title Slackware
root (hd0,0)
kernel /boot/vmlinuz root=/dev/sda1 vga=773
Here is /boot/grub/menu.lst
 
Old 10-04-2009, 04:28 AM   #8
farmerdave
Member
 
Registered: Mar 2008
Location: Adelaide, Australia
Distribution: Arch, Slackware 13.37
Posts: 101
Blog Entries: 1

Original Poster
Rep: Reputation: 16
I have tried to chroot back into the lfs environment and create the link
Code:
ln -sv /boot/grub/menu.lst /etc/grub
but when i try and reboot, i get the same error. Then, when using a live cd to work from, it says the link is broken.
 
Old 10-04-2009, 06:46 AM   #9
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Rep: Reputation: 55
try reinstalling grub by chrooting into slackware..
 
Old 10-05-2009, 06:21 AM   #10
farmerdave
Member
 
Registered: Mar 2008
Location: Adelaide, Australia
Distribution: Arch, Slackware 13.37
Posts: 101
Blog Entries: 1

Original Poster
Rep: Reputation: 16
That solved it, Thanks!
 
Old 11-21-2009, 08:23 PM   #11
AllShk
LQ Newbie
 
Registered: Nov 2009
Posts: 13

Rep: Reputation: 0
Question Kernel panic - not syncing : VFS: unable to mount root FS on unknown-block (0,3)

Hey guys...
I've got a similar problem with ubuntu 9
but the only thing i did was update some files using the update manager
i was trying to make the wireless network works too and i've activated a driver
then when i was closing the applications to restart the system it crashed.
the screen got black and i couldn't move the pointer
when i restart the pc i got that error message =/
does anybody knows what happened and what i have to do to fix it?
any help will be much appreciated

thanks
 
  


Reply


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 panic - not syncing : VFS: unable to mount root FS on unknown-block Dankles Slackware 23 01-28-2011 03:01 AM
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1) anjanesh Ubuntu 9 01-27-2011 12:00 PM
Kernel panic - not syncing:VFS: Unable to mount root fs on unknown-block (1,0) Zenx Linux - Kernel 12 08-04-2010 05:33 AM
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,1) sorav Linux - Newbie 0 09-26-2008 12:58 AM
kernel panic - not syncing : VFS: unable to mount root FS on unknown-block kaplis Linux - Software 1 09-19-2006 01:44 AM


All times are GMT -5. The time now is 01:00 PM.

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