Need help with the tar command
Posted: Mon Jan 03, 2022 8:19 pm
I got errors while untaring the symlink archive for the NeoGeo arcade.
I copied NeoGeo-MVS_2021-12-28.tar to /media/usb0 where my games directory resides, sshed into MISTer and typed the following:
cd /media/usb0
tar -xvf *.tar
A bunch of symlinks were untared but it ended up with:
tar: games/mame: Cannot change ownership to uid 1000, gid 40: Operation not permitted
tar: games/mame: Cannot change mode to rwxr-sr-x: Operation not permitted
tar: games: Cannot change ownership to uid 1000, gid 40: Operation not permitted
tar: games: Cannot change mode to rwxr-sr-x: Operation not permitted
tar: Exiting with failure status due to previous errors
Questions:
Were all the symlinks untared? To check for it would be a hell of a job.
How is it possible to avoid such errors? My Linux is rusty.
I copied NeoGeo-MVS_2021-12-28.tar to /media/usb0 where my games directory resides, sshed into MISTer and typed the following:
cd /media/usb0
tar -xvf *.tar
A bunch of symlinks were untared but it ended up with:
tar: games/mame: Cannot change ownership to uid 1000, gid 40: Operation not permitted
tar: games/mame: Cannot change mode to rwxr-sr-x: Operation not permitted
tar: games: Cannot change ownership to uid 1000, gid 40: Operation not permitted
tar: games: Cannot change mode to rwxr-sr-x: Operation not permitted
tar: Exiting with failure status due to previous errors
Questions:
Were all the symlinks untared? To check for it would be a hell of a job.
How is it possible to avoid such errors? My Linux is rusty.