Linux - GeneralThis 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.
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.
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?
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.
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.
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.
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?
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 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/
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.