LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 10-07-2008, 11:31 PM   #1
kengoodman
LQ Newbie
 
Registered: Oct 2008
Posts: 4

Rep: Reputation: 0
Linux as NTFS rescue diskette?


Situation: Boss's XP laptop won't boot from hard disk or CDROM, so a rescue diskette is needed that can read and _write_ NTFS to attempt repairs.

In addition to attempts at a useful DOS boot with NTFS r/w, I have tried several tiny Linux versions that fit on 1 or 2 diskettes, hoping to correct corrupted files on the NTFS hard disk that way.

The closest I have come so far is with Injector Linux, manually mounting the NTFS drive with built-in device support, which was allegedly r/w access, but which won't actually let me make changes, e.g. cp X Y or mv X Y, giving a permission error.

Is there generally something special I need to do when mounting an NTFS drive so that I can write to it? (Command used was mount -t ntfs dev/hda1 mnt/c, which gave good read access to hard disk files, but no write).

Is there a diskette-based tiny Linux that would be better for this?

Should I give up on the idea and focus on a DOS solution instead?
 
Old 10-08-2008, 02:10 AM   #2
htnakirs
Member
 
Registered: Mar 2007
Posts: 239

Rep: Reputation: 34
I think ntfs-3g is the package that lets you do RW on an NTFS drive. Use ntfs-3g /dev/sdaX /mount/1 (or similar).
Not sure which distros have ntfs-3g built in, and fit in 2 floppies.

My personal experience is that the rate at which data corruption occurs increases when using ntfs-3g to write to ntfs partions. In any case, what type of "corrections" do you intend to make? To rectify MFTs or MBRs you are better off with testdisk.
The safest way to to use the mount option and take a backup before attempting a write to avoid escalation.

Last edited by htnakirs; 10-08-2008 at 02:15 AM.
 
Old 10-08-2008, 07:58 AM   #3
kengoodman
LQ Newbie
 
Registered: Oct 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Hopefully, I only need to backup and delete/rename a couple of files.

Mount attempt with ntfs-3g gave an error, which may be a clue that the Injector distro's NTFS access is read only(?)

I haven't tried the tomsrtbt distro yet, but may do so this morning.

Thanks.
 
Old 10-08-2008, 11:43 AM   #4
htnakirs
Member
 
Registered: Mar 2007
Posts: 239

Rep: Reputation: 34
What is the error that ntfs-3g gave?
 
Old 10-08-2008, 12:37 PM   #5
kengoodman
LQ Newbie
 
Registered: Oct 2008
Posts: 4

Original Poster
Rep: Reputation: 0
The error is "No such device", which I take to mean ntfs-3g is not present. The command

mount -t ntfs dev/hda1 mnt/win

succeeds with read-only access to files in mnt/win, while

mount -t ntfs-3g dev/hda1 mnt/win

fails. I didn't catch the ntfs line(s) during bootup.
 
Old 10-08-2008, 12:53 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You might need to modprobe the "fuse" module before trying to use the "ntfs-3g" filesystem. The "ntfs-progs" package does have an ntfs-fix program but it only repairs obvious errors and marks the partition as dirty. Then when Windows boots up, it will check the partition for more errors. If windows doesn't boot up, you might try pulling the drive from the computer and adding it to another Windows computer. Let another windows computer try to repair the filesystem.

If the problem is with bad blocks on the drive itself and not a filesystem error, you could try the commercial program "spinrite" at www.grc.com. It does cost about $80.

Last edited by jschiwal; 10-08-2008 at 12:56 PM.
 
Old 10-08-2008, 02:39 PM   #7
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
The ntfs4dos floppy has chkdsk on it if that's all you need. It is a .exe to create the floppy.
And the docs.

EDIT: It is available on the Ultimate Boot CD.

Last edited by 2damncommon; 10-08-2008 at 02:44 PM.
 
Old 10-08-2008, 04:12 PM   #8
kengoodman
LQ Newbie
 
Registered: Oct 2008
Posts: 4

Original Poster
Rep: Reputation: 0
I did end up using NTFS4DOS to make a DOS rescue disk that works OK. Maybe when I am more Linux-savvy, I will make a boot floppy with ntfs-3g on it. But rest assured, next time I create a Windows partition, it will NOT be NTFS.

Thanks, folks!
 
Old 10-08-2008, 10:22 PM   #9
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by kengoodman View Post
Situation: Boss's XP laptop won't boot from hard disk or CDROM, so a rescue diskette is needed that can read and _write_ NTFS to attempt repairs.
Google for Helix
 
  


Reply



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
Linux Rescue script question, in rescue mode vijay_aras Linux - General 1 01-09-2008 05:03 PM
How to use Captive-NTFS with Trinity Rescue Kit 3.1? Triple_Dude Linux - Software 1 08-07-2007 05:59 PM
Looking for rescue live cd to undelete ntfs files Linux.tar.gz Linux - Software 1 02-14-2007 10:50 AM
How to create rescue diskette? Kyiver Linux - General 4 10-03-2005 08:18 PM
rescue ntfs files alb1954 DamnSmallLinux 2 09-15-2004 03:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:27 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