Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Checking all filesystems... - fsck.ext2: No such file or dir
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
munthe
n00b
n00b


Joined: 02 Apr 2005
Posts: 50
Location: Copenhagen, Denmark

PostPosted: Sun Apr 03, 2005 12:18 pm    Post subject: Checking all filesystems... - fsck.ext2: No such file or dir Reply with quote

I get this when I try to boot my new build gentoosystem:
Code:
* Checking all filesystems...
fsck.ext2: No such file or directory while trying to open /dev/hda1
/dev/hda1:
The superblock could not be read or does not describe a correct ext2 filesystem. If the device is a valid and if really contains an ext2 filesystem (and not swap or ufs orsomething else), then the superblock is corrupt, and you might try running ee2fsck with an alternate superblock:
   e2sck - b 8193 <device>

* Fsck could notcorrct thisproblems, manual repairnedded   [ !! ]

I've created the filesystem with:
Code:
mke2fs /dev/hda1

I dont know about this help, but here is my fstab and grub.conf:
Code:
#<fs>         <mountpoint>   <type>      <opts>         <dump/pass>

/dev/hda1      /boot      ext2      noauto,noatime      1 1
/dev/hda2      /      xfs      noatime         0 0
/dev/hda3      /home      ext3      noatime         0 0
/dev/hda5      none      swap      sw         0 0

none                    /proc           proc            defaults                0 0
none                    /dev/shm        tmpfs           nodev,nosuid,noexec     0 0

/dev/cdroms/cdrom0   /mnt/cdrom   auto      noauto,user,ro      0 0
/dev/cdroms/cdrom1   /mnt/dvdrom   auto      nauto,user,ro      0 0
/dev/fd0      /mnt/floppy   auto      noauto,user      0 0
none         /proc/bus/usb   usbfs      defaults      0 0

Code:
default 0
timeout 3
#splashimage=(hd0,0)/grub/splash.xpm.gz

title=Gentoo Linux 2.6.11-r4
root (hd0,0)
kernel /boot/kernel-2.6.11-gentoo-r4 root=/dev/hda2


Any ideas are welcome, please help.
Back to top
View user's profile Send private message
Nard`
Apprentice
Apprentice


Joined: 23 Jan 2005
Posts: 250

PostPosted: Sun Apr 03, 2005 12:28 pm    Post subject: Re: Checking all filesystems... - fsck.ext2: No such file or Reply with quote

Code:

emerge e2fsprogs

_________________
Programming is the process of putting bugs in.
Debugging is the process of attempting to take bugs out, doing an ugly hack, hitting your computer, then claiming insurance.
Back to top
View user's profile Send private message
munthe
n00b
n00b


Joined: 02 Apr 2005
Posts: 50
Location: Copenhagen, Denmark

PostPosted: Sun Apr 03, 2005 12:44 pm    Post subject: Reply with quote

Quote:
emerge e2fsprogs

I have done that now, I but get the same error when booting.
Back to top
View user's profile Send private message
Nard`
Apprentice
Apprentice


Joined: 23 Jan 2005
Posts: 250

PostPosted: Sun Apr 03, 2005 12:47 pm    Post subject: Reply with quote

EDIT: misread post

--- everything below this is actually relevant ---

first, as you've got /boot noauto you don't need to get it checked. as i said above i thought fsck.ext2 was missing, but no (atleast) one of your partition devices is.

are you running udev or devfs? have you got hda1 in the dev directory? try setting in your fstab boot to be 0 0 (instead of 1 1) and try again.
_________________
Programming is the process of putting bugs in.
Debugging is the process of attempting to take bugs out, doing an ugly hack, hitting your computer, then claiming insurance.
Back to top
View user's profile Send private message
munthe
n00b
n00b


Joined: 02 Apr 2005
Posts: 50
Location: Copenhagen, Denmark

PostPosted: Sun Apr 03, 2005 1:13 pm    Post subject: Reply with quote

Quote:
try setting in your fstab boot to be 0 0 (instead of 1 1) and try again

Done, then this error:
Code:
[...]
*starting devfsd...
/sbin/rc: line 271: /sbin/devfsd: No such file or directory
[...]
INIT: id "c2" respawning too fast: disabled for 5 minutes
INIT: id "c1" respawning too fast: disabled for 5 minutes
INIT: id "c3" respawning too fast: disabled for 5 minutes
INIT: id "c4" respawning too fast: disabled for 5 minutes
INIT: id "c6" respawning too fast: disabled for 5 minutes
INIT: id "c5" respawning too fast: disabled for 5 minutes
INIT: No more proceses left in this runlevel


