This is a discussion on Mount a gzip'ed compressed image within the Linux Administration forums, part of the Linux Forums category; I have compressed a Windows (vfat) partition and sent it to another computer using: dd if=/dev/hdb2 | gzip -c | ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I have compressed a Windows (vfat) partition and sent it to another
computer using: dd if=/dev/hdb2 | gzip -c | ssh otherlinuxmachine 'dd of=/path/windows.img.gz' I now want to mount (read only) windows.img.gz without decompressing it to a file first. Has anyone done this before? Searching google, the general consensus is that this is impossible because of problems with the random access of gzip'ed files. However initrd can mount gzip'ed root images. I suppose I'm far too used to thinking "I'm using Linux dammit, and I want to do what I like" to give this up. So call me spoilt (Linux is goood to me). -- Ben M. ---------------- What are Software Patents for? To protect the small enterprise from bigger companies. What do Software Patents do? In its current form, they protect only companies with big legal departments as they: a.) Patent everything no matter how general b.) Sue everybody. Even if the patent can be argued invalid, small companies can ill-afford the typical $500k cost of a law-suit (not to mention years of harassment). Don't let them take away your right to program whatever you like. Make a stand on Software Patents before its too late. Read about the ongoing battle at http://swpat.ffii.org/ ---------------- |
|
|||
|
"Ben Measures" <saint_abroadremove@removehotmail.com> wrote in message
news:KrMTb.3462$Ue2.667@news-binary.blueyonder.co.uk... > I have compressed a Windows (vfat) partition and sent it to another > computer using: > dd if=/dev/hdb2 | gzip -c | ssh otherlinuxmachine 'dd > of=/path/windows.img.gz' > > I now want to mount (read only) windows.img.gz without decompressing it > to a file first. Has anyone done this before? > > Searching google, the general consensus is that this is impossible > because of problems with the random access of gzip'ed files. However > initrd can mount gzip'ed root images. > <Snip> I think you will find the kernel unzips the initrd image then mounts it. Most likely it actually checks for a zip signature before deciding whether to uncompress. -- Jonathan. |
|
|||
|
"Ben Measures" <saint_abroadremove@removehotmail.com> wrote in message news:KrMTb.3462$Ue2.667@news-binary.blueyonder.co.uk... > I have compressed a Windows (vfat) partition and sent it to another > computer using: > dd if=/dev/hdb2 | gzip -c | ssh otherlinuxmachine 'dd > of=/path/windows.img.gz' > > I now want to mount (read only) windows.img.gz without decompressing it > to a file first. Has anyone done this before? > > Searching google, the general consensus is that this is impossible > because of problems with the random access of gzip'ed files. However > initrd can mount gzip'ed root images. > > I suppose I'm far too used to thinking "I'm using Linux dammit, and I > want to do what I like" to give this up. So call me spoilt (Linux is > goood to me). But, initrd does not, it decompresses the image into a ram disk. JW |