Is there a way to unmount the last mounted filesystem without doing
I ask because I'm getting tired of doing
mount to get the device when all I could do is just unmount the last filesystem.
Presumably you know the mountpoint, so you can just do
I don't know of an "unmount last filesystem" option, but personally, it sounds a bit risky. You could do something like
If that makes your life any easier.
I have never tried this, but you might want to test it. The
Partial output from tune2fs
According to the answer to this question,
umount `tail -1 /proc/mounts | cut -f2 -d' '`