LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-14-2006, 05:58 PM   #1
syvy
Member
 
Registered: Sep 2005
Location: Germany
Distribution: slackware64
Posts: 113

Rep: Reputation: 17
reiserfsck at boot


I googled a lot but didnīt find a satisfying solution for my problem:

My Slack 10.2 runs on / with reiserfs, no seperate boot-partition. Unfortunately I need those buggy ATI drivers which have a 'wonderful' side-effect here:

If I close a KDE-session the system freezes. No chance to reboot or do anything else via keyboard or ssh from anonther machine, I have to switch off.

Booting after that gives me the message "filesystem is NOT clean, skipping replaying jounal, root-fs is mounted rw".

I have to boot from a live-CD to make a reiserfsck but thatīs very uncomfortable. What can I do to have a "full" reiserfsck at boot time if I forgot again NOT to log out of KDE that way? (Please, dontīt tell me not to forget ;-))

A boot-partition with ext2? An intitrd? Any Ideas?
 
Old 03-14-2006, 09:10 PM   #2
lslade
LQ Newbie
 
Registered: Nov 2005
Location: Canada
Distribution: Debian
Posts: 14

Rep: Reputation: 0
Try modifying fstab

Hello,

I couldn't find a good answer by Googling either but you can try modifying your /etc/fstab file to contain a "1" in the sixth column in the row for your root drive. That should cause a reiserfsck on every boot which is not recommended by most sites and may take some time - but not as much as digging out a live cd...

Keep good backups.

Lola
 
Old 03-14-2006, 09:39 PM   #3
odevans
Member
 
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246

Rep: Reputation: 30
Disclaimer: I have never tried this on the / filesystem, but have tried it on /home and /usr partitions:

Switch to single user mode
Code:
root@box:~#  telinit 1; logout
Log in to single user mode and remount the offending partition read-only
Code:
root@box:~#  mount -o ro -o remount /dev/hda3    #or whatever
Run reiserfsck on partition:
Code:
root@box:~#  reiserfsck /dev/hda3
Remount partition read-write:
Code:
root@box:~#  mount -o rw -o remount /dev/hda3
Return to multi-user mode:
Code:
root@box:~#  telinit 4; logout   #3 for text login, 4 for GUI
Again, I've never tried it on a root partition.

Last edited by odevans; 03-14-2006 at 09:48 PM.
 
Old 03-14-2006, 09:51 PM   #4
lslade
LQ Newbie
 
Registered: Nov 2005
Location: Canada
Distribution: Debian
Posts: 14

Rep: Reputation: 0
Device Busy?

Odevans,

Wouldn't you get a "device busy" error on the root filesystem?

Lola
 
Old 03-14-2006, 09:58 PM   #5
odevans
Member
 
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246

Rep: Reputation: 30
Quite possibly - reiserfsck is in /sbin. As I said, I've never done it. It may well be better to use a liveCD like SLAX or knoppix as they'll operate completely independant of the HDD.
 
Old 03-15-2006, 04:17 AM   #6
syvy
Member
 
Registered: Sep 2005
Location: Germany
Distribution: slackware64
Posts: 113

Original Poster
Rep: Reputation: 17
Thanks for your answers.

I tried a reiserfsck in init1, but you canīt completely unmount the root-fs.
/ is still mounted read-only so that journal replaying is skipped but thatīs what I need.

Btw. mounting again rw failes, I have to reboot then. My fstab contains a "1" in the sixth column.
With a seperate boot-partition it must be possible to unmount / completely, or am I wrong?

Please tell me your experiences before I do partition experiments.
 
Old 03-15-2006, 04:49 AM   #7
odevans
Member
 
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246

Rep: Reputation: 30
syvy,

EDIT: I lied (apologies for my memory) - I had done it before and just tried it again with success.

BTW lslade, the 6th field of fstab should always be 1 for the root partition--it should always be, and always be the first FS to be checked for cleanliness--but it won't 'force' a fsck.

Is getting a LiveCD like SLAX an option?

Last edited by odevans; 03-15-2006 at 04:59 AM.
 
Old 03-15-2006, 07:06 AM   #8
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by odevans
the 6th field of fstab should always be 1 for the root partition--it should always be, and always be the first FS to be checked for cleanliness--but it won't 'force' a fsck.
this is not the case with reiserfs...

you should use a 0 for the fifth field and a 0 for the sixth...

http://www.namesys.com/faq.html#fstab
 
Old 03-15-2006, 02:35 PM   #9
syvy
Member
 
Registered: Sep 2005
Location: Germany
Distribution: slackware64
Posts: 113

Original Poster
Rep: Reputation: 17
Thanks for the link, win32sux.

I found another interesting statement in the same faq:

Quote:
Can I check reiserfs filesystems for errors without unmounting them?

Reiserfsck in checking mode may run over filesystems mounted read-only. There is no official way to fix mounted filesystems, though. You MUST completely unmount your filesystem in order to have it fixed.
I think itīs time for some partitioning experiments (or another graphics card) ;-(
 
Old 03-15-2006, 03:54 PM   #10
odevans
Member
 
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246

Rep: Reputation: 30
Quote:
Originally Posted by win32sux
this is not the case with reiserfs...

you should use a 0 for the fifth field and a 0 for the sixth...

http://www.namesys.com/faq.html#fstab
Thanks--I learn something new every day.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
reiserfsck at boot syvy Linux - Distributions 0 03-14-2006 05:52 PM
reiserfsck error Riallin Linux - General 1 05-26-2005 01:03 PM
advice using reiserfsck slack---line Slackware 1 10-06-2004 03:09 PM
reiserfsck problems jpence Linux - General 5 03-07-2003 07:38 AM
reiserfsck nautilus_1987 Slackware 1 11-21-2002 11:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration