How to verify if filesystem is opened in read-write mode in debugfs ?
Suppose you are in debugfs command line utility to debug some filesystem or file, and want to check:
a. Which filesystem you ae debugging ?
b. And if the filesystem is opened in read/write mode or not ?
So here comes a quick trick.
We can use the params command on debugfs to know the answers to both of the above questions.
debugfs: params Open mode: read-write Filesystem in use: /dev/sda1 debugfs:
In the above output, we can see, the open mode as read-write and the filesystem is /dev/sda1 which is in use.
To know more about debugfs utility click here.
To know how to undelete files using debugfs you can check out this article.