LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 10-30-2001, 02:08 PM   #1
hooligan
LQ Newbie
 
Registered: Oct 2001
Posts: 19

Rep: Reputation: 0
what linux version for NTFS??


I Work with windows NT at work. I really need a version of linux that can read and write to the NTFS file system. Also can linux fit on to a floppy so I can boot it up to an NT box and edit NTFS. Also anyone know of Linux NT tools (ie to fix corupted files).
I have RH 6.2 but im told it doesnt support NTFS.

Cheers in advance

Hooligan linux Newbie
 
Old 10-30-2001, 04:57 PM   #2
SlCKB0Y
Member
 
Registered: Oct 2001
Location: Sydney, Australia
Distribution: Debian Unstable
Posts: 288

Rep: Reputation: 46
Ummm, pretty much all linux distros will out of the box support NTFS using the kernel module ntfs.o to read ntfs filesystems. If you come across a distro which doesnt support it (i.e. modporbe ntfs *doesnt* work) then you will need to compile it into the kernel. I cant really go into that depth here now, except to say that it is in the filesystems section of the kernel compile.





As for your other and more outrageous request about writing to NTFS, i basically wouldnt do it under linux not now, and not with and version of the linux kernel. Unless its something not terribly important, if you need to transport data between home and work, if its not large, use a floppy formatted with fat. both windows and linux will recognise that, and more importantly, both will write to it no worries.



Another way is to use cd's (iso9660 filesystem), but it is generally accepted that if you use linux to write ntfs, you eventually will end up with a corrupted NT filesystem, and probably sooner rather than later.

If this case is that you need to edit a NTFS partition, again, i wouldnt do it unless you want to lose your data. If you need to share in this manner, i would recommend making a smallish fat32 partition to share stuff from. That way in linux or using the linux bootdisk, you can mount the ntfs partition, read from it, edit files, and then save them to the fat32 partition without risking data loss. Then when you get back into NT, simply copy the files from the fat32 partition into your main ntfs.

hth

Last edited by SlCKB0Y; 10-30-2001 at 05:03 PM.
 
Old 10-30-2001, 09:23 PM   #3
hooligan
LQ Newbie
 
Registered: Oct 2001
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
As for your other and more outrageous request about writing to NTFS,
Well I did not want to bore you with the details, buuuuuuuut
See I had a currupted nt system file that I could not delete and replace as it is always in use. The plan was to boot to linux and overwrite the bad file with one copied from anouther machine.

Is it that dodgy or in your opinion is it worth a shot?

also do you think it will ever be stable enough to write NTFS without hosing the system?

Cheers

Hooligan
 
Old 10-31-2001, 09:19 AM   #4
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 63
Err, that does sound a bit suspect.

What are you using to try to delete and erase the NTFS partition? If you can boot into Linux, you could try using the Linux version of fdisk (it is soooo much better than the Windows excuse for one). It seems to cope with pretty much everything.

As an alternative, if you know someone who's got a Linux box you could try attaching your harddisk to their machine to completely erase it.

I'm no guru on partition stuff, but if all you want is to erase it, you should be able to do this at the beginning of any Linux installation (I personally use Mandrake as this gives a nice GUI like program for partition management).

Could you post details of your current methods/attempts and any errors that you get?

Cheers.
 
Old 10-31-2001, 03:24 PM   #5
hooligan
LQ Newbie
 
Registered: Oct 2001
Posts: 19

Original Poster
Rep: Reputation: 0
The question boils down to is can you use Linux as a tool to fix NT , ie copy (replace) corrupted files with good ones in NT in cases when you could not normaly do within the NTFS windows NT Operating system.


It was just one file in NT4 , I cant remember if it was a .SYS or a DLL file come to think of it, the thing was the file had something to do with logging off, so if you logged on to the machine you could not log off, exept by a hard reboot, even CTRL-ALT-DELETE
would not allow you to log off. When I compared the file to the same file on a couple of identical machines it was of a much smaller size (ie corrupted). I could not delete it from an NT dos window or windows explorer because it is always in use.

Hope this makes sense.

Cheers again

Hooligan
 
Old 10-31-2001, 09:43 PM   #6
SlCKB0Y
Member
 
Registered: Oct 2001
Location: Sydney, Australia
Distribution: Debian Unstable
Posts: 288

Rep: Reputation: 46
Cant you boot in with NT boot disks?

or like someone else said, physically take the drive out and put it in a machine which has NT already on it. it should load up as something like d: or whatever, then you might be able to just copy the file over to the problem drive
 
Old 11-01-2001, 04:55 AM   #7
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 63
Not meaning to sound pessamistic, but are you sure that it's a simple file corruption? I had a problem on my mothers computer once (running W95/2) that sounds familiar. It appeared that the 'scandisk.exe' file was corrupt (was remarkable small compared to the copy on my hd). It turned out that it was actually a small physical damage to the harddisk. It was just unfortunate that it occured on the portion of the disk that held scandisk. I still think that it would probably be safer if you found someone who has an NT box and used theirs to sort your ntfs partition.
 
Old 11-01-2001, 06:15 AM   #8
hooligan
LQ Newbie
 
Registered: Oct 2001
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks , I like the Idea of taking the hard drive out and putting it on another nt pc, as far as i know ntfs wont fit on a boot disk.

cheers

John
 
Old 11-01-2001, 12:49 PM   #9
phek
Member
 
Registered: Jul 2001
Location: California, US
Distribution: Slackware
Posts: 196