Quote:
have you got hda1 in the dev directory?

yes

EDIT:
Quote:
are you running udev or devfs?

I don't sure, but I have udev and udevd in my /sbin and can't see devfs or devfsd.
Should I change lien 271 in /sbin/rc to /sbin/udevd instead of devfsd?
Back to top
View user's profile Send private message
Nard`
Apprentice
Apprentice


Joined: 23 Jan 2005
Posts: 250

PostPosted: Sun Apr 03, 2005 1:36 pm    Post subject: Reply with quote

munthe wrote:
Quote:
try setting in your fstab boot to be 0 0 (instead of 1 1) and try again

Done, then this error:
Code:
[...]
*starting devfsd...
/sbin/rc: line 271: /sbin/devfsd: No such file or directory
[...]
INIT: id "c2" respawning too fast: disabled for 5 minutes
INIT: id "c1" respawning too fast: disabled for 5 minutes
INIT: id "c3" respawning too fast: disabled for 5 minutes
INIT: id "c4" respawning too fast: disabled for 5 minutes
INIT: id "c6" respawning too fast: disabled for 5 minutes
INIT: id "c5" respawning too fast: disabled for 5 minutes
INIT: No more proceses left in this runlevel


Quote:
have you got hda1 in the dev directory?

yes

EDIT:
Quote:
are you running udev or devfs?

I don't sure, but I have udev and udevd in my /sbin and can't see devfs or devfsd.
Should I change lien 271 in /sbin/rc to /sbin/udevd instead of devfsd?


what kernel version are you using? try appending udev to your boot params.
_________________
Programming is the process of putting bugs in.
Debugging is the process of attempting to take bugs out, doing an ugly hack, hitting your computer, then claiming insurance.
Back to top
View user's profile Send private message
munthe
n00b
n00b


Joined: 02 Apr 2005
Posts: 50
Location: Copenhagen, Denmark

PostPosted: Sun Apr 03, 2005 1:48 pm    Post subject: Reply with quote

Quote:
what kernel version are you using?

2.6.11-gentoo-r4
Quote:
try appending udev to your boot params.

I'm totally new to gentoo, can you please explain
Back to top
View user's profile Send private message
Nard`
Apprentice
Apprentice


Joined: 23 Jan 2005
Posts: 250

PostPosted: Sun Apr 03, 2005 2:30 pm    Post subject: Reply with quote

munthe wrote:
Quote:
what kernel version are you using?

2.6.11-gentoo-r4
Quote:
try appending udev to your boot params.

I'm totally new to gentoo, can you please explain


Your bootloader passes options to your kernel that tell it some information. One example is where your root partition (/) is. The information is also read by non-kernel programs through /proc/cmdline. udev is one of those paramaters (It may also be read by kernel, not sure) and it tells gentoo your using udev not devfs. I don't need that, and i'm not sure why I don't and you might, but it's certainly worth a try :D
_________________
Programming is the process of putting bugs in.
Debugging is the process of attempting to take bugs out, doing an ugly hack, hitting your computer, then claiming insurance.
Back to top
View user's profile Send private message
munthe
n00b
n00b


Joined: 02 Apr 2005
Posts: 50
Location: Copenhagen, Denmark

PostPosted: Sun Apr 03, 2005 2:37 pm    Post subject: Reply with quote

Should I then write like this in mz grub.conf
Code:
kernel /boot/kernel-2.6.11-gentoo-r4 root=/dev/hda2 [b]dev=udev[/b]
Back to top
View user's profile Send private message
Nard`
Apprentice
Apprentice


Joined: 23 Jan 2005
Posts: 250

PostPosted: Sun Apr 03, 2005 2:38 pm    Post subject: Reply with quote

munthe wrote:
Should I then write like this in mz grub.conf
Code:
kernel /boot/kernel-2.6.11-gentoo-r4 root=/dev/hda2 [b]dev=udev[/b]


no, just udev. no dev=udev

oh and I don't think you can use bbcode inside [code]
_________________
Programming is the process of putting bugs in.
Debugging is the process of attempting to take bugs out, doing an ugly hack, hitting your computer, then claiming insurance.
Back to top
View user's profile Send private message
munthe
n00b
n00b


Joined: 02 Apr 2005
Posts: 50
Location: Copenhagen, Denmark

PostPosted: Sun Apr 03, 2005 2:45 pm    Post subject: Reply with quote

Quote:
no, just udev. no dev=udev

Ok, I will try.
Quote:
oh and I don't think you can use bbcode inside [code]

I see now.. :D
Back to top
View user's profile Send private message
munthe
n00b
n00b


Joined: 02 Apr 2005
Posts: 50
Location: Copenhagen, Denmark

PostPosted: Sun Apr 03, 2005 2:56 pm    Post subject: Reply with quote

Done, It's say's still:
Code:
*starting devfsd...
/sbin/rc: line 271: /sbin/devfsd: No such file or directory
Back to top
View user's profile Send private message
Nard`
Apprentice
Apprentice


Joined: 23 Jan 2005
Posts: 250

PostPosted: Sun Apr 03, 2005 2:58 pm    Post subject: Reply with quote

munthe wrote:
Done, It's say's still:
Code:
*starting devfsd...
/sbin/rc: line 271: /sbin/devfsd: No such file or directory


Can you boot into the system okay still?

Also, try remerging udev, it's a longshot but still. Also, if udev appears to be starting alright (ps ax | grep udevd) then perhaps setting RC_DEVFSD_STARTUP to no in /etc/conf.d/rc would work. An ugly fix but...
_________________
Programming is the process of putting bugs in.
Debugging is the process of attempting to take bugs out, doing an ugly hack, hitting your computer, then claiming insurance.
Back to top
View user's profile Send private message
munthe
n00b
n00b


Joined: 02 Apr 2005
Posts: 50
Location: Copenhagen, Denmark

PostPosted: Sun Apr 03, 2005 3:39 pm    Post subject: Reply with quote

Quote:
Can you boot into the system okay still?

No, it's stops after "starting locales.. [ ok ]" , then after a while it says:
Code:
INIT: id "c2" respawning too fast: disabled for 5 minutes
INIT: id "c1" respawning too fast: disabled for 5 minutes
INIT: id "c3" respawning too fast: disabled for 5 minutes
INIT: id "c4" respawning too fast: disabled for 5 minutes
INIT: id "c6" respawning too fast: disabled for 5 minutes
INIT: id "c5" respawning too fast: disabled for 5 minutes
INIT: No more proceses left in this runlevel

Quote:
Also, try remerging udev, it's a longshot but still. Also, if udev appears to be starting alright (ps ax | grep udevd) then perhaps setting RC_DEVFSD_STARTUP to no in /etc/conf.d/rc would work. An ugly fix but...

Now I have remerging udev, and set RC_DEVFSD_STARTUP to 'no', and it result in that I dind't see the devfsd error more.

Now I've also discovered that it said something like this:
Code:
mount: special device /dev/hda3 does not exist
#hda3 is my homedir

But when i chrooting into system the /dev/hda3 file is there:
Code:
bash-2.05b# ls /dev/hda2
/dev/hda2
Back to top
View user's profile Send private message
Nard`
Apprentice
Apprentice


Joined: 23 Jan 2005
Posts: 250

PostPosted: Sun Apr 03, 2005 3:51 pm    Post subject: Reply with quote

munthe wrote:
Quote:
Can you boot into the system okay still?

No, it's stops after "starting locales.. [ ok ]" , then after a while it says:
Code:
INIT: id "c2" respawning too fast: disabled for 5 minutes
INIT: id "c1" respawning too fast: disabled for 5 minutes
INIT: id "c3" respawning too fast: disabled for 5 minutes
INIT: id "c4" respawning too fast: disabled for 5 minutes
INIT: id "c6" respawning too fast: disabled for 5 minutes
INIT: id "c5" respawning too fast: disabled for 5 minutes
INIT: No more proceses left in this runlevel

Quote:
Also, try remerging udev, it's a longshot but still. Also, if udev appears to be starting alright (ps ax | grep udevd) then perhaps setting RC_DEVFSD_STARTUP to no in /etc/conf.d/rc would work. An ugly fix but...

Now I have remerging udev, and set RC_DEVFSD_STARTUP to 'no', and it result in that I dind't see the devfsd error more.

Now I've also discovered that it said something like this:
Code:
mount: special device /dev/hda3 does not exist
#hda3 is my homedir

But when i chrooting into system the /dev/hda3 file is there:
Code:
bash-2.05b# ls /dev/hda2
/dev/hda2


I'm guessing the reason init is doing that is the console devices aren't being created. Curiouser and curiouser. I really don't know why udev is not starting (persumably that's what's happenning). Well, i'm outa ideas. Sorry
_________________
Programming is the process of putting bugs in.
Debugging is the process of attempting to take bugs out, doing an ugly hack, hitting your computer, then claiming insurance.
Back to top
View user's profile Send private message
munthe
n00b
n00b


Joined: 02 Apr 2005
Posts: 50
Location: Copenhagen, Denmark

PostPosted: Sun Apr 03, 2005 4:02 pm    Post subject: Reply with quote

Quote:
Well, i'm outa ideas. Sorry

But thanks for your help until now :)

Any body else have an idea?
Back to top
View user's profile Send private message
shanenin
Guru
Guru


Joined: 28 Nov 2003
Posts: 578
Location: Rochester, MN U.S.A

PostPosted: Sun Apr 03, 2005 4:48 pm    Post subject: Reply with quote

if you have mount /dev automatically at boot enabled in kernel, you will get that error. Assuming you are using udev, this need to be disabled.
_________________
http://brighteyedcomputer.com
Back to top
View user's profile Send private message
munthe
n00b
n00b


Joined: 02 Apr 2005
Posts: 50
Location: Copenhagen, Denmark

PostPosted: Sun Apr 03, 2005 5:33 pm    Post subject: Reply with quote

Would that say that I must recompile my kernel with out mounting /dev,
if so, what is name of the specify function?
Back to top
View user's profile Send private message
shanenin
Guru
Guru


Joined: 28 Nov 2003
Posts: 578
Location: Rochester, MN U.S.A

PostPosted: Sun Apr 03, 2005 6:43 pm    Post subject: Reply with quote

I am not exactly sure what you are asking, but you will need to do the following.

chroot your system with the live Cd
then you will be able to recompile your kernel. If you do it by hand(no genkernel), it is under >>file systems>>psuedo files>>
[*] /dev file system support (OBSOLETE)
[ ] Automatically mount at boot <<<< make sure this is unchecked

if you use genkernel, I think this option will do it automatically, not sure though
genkernel --udev all
before using genkerl make sure your boot partition is mounted.
_________________
http://brighteyedcomputer.com
Back to top
View user's profile Send private message
munthe
n00b
n00b


Joined: 02 Apr 2005
Posts: 50
Location: Copenhagen, Denmark

PostPosted: Sun Apr 03, 2005 7:33 pm    Post subject: Reply with quote

Thank's that's works,

When I said, "name of the specify function?" it was exactly that I mean:
Quote:
it is under >>file systems>>psuedo files>>
[*] /dev file system support (OBSOLETE)
[ ] Automatically mount at boot <<<< make sure this is unchecked


But now I get this under boot:
Code:
*Mounting local filesystems..
mount: No medium found
*Some local filesystems failed to mount

With 'df -h' I see that hda1 and 6 isn't mounted, I can mount the by my self with no problems.
Back to top
View user's profile Send private message
shanenin
Guru
Guru


Joined: 28 Nov 2003
Posts: 578
Location: Rochester, MN U.S.A

PostPosted: Sun Apr 03, 2005 8:26 pm    Post subject: Reply with quote

if you can manually mount them, it seems like it might be a problem with your /etc/fstab. Do you know specifically what systems are failing to be mounted? Could it be trying to mount your cdrom, maybe you need to add noauto option to it?
_________________
http://brighteyedcomputer.com
Back to top
View user's profile Send private message
munthe
n00b
n00b


Joined: 02 Apr 2005
Posts: 50
Location: Copenhagen, Denmark

PostPosted: Sun Apr 03, 2005 9:02 pm    Post subject: Reply with quote

It's my /boot partion, it's hat already noauto, it's formated as ext2.
There is no problem with my cdrom, it's mount smooth.
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Mon Apr 04, 2005 2:37 pm    Post subject: Reply with quote

Please see https://forums.gentoo.org/viewtopic-t-315935.html

Moved from Installing Gentoo.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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