DOS file attrib in LInux - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

DOS file attrib in LInux

Does anyone know how to keep DOS file attributes in
Linux?

e.g. MSDOS.SYS file has attrib SHR (System, Hidden and
Read-Only). But if I mount the DOS partition as VFAT under Linux and then move the file with command
mv MSDOS.SYS MSDOS.OLD
the DOS file attribute SHR will no longer exist if I reboot
in DOS. Linux cp command will do the same.

Anyone has an idea? Thanks!




Comments

  • gautamgautam Posts: 642Member
    How about cp -a ?

    You should man cp (I think p is the one which preserves the permissions while a preserves attributes - well not sure - and not on linux right now to check).


    : Does anyone know how to keep DOS file attributes in
    : Linux?
    :
    : e.g. MSDOS.SYS file has attrib SHR (System, Hidden and
    : Read-Only). But if I mount the DOS partition as VFAT under Linux and then move the file with command
    : mv MSDOS.SYS MSDOS.OLD
    : the DOS file attribute SHR will no longer exist if I reboot
    : in DOS. Linux cp command will do the same.
    :
    : Anyone has an idea? Thanks!
    :
    :
    :
    :


Sign In or Register to comment.