SEARCH

The How-To Geek Forums Have Migrated to Discourse

How-To Geek Forums / Geek Stuff

Linux - Avoid fscks Caused By "device busy" At Reboot

(2 posts)
  • Started 7 years ago by Zig
  • Latest reply from Michael
  • Topic Viewed 1778 times

Zig
Posts: 140

If you often get device busy errors on shutdown that leave the filesystem in need of an fsck upon reboot, here is a simple fix:
To /etc/rc.d/init.d/halt or /etc/rc.d/rc.0, add the line

mount -o remount,ro /mount.dir

for all your mounted filesystems except /, before the call to umount -a. This means if, for some reason, shutdown fails to kill all processes and umount the disks they will still be clean on reboot.

Posted 7 years ago
Top
 
michael
Posts: 568

Zig,

Will this work in Ubuntu?

--
Mike

Posted 7 years ago
Top
 



Topic Closed

This topic has been closed to new replies.