Mount
From Leo's Notes
This page was last edited on 18 February 2020, at 18:52.
Todo Merge all Mount articles here.
Remounting from Read-Only to Read-Write
You can remount something that's mounted read-only by using the remount option.
# mount -o remount,rw /
Mounting a disk image without root
Using udisksctl, you can mount disk images without requiring root or sudoers access.
$ dd if=/dev/zero of=test.img bs=1M count=100
$ udisksctl loop-setup -f test.img
Mapped file $PATH_TO_IMAGE as /dev/loop0.
Depending on your system, this may have triggered the loopmount to automount somewhere in /run/media/username. If nothing was mounted, manually mount the loopmount device:
$ udisksctl mount -b /dev/loop0
Mounted /dev/loop0 at /media/$USER/$IMAGE_NAME
To unmount the filesystem:
$ udisksctl unmount -b /dev/loop0
$ udisksctl loop-delete -b /dev/loop0
See Also: https://wiki.debian.org/ManipulatingISOs