guestfish

guestfish

open a image file

1
2
3
4
5
6
7
8
9
10
11
12
13
14
guestfish --rw -a ./ubuntu-20.04-server-cloudimg-amd64.img
Welcome to guestfish, the guest filesystem shell for
editing virtual machine filesystems and disk images.

Type: ‘helpfor help on commands
‘man’ to read the manual
‘quit’ to quit the shell

><fs>
><fs> run
><fs> list-filesystems
><fs> mount /dev/sda1 /
><fs> cat /etc/shadow
><fs> quit