プロジェクト

全般

プロフィール

Linux KVMイメージファイルの修復

ホストOSからKVMイメージを見る

CentOS 7

$ sudo yum install libguestfs-tools
guestfish --rw -a /var/lib/libvirt/images/arvigo.img

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> run
><fs> list-filesystems
/dev/sda1: ext4
/dev/sda2: swap
/dev/sda3: ext4
><fs> fsck ext4 /dev/sda3
0
><fs>


約8年前に更新