| View previous topic :: View next topic |
| Author |
Message |
cerddwr n00b

Joined: 28 Nov 2004 Posts: 60 Location: Birmingham, UK
|
Posted: Sat Nov 27, 2010 5:46 pm Post subject: Superblock could not be read (Solved) |
|
|
This problem is similar to the one on http://forums.gentoo.org/viewtopic-t-841573.html but not solved by the measures suggested there.
I have just installed Gentoo on a spare partition of an AMD64 box, and on attempting to boot with the newly compiled kernel I got
| Code: |
ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing mtab file while determining where /dev/sda8 is mounted.
fsck.ext3: No such file or directory while trying to open /dev/sda8
/dev/sda8:
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), the the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
* Filesystem couldn't be fixed :( |
In fact I had missed the bit in the installation instructions about creating /etc/mtab, so I went back and did that. But the error persists, only now without the first line. Running the e2fsck command as suggested does not fix the problem.
The root partition /dev/sda8 can be mounted and accessed normally from the installation cd.
/etc/mtab:
| Code: | tmpfs / tmpfs rw,relatime 0 0
/dev/hdc /mnt/cdrom iso9660 ro,relatime 0 0
/dev/loop0 /mnt/livecd squashfs ro,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
udev /dev tmpfs rw,nosuid,relatime,size=10240k,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0
tmpfs /mnt/livecd/lib64/firmware tmpfs rw,relatime 0 0
tmpfs /mnt/livecd/usr/portage tmpfs rw,relatime 0 0
usbfs /proc/bus/usb usbfs rw,nosuid,noexec,relatime,devgid=85,devmode=664 0 0
/dev/sda8 / ext3 rw,relatime,errors=continue,data=writeback 0 0
/dev/sda5 /boot ext2 rw,relatime,errors=continue 0 0
none /proc proc rw,relatime 0 0
udev /dev tmpfs rw,nosuid,relatime,size=10240k,mode=755 0 0
|
/etc/fstab:
| Code: |
/dev/sda5 /boot ext2 noauto,noatime 1 2
/dev/sda8 / ext3 noatime 0 1
/dev/sda3 none swap sw 0 0
/dev/sda7 /home ext3 noatime 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
/dev/sda2 /windows vfat auto,user,umask=0000 0 0
/dev/sda1 /mnt/winxp ntfs noauto,user,umask=0222 0 0
/dev/sda6 /mnt/oldgentoo ext3 noauto,user 0 0
# NOTE: The next line is critical for boot!
proc /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
|
Note: /dev/sda6 contains another Gentoo installation which works perfectly but I find that doing "emerge -uD world" takes far more time and effort than installing from scratch, hence the new one. Grub is not newly installed.
Possibly a kernel-config error? The .config file is the same as that used for the old setup but using a later source (2.6.34-r12); the old one uses 2.6.34-r1. Or have I missed something else? _________________ "The Internet is not a literacy-free-zone"
Last edited by cerddwr on Sat Nov 27, 2010 8:58 pm; edited 2 times in total |
|
| Back to top |
|
 |
idella4 Veteran


Joined: 09 Jun 2006 Posts: 1587 Location: Australia, Perth
|
Posted: Sat Nov 27, 2010 6:08 pm Post subject: |
|
|
cerddwr,
| Quote: |
Possibly a kernel-config error? The .config file is the same as that used for the old setup but using a later source (2.6.34-r12);
|
I would say so, still could be a few things. Seeing you have a viable gentoo which most others would have just upgraded, I doubt that your grub booting entry is wrong, however, to cover it, just as well to post the grub entries, both.
| Quote: |
fsck.ext3: No such file or directory while trying to open /dev/sda8
/dev/sda8:
|
This suggests you kernel might be perfectly well, but you are missing the ext2progs package or not correctly installed.
I'd say either your kernel's root file system settings or the bread & butter file system prog packages are not right. _________________ idella4@aus |
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 27783 Location: 56N 3W
|
Posted: Sat Nov 27, 2010 6:17 pm Post subject: |
|
|
cerddwr,
/etc/mtab is created and modified by mount - not by you. It lists filesystems currently mounted. Mount (and umount) keep it up to date.
I suspect you don't have any /dev/sd* nodes in your dev because you have | Code: | | [*] enable deprecated sysfs features to support old userspace tools | set in your kernel. This prevents udev from making block device nodes.
Check your kernel and rebuild as required. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Last edited by NeddySeagoon on Sat Nov 27, 2010 7:20 pm; edited 1 time in total |
|
| Back to top |
|
 |
cerddwr n00b

Joined: 28 Nov 2004 Posts: 60 Location: Birmingham, UK
|
Posted: Sat Nov 27, 2010 6:45 pm Post subject: |
|
|
Thank you both. I will check these and report _________________ "The Internet is not a literacy-free-zone" |
|
| Back to top |
|
 |
cerddwr n00b

Joined: 28 Nov 2004 Posts: 60 Location: Birmingham, UK
|
Posted: Sat Nov 27, 2010 7:42 pm Post subject: |
|
|
I re-emerged e2fsprogs and checked the kernel configuration. The "deprecated sysfs" option had been set so I removed it.
The system now boots! Problem solved, thank you, your help is appreciated. _________________ "The Internet is not a literacy-free-zone" |
|
| Back to top |
|
 |
idella4 Veteran


Joined: 09 Jun 2006 Posts: 1587 Location: Australia, Perth
|
Posted: Sat Nov 27, 2010 8:41 pm Post subject: |
|
|
cerddwr
that's just grand; could you place [solved] by your thread title. _________________ idella4@aus |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|