Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
No, I am not. But however there are for sure files in use because it's the root file system. That's the problem. And i don't know how to force to remount read-only.
No, I am not. But however there are for sure files in use because it's the root file system. That's the problem. And i don't know how to force to remount read-only.
Personally, I have /var on a separate partition. Perhaps you might stop certain daemons temporarily (syslogd comes to mind).
Hi, i put this only for the record:
I have the same trouble,i cant remount with the "disk busy" letter, but i need to run fsck.reiserfs.
So googling i found this:
Code:
/bin/mount -no remount,ro /dev/sda2
Quote:
Originally Posted by man page of mount
-n Mount without writing in /etc/mtab. This is necessary for
example when /etc is on a read-only file system.
Stopping service that are accessing the filesystem
You need to make sure that you gracefully shut down any services that are holding open files before remounting. To do so, run:
Code:
fuser -v -m /
You'll find things like portmap, rsyslogd, atd, etc., containing either "f" or "F" in the flags. All of these should be stopped. Many can be stopped with "service some_service_name stop", with a list of service names found in a location like /etc/init.d. A few processes (like rpc.statd, if it's running) will simply need to be killed. Once this is complete, you can use the above commands to remount your file system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.