Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
I'm a bit confused on the exact procedure for using fsck. I need to check my system, but when I go down to init 1 and try to fsck it still tells me that I'm mounted read/write, so it can't do anything. What is the exact procedure that I should follow for using fsck?
use the remount option with mount, make sure you mount it read-only (see man mount).
as far as the procedure, it depends on the file system you are using. The file system utilities differ a little on syntax and usage, so make sure you pass the --help option before you do anything.
Okay, but I don't see how to use 'remount'. I'm trying to fsck my root files system (/dev/sda3, reiserfs), but I can't figure out how to remount read only. If you could clarify what you mean I would appreciate it.
you can either use that ( boot it, when you get to the prompt do "reiserfsck --help" to get your options ( I believe the gentoo cd has the file-system utils on it - most distro's do))
or try:
mount -n -o remount,ro /
to try to remount the filesytem ro
keep in mind, you'll have to offload it first ( turn off the swap, unmount the proc file-system, devpts, and whatever else is mounted)
Yeah, so I tried using the forced fsck on shutdown, but it didn't catch the error for some reason. I used the Live CD method and it fixed everything up great! Thanks!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.