PuppyThis forum is for the discussion of Puppy Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
So the old "FAT32" file name aliases were preserved in NTFS? I don't see how that affects the NTFS file name? Since around Windows 2000 file and directory names have allowed almost as many characters as Linux.
As to the original point of my previous post -- having messed with various file systems under Windows I tend to take MS's word for it that the problem with the colon is due to "streams". I, too, see no evidence of them being implemented -- hence my speculation they were dropped due to lack of fund or time or just due to them being a feature of something MS bought or stole which they saw no further use for.
While anything can be stored in an NTFS Alternate Data Stream, they are most commonly used for storing metadata. For instance, when a file is downloaded from the Internet and saved on an NTFS volume, Windows will store information about the file's origin ("zone") in an ADS called "Zone.Identifier".
that's a terrific bit of information, thanks for the insight!
In fact, when I had to use a Windows PC, I often wondered how Windows could "know" that a particular file had been downloaded from the internet. Now that explains a lot.
Quote:
Originally Posted by 273
So the old "FAT32" file name aliases were preserved in NTFS?
Yes, but exactly the other way round. NTFS considered the "long names" as the primary file names from the start, and for those infamous "compatibility reasons" still maintained the old 8.3 file names for applications that seemed to expect them.
Quote:
Originally Posted by 273
I don't see how that affects the NTFS file name? Since around Windows 2000 file and directory names have allowed almost as many characters as Linux.
That's right, in advancing from Windows 4 to Windows 5, the set of allowed characters in NTFS file names was liberalized greatly. And with SP6, AFAIR, even the ancient and senile Windows NT4 got that benefit retroactively.
it's much more obvious and dates back to the stone age of DOS, where the colon was used to separate a device name (most frequently a drive letter) from the actual path or parameters. Windows has just dragged along that legacy ever since.
While it's true that the colon is used to separate the drive letter from the file path, it was not required for device names, and still isn't. This can lead to some very interesting bugs. For instance, the device name for STDOUT is "con" on the DOS/Windows platform:
Code:
C;\Users\Test> echo This is a test > con:
This is a test
C:\Users\Test> _
And the > redirection operator clearly works as it does on the various *NIX platforms:
Code:
C:\Users\Test> echo This is a test > test.txt
C:\Users\Test> dir
Volume in drive C has no label.
Volume Serial Number is 1234-5678
Directory of C:\Users\Test
08.12.2014 22:16 <DIR> .
08.12.2014 22:16 <DIR> ..
08.12.2014 22:16 17 test.txt
1 File(s) 17 bytes
2 Dir(s) 875*249*891*328 bytes free
C;\Users\Test> _
But as it turns out, "con" is a reserved name, and no device qualifier is required:
Code:
C:\Users\Test> echo Foo! > C:\Users\Test\con.txt
Foo!
C:\Users\Test> echo Foo! > C:\Users\Test\prn.txt
The system cannot find the file specified.
C:\Users\Test> What the...?_
So on the Windows platform, devices like con, lst, comn, lptn, nul and a few others appear to be invisible files existing (or not, as the case may be for prn) in every directory of every mounted file system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.