强制解除所有占用
sudo fuser -k hdisk0.qcow2 2>/dev/null
sudo rm -f hdisk0.qcow2.lock
完整的一行命令解决方案
sudo lsof | grep hdisk0.qcow2 | awk '{print $2}' | xargs -r sudo kill -9 && sudo rm -f hdisk0.qcow2.lock
完全清除所有可能的锁和占用
sudo rm -f /home/hx2/桌面/qemu/hdisk0.qcow2.lock* # 删除所有锁文件变种
sudo lsof | grep hdisk0.qcow2 || echo "无进程占用" # 最终确认
#重新制作 hdisk0.qcow2
qemu-system-ppc64 -cpu POWER8 -machine pseries -m 4096 -serial stdio -drive file=hdisk0.qcow2,if=none,id=drive-virtio-disk0 -device virtio-scsi-pci,id=scsi -device scsi-hd,drive=drive-virtio-disk0 -cdrom /home/hx2/桌面/qemu/AIX7.2镜像/aix_7200-04-02-2027_1of2_072020.iso -prom-env "boot-command=boot cdrom:"
3-3-1-0-1-1-1
3 Entrez 3 pour effectuer l'installation en fran�ais.
3 Activation du mode maintenance pour la reprise
1 Acc�s � un groupe de volumes root
0 Suite
1) Volume Group 00000000000000000000019863f79d5d contains these disks:
hdisk0 20480 00-10
1) Volume Group 00000000000000000000019863f79d5d contains these disks:
hdisk0 20480 00-10
Type the number of your choice and press Enter.
1) Access this Volume Group and start a shell
2) Access this Volume Group and start a shell before mounting filesystem
cat << EOF > /sbin/helpers/jfs2/fsck64
#!/bin/ksh
exit 0
EOF