for beginner setup backup ext4 partition
1. sudo apt-get install partclone
(my fingerprint setup did not work correctly, so sudo nemo and closed first for sustained sudo without having to enter password)
2. sudo cat /path/to/source/sda2.ext4-ptcl-image.gz.* | sudo gzip -d -c | sudo partclone.restore -C -s - -o /path/to/target/sda2.img
3. sudo e2fsck -f partclone_extfs.img
4. sudo resize2fs partclone_extfs.img
5. sudo mount -o loop -t ext4 /source/sda2.img /media/user/target/
------------------------------------------------------------------------------------
http://community.spiceworks.com/how_to/show/39287-mount-a-clonezilla-image
http://askubuntu.com/questions/236263/browse-img-without-mounting
http://ubuntuforums.org/showthread.php?t=2007760
http://drbl.sourceforge.net/faq/fine-print.php?path=./2_System/68_manually_partclone_restore.faq#68_manually_partclone_restore.faq
http://blog.christosoft.de/2012/05/mount-clonezilla-image-to-restore-single-file-browse/
------------------------------------------------------------------------------------
1. find out type of image
file /path/to/image/sda2.ext4-ptcl-image.gz.aa
2. combine image
(had to install partclone before this step, sudo apt-get install partclone)
sudo cat sda2.ext4-ptcl-image.gz.* | sudo gzip -d -c | sudo partclone.restore -C -s - -o /path/to/target/sda2.img
3. mount
sudo mount -o loop -t ext4 /path/to/source/sda2.img /media/name/target/folder/
**i can not mount ext4 partition image with following error
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
**resolution
http://askubuntu.com/questions/91985/difficulty-trying-to-mount-an-iso-file-mount-you-must-specify-the-filesystem-t
**this person had the same problem with no resolution
http://sourceforge.net/mailarchive/forum.php?thread_name=4C8212EB.4040009%40nt.tuwien.ac.at&forum_name=clonezilla-live
**Following link works for NTFS partition which is same as above christosoft method
http://gpio.kaltpost.de/?p=616
**
**** SUCCESSFUL RESOLUTION by jao_madn****
http://ubuntuforums.org/showthread.php?t=872832&page=3
1. check image
e2fsck -f partclone_extfs.img
2. resize blocks
resize2fs partclone_extfs.img
3. mount
mount -o loop -t ext4 <mount_image> <mount_point>
jao_madn also tried to convert image to vdi and mounted successfully using virtualbox.
*** FOR NTFS IMAGES ***
$ sudo ntfs-3g sda2.img /mnt/ba
For NTFS partition, from the same link
ReplyDeleteFinally i saw the post from nutria007
and i tried:
Code:
root@ubuntu:/home/magnus# ntfs-3g sda2.img /mnt/ba
The disk contains an unclean file system (0, 0).
The file system wasn't safely closed on Windows. Fixing.
Tata!! It worked!
I do not know why the mount -o loop command did not work as the most forum topics i found contained that solution.. I almost gave up hope
EDIT: I tried again to mount it with "mount -l loop" and it failed again. I thought maybe it did not work the first time because the file system was unclean.. But did not help..
Last edited by Mephist0; February 21st, 2013 at 11:14 PM.