On Mon, Jun 25, 2012 at 12:55:11PM -0500, Dan The Man wrote:
 
 
 On Mon, 25 Jun 2012, Nikita A Menkovich wrote:
 
 >You can write to UFS. It is rather safe. But you could not make a
 >resize of ufs filesystem on Linux. There is not utilities for this.
 >
 >On 25 June 2012 18:53, Richard W.M. Jones <rjones(a)redhat.com> wrote:
 >>On Mon, Jun 25, 2012 at 09:04:26AM -0500, Dan The Man wrote:
 >>>
 >>>
 >>>On Mon, 25 Jun 2012, Nikita A Menkovich wrote:
 >>>
 >>>>For now, UFS in Linux do not support resizing at all. There is only
 >>>>one way to resize: create new image, partition, attach to existing
 >>>>freebsd, install bootloader, sync files.
 >>>
 >>>
 >>>Don't think guestmount even supports ufs even if it is enabled either:
 >>>Did a quick download of this read only ufs module: rpm -i
 >>>kmod-ufs-0.0-1.el6.elrepo.x86_64.rpm
 >>>
 >>>cappy:~# modprobe ufs
 >>
 >>After downloading a kmod, you need to rebuild the libguestfs
 >>appliance.  Just do:
 >>
 >> rm -rf /var/tmp/.guestfs-*
 
 Tried this but still got ufs unknown type ufs error. 
[...]
 cappy:~# guestmount -a /dev/virtual/centos -m /dev/sda1:/ /centos
 cappy:~# umount /centos
 cappy:~# guestmount -a /dev/virtual/centos -m /dev/sda1:/:ro /centos
 libguestfs: error: mount_options: you must mount something on / first
 guestmount: '/dev/sda1' could not be mounted.  Did you mean one of these?
         /dev/vda1 (ext4)
         /dev/virtual/root (ext4)
         /dev/virtual/swap (swap)
 cappy:~#
 
 Just trying to pass a simple "ro" option, can't seem to get it to
 take any option even on a simple /boot mount on sda1? 
Enable debugging to understand what's going on:
http://libguestfs.org/guestfs-faq.1.html#debugging_libguestfs
Rich.
-- 
Richard Jones, Virtualization Group, Red Hat 
http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  
http://libguestfs.org