The MASM Forum Archive 2004 to 2012

Miscellaneous Forums => 16 bit DOS Programming => Topic started by: dumb_terminal on October 12, 2010, 06:54:57 PM

Title: Reading NTFS
Post by: dumb_terminal on October 12, 2010, 06:54:57 PM
I know it sounds stupid guys, but is enumerating files and directories from a NTFS drive is same as FAT ? I am trying to place a mini terminal from usb while booting up, which needs to support a DIR command. Thanx in advance.
Title: Re: Reading NTFS
Post by: BogdanOntanu on October 12, 2010, 06:57:57 PM
No it is NOT the same as FAT. In fact it is very much different.

Title: Re: Reading NTFS
Post by: dumb_terminal on October 12, 2010, 07:01:22 PM
Quote from: BogdanOntanu on October 12, 2010, 06:57:57 PM
No it is NOT the same as FAT. In fact it is very much different.


Thanx for ur quick reply Sir. Any hints or links or kind enough to give a code sample Sir ??
Title: Re: Reading NTFS
Post by: BogdanOntanu on October 12, 2010, 07:07:30 PM
Quote from: dumb_terminal on October 12, 2010, 07:01:22 PM
Thanx for ur quick reply Sir. Any hints or links or kind enough to give a code sample Sir ??

Not really,    www.ntfs.com
Title: Re: Reading NTFS
Post by: dumb_terminal on October 12, 2010, 07:09:00 PM
Quote from: BogdanOntanu on October 12, 2010, 07:07:30 PM
Quote from: dumb_terminal on October 12, 2010, 07:01:22 PM
Thanx for ur quick reply Sir. Any hints or links or kind enough to give a code sample Sir ??

Not really,    www.ntfs.com
Ummm... thanx i'll try.
Title: Re: Reading NTFS
Post by: redskull on October 12, 2010, 07:14:32 PM
A full, working implementation of an NTSF file system is vastly more complicated than FAT.  It's a closed, proprietary system, so even if you wanted to, you would have figure it all out from scratch.  Also, since it supports permissions, you would have to find a way to authenticate users and only allow access to the appropriate files for each user (Unless, of course, you were trying to something unscrupulous...  :naughty: )

Your best bet is to just get Linux LiveCD or USB key, for which rudemntary ntfs drivers already exist, and do it from there.

-r