I have a xen guest machine running ubuntu 10.04 with a disk device marked as read only.
Now if while the xen guest is running I mark the device as read-write how can I tell the guest it can now write to it?
The obvious mount -o rw doesn't work it still says it's write protected. Restarting udev doesn't do anything, I also tried hdparm -r 0 /dev/xvdd then remounting which appears to work until the device is unmounted and remounted which then causes all written data to disappear.
Anyone know how to achieve this without rebooting the guest?
Try using the remount option with the mount command as in
mount -o remount,rw /dev/xvdd
. An example usingro
can be found in/etc/init.d/umountroot
.Some virtual file systems write their changes to a separate files allowing multiple virtual servers to use one file as the base file system. Persistence options for the file system alter what happens when the virtual server is restarted.