Create kpartx.bash

This commit is contained in:
aramya 2021-06-30 18:18:13 +01:00 committed by GitHub
parent e383d4590d
commit b6a1eb7a99

4
kpartx.bash Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
LOOP=$(sudo kpartx -s -a -v APMdisk | awk -F'[ ]' '{print $3}' | tail -n1 )
sudo mkfs.hfsplus /dev/mapper/$LOOP
sudo mount -o loop /dev/mapper/$LOOP /mnt/