Launch a UNIX-based Operating System

I am trying to unlock a UNIX operating system from a .tar.gz file. To do this, I use the following command:

tar -xvf rootfs.tar.gz -o

The -o flag should not preserve ownership of the files (this gave some problems). The problem is that when the symbolic link is not involved, the following message appears

Unable to create symbolic link to `toto ': operation not allowed

In addition, mknod also gives problems

dev / tty0: fails mknod: operation not allowed

I'm on the FAT system. Does anyone know how to unlock this file?

Thank you in advance

+4
source share
4 answers

If the file is tar.gz, you should use:

tar -xvzf rootfs.tar.gz 

And note that the FAT file system does not support symbolic links, therefore does not know how to do this on this FS, and explains the operation "Unresolved error".

+5
source

+1 fpr Ivan answer

note that:

Flags

always go right after the team name!

you will need to examine "man tar" to find out what other options you want, for example. save owner, permissions, date created time, etc.

+1
source

The correct answer: if you are trying to deploy the UNIX root file system, this will include special files, such as device nodes (therefore tar calls mknod ).

To create them successfully, tar must be run as root. Therefore, the correct answer is to use sudo , for example:

 sudo tar -xvzf rootfs.tar.gz 
-1
source

Try this to unzip the tar file. Hope this works without problems, as this problem has been resolved.

 tar -xvvf foo.tar 
-3
source

All Articles