Skip to content

Instantly share code, notes, and snippets.

@oleksiialeksieiev
Created September 3, 2015 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oleksiialeksieiev/e08958a158f511d44fc0 to your computer and use it in GitHub Desktop.
Save oleksiialeksieiev/e08958a158f511d44fc0 to your computer and use it in GitHub Desktop.
guestfish debugging
#http://lost-and-found-narihiro.blogspot.com/2014/09/ubuntu-1404-guestfish-error.html
# update-guestfs-appliance
# guestfish
#Welcome to guestfish, the guest filesystem shell for
#editing virtual machine filesystems and disk images.
#Type: 'help' for help on commands
'man' to read the manual
'quit' to quit the shell
#><fs> add-ro /var/lib/libvirt/images/freebsd-vm1.img
#><fs> list-devices
#libguestfs: error: list_devices: call launch before using this function
#(in guestfish, don't forget to use the 'run' command)
#><fs> run
# 100% ?aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa? 00:00
#><fs> list-devices
#/dev/sda
#><fs> list-filesystems
#/dev/sda1: unknown
#/dev/sda2: ufs
#/dev/sda3: unknown
#><fs> quit
# chmod 644 /boot/vmlinuz-3.13.0-57-generic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment