Using the Real ntfs.sys Driver Under Linux
caseih writes "A very neat hack uses the real ntfs.sys driver (obtained from your own windows XP partition and used via a wine-like layer (borrowed from ReactOS) to mount an ntfs partion with full read/write access. While not an ideal solution and certainly not free as in speech, this is an ideal stop-gap measure for many people trying out linux. I think that we'll probably see this in Knoppix pretty soon."
OK, but I imagine having to load all that would take a toll on performance. How fast does it run, and more importantly, how can a free (read: non-encumbered) version of this be made?
Surely it is illegal to copy the ntfs.sys driver and distribute it in another operating system, seeing as how it is a part of Windows.
Project includes the first open source MS-Windows kernel API for Free operating systems
Surely that would be ReactOS, where he got a lot of the code from.
But still, so it begind. First NDIS drivers now FS drivers. Next up it will be a GDI wrapper for X so you can use Windows binary drivers with your graphics card.
All of this is a complete waste of time though. When did Open Source simply become a way to avoid paying for Windows?
A vulnerability has been found in the latest version of knoppix. The vulnerability exploits one of several bugs found in NTFS.SYS and allows any user with access to the drive to render the system useless(moreso than simply using NTFS.SYS already does).
I can count to 1023 on my hands. Ask me about #132.
Maybe it could use the existing ntfs vfs to get the ntfs.sys of the partition, and then load it.
right on the head. I'm still trying to make a real step into a Linux partition. I've been using Knoppix live and so far my bosses are mostly just confused. This might help me show them (and thus provide me a box to install on) how easy (and cheap!) this stuff really is.
I wonder how it's going to be done in Knoppix, without distributing a commercial DLL with the CD. Perhaps the following scheme could work:
Tricky. Depends on having the DLL somewhere on the disk.
-- Arik
That's just great, I don't think there is a more annoying thing when dual-booting than not to be able to share files between the goddamn installations. Hopefully with this, each OS won't feel like it's on a different part of the goddamn universe.
BTW How did people get around this issue before Read/Write access to NTFS? Did they have a FAT32 partition or something that both of the OS installations shared? I never took too much time to look into it because it wasn't too much of a problem for me.
--D3X
NeoX3.com: Free of Clothes and Free of Charge
Is there any free-as-beer software for Windows that would let me access (rw) my ext2 and ext3 partitions from Windows?
The owls are not what they seem
ntfs.sys surely can handle that, but what about the database? Ownership, permissions, sharing, all that stuff Microsoft boasts to have much better than Linux (better gradation of permissions in operations). That's pretty essential and would require pretty big amount of Microsoft backend software.
45 5F E1 04 22 CA 29 C4 93 3F 95 05 2B 79 2A B2
This is similar to the current situation with Quicktime, Real and WMV playback on Linux - there is a technical solution, but it is illegal. Unfortunately, it is doubtful that the companies developing these secret formats will ever port to Linux, and even less likely that they will make them open source.
With the advent of 'WinFS', and now NTFS on linux..how long until we see a 'NixFS'
From what i've read about WinFS, a *nix 'version' would be quite nice.
This would be very useful if you have an unbootable windows partition. I had problems with my logon file in XP once. I had replaced it to try something and ended up hosing my system. I had the file backed up but I couldn't use the Windows XP command line recovery because it couldn't logon and I couldn't copy it back over in Linux because of poor NTFS support. This would help people being able to fix the same or similar problems.
Aston Games
I don't care if it's not free as in speech. I've been waiting for a long time for some stable read/write support for my dual-booting system. If it's as stable at reading/writing as Windows, then this will be a great hack.
It would be perfectly legal for Knoppix to *know* that you might have an NTFS.SYS around on your computer, look around to see whether this is the case, and if it is, use your own copy NTFS.SYS.
Of course, Knoppix will never itself be packaged with the NTFS.SYS. But if you have an NTFS partition, you have a damn good chance of having an NT around as well, with the driver right in there.
I can only hope that MS doesn't insert some nastiness into the NTFS.SYS that would prevent it from running inside the framework described in TFA.
HTH
VKh
'free as in warez'? Hell, that's nothing new.
as a knoppix user, I hope to hell this stays WAY AWAY. Microsoft has published a good deal of api's for writing device drivers; it would be a better idea to develop OSS device drivers that allow read/write access to ext2/ext3/reiserfs filesystems instead.
Would be better legally, as well.
That sort of thing is exactly what this is good for. Let's say you give a Linux distro to a friend so he can try it out. This could be a Live CD or a distro that will make your system dual boot.
In any case, your friend probably has a bunch of files on his Windows partition (likely NTFS formatted) that he wants to see if he can edit/view in Linux. If he can do what he wants, then switching to Linux becomes an option. So, with this, his NTFS partition is available and everything just works(TM). After all, your friend doesn't even know what NTFS is, but he does know when he can't get at his files.
In short, this makes transitions to Linux much smoother. People shouldn't have to keep a copy of a file on both partitions just so its available in both environmets. It becomes a pain to figure out which document is the most recent, etc. etc. And, BTW, I'm talking about the average user who doesn't have a network drive.
-- Fighting mediocrity one bad post at a time.
Yes, of course Linux uses FAT32. And that text mode screen you get when you press Ctrl-Alt-F1 is COMMAND.COM from MS-DOS 6.22.
And if it isn't in a certain folder in the Windows base directory, Windows can't find it anyway. So it's just a matter of finding the base directory, and grabbing it from there.
so knoppix can probably find out where windows is installed by examining the bootloader for windows. i believe it points to the windows installation directory (which device, directory, etc.).
-- john
It would not seem unreasonable for the ntfs driver to be copied to a USB key or other media to be used at boot time.
Optimally, like the other suggestions, this driver should be moved during config time, but I would be willing to load it my USB doohickey prior to booting Knoppix/Mandrake Live/whatevernix.
I have valid Windows NT/2000/XP licenses on my machine, or I wouldn't have the NTFS partition to begin with. Maybe that's not a guaranteed assumption, and IANAL, but I don't think it would put too many MS lawyers on alert if it were done that way.
Perhaps a copyright/license file stating "These files are to be used on computer systems with valid Windows NT/2000/XP licenses only." when they are copied to the USB Key.
Design for Use, not Construction!
I think it would be a good idea to get Linux to natively support NTFS partitions. That way, users of Windows would be able to boot either OS, and easily share data between the two. The way I see it, you could have a \Linux folder, containing everything execpt the /swap filesystem.
This would be very handy to me, since I use XP for Video / Photo Editing, Gaming, and Linux for everything else.
Am I crazy? Is this crazy talk? Why not give users the option to use Ext3, RiserFS, NTFS, etc all on the same page?
Press any key to continue, any other key to quit.
No, it doesn't. Linux supports a wide range of journalling file systems: ext3, JFS, ReiserFS, XFS, in addition to almost any filesystem known to man, INCLUDING native NTFS
Shouldn't Linux be on something "better" than FAT32
It is.
You got your facts wrong, that's all.
Actually, I have another use for it. Back when I had a Win98 dual-boot box, I could run Quake III under Linux with a symlink for the PAK0.PK3 file pointing to my FAT32 partition. On my current XP/Linux box with an NTFS partition, it didn't work - I had to copy the file to my ext3 partition, wasting a scad of diskspace. I'm guessing that QIII opens the .PK3 files r/w and errors out if that fails.
Hey kids, there's only 5 days left 'til Yak Shaving Day!
Good ol Seth Nickell and Storage. WinFS-ish to be sure.
...Or am I overlooking something
Linux does NOT run on FAT32 as a native file system. It has options of EXT2, EXT3 (EXT2 + journaling), ReiserFS, XFS (from SGI), JFS (from IBM) and probably quite a few more. Yes, you could probably make it run from FAT32, if you tried.
EXT2 is similar to FAT32, whereas the others are similar in concept to NTFS -- journaling, ACLs, etc. Each has its own benefit.
Learning HOW to think is more important than learning WHAT to think.
Linux doesn't rely on FAT32, never has. What it has is the ability to read and write from a fat32 partition if the users wants to.
Linux has support for dozens of other operating systems' filesystems such as FAT32 and NTFS from Windows, JFS from IBMs OS/2 and AIX, XFS from SGIs Irix, as well as several developed specifically for Linux - such as ext2, ext3, and reiserfs.
Of all the filesystems available for Linux, XFS is probably the most advanced of any mainstream operating system in the world, with far more in the way of features and reliability as NTFS.
Ewan
Linux still runs on FAT32 itself, though the Open Source community continuously claims to be more innovative, etc..
Umm, no. Linux can read/write FAT32 filesystems, but typically it is installed on ext2 or ext3 filesystems. Or XFS, or Reiser, or JFS, or.... Basically, anything which supports Unix-like permissions. Does anyone still use the old Minix filesystem?
In theory I guess you could install it on FAT32, but it would be horribly insecure and very kludgey since FAT32 won't support permissions, symlinks, device nodes, sparse files, and probably some other necessities that I'm forgetting right now.
Hey kids, there's only 5 days left 'til Yak Shaving Day!
I would like to see ext3 for XP, and UFS too. Windows JFFS2 drivers for removable smartmedia would be nice too, but these things are a bitch to port. Ideally, you'll have a full debug (checked) build of XP and a second XP machine to run a kernel debugger on. One mistake in IFS code and it's off to bluescreen/reboot city.
Jon.
Friends don't help friends install M$ junk.
If the "Captive" (?) NTFS project needs the original MS driver it might also be illegal, and plain useless when there's no ms-windows around but only data to be rescued.
Anyways, if this project scratches someone's itches then who cares - go for it. At least one can always try pulling stuff like this under the open source skies. Try retrofitting ms-windows with non-ms-sanctioned FS support... now there's a challenge!
Should invading one's peaceful neighbours be opposed, or rewarded with trade deals?
Such boasts are obviously proved empty by full read write access from a boot disk
Any non encrypted filesystem would have all access controls subverted when mounted under a foreign operating system. Claiming anything else is absurdity. Do you think that ext2 holds the chmod based security when I mount it up under a box that it wasnt created under? You do realize that any user with root on any Linux box could simply reset all the attributes meant to keep users off/let them in under a different box?
Why would you hold MS to fault for something that is unversial and by its nature fundamental?
Nobody is suggesting putting the binary on a CD. It is already on the users computer - so there is no need.
That should be sending me a flag that this is just a troll or flamebait, but I'm biting anyway. I don't have the money to buy an extra machine so I can run Linux and my wife can run Windows. And I'm not such a zealot as to make her use Linux for tasks that she finds easier in Windows. There is no Photoshop for Linux, and the only legal ways to run Photoshop in Linux end up meaning I have to have a copy of Windows. (VMWare + Windows, Bochs + Windows, Wine + Windows DLLs). So if I'm already paying for Windows, then I may as well dualboot it and avoid the performance hit of VMWare/Bochs/Wine.
I am amazed that anyone reading articles on slashdot doesnt know the correct meaning of the word hack.
... call yourself a geek ?
...
I suggest that you read here
http://www.jargon.8hz.com/jargon_23.html#SEC30
shame on you
nick
Electronic Music Made Using Linux http://soundcloud.com/polyp
those of us on non-x86 platforms that want read/write NTFS access to external (firewire / usb2.0) drives will only suffer due to driver emulation layers like this.
it satisfys much of the normal x86 crowd which means development of the real driver suffers.
I added NTFS readonly (which is safe) support in my kernel, and always add a small fat partition in my dual boot system, as a spool are between both, have been doing it for years, and am happy with it. But i still like that hack though, pretty neat work.
The lunatic is in my head
Microsoft may not, though. So, a person provides a tool to grant safe access to a resource--which you own--remember, that's your data on that drive. And Microsoft has spent quite a bit of money deliberately breaking existing compatabilities. Clearly this state--incompatability--has value to them.
It's not inconceivable that Microsoft might expend some effort to see that such a tool is not available for the public to use.
It's kinda like the whole "fair use" issue. Fair use says functionally what you posted--what you do in your house is your business. And interested parties cannot use legal means to directly curtail your rights to fair use.
What they can do, however, is make it technically difficult for you to exercise these rights.
So, sure, you can read your NTFS partition in your own house. And you can do it from another OS.
Too bad we bought off/intimidated/harassed/took out and shot the only author of the tool that allows you to do this. 'Course someone else might create such a tool, and they're free to do so. Care to try?
Would these drivers, assuming you have an NT4 disk gathering dust, be a solution for non x86 users?
Not much help if you run Linux on ARM or 68k or something but there you go.
Oxford Dictionaries Online
I think this is how NTFSDOS does it. Before you use it, you install their product on a working Windows machine (with NTFS) and generate boot floppies or CDs that then include the Microsoft-owned NTFS code.
Surely in that case it ought to be called Ginp?
It's not like ntfs.sys is readily distributable free of charge like the Win32 codec DLL's are, right? Or is it?
Just FYI; the codec DLLs aren't distributable free of charge either.
Coming soon - pyrogyra
sometimes it mounts, sometimes it doesnt.
when it does, I try to ls and get 'stale NFS file handle'
or operation not permitted.
so I'll play a little with it and report back here
The extra layer, wherein an executable's calls are "translated" into *nix calls, is most certainly emulation. It allows an executable to run as if it were in one environment, even though it is not.
All an emulator is, is a translator. It's simply a question of how much is translated. If you want to say, "WINE is a really efficient emulator, because it doesn't have to translate every single assembly instruction," you'd be right. But it is STILL an emulator, because it still emulates having the win32 api.
Do win32 executables run on *nix systems? No, *nix systems don't know how to interpret them. By virtue of the WINE emulator, however, the part that *nix doesn't know how to run is translated into something that it does know how to run, while the part that is consistent between win32 and *nix can simply be passed through.
If WINE were not an emulator, you wouldn't have to run the win32 exes in WINE, you could just run them in the shell.
All that said, does the fact that WINE is really an emulator make it bad? No, of course not, especially since it is an extremely efficient one. Of course it's not a pure hardware emulator, so many ideas of inefficiency associated with emulators don't apply. But when you get right down to it, it's allowing binaries designed for one system to run on another, and even if it's more efficient than running on the original platform, that still makes it an emulator.
-Dan
When will us Mac users get NTFS support?
I'm not sure if you realize it, but there is no easy solution for using an external hard drive over 32gb with multiple platforms.
As of this driver, it appears that NTFS is probably the best way to do this, as it now has Linux support.
Windows or MacOS don't support Ext3 natively, and the 3rd party drivers are slow. Fat32 has a 32gb limit. Mac HFS+ can't be read by Windows.
How easy could it be to write an NTFS driver for OS X?
-- If you try to fail and succeed, which have you done? - Uli's moose
Linux supporters will never acknowledge the skill of Windows programmers except on one issue: The ability to magically alter code so that it not only breaks everything Linux related, but corrupts your data. Somehow, this code keeps running perfectly on every existing Windows installation.
Then again, that kind of trick is always described as 'easy' as well, so I guess credit isn't being given. Though if it were so easy, you'd think Microsoft might be doing a bit more of it, no?
Does this mean that other drivers used for hardware (i.e. WinModems) might also be able to be emulated via this method?
Why *is* it harder to read from an ntfs filesystem than to write to it?
The current ntfs kernel module is able to understand the formating of ntfs in order to read it, but shouldn't that same understanding allow them to code proper "write" access as well?
It's obviously true that it's more difficult, but why?