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.
it is saying the command is not found because of probably:
a) your not running it as root
or..
b) your running it as root but /sbin is not in your path
so in order to run this to solve both circumstances you will have to:
su to root
type the full path
/sbin/fsck /dev/hda
That means don't use it 'then'. You should never run a disk check on a mounted filesystem because of the read-write issues. Umount the drive (if this is your root drive boot up into rescue mode with your CD) and then run fsck on it.
Originally posted by MasterC That means don't use it 'then'. You should never run a disk check on a mounted filesystem because of the read-write issues. Umount the drive (if this is your root drive boot up into rescue mode with your CD) and then run fsck on it.
Most likely it's going to be:
Drop in your INSTALL cd to your cdrom, start up your system, once you get to the point where you "press enter to continue or F1 for help" you press F1, type in rescue and it loads rescue mode. However, that's for a mandrake system, I'm sure RH isn't far different, but the documentation should discuss it.
Something to note:
Your drives are automatically checked with fsck after so many reboots or a given amount of time (usually 20-30 reboots and 50-70 days) to ensure data is not getting corrupted. This is done during bootup when the drives are not mounted.
ok went into rescue mode. I entered fsck And it says /etc/fstab does not exsist. Should I have turned off read/write, I made it an image I think...........
You don't have to have /etc/fstab to run fsck. Once you are in rescue mode, be sure your device that you want to scan isn't mounted (you can check with:
mount
If it's listed, umount it with:
umount /dev/hdx)
And then run fsck on it:
/sbin/fsck /dev/hdx
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.