On 17/05/12 14:24, Stuart Bird wrote:
I can't see any reason that this would not work on a mount command such as:
#gzip -cd image.dd.gz | mount -t <fs-type> <options> /mnt/image
I'm pretty sure this won't work, and I found this which agrees:
http://www.linuxquestions.org/questions/linux-general-1/mounting-from-stdin-423358
The problem is that mount doesn't read a file that way :-(
I can of-course use the same process to re-image my sd card:
gzip -cd image.dd.gz | sudo dd of=/dev/mysdcard
or (possibly simpler but equivalent anyway):
zcat image.dd.gz | sudo dd of=/dev/mysdcard
(where "mysdcard" would be "sdb" but as that command would wipe whatever drive
was in /dev/sdb I didn't want it written out in a way that was too easy for
someone to copy+paste without understanding the implications....)
My thought was that it's quite possible to mount a compressed filesystem in
some contexts, I just need to find out how to do it!
To get the volume (you can't mount at disk level, only volume unless you use
an enhanced loopback device) you may have to pre-calculate your partition
offsets before you compress then add it into the mount command using the
"-o" switch. Sleuthkit's "mmls" command should give you the partition offsets.
That should be useful, thanks.
--
Mark Rogers // More Solutions Ltd (Peterborough Office) // 0844 251 1450
Registered in England (0456 0902) 21 Drakes Mews, Milton Keynes, MK8 0ER
_______________________________________________
Peterboro mailing list
Peterboro@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/peterboro