Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: How to avoid fscks caused by "device busy" at reboot time.  (Read 2275 times)

0 Members and 1 Guest are viewing this topic.

Aby

  • Guest
How to avoid fscks caused by "device busy" at reboot time.
« on: January 14, 2014, 06:28:13 am »

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:

Code: [Select]
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. Saves a lot of time at reboot.
---