Skip to content

Instantly share code, notes, and snippets.

@simongcc
Created January 22, 2019 04:33
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simongcc/f14cbd7c48028d75595b1b920b864726 to your computer and use it in GitHub Desktop.
Save simongcc/f14cbd7c48028d75595b1b920b864726 to your computer and use it in GitHub Desktop.
How to mount clonezilla image file
Credit to: gaebriel @ ubuntuforums.org
Reference:
https://ubuntuforums.org/showthread.php?t=872832
1. Prepare a large disk in Linux
2. Say if your image is /home/partimag/YOURIMAGE/, and the image is /home/partimag/YOURIMAGE/hda1.ntfs-img.aa, hda1.ntfs-img.ab...
run
"file /home/partimag/YOURIMAGE/hda1.ntfs-img.aa"
to see it's gzip, bzip or lzop image. Say it's gzip, then you can run
cat /home/partimag/YOURIMAGE/hda1.ntfs-img.* | gzip -d -c | ntfsclone --restore-image -o hda1.img -
Then you will have a "hda1.img" which you can mount it by
mount -o loop -t ntfs hda1.img /mnt
Then all the files are in /mnt/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment