Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
must run e2fsck on _every_ reboot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
SchnottRocket
n00b
n00b


Joined: 17 Mar 2003
Posts: 1

PostPosted: Wed Apr 16, 2003 5:44 pm    Post subject: must run e2fsck on _every_ reboot Reply with quote

Howday,

Been using Gentoo since july or august of 2002, and recently i've made the switch on my home server from w2k to Gentoo. I've managed to install 1.4rc4 on it - install went wonderfully.

My server is a P4 2.2, 512rdram, nvidia gf2mx, abit th7ii-raid motherboard. The raid controller on this board is a high point 370. I've got support for this device compiled into my kernel, and it detects the drives fine (had a simply _marvelous_ time moving all my data from ntfs to ext3, btw).

Problem is - every time i reboot, i am unable to mount the drives (have not added them to fstab - still shuffling data and drives around). I'm not simply hitting the power switch when i reboot - i do 'shutdown -r 0'. When i first attempt to mount (ext3 partition only - ntfs is supported as read-only... only):

Code:
mount /dev/hdx /root/drivex

Quote:
mount: you must specify the filesystem type


then:
Code:
mount /dev/hdx /root/drivex -t ext3

Quote:
mount: wrong fs type, bad option, bad superblock on /dev/hdx, or too many mounted filesystems


i must then run e2fsck:
Code:
e2fsck /dev/hdx

Quote:
e2fsck 1.32 (09-Nov-2002)
Group descriptors look bad... trying backup blocks...
/dev/hdx was not cleanly unmounted, check forced.
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
Free blocks count wrong for group #0 (24039, counted=0)
Fix<y>?


I must then press 'y' and hold it down as the freeblocks count message is repeated several hundred times.

This happens every time i reboot. Any suggestions?
_________________
two peanuts were walking down the street, and one of them was assaulted, being beaten into peanut butter, making it assault and buttery. The police were called, and everything was nuts - but they caught the criminal and aroasted him on the spot.
Back to top
View user's profile Send private message
dice
Guru
Guru


Joined: 21 Apr 2002
Posts: 577

PostPosted: Wed Apr 16, 2003 5:56 pm    Post subject: Reply with quote

I don't know how to fix it, but in the meantime you might be interested in the -y switch to fsck which tells it to answer yes to all questions ;)
Back to top
View user's profile Send private message
-=Blade=-
n00b
n00b


Joined: 18 Nov 2002
Posts: 20
Location: Brisbane - Australia

PostPosted: Thu Apr 17, 2003 7:06 am    Post subject: Reply with quote

Hmm, when you first created the file system did you change the max mount times before a fsck?

Anyway, I'd have a look at the ext2/3 tools if I were you.

Run a dumpe2fs on your partitions and find out what exactlty the settings for your harddisks are.
Code:
dumpe2fs /dev/hda1


Then I'd change them by using tune2fs, have a look at it's manpage. (I'd be using -c and -i)

Let us know if this fixes it, and if it does change your post to [FIXED!] somethign or other...
Back to top
View user's profile Send private message
ormi
Apprentice
Apprentice


Joined: 13 Oct 2002
Posts: 234
Location: lappeen Ranta, Finland

PostPosted: Thu Apr 17, 2003 7:35 am    Post subject: Reply with quote

I had the same problem: https://forums.gentoo.org/viewtopic.php?t=42424

I answered "yes" to every question and after that a _lot_ of libraries were missing. They were in lost+found, but it was impossible to recover them (300Mb, weird names). I think you should answer yes to every question and see what happens.

Edit: See Slougi's tip if you have to reinstall your system.

Edit2: Try to boot from gentoo cd and then run e2fsck a couple(!) of times.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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