Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Untar a UNIX-based operating system

Tags:

People also ask

How do I unzip a .tar file in Linux?

Simply right-click the item you want to compress, mouseover compress, and choose tar. gz. You can also right-click a tar. gz file, mouseover extract, and select an option to unpack the archive.

What is the use of tar command in Unix?

The primary function of the Unix tar command is to create backups. It is used to create a 'tape archive' of a directory tree, that could be backed up and restored from a tape-based storage device. The term 'tar' also refers to the file format of the resulting archive file.


I am trying to untar UNIX-based operating system from a .tar.gz file. In order to do so I use the following command:

tar -xvf rootfs.tar.gz -o

The -o flag is to not to preserve the ownership of the files (it gave some problems). The problem is that when a symbolic link is untared the following message shows up

Cannot create symlink to `toto': Operation not permitted

Moreover, mknod also gives problems

dev/tty0: Cannot mknod: Operation not permitted

I am in a FAT system. Does anyone know how to untar that file?

Thanks in advance