Comment 3 for bug 201750

Revision history for this message
Agostino Russo (ago) wrote : Re: Cannot remount loopfiles inside of vfat

I think that the issue is due to the fact that the ro/rw status of a loopdevice is set once that is created and cannot be changed later on.

So if /host is ro or if the loop device is created via losetup ro or if it is created implictily via mount -o loop,ro, then it will not be possible to remount the underlying filesystem rw even if the loopfile contains an ext3 filesystem.

It might be worth trying to see if blockdev --setrw can fix that (cannot test that now).

losetup -r /dev/loop5 loop_file_with_ext3
#the generated loop device is now ro for life
mount -o ro /dev/loop5 /mnt
blockdev --setrw /dev/loop5
mount -o remount,rw /mnt