Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: ml on March 30, 2010, 05:17:48 AM

Title: Preserve attributes for files on ntfs
Post by: ml on March 30, 2010, 05:17:48 AM
Hi,

I am trying to unpack a zip Archive to ntfs partition, but after the unpacking all attributes of the files are lost.

Is there away to preserve the original attributes of the files (like hidden, system)?

I have ntfs-3g and p7zip installed on my microcore.

Thanks in advance
Title: Re: Preserve attributes for files on ntfs
Post by: Juanito on March 30, 2010, 06:30:12 AM
Some of the (linux) attributes would be lost anyway - after checking that ntfs-3g had given you the appropriate write permissions, you could try unpacking the zip archive to a linux drive and then copying to the ntfs drive?
Title: Re: Preserve attributes for files on ntfs
Post by: ml on March 30, 2010, 06:53:05 AM
I don’t have linux drive. It’s a Windows machine. I boot microcore from USB stick.
I am trying to manipulate Windows System32 directory. I have zip Archive which contains the needed files with windows ntfs attributes set.
The attributes from the archive should be preserved for Windows to work properly. 
Title: Re: Preserve attributes for files on ntfs
Post by: Juanito on March 30, 2010, 07:44:37 AM
according to the man page, the ntfscp command in the ntfsprogs extension allows you to set file attributes - maybe useful?
Title: Re: Preserve attributes for files on ntfs
Post by: ml on March 31, 2010, 02:58:25 AM
According to http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/ has the system to provide an extended attribute interface.
The question is: Is the interface a part of microcore?
Do I have to use ntfs-3g-adv.tcz extension?
Title: Re: Preserve attributes for files on ntfs
Post by: curaga on March 31, 2010, 03:25:19 AM
The manpage of unzip (zip-unzip.tcz) mentions the -X option can be used under NT to also extract the ACLs. Not sure if it would also extract those under linux, but worth a try.
Title: Re: Preserve attributes for files on ntfs
Post by: ml on April 01, 2010, 01:30:06 AM
I tried the ntfs-3g-adv and zip-unzip extensions, without success.
I’ll try to backup and restore the ntfs partition with dd.

Thanks.