LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-21-2009, 03:38 PM   #1
neistridlar
LQ Newbie
 
Registered: Oct 2009
Posts: 3

Rep: Reputation: 0
extracting documents from a non bootable harddisk image


Hi!

I have (had) a dualboot setup on my laptop with Windows Vista Basic (OEM install) and Linux Mint 7 on a 80GB harddrive. After a crash in Vista that forced me to cut the power to power of the machine I Booted Mint. During startup filesystem scan (or something like that) was skiped because I was running on battery. While in Mint I mounted the NTFS filsystem where Vista lives, not thinking It could do any harm. Mint usually prevents me from mounting the NTFS filesystem if it detects that windows was not propperly shut down, but not this time. When I tried to boot windows again it simply would not boot, and the chassislights indicated no diskactivity (or any other activity). next time I booted I was told I had to insert the Vista CD to repair the computer, I don't have one, only two recovery DVDs with a ghostmage.

I need the documents that were on the NTFS partition, so I used testdisk to make a complete backup of that partition in case I screwed up, and I did. Now the partition is not bootable, nor mountable, I only have the image. It is a 63GB file called image.dd. on a 500GB usb disk.

I tried to recover the files with photorec, but it only gave me several GBs of mostly unreadable files with cryptic names like f289318.doc or f38921.Dll

Linux mint is still working as usual, and I also got a Vista home premium driven machine. Any sugestions to how I might get my documents? (anything else is of little interest)

Thanks for anny replys!

Last edited by neistridlar; 10-21-2009 at 03:42 PM.
 
Old 10-21-2009, 04:14 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,846

Rep: Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372
The problem is kind of how the state of the drive and state of the file structure is.

If testdisk can't recover it you might try other type of tools.

Might make a barts pe or vistape with unstoppable copier if the drive can be accessed at all.

I'd normally say a live cd or any modern linux that can use ntfs access either read only or read/write.

Last edited by jefro; 10-21-2009 at 04:16 PM.
 
Old 10-21-2009, 05:29 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,710

Rep: Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548
Mounting it from Mint is unlikely to have done any (more) damage. You should be able to mount that image via a loopback, then it will be accesable as normal
Code:
sudo mount image.dd /mnt -o loop,ro
ls /mnt
If that fails try adding "-t ntfs" as well - that will indicate the filesystem type can't be recognised outomagically (*bad* sign). Attempting to copy from NTFS may cause loss of permissions, but if you get the data you probably won't care.
 
Old 10-22-2009, 01:50 AM   #4
neistridlar
LQ Newbie
 
Registered: Oct 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Got most of the files

Thanks for the replys!

Searching through the files recovered by photorec I found 600 .doc files supposedly authored by me, and most of them were readable, although they stil have names like f092849283.doc.

I'll try to mount the immage, I don't think the filsystem is badly damaged, but the problem is that I don't have premission to acsess the my documents forlder on the disk.

I got what I need from the disk, but It would be awsome If I could keep the filenames to. If anyone could help me out with a script or command that renames the files to the first line of the content (i.e. "Tanks for the replys!" for this post) so I don't have to search through all 600 files...
 
Old 10-22-2009, 02:22 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,710

Rep: Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548
Try "gksu nautilus" - that should give you root access from the disk browser.
 
Old 10-22-2009, 09:06 AM   #6
neistridlar
LQ Newbie
 
Registered: Oct 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Thumbs up Problem solved

Mounting the image and using gksu nautilus I finally got accsess to the files I never thought it would be that easy. In fact I would not even needed to make an image if I knew I could access my documents just by running nautilus as superuser

Thanks everyone!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to copy bootable cd to harddisk efm Linux - Hardware 2 02-20-2009 06:02 AM
Extracting a file from an image MS3FGX Linux - Software 6 01-14-2008 01:07 PM
Extracting video frames to image files. Gutya Linux - General 1 10-15-2006 04:16 AM
Extracting an ISO image logosys Linux - Newbie 1 08-04-2005 06:37 PM
extracting iso image lil213 Linux - Software 2 01-04-2004 03:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration