Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
boot failing at fsck
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
cokey
Advocate
Advocate


Joined: 23 Apr 2004
Posts: 3355

PostPosted: Wed Oct 10, 2007 3:25 am    Post subject: boot failing at fsck Reply with quote

when booting it mounts /sys /proc and /dev but when it tries to perform a fsck it says "no such file or directory" and the boot process ends.

Any ideas?
_________________
https://otw20.com/ OTW20 The new place for off the wall chat
Back to top
View user's profile Send private message
ce110ut
Apprentice
Apprentice


Joined: 27 Sep 2002
Posts: 200

PostPosted: Wed Oct 10, 2007 5:50 am    Post subject: Reply with quote

What is it? /dev/hba? /dev/sda?
Back to top
View user's profile Send private message
Steve Bell
n00b
n00b


Joined: 09 Oct 2007
Posts: 18
Location: Shetland

PostPosted: Wed Oct 10, 2007 5:51 am    Post subject: Reply with quote

More information please. What filesystem is it trying to fsck. Does that filesystem exist, Output of the screen or dmesg etc.
Back to top
View user's profile Send private message
cokey
Advocate
Advocate


Joined: 23 Apr 2004
Posts: 3355

PostPosted: Wed Oct 10, 2007 6:45 am    Post subject: Reply with quote

ce110ut wrote:
What is it? /dev/hba? /dev/sda?
Why would that matter? If you really want to know it is /dev/sda3

Steve Bell wrote:
More information please. What filesystem is it trying to fsck. Does that filesystem exist, Output of the screen or dmesg etc.
ext3, of course. and there isn't any more.

How am I supposed to get a dmesg if i cant boot into it :roll: As you should know, init invokes e2fsck at boot when the kernel image starts transferring info over to the host root system. It mounts it fine, mounting /sys /proc and /dev but bails when it comes to fsck for some strange reason.
_________________
https://otw20.com/ OTW20 The new place for off the wall chat
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5956

PostPosted: Wed Oct 10, 2007 6:50 am    Post subject: Reply with quote

cokehabit wrote:
ce110ut wrote:
What is it? /dev/hba? /dev/sda?
Why would that matter? If you really want to know it is /dev/sda3

Steve Bell wrote:
More information please. What filesystem is it trying to fsck. Does that filesystem exist, Output of the screen or dmesg etc.
ext3, of course. and there isn't any more.

How am I supposed to get a dmesg if i cant boot into it :roll: As you should know, init invokes e2fsck at boot when the kernel image starts transferring info over to the host root system. It mounts it fine, mounting /sys /proc and /dev but bails when it comes to fsck for some strange reason.


relax please. :P

we need to see the exact reason its failing... "fails at fsck" doesn't really mean anything... there could be 100 reasons fsck fails. take a picture of it if you have to. :wink:
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
cokey
Advocate
Advocate


Joined: 23 Apr 2004
Posts: 3355

PostPosted: Wed Oct 10, 2007 7:11 am    Post subject: Reply with quote

bunder wrote:
cokehabit wrote:
ce110ut wrote:
What is it? /dev/hba? /dev/sda?
Why would that matter? If you really want to know it is /dev/sda3

Steve Bell wrote:
More information please. What filesystem is it trying to fsck. Does that filesystem exist, Output of the screen or dmesg etc.
ext3, of course. and there isn't any more.

How am I supposed to get a dmesg if i cant boot into it :roll: As you should know, init invokes e2fsck at boot when the kernel image starts transferring info over to the host root system. It mounts it fine, mounting /sys /proc and /dev but bails when it comes to fsck for some strange reason.


relax please. :P

we need to see the exact reason its failing... "fails at fsck" doesn't really mean anything... there could be 100 reasons fsck fails. take a picture of it if you have to. :wink:
You misunderstand, the fsck isn't failing, init is failing when it comes to fsck
_________________
https://otw20.com/ OTW20 The new place for off the wall chat
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5956

PostPosted: Wed Oct 10, 2007 7:20 am    Post subject: Reply with quote

