On Sun, Dec 16, 2012 at 10:03:44PM +0200, Evaggelos Balaskas
wrote:> How can i open a virtual disk in read-write mode ?
>
>
> # guestmount --rw -d winxp -m /dev/sda1 /media/
>
> # rm -f /media/pagefile.sys
> rm: cannot remove ?/media/pagefile.sys?: Operation not permitted
>
> # cd /media && touch file
> touch: cannot touch ?file?: Permission denied
>
> # cd && fusermount -u /media
>
> I've tried with guestfish also.
>
> I have compiled libguestfs with this conf:
>
> ./configure \
> PYTHON=/usr/bin/python2 \
> --prefix=/usr --libdir=/usr/lib \
> --mandir=/usr/share/man \
> --sysconfdir=/etc \
> --disable-probes \
> --disable-gobject \
> --enable-introspection=no \
> --disable-lua \
> --disable-erlang \
> --disable-php \
> --disable-haskell \
> --disable-ruby \
> --without-java \
> --with-default-attach-method=libvirt
>
> am i missing something ?
It certainly should work :-(
My only thought is that it's an NTFS filesystem which is in an unclean
state, and ntfs-3g is refusing to mount it read-write.
Can you try it with guestfish, and add the '-x' and/or '-v'
options in
order to display precisely what libguestfs is doing?
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw