On 9/4/19 1:59 PM, John Harris wrote:
On Tuesday, September 3, 2019 10:03:21 PM MST ToddAndMargo via users wrote:
Hi All,
I have a flash drive with about four partitions on is. Lets call it /dev/sdc.
Can I tar sdc or am I stuck with tarring the partitions?
Any drawback to this?
If you were to `tar` it, you'd be making an archive with a single file named 'sdc'. I suggest you do this:
dd if=/dev/sdc of=/path/to/file gzip /path/to/file
(Feel free to use some other software for compression)
Of course a dd copy may be rather time consuming and space consuming with no apparent advantage.
If the flash drive is 115GB you'd get a file of size 115GB (give or take). That would be kinda silly if you're drive contained much less data than that.
The question would then arise as to how you would extract files/data from that dd created