1

When trying remount , mount /path busy always.

mount -o remount,ro /path mount: /path is busy

Is there any method to remount it as read only safely ? What is the method to check why it is busy ? Have tried lsof but shows nothing .

Amruth A
  • 100
  • 10

1 Answers1

1

There isn't really a way to 'safely' force it read-only. Anything that did would either:

  1. Not really be read-only, because there would still be a file opened for write or append on the filesystem

or:

  1. Crash whatever application has a writable file open on that mount point.

As far as figuring out what is holding it open, try fuser -m /path. I've found it's significantly more reliable for quickly finding out what is usingg a given mount point.