Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-14-2006, 05:58 PM
|
#1
|
Member
Registered: Sep 2005
Location: Germany
Distribution: slackware64
Posts: 113
Rep:
|
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?
|
|
|
03-14-2006, 09:10 PM
|
#2
|
LQ Newbie
Registered: Nov 2005
Location: Canada
Distribution: Debian
Posts: 14
Rep:
|
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
|
|
|
03-14-2006, 09:39 PM
|
#3
|
Member
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246
Rep:
|
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.
|
|
|
03-14-2006, 09:51 PM
|
#4
|
LQ Newbie
Registered: Nov 2005
Location: Canada
Distribution: Debian
Posts: 14
Rep:
|
Device Busy?
Odevans,
Wouldn't you get a "device busy" error on the root filesystem?
Lola
|
|
|
03-14-2006, 09:58 PM
|
#5
|
Member
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246
Rep:
|
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.
|
|
|
03-15-2006, 04:17 AM
|
#6
|
Member
Registered: Sep 2005
Location: Germany
Distribution: slackware64
Posts: 113
Original Poster
Rep:
|
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.
|
|
|
03-15-2006, 04:49 AM
|
#7
|
Member
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246
Rep:
|
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.
|
|
|
03-15-2006, 07:06 AM
|
#8
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
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
|
|
|
03-15-2006, 02:35 PM
|
#9
|
Member
Registered: Sep 2005
Location: Germany
Distribution: slackware64
Posts: 113
Original Poster
Rep:
|
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) ;-(
|
|
|
03-15-2006, 03:54 PM
|
#10
|
Member
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246
Rep:
|
Quote:
Originally Posted by win32sux
|
Thanks--I learn something new every day.
|
|
|
All times are GMT -5. The time now is 01:41 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|