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.
Hi I just set up my nix box and i'm having trouble with fsck running on every boot. I get the error message, " /dev/hda2 was not cleanly unmounted..<blah blah blah>"
I'd imagine I could resolve this by sticking in a umount /dev/hda2 into some script file or whatever, but I don't know which one to mess with.
Thanks for any help.
I also tried giving a umount command before I used the shutdown command but it gave me an error message saying that it was busy or something.
Before you shutdown, are you running any applications that are relying upon hda2? Like if you have a music playing app, is it connecting to that drive for the music or anything like that?
There's nothing obviously wrong with what is shown there. Have you tried manually shutting down daemons and seeing if any of them hang? Can you use telinit 1 to change to single user mode successfully? If that works does the shutdown from there work properly?
I don't think you can manually unmount /dev/hda2 as it is your root partition (according to your fstab)!
That error message:
Quote:
/dev/hda2 was not cleanly unmounted..<blah blah blah>"
indicates that your previous Linux boot was not properly shutdown, and that the system will run a fsck on it to check for errors/corruptions in its file structure.
Some distro's prompt for a Y/N to run the fsck!
If the fsck is not run, Linux may or may not prompt again on the next boot.
You should probably let the fsck run as it is a check for corruption in the fs stucture.
If the system is repeatedly displaying the error message even after running the fsck, then you may have to boot from a Live-CD and run fsck on /dev/hda2 (easiest path), else try to fix the boot script that run fsck (more work).
You cannot run fsck on the root partition when it is in use (which will be the case if you boot from the hard drive) as it cannot run against a mounted partition (or r/w one anyways)!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.