i'm aiding and abetting fsck on boot not doing a thing for me
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
ok ... so i reboot the system because i have successfully repaired my file system, eh? no. this is classic sisyphus. i tried umount and fsck and it comes back saying the disk is clean. everytime i reboot, the fsck "cannot continue" comes back like i laid it out for you (above).
i'm not averse to getting dirt under my fingernails here, but this fscking in circles thing is getting me down. i'm inclined to remove that whole fsck check line from that initsys file where it's hiding out.
Ok, I'm not familiar with thiz linux at all. In fact, I've only HEARD of it... Anyway, I'll make a couple suggestions (in other words, use at your own risk... )
What I know of fsck is, first and foremost, it's NOT supposed to be run on a mounted filesystem. That appears to be your problem:
Quote:
Checking root filesystem
/dev/hda2 is mounted. e2fsck: Cannot continue aborting.
So, my first thought would be that maybe the installed boot scripts are doing things out of order. That is, perhaps they're mounting the partitions before deciding whether to run fsck. Or perhaps they intentionally mounted them, but forgot to unmount them before running fsck.
I don't know. Like I said, that would be my gut reaction.
If it works just like you want, then great! But be careful, it looks like that command will make your root filesystem read-only all the time. That might not be what you want. Then again, there may be another command in the scripts to remount it read-write later. let me know if it's good as-is or if we need to work on it some more.
as far as i can tell (and i been runnin' linux for about 5 minutes)it's good as it is ... the /etc/rc.d/rc.sysinit script does a little shuck and jive a further down and announces it's mounting the root fs as "rw" ...
perhaps i'll come back crying in five weeks when the fs is corrupted beyond belief, but the fsck with it (talkin' 'bout the rootfs here, son) mounted "ro" comes back clean.
i guess i'll walk tall 'til i get kicked where it counts, eh?
>> /dev/xxx is mounted. e2fsck: Cannot continue aborting.
and I found a way to make it work. I just set the last field in the /etc/fstab file in the line of my root filesystem (in your case that's /dev/hda2) from 1 to 0:
>> /dev/hda2 / ext3 defaults 1 1
^-- 0
Now the root-fielesystem is not checked (again) when it's already mounted rw (see 'man fstab'), and it doesn't need to, because it is already been checked before in the bootup-process.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.