Linux Tips & Tricks
Today I had a situation in which I had to unmount var (mounted on /dev/sda7) partition on a remote server.
I used the following commands to make sure that no one is using the disk:
1. ps aux to check and stop most of the daemons like cron, mysql, syslog, klog (except ssh).
2. lsof | grep var
3. fuser -vvvm /dev/sda7
I used the following commands to make sure that no one is using the disk:
1. ps aux to check and stop most of the daemons like cron, mysql, syslog, klog (except ssh).
2. lsof | grep var
3. fuser -vvvm /dev/sda7
After these commands I could easily umount /var and was able to run
fsck.ext3 -ccDkvvv /dev/sda7
fsck.ext3 -ccDkvvv /dev/sda7
Comments