Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-21-2007, 05:02 PM   #1
LQ Newbie
Registered: Oct 2006
Posts: 10

Rep: Reputation: 0
TAR command to unpack files to NTFS part


I have a TAR file backup of a NTFS partition. The TAR file was created over a network to another NTFS partition using Knoppix LiveCD 5.1.

Since the creation of this backup file, the hdd has been formatted, partitioned and otherwise used for many operating systems and data, so any original data or partition table information of this original installation is no more.

Now I have again booted Knoppix LiveCD and erased all partitions on the disk, created a single, empty, NTFS partition that spans the entire hdd. Using knoppix I have mounted the network directory where the backup file is located and tried decompressing it over the network directly to the new NTFS partition... but all I get is errors.

TAR reports that it canŽt write the file because the file isnŽt already on the drive???

Anyway, IŽm lost. Tried several command options for TAR but canŽt get it to work. In a nutshell what I need is:

TAR command to extract a .tar.gz file located in a NTFS network directory directly to a local NTFS partition, using Knoppix LiveCD 5.1, with both partition and network directory already being mounted.

Can anyone please help?
Old 05-21-2007, 05:17 PM   #2
Senior Member
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
I think in a year to two you may be able to use tar to write on a NTFS partition but current Linux reads but does not write on a NTFS partition.

Your problem is when you tar the NTFS partition you did so probably in a Linux Ext2/3 partition. Thus the files have been converted from NTFS format to Ext2/3 format. tar can convert it back to any format it supports in writing but NTFS isn't one of them.

Thus you can ask Linux to tar back to a Fat32 partition to get all the files back less the protection feature available in NTFS but not Fat32.

I think newer Knoppix has a captive write feature on NTFS partitions but I have no idea how good it is, as the ntfs-3g seems to be in in-thing for writing NTFS partitions.

The latest slax 6.0.0 can write on NTFS partition without any special arrangement. May be it is the one to try to see if tar works there. Slax gives you root privilege to the desktop plus it mounts every partition automatically.

Last edited by saikee; 05-21-2007 at 05:21 PM.
Old 05-22-2007, 07:15 AM   #3
Registered: Oct 2005
Distribution: Ubuntu 12.04 X86_64
Posts: 960

Rep: Reputation: 35
anothe option if you have an install of windows allready is to download and install cygwin on the windows side which gives you a bash command lien in windows with most standard *nix tools avalable, like tar, gzip, grep, etc...

also i belive winzip cna handle tar archives
Old 05-22-2007, 07:51 AM   #4
Senior Member
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 63
Linux is now able to read AND write to ntfs. I believe the filesystem is called "ntfs-3g", and works through "fuse".
I have not tried, though.

Old 05-22-2007, 11:50 AM   #5
LQ Newbie
Registered: Oct 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Thank you very much for the replies.

IŽll try Slax and if it doesnŽt work IŽll go and look into NTFS-3g. I have no idea what it is but IŽll find out.

Thanks again,


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
tar.gz will not unpack werfer Linux - General 5 06-30-2006 06:42 PM
tar.gz files wont unpack liquidjojo Linux - General 2 03-30-2005 01:06 AM
how to unpack .tar? g-string 3 Debian 8 11-29-2004 08:01 AM
what do i do after i unpack the tar.gz sanjaya Linux - Software 1 02-11-2004 07:58 PM
tar gz files unpack attika Linux - General 1 08-06-2002 07:04 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:13 AM.

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