Does moving a file outside NTFS lose data in alternate data streams?

5

I have a lot of files on a machine running Windows Server 2008 which I wanted to move to a Fedora machine. How can I keep the attributes stored in, for example, media files (date taken, rating, length, etc.) while transferring it to outside the realm of NTFS's Alternate Data Streams?

I'm aware that similar metadata exists in other file systems, but what happens when you move these files? And what's the best way to retain them in other file systems?

jay

Posted 2010-06-02T07:02:16.263

Reputation: 6 287

Answers

4

Information stored in actual file streams will be lost. (Streams from sysinternals.com is a utility that allows you to view streams and optionally, delete them.) The kinds of files I believe you're talking about (photos, videos, etc.) store their metadata as part of the file, not in streams, so you'd be safe moving them around between different file systems. A simple test to determine whether data will be lost is burn them to a CD using Windows, as opposed to some other software. You don't have to actually burn the CD, just drag the file(s) in question to the CD Drive in "My Computer," or "Computer." If there are streams present, Windows will warn you that you may lose some data by copying them to CD.

I believe that in practice, streams are rarely used. Internet Explorer uses a stream to mark files that came from the Internet when you download. If you right-click on a downloaded file and choose "Properties," you'll notice a button that reads "Unblock." This button is triggered by the presence of a stream named ":Zone.Identifier:$DATA". Clicking the "Unblock" button deletes the stream. The stream will contain something like:

[ZoneTransfer]
ZoneId=3

You can view the contents of the stream by using something like:

more < "somefile.zip:Zone.Identifier:$DATA"

BillP3rd

Posted 2010-06-02T07:02:16.263

Reputation: 5 353

1

To answer your title question, yes.

To retain them when migrating them to another file system I expect you would need to copy the alternate data streams to seperate, regular files before copying them. Depending on the destination file system you may be able to 'reattach' them in some way but you'd most likely lose their usefulness and you'd have the same sort of headaches if you moved them back to NTFS later.

Mike Fitzpatrick

Posted 2010-06-02T07:02:16.263

Reputation: 15 062

0

Alternate data streams are only conserved when copying from one NTFS disk to another.
In any case, they are Microsoft-specific and do not translate at all to other operating systems.

Alternate streams can be copied to ordinary files and conserved that way.

See for example these streams utilities :
NTFS Alternate Streams: What, When, and How To

harrymc

Posted 2010-06-02T07:02:16.263

Reputation: 306 093