Skip to content
Advertisement

Tag: ext2

Remove ext2 file with rootfs while it’s already mounted

What happens after mounting filesystem from file? Example: I have rootfs.ext2 file which is located in data directory and mounted under /mnt directory mount rootfs.ext2 /mnt After removing rootfs.ext2 I still can use files under /mnt directory, cat file, run binaries, etc. rm -f rootfs.ext2 I was thinking that rootfs.ext2 file still exists in data directory however it was deleted.

Advertisement