LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-01-2012, 07:13 AM   #1
nownebie
LQ Newbie
 
Registered: Aug 2012
Posts: 2

Rep: Reputation: Disabled
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.
 
Old 08-01-2012, 07:19 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
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.
 
Old 08-01-2012, 07:25 AM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
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.
 
Old 08-01-2012, 07:29 AM   #4
nownebie
LQ Newbie
 
Registered: Aug 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi,
i have that file on usb stick.I think it is sdb1. pwd output is /root.
 
Old 08-01-2012, 08:21 AM   #5
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] extracting group of files from a tar.bz that was created with the following tar - lleb Linux - Newbie 1 06-06-2012 03:06 PM
extracting tar.gz command gardenair Linux - Newbie 3 01-04-2012 12:36 AM
[SOLVED] tar.gz not extracting gardenair Linux - Networking 6 02-03-2011 05:05 AM
a tough question 4 u, problem in extracting tar & tar.gz files p_garg Linux - General 5 11-08-2010 11:02 AM
After extracting a tar...is tar useless? glenn69 Linux - Newbie 6 04-23-2004 09:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration