Mount CloneZilla image: Difference between revisions
From WickyWiki
No edit summary |
|||
| Line 1: | Line 1: | ||
2009 mounting, system, Command-line | 2009 mounting, system, Command-line | ||
Locate image and go there, you will find files like: "sda1.ntfs-img.aa" and "sda1.ntfs-img.ab" ... | |||
Find what compression has been used, gzip, bzip or lzop? | |||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
file *.ntfs-img.aa | file *.ntfs-img.aa | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Note: the image you are about to extract will be sized to the original partition-size, unused space included. This can take quite some time and disk space. | |||
== Windows NTFS partition == | == Windows NTFS partition == | ||
You will need ntfsclone, install | |||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
sudo apt-get install ntfsprogs | sudo apt-get install ntfsprogs | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Lets say the compression is gzip (as it probably is), then we need to extract the image using gzip. | |||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
| Line 25: | Line 23: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Mount with: | |||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
sudo mkdir /media/ntfs-img | sudo mkdir /media/ntfs-img | ||
| Line 33: | Line 31: | ||
== Linux ext4 partition == | == Linux ext4 partition == | ||
You will need partclone | |||
Download deb package: | Download the deb package from: | ||
* http://sourceforge.net/projects/partclone/ | * http://sourceforge.net/projects/partclone/ | ||
| Line 43: | Line 41: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Lets say compression is gzip (as it probably is), then we need to extract the image using gzip: | |||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
| Line 51: | Line 47: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Mount with: | |||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
sudo mkdir /media/ext4-img | sudo mkdir /media/ext4-img | ||
sudo mount -o loop -t ext4 ext4.img /media/ext4-img | sudo mount -o loop -t ext4 ext4.img /media/ext4-img | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 16:11, 1 January 2012
2009 mounting, system, Command-line
Locate image and go there, you will find files like: "sda1.ntfs-img.aa" and "sda1.ntfs-img.ab" ...
Find what compression has been used, gzip, bzip or lzop?
file *.ntfs-img.aa
Note: the image you are about to extract will be sized to the original partition-size, unused space included. This can take quite some time and disk space.
Windows NTFS partition
You will need ntfsclone, install
sudo apt-get install ntfsprogs
Lets say the compression is gzip (as it probably is), then we need to extract the image using gzip.
sudo cat *.ntfs-img.* | gzip -d -c | ntfsclone --restore-image -o ntfs.img -
Mount with:
sudo mkdir /media/ntfs-img sudo mount -o loop -t ntfs ntfs.img /media/ntfs-img
Linux ext4 partition
You will need partclone
Download the deb package from:
Install on 64 bit machine with '--force-all':
sudo dpkg -i --force-all partclone-dbg_0.2.42_i386.deb
Lets say compression is gzip (as it probably is), then we need to extract the image using gzip:
sudo cat *.ext4-ptcl-img.* | gzip -d -c | partclone.restore -C -s - -O ext4.img -
Mount with:
sudo mkdir /media/ext4-img sudo mount -o loop -t ext4 ext4.img /media/ext4-img