LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Extracting tar.xz (https://www.linuxquestions.org/questions/linux-newbie-8/extracting-tar-xz-4175419743/)

nownebie 08-01-2012 07:13 AM

Extracting tar.xz
 
Hi,

i need your help what to do next. Please read this text.
Extract the images using "tar -xvf IMAGE.tar.xz" -C /mnt" (replace "IMAGE" with the current Fortress Linux
image). I have a tar.xz file on usb stick. I have no idea what to do. I am getting error no such file or directory.


Thanks.

zhjim 08-01-2012 07:19 AM

Judging from the error message it seams you are using the wrong path. Please change to the directory where the file resides and give the output of pwd.
What I also find strange is that the wikipedia entry of .xz tells to use the option -J for xz archives. So it might also be that the options your using with tar might be wrong.

Wim Sturkenboom 08-01-2012 07:25 AM

You can determine the type of file with the file command; see the manpage for 'file'. Once determined, you can strip of the first layer of your file and run file again to figure out what you have now. Etc etc.

I assume that you are aware that extensions have no meaning in Linux; anybody can call it anything :) So from the filename, one can not always determine what it is.

nownebie 08-01-2012 07:29 AM

Hi,
i have that file on usb stick.I think it is sdb1. pwd output is /root.

grail 08-01-2012 08:21 AM

So if the output is /root, this would mean you missed the part where zhjim said, "Please change to the directory where the file resides"

This means, change to where sdb1 is mounted, something like /media/<name of drive>. From here you can issue your tar command


All times are GMT -5. The time now is 09:51 AM.