LinuxQuestions.org
Visit Jeremy's Blog.
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 06-12-2004, 01:52 PM   #1
lewisdw
LQ Newbie
 
Registered: Nov 2003
Posts: 26

Rep: Reputation: 15
how to mount and recover files off NTF partition


I've got a second harddrive that has on it a single NTFS partition (that may or may not have corruption on it). How can I mount this under Linux and attempt to save some documents that are on it?

I've tried connecting the drive as the slave on the IDE cable, but couldn't figure out how to see it/mount it. Any help is appreciated.
 
Old 06-12-2004, 03:19 PM   #2
ProtoformX
Member
 
Registered: Feb 2004
Location: Canada
Distribution: LFS SVN
Posts: 334

Rep: Reputation: 33
With kernel 2.6.6 with ntfs support, if you conneded it run cfdisk and look up the devicenode it uses .. hd*# (* will be a letter and the # will be a number) I'm guessing hdc1 or 2 maybe even hdd1 or hdd2

now that you have that information, edit the fstab ( as root: pico /etc/fstab) and insert this line:

Code:
/dev/hd*#       /mnt/windows       ntfs     noauto,user,owner,ro  0   0

Close and save that, then as root still make a directory called "windows" in /mnt/... so

Code:
mkdir /mnt/windows
Now set the permissions for that directory:

Code:
chmod 666 /mnt/windows
then mount it:
Code:
mount /dev/hd*# /mnt/windows
And bingo.. you now have a mounted ntfs filesystem
 
Old 06-13-2004, 09:22 AM   #3
lewisdw
LQ Newbie
 
Registered: Nov 2003
Posts: 26

Original Poster
Rep: Reputation: 15
I got it to mount, but can't read anything off of the drive (it's corrupted). Are there any tools (I'm running under Mandrake 10) that will allow me to recover any files off of this NTFS drive?
 
  


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
Recover Partition??? HELP!!!! villusion Linux - Hardware 7 10-11-2005 04:34 PM
Recover deleted files from a Win partition in Linux? PenguinPwrdBox Linux - General 3 08-03-2004 04:05 AM
Cant copy files to a fat partition i mount as RW? FocusedWolf Linux - Hardware 6 03-18-2004 04:43 PM
Recover a lost partition!!!!! Caveman Linux - Newbie 4 09-26-2003 01:10 PM
how do I mount files on NTFS OR FAT32 Partition skhurram77 Linux - Newbie 3 02-20-2002 05:23 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration