Dear all
i get following error when booted to my new kernel OS Redhat 9
VFS: Mounted root ( ext3 filesystem ) readonly
i compiled ext3 buildin kernel
what i am missing
thanks and regards
全部博文(132)
分类:
2009-06-08 18:49:02
Dear all
i get following error when booted to my new kernel OS Redhat 9
VFS: Mounted root ( ext3 filesystem ) readonly
i compiled ext3 buildin kernel
what i am missing
thanks and regards
i have this options enabled in .config file
#
# File systems
#
CONFIG_EXT2_FS=y
# CONFIG_EXT2_FS_XATTR is not set
CONFIG_EXT3_FS=y
# CONFIG_EXT3_FS_XATTR is not set
CONFIG_JBD=y
# CONFIG_JBD_DEBUG is not set
CONFIG_REISERFS_FS=y
# CONFIG_REISERFS_CHECK is not set
# CONFIG_REISERFS_PROC_INFO is not set
# CONFIG_JFS_FS is not set
# CONFIG_XFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_ROMFS_FS is not set
# CONFIG_QUOTA is not set
# CONFIG_AUTOFS_FS is not set
CONFIG_AUTOFS4_FS=y
This is not an error. It is the correct behaviour during startup. It does the following steps:
The mesage you see is from step 1. Later on in the statup you will see messages like:
Checking root filesystem
Remounting root filesystem in read-write mode
|
Re: VFS: Mounted root (ext3 filesystem) readonly. | #2 |
|
---|---|---|---|
Professional Board Member
Joined: 2005/8/5
From Northern Illinois, USA
Posts: 3252
|
It is standard practice to mount / as read-only.
Once everything checks out ok, it is remounted RW. Three possibilities. 1. You are booting single user. 2. You have a file system that is in need of an fsck. 3. You have something wrong with your customized kernel. |
||
|
|||
Posted on: 2008/9/15 14:25
|
|
Re: VFS: Mounted root (ext3 filesystem) readonly. | #3 |
|
---|---|---|---|
Newbie
Joined: 2008/9/14
From
Posts: 2
|
Quote:
1. Is there a way to change the read permissions if I'm in single user mode? 2. How do I run an fsck once I'm in single user mode? I'm hoping that the customized kernel is fine. I only have the kernel image. |
||
|
|||
Posted on: 2008/9/15 18:42
|
|
Re: VFS: Mounted root (ext3 filesystem) readonly. | #4 |
|
---|---|---|---|
Professional Board Member
Joined: 2005/8/5
From Northern Illinois, USA
Posts: 3252
|
If the fs is Read-only, just run fsck on it. As to remounting R/W, you use the remount,rw options to mount. man mount |
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ to get rid of this advertisement] Hello!
I executed the following steps: 1) Download kernel 2.6.16 (FC5's 2.6.16-1.2122) from the . 2) Unzip source-RPM, etc... 3) Configure with 'make gconfig' (). 4) make, make modules, make install, make modules_install. Everything seemed to work fine, and I was happy with my configuration. But then, when I booted the new kernel, I got the infamous message saying "Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)". I've googled this message maybe a 100 times, and looked through this very forum. Many solutions were suggested, but none helped me. I think I compiled this kernel about 15 times... First, most of the solutions are distribution-specific, and do not help me with Fedora Core 5. Second, almost all of the people who had this problem use lilo, and had some mistake with the lilo configuration. I use grub, and beside the fact that I let 'make install' configure it for me (which usually works perfectly on FC), I checked, double checked and triple checked the grub configuration file. If this is not enough , . The second kernel (Fedora Core (2.6.16-1.2133_FC5)) is my default kernel, I didn't compile it but rather installed it from RPM, and it works perfectly. More information I can think of: 1) My Linux drive is regular IDE hard-drive, it's dev is /dev/hdb (I think /boot is /dev/hdb1 and / is /dev/hdb2). Linux (FC3, to be exact) partitioned it. 2) Both /boot and / are ext3 (see kernel .config file above for detail about my configuration - ext3 is compiled into the kernel). 3) mkinitrd works fine. I even tried to create a new initrd file instead of the one that 'make install' creates - just in case... It had the same problem. 4) I have gcc 4.1.1. I've had problems in the past with programs that require gcc 3.x and are compiled with gcc 4.x. Can this possibly be a cause of trouble with the kernel? Though this seems almost impossible, I have to point this out... 5) When booting, I received no further error messages beside the kernel panic. I saw in several places references to other error messages (such as "Replace root= line" or similar), but I received none. 6) This is the first time I'm compiling a kernel, so it is possible that I made some kind of mistake with the configuration... This is why I gave a link to it above. If there is any more information you need in order to understand this problem, I'd be happy to submit. Thank you very very much! O.R. |
||
06-27-2006, 09:16 AM | # | |
Senior Member
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 2,601
Thanked: 30
|
Here's an explanation of the problem, step by step:
"Kernel panic - " The has reached a point where it is unable to continue; it has no choice but to halt. "- not syncing" "The good news is, I wasn't in the middle of trying to write un-saved changes to disk when I died." Linux tries to do this ("to sync the filesystem") just before it halts, and it's telling you .. albeit in a backwards sort of way .. that it succeeded in doing that. "Unable to mount root filesystem" One of the first things that the kernel must do is to "mount" (make available) the "root" (that is, "/") file . It could not do that. "On unknown block(0,0)" This is the device-number (0) and the partition-number (0) of the device where the kernel expects the root filesystem to be. Probable causes: (in order)
|
|
06-27-2006, 01:02 PM | # | |||
Member
Registered: Jun 2006
Distribution: Fedora 9 (kernel 2.6.26)
Posts: 42
Thanked: 0
Original Poster |
sundialsvcs:
First of all, thank you. But (there's always a but, huh?)... Here is the configuration (from the previously linked menu.lst - grub configuration) for: A) My default, working, kernel: Quote:
Quote:
|
|||
06-29-2006, 09:51 AM | # | |
Member
Registered: Jun 2006
Distribution: Fedora 9 (kernel 2.6.26)
Posts: 42
Thanked: 0
Original Poster |
Any other ideas? Please???
I've tried using the other kernel's initrd file, I changed the "/dev/VolGroup00/LogVol00" to "/dev/hdb2" (which is my root filesystem), I don't know what else I can do..! Any ideas? Thank you, O.R. |
|
06-29-2006, 10:25 AM | # | |
LQ Newbie
Registered: May 2006
Location: Lexington, KY
Distribution: slackware
Posts: 7
Thanked: 0
|
What
kind of hard drive you have. You sure you have the required drivers
compiled in? If still it doesn't work - boot up the working kernel, run
dmesg, compare the section where it's mounting '/' with the
corresponding section just before the panic msg with the new kernel.
Hope that helps. |
|
06-29-2006, 03:16 PM | # | |
Member
Registered: May 2004
Location: Vancouver, WA
Distribution: Slackware, Zenwalk
Posts: 104
Thanked: 0
|
I'm having the same types of issues that I'm reading about in various posts here.
When I boot up with 2.4.31 (default Slackware 10.2) and run "dmesg | grep vfs" I see: "VFS: Mounted root (ext3 filesystem) readonly." Is there a better phrase to look for there? I've made sure the compile ext3 into the kernel (3 times) but it has changed nothing. Any more ideas on this matter? |
|
06-29-2006, 04:02 PM | # | |
LQ Newbie
Registered: May 2006
Location: Lexington, KY
Distribution: slackware
Posts: 7
Thanked: 0
|
grep for hda if you have or sda for
in dmesg. You should be getting at least 3 matches; type of your drive,
nr of sectors, and nr of partitions. Before the FS the kernel need to
find the drivers for your hard drive. Include the drivers from the
Block Device section of the config menu.
If you can't figure that out compare the .config from the running kernel with the 1 in new kernel. Look out for differences in 'Block Device' section. |
|
06-29-2006, 04:34 PM | # | |
Member
Registered: May 2004
Location: Vancouver, WA
Distribution: Slackware, Zenwalk
Posts: 104
Thanked: 0
|
"dmesg | grep hda" brought up nothing at all.
I compared the two .config and there were too many differences (even in the Block Device section) to try to discern anything. Maybe this was a bad idea, but what I did was load the 2.4.31 .config file through "make menuconfig" (2.6.17), and then I went through there and turned off what I was absolutely sure wasn't needed. It's a pretty bloated kernel from what I was making before, but maybe it will do the trick? I can recompile it again later if there is an issue. More to come... |
|
06-29-2006, 08:06 PM | # | ||
Member
Registered: May 2004
Location: Vancouver, WA
Distribution: Slackware, Zenwalk
Posts: 104
Thanked: 0
|
Quote:
|
||
06-29-2006, 08:09 PM | # | ||
Member
Registered: May 2004
Location: Vancouver, WA
Distribution: Slackware, Zenwalk
Posts: 104
Thanked: 0
|
Quote:
|
||
06-30-2006, 01:55 PM | # | |
Member
Registered: Jun 2006
Distribution: Fedora 9 (kernel 2.6.26)
Posts: 42
Thanked: 0
Original Poster |
I solved my problem (with a little help from a friend)! Three things I had to compile into the kernel for it to work w/o the above error: Code:
Device Drivers->Multi-device support (RAID and LVM) Good luck! O.R. |
Perhaps you added the extra ACL options and they're causing you grief?