cokehabit wrote:
You misunderstand, the fsck isn't failing, init is failing when it comes to fsck


we still need to see why, you gotta give us something more. :wink:
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
cokey
Advocate
Advocate


Joined: 23 Apr 2004
Posts: 3355

PostPosted: Wed Oct 10, 2007 7:38 am    Post subject: Reply with quote

bunder wrote:
cokehabit wrote:
You misunderstand, the fsck isn't failing, init is failing when it comes to fsck


we still need to see why
now buttercup, If i knew that I wouldn't be asking, now would I?
_________________
https://otw20.com/ OTW20 The new place for off the wall chat
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Wed Oct 10, 2007 8:20 am    Post subject: Reply with quote

post your /etc/fstab
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
Steve Bell
n00b
n00b


Joined: 09 Oct 2007
Posts: 18
Location: Shetland

PostPosted: Thu Oct 11, 2007 2:30 am    Post subject: Reply with quote

It seems to be mounting your special filesystems ok (/proc and /dev) but not the normal filesystems on your hard disk. When filesystem not found comes up, is this the output of init, or the output of fsck.

This could be as simple as a wrong filesystem spec in fstab. Without the information from the screen (the messages that appear before the failure) I don't know what the machine is trying to do (apart from the obvious, check filesystems). Is there another failure further up the screen that could be causing this problem.

Please give us the information we need to help you.
Back to top
View user's profile Send private message
Steve Bell
n00b
n00b


Joined: 09 Oct 2007
Posts: 18
Location: Shetland

PostPosted: Thu Oct 11, 2007 2:32 am    Post subject: Reply with quote

ext3 is a filesystem type, not a filesystem. The filesystem names are similar to /dev/hda1, /dev/sda1, /dev/hdb6 etc
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2719
Location: here, there or in transit

PostPosted: Thu Oct 11, 2007 2:47 am    Post subject: Reply with quote

That's a mite pedantic...besides, if we're in that mode, /dev/hda1 et al. are device node names, not filesystem names. :wink:

Anyway: Check your fstab and kernel options in grub--may be as simple as a typo in your root device name? Did the message really say /dev/sda3 not found, or is that what it should say (you know how that goes...)? If this is a new kernel, double check all settings needed to support your root device (bus controller, etc.)...perhaps you're missing something.

Wait a sec--you said init fails at that point. Without the usual panicky "OMG I can't find the root filesystem help me pleeeeze!" message? It just stops?
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Back to top
View user's profile Send private message
Steve Bell
n00b
n00b


Joined: 09 Oct 2007
Posts: 18
Location: Shetland

PostPosted: Thu Oct 11, 2007 5:01 am    Post subject: Reply with quote

A quick thought. This message, on my systems, normally occurs because of a missing binary. Is fsck present in /sbin? Try booting with your original boot cd, mount the root filesystem and check to see if fsck and fsck.ext3 exist in /sbin (or /bin).

If they are, the only other thought that I have is that somehow /sbin has ended up off the root filesystem (ie root is /dev/sda1 and /sbin is on /dev/sda3, for example). As only the root filesystem is mounted, until after fsck is run, init has no chance of finding fsck.

Hope this helps
Back to top
View user's profile Send private message
Steve Bell
n00b
n00b


Joined: 09 Oct 2007
Posts: 18
Location: Shetland

PostPosted: Thu Oct 11, 2007 5:08 am    Post subject: Reply with quote

Further to the above - perhaps a path problem. Where is init looking for fsck?
Back to top
View user's profile Send private message
cokey
Advocate
Advocate


Joined: 23 Apr 2004
Posts: 3355

PostPosted: Thu Oct 11, 2007 4:44 pm    Post subject: Reply with quote

timeBandit wrote:
Wait a sec--you said init fails at that point. Without the usual panicky "OMG I can't find the root filesystem help me pleeeeze!" message? It just stops?
yes. Thats why i didn't answer any other posts. init would have failed ages before.

Anyway it is all immaterial now as i just reinstalled (spend 24 hours trying to fix it and 1.5 hours reinstalling).

We could do they Hugh Laurie thing and try to diagnose the problem after it died
_________________
https://otw20.com/ OTW20 The new place for off the wall chat
Back to top
View user's profile Send private message
cokey
Advocate
Advocate


Joined: 23 Apr 2004
Posts: 3355

PostPosted: Thu Oct 11, 2007 5:15 pm    Post subject: Reply with quote

Steve Bell wrote:
Further to the above - perhaps a path problem. Where is init looking for fsck?
fsck is fine. If i get it to boot to /bin/bash and fsck /dev/sda3 it gives me the same error
_________________
https://otw20.com/ OTW20 The new place for off the wall chat
Back to top
View user's profile Send private message
Monkeh
Veteran
Veteran


Joined: 06 Aug 2005
Posts: 1656
Location: England

PostPosted: Thu Oct 11, 2007 5:28 pm    Post subject: Reply with quote

Steve Bell wrote:
ext3 is a filesystem type, not a filesystem. The filesystem names are similar to /dev/hda1, /dev/sda1, /dev/hdb6 etc


No.. ext3 is a filesystem. /dev/hd* and /dev/sd* are block devices.
Back to top
View user's profile Send private message
cokey
Advocate
Advocate


Joined: 23 Apr 2004
Posts: 3355

PostPosted: Thu Oct 11, 2007 5:43 pm    Post subject: Reply with quote

Monkeh wrote:
Steve Bell wrote:
ext3 is a filesystem type, not a filesystem. The filesystem names are similar to /dev/hda1, /dev/sda1, /dev/hdb6 etc


No.. ext3 is a filesystem. /dev/hd* and /dev/sd* are block devices.
ok, lets get this sorted:

block device: hdX, sdX etc
fliesystem: /, /etc, /etc/X11
file system: ext3, NTFS, xfs
_________________
https://otw20.com/ OTW20 The new place for off the wall chat
Back to top
View user's profile Send private message
Monkeh
Veteran
Veteran


Joined: 06 Aug 2005
Posts: 1656
Location: England

PostPosted: Thu Oct 11, 2007 5:53 pm    Post subject: Reply with quote

cokehabit wrote:
fliesystem: /, /etc, /etc/X11


Those are directories within a filesystem.
Back to top
View user's profile Send private message
cokey
Advocate
Advocate


Joined: 23 Apr 2004
Posts: 3355

PostPosted: Thu Oct 11, 2007 6:01 pm    Post subject: Reply with quote

Monkeh wrote:
cokehabit wrote:
fliesystem: /, /etc, /etc/X11
Those are directories within a filesystem.
no, that is A filesystem. THE filesystem would be ext<whatever>
_________________
https://otw20.com/ OTW20 The new place for off the wall chat
Back to top
View user's profile Send private message
cokey
Advocate
Advocate


Joined: 23 Apr 2004
Posts: 3355

PostPosted: Thu Oct 11, 2007 6:43 pm    Post subject: Reply with quote

Code:
root@george-laptop:~# e2fsck /dev/sda3
e2fsck 1.40.2 (12-Jul-2007)
/dev/sda3: clean, 227091/1855008 files, 588089/3702784 blocks
Code:
title      Gentoo 2.6.23
root      (hd0,0)
kernel      /boot/kernel-2.6.23-gentoo root=/dev/hda3
Code:
george@george-laptop:~$ mount
/dev/sda1 on / type ext3 (rw,errors=remount-ro)
/dev/sda3 on /mnt/gentoo type ext3 (rw,noexec,nosuid,nodev)
Just in case you wanted to see
_________________
https://otw20.com/ OTW20 The new place for off the wall chat
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2719
Location: here, there or in transit

PostPosted: Thu Oct 11, 2007 6:51 pm    Post subject: Reply with quote

In those examples, fsck and mount refer to sda3. Grub refers to hda3.
Is that correct, a transcription error or the cause of the mess? :? :)
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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