Advertisement
Tritonio

Mount whole disk image with partx

Aug 12th, 2022 (edited)
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. Add partitions with:
  2. partx -va full_disk.img
  3.  
  4. Remove them with:
  5. partx -da /dev/loop0
  6.  
  7. Or if it doesn't even have partition yet:
  8. sudo losetup -P /dev/loop0 disk1.img
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement