Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fsck.ext3: No such file or directory
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
origin415
n00b
n00b


Joined: 25 Apr 2007
Posts: 4
Location: New York

PostPosted: Fri Feb 08, 2008 3:33 am    Post subject: fsck.ext3: No such file or directory Reply with quote

Hello,

I recently installed Gentoo on my new laptop. After booting normally once, I noticed I didn't have tmpfs (I use temerge) support in kernel (2.6.24), I rebuilt it, and rebooted without any other changes, only to get this error message:

Quote:
Checking root filesystem ...
fsck.ext3: No such file or directory while trying to open /dev/sda4
/dev/sda4:

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>

Filesystem couldn't be fixed :( [!!]
Give the root password for maintenance
(or type Control-D to continue):


Searching the forum only got me this thread:
https://forums.gentoo.org/viewtopic-t-641789.html

where the problem was simply the kernel named the SATA drive hda, but if I do the changes mentioned there, it only gives me a error message sooner, saying that it can't find /dev/hda4, so that doesn't seem to be the problem. Any other ideas?

My hard drive is set up like:

/dev/sda1 swap
/dev/sda2 Windows
/dev/sda3 ext2, boot
/dev/sda4 ext3, root

I've installed Gentoo on other computers before and never had this problem. Any ideas? Is there anything else I should mention about the computer?

Thanks.


Last edited by origin415 on Fri Feb 08, 2008 2:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
semdornus
n00b
n00b


Joined: 13 Sep 2007
Posts: 58
Location: Tokyo

PostPosted: Fri Feb 08, 2008 4:31 am    Post subject: Re: fsck.ext3: No such file or directory Reply with quote

origin415 wrote:
fsck.ext3: No such file or directory while trying to open /dev/sda4 /dev/sda:

There certainly isn't a drive /dev/sda. Make sure your fstab and bootloader configuration are OK.
Back to top
View user's profile Send private message
origin415
n00b
n00b


Joined: 25 Apr 2007
Posts: 4
Location: New York

PostPosted: Fri Feb 08, 2008 2:36 pm    Post subject: Reply with quote

Oops, thats a misprint, I'll edit it. It should say /dev/sda4 twice.

My fstab:

Quote:
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs> <mountpoint> <type> <opts> <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda3 /boot ext2 noauto,noatime 1 2
/dev/sda4 / ext3 noatime 0 1
/dev/sda1 none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0

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
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23670

PostPosted: Sat Feb 09, 2008 12:34 am    Post subject: Reply with quote

Boot a LiveCD and run file -s /dev/[hs]d[a-f][1-9]. That will show us what /usr/bin/file thinks of each of your partitions.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55441
Location: 56N 3W

PostPosted: Sat Feb 09, 2008 12:54 am    Post subject: Reply with quote

origin415,

Give the root password, as the error message says and run
Code:
df -T
to see the filesystem types.
Your root is still read only so to fix /etc/fstab, if thats the issue, you need to do
Code:
mount -o rw,remount /
to get root to be read/write.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
origin415
n00b
n00b


Joined: 25 Apr 2007
Posts: 4
Location: New York

PostPosted: Sat Feb 09, 2008 9:45 pm    Post subject: Reply with quote

df -T prints out
Code:

Filesystem   Type   1K-blocks         Used   Available   Use%   Mounted on
rootfs        rootfs    40283116    4336576 33900264     12%   /
/dev/root     ext3    40283116    4336576 33900264     12%   /
udev          tmpfs         10240              0       10240      0%   /dev


the file command prints
Code:

/dev/sda1: Linux/i386 swap file (new style) 1 (4K pages) size 524111 pages
/dev/sda2: x86 boot sector, code offset 0x52, OEM-ID "NTFS    ", sectors/cluster 8, reserved sectors 0, Media descriptor 0xf8, heads 240, hidden sectors 86093280, dos < 4.0 BootSector (0x80)
/dev/sda3: Linux rev 1.0 ext2 filesystem data
/dev/sda4: Linux rev 1.0 ext3 filesystem data (large files)


I'll try compiling a 2.6.23 kernel next (though I'd love to have tickless for my laptop)
Back to top
View user's profile Send private message
origin415
n00b
n00b


Joined: 25 Apr 2007
Posts: 4
Location: New York

PostPosted: Sat Feb 09, 2008 10:41 pm    Post subject: Reply with quote

With kernel 2.6.23-r6, it booted up fine.

Guess I should wait until 2.6.24 stabalizes? Or else I misconfigured it.
Back to top
View user's profile Send private message
rahulthewall
Veteran
Veteran


Joined: 01 Nov 2007
Posts: 1264
Location: Zürich

PostPosted: Sun Feb 10, 2008 12:59 am    Post subject: Reply with quote

Guys, same problem here: (was trying to do a reinstall of gentoo, God knows why :( ). Just have one extra line of code output there as well:

extfs_check_if_mount: No such file or directory while determining whether /dev/sda5 is mounted.

Please help me, i do not what I did. When I last installed gentoo using the same kernel everything seemed fine. Am using 2.6.23-r6.
_________________
Who shall guard the guards?
Back to top
View user's profile Send private message
rahulthewall
Veteran
Veteran


Joined: 01 Nov 2007
Posts: 1264
Location: Zürich

PostPosted: Sun Feb 10, 2008 1:02 am    Post subject: Reply with quote

Oh, and btw, my fstab is something like this:

/dev/sda1 /mnt/XP ntfs-3g locale=en.US.utf8 0 0
/dev/sda5 / ext3 defaults 0 1
/dev/sda6 /home ext3 defaults 0 1
/dev/sda3 none swap sw 0 0
/dev/cdrom /mnt/cdrom audo noauto,ro 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
_________________
Who shall guard the guards?
Back to top
View user's profile Send private message
rahulthewall
Veteran
Veteran


Joined: 01 Nov 2007
Posts: 1264
Location: Zürich

PostPosted: Sun Feb 10, 2008 12:52 pm    Post subject: Reply with quote

Please, someone please tell me, what the hell is wrong here. I desperately need to boot into my gentoo installation.
_________________
Who shall guard the guards?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55441
Location: 56N 3W

PostPosted: Sun Feb 10, 2008 12:53 pm    Post subject: Reply with quote

rahulthewall3000,

Code:
/dev/sda5 / ext3 defaults 0 1
/dev/sda6 /home ext3 defaults 0 1
the last digit (1) in the fstab tells the order that partitions should be fscked in.
Journalled file systesms do not need to be checked - thats why you have a journal.
The file system will replay the journal if needed, without fsck.

Read man fstab - you should not have two entries with a 1 in this field. I have mine set to 0, which means never check.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
rahulthewall
Veteran
Veteran


Joined: 01 Nov 2007
Posts: 1264
Location: Zürich

PostPosted: Sun Feb 10, 2008 1:09 pm    Post subject: Reply with quote

This is my new fstab,

/dev/sda5 / ext3 defaults,errors=remount-ro 0 1
/dev/sda6 /home ext3 defaults 0 2
/dev/sda3 none swap sw 0 0
/dev/hdc /mnt/dvd-rw udef,iso9660 noauto,rw,users 0 0
/dev/sda1 /mnt/XP ntfs-3g users 0 0

However, now I get this error.

Checking root filesystem ...
fsck.ext3: No such file or directory while trying to open /dev/sda5
/dev/sda5:
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>

Filesystem couldn't be fixed :( [!!]
Give the root password for maintenance
(or type Control-D to continue):

Sorry for not updating on that! What should I do now?
_________________
Who shall guard the guards?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55441
Location: 56N 3W

PostPosted: Sun Feb 10, 2008 1:13 pm    Post subject: Reply with quote

rahulthewall3000,

Why do you want to run fsck or a journelled filesystem at all ?

I suspect the message means that udev has not yet created the /dev entry for root.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
rahulthewall
Veteran
Veteran


Joined: 01 Nov 2007
Posts: 1264
Location: Zürich

PostPosted: Sun Feb 10, 2008 1:17 pm    Post subject: Reply with quote

All right, I will see what happens if I edit my fstab and then reboot.
_________________
Who shall guard the guards?
Back to top
View user's profile Send private message
rahulthewall
Veteran
Veteran


Joined: 01 Nov 2007
Posts: 1264
Location: Zürich

PostPosted: Wed Feb 13, 2008 4:28 pm    Post subject: Reply with quote

All of these issues were related to the incorrect kernel configuration for device drivers, once that was fixed, everything was fine. I can not run checkfs on the disks if I want to.
_________________
Who shall guard the guards?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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