Rep: Reputation: 30
ms makes a tool that can allow you to replace files that are in use with their windows os. Unfortianatly i don't remember the name of it . I know i got it off of their site once though so you may want to do some searching on their site. Also maybe you should try NTFSDOS
http://www.winternals.com/products/r...ntfsdospro.asp
 
Old 11-10-2001, 05:03 PM   #10
azazil
LQ Newbie
 
Registered: Nov 2001
Location: India
Distribution: RedHat 7.1
Posts: 18

Rep: Reputation: 0
Red face Replace file in Use...

Hi buddy... am a newbie to linux but been with MS for quite a while before i decided to convert to freedom ( you can also read that as FREEEEEE.. ).. anyways back to your prob.. there is a tool for exactly what you asking, it comes in the Win NT/2K resource kit cd which comes at a cost just like any MS thingie... but few of its tools and utilities are free and fortunately for you this one is still free so get it b4 Billy bro wakes upto it.. get it at
http://www.micro$oft.com/windows2000/techinfo/reskit/tools/existing/inuse-o.asp

there are some other tools and utilities too which actually might save you from lotsa headaches..

http://www.micro$oft.com/windows2000/techinfo/reskit/tools/default.asp
hope it helps..
 
Old 11-13-2001, 04:46 AM   #11
hooligan
LQ Newbie
 
Registered: Oct 2001
Posts: 19

Original Poster
Rep: Reputation: 0
Cheers Azazil
Just what I was looking for!! Im through with MS personaly but my company isnt.

A great help

Hooligan
 
Old 11-13-2001, 04:11 PM   #12
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
You can also get NTFSDOS from Sysinternals.com and boot to a DOS floppy containing that utility to write to NTFS. I don't think its free though.

Another option is to boot to a Win2K CD, hit F8 and go to recovery console, then you can fix the Winnt file problem.

As far as writing to NTFS partitions with Linux.. it can be done, but requires a kernel recompile. It is still experimental, so do so at your own risk.
 
Old 11-15-2001, 02:23 AM   #13
richard22
Member
 
Registered: Apr 2001
Posts: 60

Rep: Reputation: 15
I've read the posts but need clarification. My laptop was stolen and I've replaced it with a Dell which came with this new xp thingy on a ntfs drive.
I used to have a win 98 sysytem but linux the prefered os, was installed in a fat32 extended partition.
It seems that I can not install linux (Suse) into the ntfs partition but will have to reduce the size of that partition, I have partition magic, and install after that drive. Is that correct, if so is it into three partitions (boot, swap, /), the worry there is how many primary partitions I can have on a ntfs drive.

As a completely seperate line, my backups were faulty and have left me with a desktop drive with partition errors that I can't format with fdisk. The system feels there is still a logical drive in an extended partition that it reports as being empty. I've tried to install linux to the whole drive - succesfully- and then try formating again. But without success. The reason its important is I want to dual boot the desktop with linux in an extended dos partition.
 
Old 11-15-2001, 12:23 PM   #14
phek
Member
 
Registered: Jul 2001
Location: California, US
Distribution: Slackware
Posts: 196

Rep: Reputation: 30
well, what you want to do is use pqmagic to resize the ntfs partition and make it smaller leaving the unused as unpartitioned disk space. then when you start to install linux, use the linux fdisk or cfdisk to partition the unused space into linux native and linux swap.

As for running linux on an extended fat partition, i've never done it but would recommend against it.
 
Old 11-15-2001, 03:49 PM   #15
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
you can have 4 total partitions on any IDE drive, not more than 1 may be an extended partition, which can then hold like a dozen logical drives.

Do this and I think you will be happy, (First, make sure you have some way to recover your harddrive from a quick restore or something):

1. Use Pmagic to shrink your NTFS partition. Do this from the back end of the disk.

2. Now you have two options: one, you try to move the NTFS partition away from the front by about 15MB or so, making room for a /boot partition, or you can just put it all behind like I did on this laptop. The latter is simpler and might be your only option, but it works.

3. Install Linux, create one big partition for '/', leaving enough swap space for twice your amount of RAM. Make your swap partition with that. There is no need to make '/boot' if you do it the second way, because all files will be past 1024 cylinders even if you did.

4. Now you should have 3 partitions: NTFS, Linux, and Linux Swap. But you will only be able to boot to Linux and won't be able to mount the NTFS partition unless the default kernel for whatever distro you are using has it compiled in. So, you will now have to recompile the kernel to include read or experimental read/write support for NTFS.

5. Edit your /etc/fstab to mount the NTFS partition at boot.

6. Edit lilo.conf to add boot options back for WinXP.


If you blow it up completely, you might be able to get back to Windows only boot with an "fdisk /mbr" from any Win9x boot disk.

If you want to do a fresh dual boot and install everything from scratch, follow my instructions you can find by searching for "Dual boot KevinJ".

A couple more notes...you could put all of your Linux partitions on logical drives in a single Linux extended partition or you could run WinXP and something like "BigSlack" both on a Fat32 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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding distribution + kernel version + gcc version + glib version. JCipriani Linux - General 8 04-19-2008 02:54 PM
Picasa for Linux - if you want them to make a Linux version, read this furfurdemon666 Linux - Software 4 05-19-2005 10:19 PM
Newbie & Linux dufus wants to know: which Linux version has the best GUI? Ma-fia Linux - Newbie 20 03-04-2004 09:59 PM
Captive NTFS -- full r/w ntfs access for Linux spurious Linux - Software 6 01-09-2004 12:29 AM
who knows the kernel version of each version of linux iamthewind Linux - Software 4 11-17-2003 05:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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