LinuxQuestions.org
Help answer threads with 0 replies.
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 04-15-2009, 04:50 PM   #1
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 899

Rep: Reputation: 70
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??
Thanks,
CC.
 
Old 04-15-2009, 06:22 PM   #2
wabbalee
Member
 
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, 06:49 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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, 09:55 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
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, 03:57 AM   #5
maresmasb
Member
 
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 03:12 PM.
 
  


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

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

All times are GMT -5. The time now is 08:43 AM.

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