[Bug 201750] Re: Cannot remount loopfiles inside of vfat

Agostino Russo agostino.russo at gmail.com
Fri Mar 14 16:13:12 UTC 2008


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

-- 
Cannot remount loopfiles inside of vfat
https://bugs.launchpad.net/bugs/201750
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to initramfs-tools in ubuntu.




More information about the kernel-bugs mailing list