LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-07-2007, 10:42 PM   #1
digity
Member
 
Registered: Apr 2005
Posts: 105

Rep: Reputation: 15
recover files from bad NTFS drive


I'm trying to recover documents from a bad WinXP (NTFS) drive. No Windows solutions work (can't even browse it). It was automatically mounted and accessible with OphCrack Live CD (1.1.3), so I popped in a USB flash drive (FAT) and it appeared to have automatically mounted as /mnt/sda1_removable and proceeded to copy the files over to the USB drive, but when I popped the USB drive in my WinXP box nothing copied, none of the files were there.

I then tried the Ubuntu 6.10 Desktop/Live disc and that automatically mounts the USB drive but not the bad NTFS hard drive. So I mounted the NTFS drive with <sudo mkdir /media/hda1> then <mount -t ntfs /dev/hda1 /media/hda1> (gave no errors), but when I browse to /media/hda1 I get a 'you don't have permission' error message.

Linux surprisingly accesses this bad drive and I just wanna snatch some docs off there. Any ideas?

TIA
 
Old 03-07-2007, 10:45 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Quote:
Originally Posted by digity
but when I popped the USB drive in my WinXP box nothing copied, none of the files were there
Did you unmount the drive before popping it out?
You may have stranded the files or an update to the directories in cache.
 
Old 03-08-2007, 12:23 AM   #3
digity
Member
 
Registered: Apr 2005
Posts: 105

Original Poster
Rep: Reputation: 15
nope it wasn't that, i actually figured it all out. I figured out how to get 'r done with either distro. in case there's others with this kind of issue...:

basically I had to make sure both drives mounted as their correct filesystem (<mount -t ntfs /dev/hda1 /mnt/hda1> for the WinXP/NTFS drive and <mount -t vfat /dev/sda1 /mnt/sda1> for the USB [FAT/FAT16] drive). this was the problem with the OphCrack Live CD, it was basically copy files into thin air. I went with the Ubuntu Live CD because I could copy & paste/drag & drop stuff with the GUI file browser, plus I was able to mount my network shares and continue copying to there after the 128 MB USB drive got filled up.

u do have to be root (not the default user 'ubuntu' and simply continuosly using sudo when browsing the NTFS drive won't do it either) because NTFS is read only and only root has read and execute privileges (i couldn't get groups and others rx access and i didn't try changing the owner to ubuntu). to do this, i changed root's password (typed <sudo passwd root> at the command prompt, changed it to something simple), enabled administrator to login (i forgot the name of the applet/panel that controls that), logged out (got an error, i ignored it), logged in as root with the new password and fired the file manager (Nautilus) and started recovering files to the USB and the network shares

so yeah, Linux can sometimes recover files better than Windows... weird

there's most likely an easier method, but i just figured this out so it's dope to me

hope i was helpful
 
  


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
LXer: How to recover lost files after you accidentally wipe your hard drive LXer Syndicated Linux News 1 08-29-2006 04:47 AM
Moving files from NTFS drive to a EXT3 drive?? webshark Slackware 10 05-28-2006 04:02 PM
Recover lost NTFS files from Linux??? tarwood Linux - Newbie 4 06-30-2005 04:02 PM
recover deleted files on fat32/ntfs partitons? niteshadw Linux - Software 1 04-21-2005 11:23 AM
Cannot Copy Files From Network FAT32/NTFS Drive to My Local Linux Drive michaelh Linux - Networking 3 10-29-2002 11:27 AM


All times are GMT -5. The time now is 04:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration