Howdy, Stranger!

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

Categories

DOS file attrib in LInux

SloppyOSloppyO Member Posts: 1
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 Member Posts: 642
    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.