Mount a gzip'ed compressed image

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 | ...


Go Back   Usenet Forums > Linux Forums > Linux Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-03-2004
Ben Measures
 
Posts: n/a
Default Mount a gzip'ed compressed image

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/
----------------

Reply With Quote
  #2 (permalink)  
Old 02-03-2004
 
Posts: n/a
Default Re: Mount a gzip'ed compressed image

"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.


Reply With Quote
  #3 (permalink)  
Old 02-03-2004
Jacob Westenbach
 
Posts: n/a
Default Re: Mount a gzip'ed compressed image


"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


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:56 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0