Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
reiserfs - drives me crazy
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
Karsten1973
Guru
Guru


Joined: 17 Dec 2004
Posts: 303
Location: Berlin, Germany

PostPosted: Sun Feb 26, 2006 4:28 pm    Post subject: reiserfs - drives me crazy Reply with quote

Hi,

Everytime I boot, reiserfs tells me, that my filesystem is corrupted. Every time. The repair checks me to reboot (which runs fine), I shut down the computer okay - next boot reiserfschck tells me "Wrong number of used blocks".

Okay, what do I know? reiserfs says:
Quote:

its 3.6
during boot it says: ordered data mode journal params, size 8192, journal first block 18, max trans length 1024, max batch 900, max commit age 30, max ??? age 30 (can't read my writing here, sorry) using r5 hash to sort names.


After init starts, it there is a "root file system check". Here the error occurs. It says
Quote:
file system clean,
read only,
skipping journal replay
wrong amount of used blocks
starting --fix-fixable
(ages pass)
no corruption found
rebooting


Possible reasons? I changed to gcc 4 and I have loads of X-Server freezes, which forces me to cut the power supply to my computer.

How can I get rid of the reiserfs problem?

Thanks for any help!
_________________
I could be arguing on my own time.
Back to top
View user's profile Send private message
linuxtuxhellsinki
l33t
l33t


Joined: 15 Nov 2004
Posts: 700
Location: Hellsinki

PostPosted: Sun Feb 26, 2006 5:48 pm    Post subject: Reply with quote

Switch to Ext3 or some other more reliable filesystem (XFS,JFS ?) :?
_________________
1st use 'Search' & lastly add [Solved] to
the subject of your first post in the thread.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Feb 26, 2006 6:55 pm    Post subject: Re: reiserfs - drives me crazy Reply with quote

Karsten1973 wrote:

Possible reasons? I changed to gcc 4 and I have loads of X-Server freezes, which forces me to cut the power supply to my computer.

If your X server freezes and Linux is still running - why to cut the power?
Back to top
View user's profile Send private message
Kurt Steiner
Bodhisattva
Bodhisattva


Joined: 01 Apr 2005
Posts: 1050
Location: Ostroleka, Polska

PostPosted: Sun Feb 26, 2006 6:59 pm    Post subject: Reply with quote

linuxtuxhellsinki wrote:
Switch to Ext3 or some other more reliable filesystem (XFS,JFS ?) :?
Good one... ReiserFS is the most reliable! :)

@Karsten1973: I'm pretty sure thats becouse of sudden power cuts - try to solve your problem with X. Maybe downgrade your gcc.

--EDIT--
Is there any possibility you could kill X? Try Ctrl+Alt+Del or Ctrl+Alt+Backspace, or switching to konsole. Try to reconfigure Xorg, or the kernel...
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


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

PostPosted: Sun Feb 26, 2006 8:17 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Kernel & Hardware.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
jomen
Guru
Guru


Joined: 04 Jan 2006
Posts: 536
Location: Leipzig, Germany

PostPosted: Sun Feb 26, 2006 8:41 pm    Post subject: Reply with quote

You could (and should) use the install-cd or another live-cd like knoppix and run the file-system check from there:
reiserfsck /dev/_your_device_
possibly with the argument --fix-fixable
make sure it is not mounted...
Be very careful (stay away!) from using --rebuild-tree - this could wreck everything.
...from the manual-page of reiserfsck:
Quote:
if the reiserfsck --check reports "Running with --rebuild-tree is required". You are strongly encouraged to make a backup copy of the whole partition before attempting the --rebuild-tree option

_________________
Cheers
Back to top
View user's profile Send private message
Karsten1973
Guru
Guru


Joined: 17 Dec 2004
Posts: 303
Location: Berlin, Germany

PostPosted: Sun Feb 26, 2006 9:02 pm    Post subject: Re: reiserfs - drives me crazy Reply with quote

Jaglover wrote:
Karsten1973 wrote:

Possible reasons? I changed to gcc 4 and I have loads of X-Server freezes, which forces me to cut the power supply to my computer.

If your X server freezes and Linux is still running - why to cut the power?


the only way to talk to my computer when X freezes is via ssh. But I have only one computer... So I can't always walk over to my neighbor and ask for it (several times a day). And no, you can't just Control-Alt-F1 to a terminal. Its totally frozen.
_________________
I could be arguing on my own time.
Back to top
View user's profile Send private message
Karsten1973
Guru
Guru


