I needed to compress a partition of an SSD drive on a machine with less free space than the said partition. I searched, found and executed the following command:
root@host1:~/# dd if=/dev/sdd1 | gzip -c > /tmp/ubuntu.image 226510848+0 records in 226510848+0 records out 115973554176 bytes (116 GB, 108 GiB) copied, 3716.19 s, 31.2 MB/s
Now, on another machine I cannot extract the file. Trying context menu "Extract Here" I get:
Could not open "ubuntu.image"
Archive type not supported.
When I try the following command the cursor disappears for 1-2 seconds but then I get the prompt back without the file being extracted or showing any errors:
me@host2:/media/me/ntfs$ tar -xvzf ubuntu.image me@host2:/media/me/ntfs$
file command prints this:
me@host2:/media/me/ntfs$ file ubuntu.image ubuntu.image: gzip compressed data, last modified: Fri Oct 27 13:02:10 2017, from Unix
So what is wrong? How could I mount this image on host2?
Host1 and Host2 are both Ubuntu 16.04