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 - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 08-25-2010, 05:13 PM   #1
jghalam
LQ Newbie
 
Registered: Aug 2010
Posts: 5

Rep: Reputation: 0
e2fsck fails: "The superblock could not be read or does not describe a correct ext2"


I have a system running linux 2.6.26.3, with the ext3 filesystem. I'm trying to upgrade the system to the linux 2.6.33.2. The older linux kernel used /dev/hda# device to access the filesystem. The new kernel is using /dev/sda# to access the same filesystem.
When I boot using 2.6.33.2, the filesystem seems to be recognized and mounted fine, but e2fsck fails. Here is some of the boot logs:

[ 2.174844] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 2.193771] VFS: create_dev /dev/root --> ROOT_DEV.
[ 2.208416] VFS: do_mount_root for /dev/root-->ext3
[ 13.515101] kjournald starting. Commit interval 5 seconds
[ 13.552942] EXT3-fs (sda3): using internal journal
[ 13.567379] EXT3-fs (sda3): 1 orphan inode deleted
[ 13.581741] EXT3-fs (sda3): recovery complete
[ 13.722192] EXT3-fs (sda3): mounted filesystem with journal data mode
[ 13.741534] VFS: Mounted root (ext3 filesystem) on device 8:3.
....
Mounting filesystems
checkroot: start/stop argument: start
checkroot: Root device: /dev/sda3
checkroot: Mount point: /
checkroot: Current forced reboot count: 0
checkroot: Remount to ro exit code: 0
checkroot: Checking root file system...
Log of /sbin/e2fsck -v -y -f /dev/sda3
Fri Aug 18 00:00:14 2000

e2fsck 1.41.4 (27-Jan-2009)
/sbin/e2fsck: No such file or directory while trying to open /dev/sda3

The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>

/sbin/e2fsck died with exit status 8


Now, if I revert the kernel back to 2.6.26.3, the same file system passes e2fsck just fine. I'm running e2fsck 1.41.4 in both cases. Any thoughts? Does this have anything to do with the sda# vs hda#?

Here is the similar log, when the system comes up ok with the 2.6.26.3:

[ 4.692983] kjournald starting. Commit interval 5 seconds
[ 4.733566] EXT3 FS on hda3, internal journal
[ 4.746619] EXT3-fs: recovery complete.
[ 4.873510] EXT3-fs: mounted filesystem with journal data mode.
[ 4.891264] VFS: Mounted root (ext3 filesystem).
....
Mounting filesystems
checkroot: start/stop argument: start
checkroot: Root device: /dev/hda3
checkroot: Mount point: /
checkroot: Current forced reboot count: 1
checkroot: Remount to ro exit code: 0
checkroot: Checking root file system...
Log of /sbin/e2fsck -v -y -f /dev/hda3
Fri Aug 18 00:00:05 2000

e2fsck 1.41.4 (27-Jan-2009)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

Any help would be greatly appreciated.
Thanks,
Joe


UPDATE: I figured out the issue. I was missing the actual devices in the /dev/. I created the devices sda1-4 in the /dev/, and the e2fsck is happy now!

Last edited by jghalam; 08-25-2010 at 05:45 PM.
 
Old 08-26-2010, 07:45 AM   #2
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,631

Rep: Reputation: Disabled
Umm, /dev/sda1-4 will be gone after the next shutdown. Btw. don't you umount the partitions you check?

Last edited by JZL240I-U; 08-26-2010 at 07:47 AM.
 
  


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
The superblock could not be read or does not describe a correct ext2 filesystem. atanasoff Slackware 11 01-08-2009 12:04 AM
Recovering from a "Unable to read superblock" error horde Linux - Hardware 2 11-28-2008 04:39 PM
Can't boot Mandriva: "Superblock could not be read..." fc6_user Linux - General 15 05-23-2007 06:06 AM
"Can't Read Superblock" when mounting a second hard drive Maeltor Linux - Software 7 01-18-2007 01:13 PM
"can't read superblock" with ntfs jklewis Linux - Hardware 1 01-31-2004 07:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

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