Joined: 17 Dec 2004
Posts: 303
Location: Berlin, Germany

PostPosted: Sun Feb 26, 2006 9:03 pm    Post subject: Reply with quote

Kurt Steiner wrote:
linuxtuxhellsinki wrote:
Switch to Ext3 or some other more reliable filesystem (XFS,JFS ?) :?
Good one... ReiserFS is the most reliable! :)

@Karsten1973: I'm pretty sure thats becouse of sudden power cuts - try to solve your problem with X. Maybe downgrade your gcc.

--EDIT--
Is there any possibility you could kill X? Try Ctrl+Alt+Del or Ctrl+Alt+Backspace, or switching to konsole. Try to reconfigure Xorg, or the kernel...


I can't kill X. All keys are frozen. Only a ssh login works. Not always possible.
_________________
I could be arguing on my own time.
Back to top
View user's profile Send private message
Karsten1973
Guru
Guru


Joined: 17 Dec 2004
Posts: 303
Location: Berlin, Germany

PostPosted: Sun Feb 26, 2006 11:33 pm    Post subject: Reply with quote

jomen wrote:
You could (and should) use the install-cd or another live-cd like knoppix and run the file-system check from there:
reiserfsck /dev/_your_device_
possibly with the argument --fix-fixable
make sure it is not mounted...
Be very careful (stay away!) from using --rebuild-tree - this could wreck everything.
...from the manual-page of reiserfsck:
Quote:
if the reiserfsck --check reports "Running with --rebuild-tree is required". You are strongly encouraged to make a backup copy of the whole partition before attempting the --rebuild-tree option


This doesn't sound like a solution - its exactly what happens automatically everytime I boot. What I need is the reason why there are is a "wrong amount of used blocks" even through the partition was umounted before the computer shut itself down.
_________________
I could be arguing on my own time.
Back to top
View user's profile Send private message
get sirius
Guru
Guru


Joined: 27 Apr 2002
Posts: 316
Location: Madison, WI

PostPosted: Sun Feb 26, 2006 11:38 pm    Post subject: Reply with quote

Kurt Steiner wrote:
linuxtuxhellsinki wrote:
Switch to Ext3 or some other more reliable filesystem (XFS,JFS ?) :?
Good one... ReiserFS is the most reliable! :)"


Another good one! I've heard more complaints of reiserfs' corruption/fragmentation problems than of any other filesystem, and v.3.6 is not being developed/debugged any further. Ext3, on the other hand, is still under development, and its developers have recently released several "killer" improvements to it that drastically increase its speed. AND it has always been more reliable than reiserfs. There are several forum threads extant which discuss this in a lot of depth - search for them, they're worth reading. :)
Back to top
View user's profile Send private message
Karsten1973
Guru
Guru


Joined: 17 Dec 2004
Posts: 303
Location: Berlin, Germany

PostPosted: Sun Feb 26, 2006 11:50 pm    Post subject: Reply with quote

get sirius wrote:
Kurt Steiner wrote:
linuxtuxhellsinki wrote:
Switch to Ext3 or some other more reliable filesystem (XFS,JFS ?) :?
Good one... ReiserFS is the most reliable! :)"


Another good one! I've heard more complaints of reiserfs' corruption/fragmentation problems than of any other filesystem, and v.3.6 is not being developed/debugged any further. Ext3, on the other hand, is still under development, and its developers have recently released several "killer" improvements to it that drastically increase its speed. AND it has always been more reliable than reiserfs. There are several forum threads extant which discuss this in a lot of depth - search for them, they're worth reading. :)


Its my root partition. Who can I change it to ext3 without recompiling everything?
_________________
I could be arguing on my own time.
Back to top
View user's profile Send private message
jomen
Guru
Guru


Joined: 04 Jan 2006
Posts: 536
Location: Leipzig, Germany

PostPosted: Sun Feb 26, 2006 11:57 pm    Post subject: Reply with quote

Quote:
This doesn't sound like a solution
but it might be...
I looked at the script /etc/init.d/checkroot and /etc/init.d/checkfs - maybe /forcefsck is not deleted...
and
only a check you run yourself lets you see & makes sure there are no errors left
you cannot interact with the automatic procedure and you _might_ not even see everything important
You are looking for a solution - how can you know if you did not try?
-edit-
and for the previous post which was faster than me:
you don't need to recompile anything (except your kernel maybe) but you do need to backup/copy everything from the old filesysten to the new filesystem - no problem if you have enough space on your hd - but a bit of work if you don't
_________________
Cheers
Back to top
View user's profile Send private message
linuxtuxhellsinki
l33t
l33t


Joined: 15 Nov 2004
Posts: 700
Location: Hellsinki

PostPosted: Mon Feb 27, 2006 1:35 am    Post subject: Reply with quote

Karsten1973 wrote:

Its my root partition. How can I change it to ext3 without recompiling everything?


Copy everything on other partition with tar,cp or partimage etc...(search Stage4 from forums) and then make a fresh filesystem and copy everything back, then you'll have new unfragmented reliable filesystem :?
_________________
1st use 'Search' & lastly add [Solved] to
the subject of your first post in the thread.
Back to top
View user's profile Send private message
Karsten1973
Guru
Guru


Joined: 17 Dec 2004
Posts: 303
Location: Berlin, Germany

PostPosted: Mon Feb 27, 2006 9:04 am    Post subject: Reply with quote

linuxtuxhellsinki wrote:
Karsten1973 wrote:

Its my root partition. How can I change it to ext3 without recompiling everything?


Copy everything on other partition with tar,cp or partimage etc...(search Stage4 from forums) and then make a fresh filesystem and copy everything back, then you'll have new unfragmented reliable filesystem :?


Okay, I do that. Haven't done it before... My / contains:
Quote:


karsten@hagen ~ $ ls /
bin dev grub lib media opt proc sbin tmp var
boot etc home lost+found mnt portage root sys usr

I guess I don't need to copy /dev, /proc, /lost-found and /tmp

right?
_________________
I could be arguing on my own time.
Back to top
View user's profile Send private message
jomen
Guru
Guru


Joined: 04 Jan 2006
Posts: 536
Location: Leipzig, Germany

PostPosted: Mon Feb 27, 2006 9:25 am    Post subject: Reply with quote

in /tmp there is a file called .keep - I think you want to recreate that after you recreate /tmp - I was reading about strange problems during upgrades when this was not present anymore (probably keeps emerge from deleting stuff in there which is still in use)
You don't need to copy /dev - but make sure you create /dev/null and /dev/console before you boot - else you will have the problem to have to do it on the error you will get because these critical files are missing
(just copy these two...)

/proc and /sys just needs to be created - do not copy them

and: use "cp -a" to keep all the permissions intact
_________________
Cheers
Back to top
View user's profile Send private message
Karsten1973
Guru
Guru


Joined: 17 Dec 2004
Posts: 303
Location: Berlin, Germany

PostPosted: Mon Feb 27, 2006 11:04 pm    Post subject: Reply with quote

jomen wrote:
and: use "cp -a" to keep all the permissions intact


cp -a gives me lot of errors: "cannot create sybolic link ... Operation not permitted"

I guess thats a real problem, as loads of links exist in /bin - important programs will not be found if the links are missing. What am I to do? Help!!! :)
_________________
I could be arguing on my own time.
Back to top
View user's profile Send private message
jomen
Guru
Guru


Joined: 04 Jan 2006
Posts: 536
Location: Leipzig, Germany

PostPosted: Mon Feb 27, 2006 11:24 pm    Post subject: Reply with quote

could you post:
the command you gave - which gave these errors
also:
the output of "mount" - and/or make sure the partition you are copying to is mounted rw
and: you must run the copy-command as root - else you will not have permission to read some files or to create them with the right permissions
------------------------------------------------------
a suggestion of how to do it...

the new partition is mounted at /new-part (rw)

as root:

cd / && cp -a `/bin/ls -1Ab | egrep -v "^new-disk$|^boot$|^proc$|^dev$|^sys$|^tmp$"` /new-part

or

cd / && cp -a /bin /etc /home /lib /media /mnt /opt /root /sbin /usr /var /new-part

are two variants to do it - make sure _nothing_ is mounted on /mnt or /media or anywhere else (would be recursively copied also...)

after the command finishes - create:
/boot /dev /proc /sys /tmp

and copy /dev/console and /dev/null to /dev on the new partition
and create /tmp/.keep there

then change fstab (on the new partition) to reflect the change (different device for / and different filesystem - including mount-options...)
and also your grub.conf for the same reason
reboot
_________________
Cheers
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