Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've successfully gotten my PC to give me the choice between booting Win XP Pro or Knoppix 4.0 with with the Window's NTLOADER, and Win XP boots successfully. But when I try to boot Knoppix I get a "kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,2)".
I've searched around and found some people with the same problem and have resolved the issue. But it may as well have been in a foreign language... I either didn't understand what they were saying or it didn't fix the problem.
Can someone please give me some stuff to try and dumb it down enough so that I can follow it. Be as detailed as possible (assume I know nothing... I practically do).
"Unable to mount root fs on unknown-block(3,2)" This is not a kernel panic, it is an error from the boot loader. The boot loader needs to know where to boot from.
Is your Knoppix on the fourth hard drive, third partition? The block should be where /boot resides, the numbers are referenced from zero, so (0,0) would be first hard drive, first partition. Well, that is how grub see it.
Last edited by TexasDevilDog; 10-08-2005 at 02:08 PM.
No, the first partition on the first hard drive is linux swap and the second is knoppix itself, followed by Win XP on the third partition. NTLOADER boots grub from the knoppix root partition (i.e. NTLOADER loads C:\bootsect.lnx which loads GRUB and provides the "knoppix" boot menu).
I don't remember exactly what the grub configuration looks like, the first line is something along the lines of "boot hd0,1" and the second line is "kernel root=/dev/hda2" plus all the "other stuff". I don't know if that's exactly right, but the point is that it's pointing to the right hard drive and partition... so why I'm getting "unknown-block(3,2)", I don't know.
I have never messed with NT loader, but block appears to mean a block device, like a hard drive. If it is like grub, (3,2) = 4th HD, 3rd partition. I would look at the setting of the NT loader and find something that looks like "block (3,2) and change it to, (0,1) which is 1st HD, 2nd partition, which is where you said Knoppix was at. I would set the linux boot to have the correct infomation you need.
First line of grub should be -> root (hd0,1)
For future reference, a swap partition is placed at the end of the drive or the last partition, due to the slow latency of the outside of the disk. The swap doesn't need to be responsive, but loading data and files for programs is more important and is placed first in partition order.
Last edited by TexasDevilDog; 10-08-2005 at 03:58 PM.
title Windows 2K/XP/2003 (hda3)
chainloader (hd0,2)+1
NT Loader just chainloads (sorry if I'm not using the proper terminology) grub, which is located in the knoppix root partition instead of in the MBR. Once I choose knoppix from the first boot screen, it loads grub and gives me all of the choices listed above. Only after I select one of those do I get the "kernel panic" message. And each of those point to hd0,1. Is there somewhere else I should be looking?
Where is the rest of the name of the kernel and initial ram disk? You can find the names of them by editing the line. If you erase everything back until it says kernel /boot and then press <tab> grub will then display the possible choices. The same for the initrd line.
Last edited by TexasDevilDog; 10-08-2005 at 05:52 PM.
The two vmlinuz files are vmlinuz and vmlinuz-2.6.12, and the same for initrd... initrd.img and initrd.img-2.6.12.
I get the same error regardless of which ones I use. And the same thing regardless of whether or not I delete all of the extra "boot options" after /boot/vmlinuz
I still think you maybe point to the wrong partition. If not, then you will need to check the file system.
Can you give me the results from /sbin/fdisk -l ?
And df command?
Last edited by TexasDevilDog; 10-08-2005 at 06:54 PM.
Originally posted by sina94 All I got when I ran fsck was "fsck 1.38 (30-Jun-2005)" and I'm assuming that there's supposed to be more to it than that.
And was this:
...in reference to something I said?
The logger statement: I orginally posted about checking your log file, but later I thought that the logger thread in the kernel was probably not running yet, because it never loads the kernel. The log file is located at /var/logs/messages
The /sbin/fsck should syntax like this
Code:
[root@localhost Richard]# /sbin/fsck
fsck 1.37 (21-Mar-2005)
e2fsck 1.37 (21-Mar-2005)
/dev/hdc2 is mounted.
WARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.
Do you really want to continue (y/n)? no
check aborted.
e2fsck 1.37 (21-Mar-2005)
ext2fs_check_if_mount: Permission denied while determining whether /dev/hdc1 is mounted.
/boot: recovering journal
/boot: clean, 32/25272 files, 13202/100768 blocks
[root@localhost Richard]#
Ok, I got errors on the first and third partitions because the first is my swap and the third is my NTFS partition for Windows... here's what I got for the second one:
Code:
fsck 1.38 (30-Jun-2005)
reiserfsck 3.6.19 (2003 www.namesys.com)
*************************************************************
** If you are using the latest reiserfsprogs and it fails **
** please email bug reports to reiserfs-list@namesys.com, **
** providing as much information as possible -- your **
** hardware, kernel, patches, settings, all reiserfsck **
** messages (including version), the reiserfsck logfile, **
** check the syslog file for any related information. **
** If you would like advice on using this program, support **
** is available for $25 at www.namesys.com/support.html. **
*************************************************************
Will read-only check consistency of the filesystem on /dev/hda2
Will put log info to 'stdout'
Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes
******************************************************
* Warning: The dma on your hard drive is turned off. *
* This may really slow down the fsck process. *
******************************************************
###########
reiserfsck --check started at Sat Oct 8 23:21:09 2005
###########
Replaying journal..
Reiserfs journal '/dev/hda2' in blocks [18..8211]: 0 transactions replayed
Checking internal tree..finished
Comparing bitmaps..finished
Checking Semantic tree:
finished
No corruptions found
There are on the filesystem:
Leaves 97214
Internal nodes 608
Directories 26626
Other files 398051
Data block pointers 1653970 (0 of them are zero)
Safe links 0
###########
reiserfsck finished at Sat Oct 8 23:27:54 2005
###########
e2label wouldn't work because none of them are ext2 partitions (at least, that's why I'm assuming it didn't work). I fired up qtparted and it says the the linux-swap and NTFS partition labels are blank and for the reiserfs partion (on which Knoppix resides) the label is "No label" rather than just a blank.
And as a side note: I don't know whether this is important or not, but qtparted shows the status of the NTFS partition is "Active" and the unpartitioned space is "Hidden", but the status of the reiserfs and the linux-swap partitions are blank... right-clicking brings up a "Set active..." option.
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
if everything else fails, you kernel is configure with the root filesystem as a module. Support for the root filesystem needs to be compiled into the kernel, as part of the kernel, not a module. Did you select a root filesystem that is not the default? This is what happens when you do that. Reinstall linux with the default filesystem for root. Typically, in linux, all filesystem support is modular, except the root filesystem. That is compiled into the kernel. Some distros don't catch that you changed from the default, and recompile the kernel. Debian is one that does this correctly.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.