MandrivaThis Forum is for the discussion of Mandriva (Mandrake) 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.
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.
Working my way through learning day to day maintenance of Linux, so I was attempting to use fsck to filecheck my system.
fsck -t ext3 /dev/hda1
I used mount to confirm where the drive was mounted from and that it was ext3, but whenever i try to run the command i get a "command not found" error in the shell. Yet, when I run man fsck, it gives me the manual pages for it.
Anyone know why it's not working?
EDIT: Forgot to mention, reason it's here is i'm running Mandrake 10.1
"I used mount to confirm where the drive was mounted from and that it was ext3, but whenever i try to run the command i get a "command not found" error in the shell. Yet, when I run man fsck, it gives me the manual pages for it."
Most distributions do not allow user to run fsck. Ttry running it as root. The restriction does not apply to the man pages.
"I used mount to confirm where the drive was mounted "
fsck must be run against an unmouted partition. umount the partition before running fsck. If you cannot umount the partition then boot a rescue CD and run fsck from the rescue CD.
If I unmount it, mandrake will automatically remount it upon restart, right? I'm pretty sure I can handle manually mounting it I just want to be sure.
EDIT: Also, when I try to unmount it is saying the device is busy. I should probably do this from command before loading KDE right? only problem is I have my bootloader set to load Xwindows automatically... How do I get around this to load just to a command prompt?
"If I unmount it, mandrake will automatically remount it upon restart, right?"
Check /etc/fstab. fstab contains a table of everything that is mounted automatically at boot.
"Also, when I try to unmount it is saying the device is busy."
fsck must be run against an unmouted partition. umount the partition before running fsck. If you cannot umount the partition then boot a rescue CD and run fsck from the rescue CD.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.