WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Preserve attributes for files on ntfs  (Read 2632 times)

Offline ml

  • Newbie
  • *
  • Posts: 14
Preserve attributes for files on ntfs
« 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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14551
Re: Preserve attributes for files on ntfs
« Reply #1 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?

Offline ml

  • Newbie
  • *
  • Posts: 14
Re: Preserve attributes for files on ntfs
« Reply #2 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. 

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14551
Re: Preserve attributes for files on ntfs
« Reply #3 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?

Offline ml

  • Newbie
  • *
  • Posts: 14
Re: Preserve attributes for files on ntfs
« Reply #4 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?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10963
Re: Preserve attributes for files on ntfs
« Reply #5 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.
The only barriers that can stop you are the ones you create yourself.

Offline ml

  • Newbie
  • *
  • Posts: 14
Re: Preserve attributes for files on ntfs
« Reply #6 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.