Latest LQ Deal: Linux Power User 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 04-15-2009, 05:50 PM   #1
Completely Clueless
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 816

Rep: Reputation: 69
Question Tar-ing an entire disk?

I'd like to tar an entire 8Gb solid state *disk* rather than just a partition on it, but all I have ever seen in examples on the net is it being used with files, folders and partitions. Is this do-able and if so, how??
Old 04-15-2009, 07:22 PM   #2
Registered: Oct 2006
Location: brisbane - australia
Distribution: ubuntu
Posts: 335

Rep: Reputation: 38
what if you mount that disk in a folder, can you tar it then?
Old 04-15-2009, 07:49 PM   #3
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548
Tarring a disk doesn't make any sense to me but 'dd' can output to stdout which data 'tar' should happily accept on stdin.
Old 04-15-2009, 10:55 PM   #4
Registered: Mar 2008
Posts: 17,395

Rep: Reputation: 2585Reputation: 2585Reputation: 2585Reputation: 2585Reputation: 2585Reputation: 2585Reputation: 2585Reputation: 2585Reputation: 2585Reputation: 2585Reputation: 2585
Tar is tape archive from when we used tapes to backup systems.
It can put all files in order on some media to some other media that is in a single file with no space between.

Things like dd, cat and others can copy all data.

See tools already made like G4U.
Old 04-16-2009, 04:57 AM   #5
Registered: Apr 2009
Posts: 108

Rep: Reputation: 24
Mount all the partitions that you need to backup somewhere on your system. Make sure that you exclude the one directory where want to save the new tar file. Maybe also exclude the /dev directory.

As already suggested, 'dd' might have some benefits for backing up the entire disk - as long as you intend to recover to the same hard disk, or one with a similar size.

Last edited by Tinkster; 10-30-2010 at 04:12 PM.


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
[Solaris 9] find and grep entire disk noir911 Solaris / OpenSolaris 3 02-13-2008 06:51 PM
can only partition entire disk - help please er20ic Linux - Newbie 2 10-07-2007 03:00 PM
Resizing Partition / Tar-ing Linux Kenji Miyamoto Linux - General 7 08-23-2005 05:29 PM
iso-ing a disk mimithebrain Linux - Software 9 07-04-2005 09:12 PM
Backup entire system with tar sln Linux - General 2 04-30-2004 04:32 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:59 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