[opensuse] Accessing/checking an Ext4 file system
In days of old when unicorns gambolled in gay abandon in lush meadows and I wanted to check the state of the ext4 file system on my system I would, using the command line, issue the following commands (as root [I hate this word!]): # init 1 # mount -o remount,ro /dev/hdXY # e2fsck and this would inform me if the file system was alright or corrupted. The above now does not work and I get the error message, "<partition> is busy". What are the correct commands now, please, which replace those above? BC -- You are NOT entitled to your opinion. You are entitled to your INFORMED opinion. Nobody is entitled to be ignorant. Harlan Ellison -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tue, Sep 12, 2017 at 9:14 AM, Basil Chupin <blchupin@iinet.net.au> wrote:
In days of old when unicorns gambolled in gay abandon in lush meadows and I wanted to check the state of the ext4 file system on my system I would, using the command line, issue the following commands (as root [I hate this word!]):
# init 1
# mount -o remount,ro /dev/hdXY
# e2fsck
and this would inform me if the file system was alright or corrupted.
The above now does not work and I get the error message, "<partition> is busy".
What are the correct commands now, please, which replace those above?
I had a similar question related to checking /. Seems systemd has changed things. The advice I was given was to set the check flag in /etc/fstab and then reboot. I am waiting for access to a system that needs just such a check. So I do not know if it is the best way. But this is what I have been led to believe. -- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 09/12/2017 12:14 AM, Basil Chupin wrote:
# mount -o remount,ro /dev/hdXY
In this systemd world that is probably not the actual or only mount of that partition. It might be mounted by uuid somewhere as well. You may try umount using the file system directory where it its normally mounted. And the "busy" problem also bites you if you (or something else) is sitting in that directory or has a file opened there. You might want to run lsof |grep something something ... But you know that. -- After all is said and done, more is said than done. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Basil Chupin
-
John Andersen
-
Roger Oberholtzer