These instructions apply to:
To mount an image in Linux through command line, you need to do the following:
trueimagecmd --list --filename:/path/to/archive.tib
trueimagemnt --mount /mount/point --filename /path/to/archive.tib --index N
(!) Using a wrong index (non-existing or wrong partition type) will produce an error:
(!) --index option is different for trueimagecmd and trueimagemnt:
When issuing truemagecmd without the --index option, you will get the actual index of the last incremental backup archive.
For example, if you have several incremental archives and need to know the actual index of a partition in the third incremental archive, then the command will be:
trueimagecmd --list --index:4 --filename:/root/example.tib
Example
trueimagecmd --list
trueimagecmd --create --partition:1-1,2-1 --filename:/root/example.tib --progress:on
trueimagecmd --create --partition:1-1,2-1 --filename:/root/example.tib --progress:on --incremental
trueimagecmd --create --partition:1-1,2-1 --filename:/root/example.tib --progress:on --incremental
Now we can see that there are three backup archives created:
ls /root/example* -l
First of all we need to detect its index:
trueimagecmd --list --filename:/root/example.tib
Here the required index is 12. The index is 12 because we did not specify the option –index for trueimagecmd and it accessed the last archive.
Now we need to mount it:
trueimagemnt --mount /mnt/example --filename /root/example.tib --index 12
trueimagemnt --umount /mnt/example
This message is just a warning, not error. The system needs some time to free all resources before unmounting.
We need to use --index:1 for trueimagecmd in this case to find out its actual index:
trueimagecmd --list --filename:/root/example.tib --index:1
To mount sda1 we need to use 2 now as the actual index for trueimagemnt:
trueimagemnt --mount /mnt/example --filename /root/example.tib --index 2
(!)If there is a space gap in the name of the archive or in the name of the folder where the archive is, then any operation with the archive through command line will fail.
See trueimagecmd and trueimagemnt man-pages for more information.
The use of the --index option to restore an image is the same.