Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-14-2008, 09:42 AM
|
#1
|
Member
Registered: Apr 2005
Location: Durban
Posts: 436
Rep:
|
mounting a gzipped imagefile
Hi,
I have piped a copy of a laptop's partition (XP, NTFS) onto a 40Gig partition through gzip using dd.
The (compressed) laptop partition now takes up 68% of my 40Gig partition.
What I want to do is to mount the imagefile so that I can try to recover deleted files.
Has anyone here done this? I have seen comments on google that indicate that it is not possible to mount compressed files. However, that information might be outdated. But if this is the case, is it possible to uncompress sections of the imagefile and mount those?
|
|
|
10-15-2008, 02:26 AM
|
#2
|
Senior Member
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732
Rep:
|
You can uncompress the entire file and mount it (DON'T mount r/w); it doesn't make sense to uncompress sections because there is no predicting where the next block of data for a file is located. Better still, don't mount it - just use recovery tools to scan the uncompressed file.
|
|
|
10-15-2008, 03:02 AM
|
#3
|
Member
Registered: Apr 2005
Location: Durban
Posts: 436
Original Poster
Rep:
|
Quote:
Originally Posted by pinniped
You can uncompress the entire file and mount it (DON'T mount r/w); it doesn't make sense to uncompress sections because there is no predicting where the next block of data for a file is located. Better still, don't mount it - just use recovery tools to scan the uncompressed file.
|
Yeah. I thought that might be the case.
The problem is that I've got nowhere to uncompress it to.
|
|
|
10-15-2008, 03:29 AM
|
#4
|
Senior Member
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897
Rep:
|
You could try and use Gnome VFS or similar to "mount" the archive, using gnomevfs-mount (something like: gnomevfs-mount /path/to/image.gz/#gzip:/ /mount/point1/), and then mount the file /mount/point1/image using loopback (something like: mount -o loop /mount/point1/image /mount/point2/).
I think it will perform very slowly though, or even freeze the computer, and you'll probably have to be root for the second command at least.
Yves.
|
|
|
10-15-2008, 03:36 AM
|
#5
|
Member
Registered: Apr 2005
Location: Durban
Posts: 436
Original Poster
Rep:
|
Quote:
Originally Posted by theYinYeti
You could try and use Gnome VFS or similar to "mount" the archive, using gnomevfs-mount (something like: gnomevfs-mount /path/to/image.gz/#gzip:/ /mount/point1/), and then mount the file /mount/point1/image using loopback (something like: mount -o loop /mount/point1/image /mount/point2/).
I think it will perform very slowly though, or even freeze the computer, and you'll probably have to be root for the second command at least.
Yves.
|
Hi Yves.
I don't appear to have 'gnomevfs-mount'. I have 'gnomevfs-mkdir', 'gnomevfs-monitor' and 'gnomevfs-mv'. What package is it part of?
|
|
|
10-15-2008, 06:26 AM
|
#6
|
Senior Member
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897
Rep:
|
It depends on your distribution. For me, that's:
Code:
[yves@localhost ~]$ rpm -qf "$(which gnomevfs-mount)"
gnomevfs-mount-0.2.0-3mdv2007.1
Ultimately, you can get it there:
http://gnomedesktop.org/node/1981/31756
You could be interested in this article too:
http://en.wikipedia.org/wiki/GVFS
Yves.
|
|
|
10-15-2008, 06:45 AM
|
#7
|
Senior Member
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897
Rep:
|
Unfortunately, gnomevfs-mount home page seems to have disapeared… Maybe you could get it from rpmbone or rpmfind, or some similar apt-related server.
Yves.
|
|
|
10-15-2008, 06:56 AM
|
#8
|
Member
Registered: Apr 2005
Location: Durban
Posts: 436
Original Poster
Rep:
|
Hi Yves.
My distro is Ubuntu (Hardy). I'm also using a live version of Helix which is also based on Ubuntu.
I've tried following the links you provided: the gnomedesktop.org link has a submission by 'tigrux' on 'gnome VFS Mount 0.1' but which links only to 404s.
The GVFS wiki refers to GVFS replacing gnomevfs, but doesn't seem to impart much information beyond that (it says it is a 'stub').
I've tried 'apt-get install gvfs' and I get the response that 'gvfs is already the newest version', so it must already be installed.
I'm not sure of where to go from here.
Thanks for your time.
Dave
|
|
|
10-15-2008, 07:13 AM
|
#9
|
Member
Registered: Apr 2005
Location: Durban
Posts: 436
Original Poster
Rep:
|
Yves, sorry, that last 'Thanks for your time' sort of sounds like I'm giving up.
I've opened my synaptic package manager and selected everything that looks like it might be something to do with gnomevfs and am installing it.
I have also located an rpm of gnomevfs-mount and will look at compiling it.
|
|
|
10-15-2008, 07:17 AM
|
#10
|
Member
Registered: Apr 2005
Location: Durban
Posts: 436
Original Poster
Rep:
|
Ah!
I now have 'gvfs-mount'. I'll give it a go!
|
|
|
10-15-2008, 07:22 AM
|
#11
|
Member
Registered: Apr 2005
Location: Durban
Posts: 436
Original Poster
Rep:
|
I'm not really having too much success at this.
gvfs doesn't seem to have a man page.
I've tried this
Code:
sudo gvfs-mount /mnt/recover/imagefile /mnt/loop1
Error mounting location: volume doesn't implement mount
Error mounting location: volume doesn't implement mount
|
|
|
10-16-2008, 09:12 AM
|
#12
|
Member
Registered: Apr 2005
Location: Durban
Posts: 436
Original Poster
Rep:
|
Does anyone have any idea about how to use gvfs-mount?
Specifically to loop-mount a conpressed partition?
|
|
|
10-16-2008, 11:49 AM
|
#13
|
Senior Member
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897
Rep:
|
I don't know anything about gvfs-mount, but a simple --help seems to indicate it has less features than gnomevfs-mount. Anyway, I found the bellow link, and it seems you don't have to give the mount point because it is auto-created in $HOME/.gvfs/:
http://www.galipe.net/articles/gvfs-...e-de-commande/
Yves.
|
|
|
10-16-2008, 03:10 PM
|
#14
|
Member
Registered: Apr 2005
Location: Durban
Posts: 436
Original Poster
Rep:
|
Thanks Yves,
I still get the same error.
There doesn't appear to be any information on the 'net about it (apart from that piece in french which only seems to deal with a network) and there's no man page.
Does anyone know of any recovery tools that would let me examine the file without decompressing it.
|
|
|
10-23-2008, 03:57 AM
|
#15
|
Member
Registered: Apr 2005
Location: Durban
Posts: 436
Original Poster
Rep:
|
Yves,
I'm still pursuing this. I have managed to install gnome-mount from an rpm I found.
Code:
gnome-mount /mnt/sda4/imagefile.gz /mnt/loop
does not generate an error, but /mnt/loop is not mounted.
I also tried the following with the same result:
Code:
gnome-mount /mnt/sda4/imagefile.gz/#gzip:/ /mnt/loop
Many thanks,
Dave
|
|
|
All times are GMT -5. The time now is 10:34 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|