LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-24-2011, 11:59 AM   #16
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918

^ good idea. this mite work:
Code:
tar --preserve-permissions --same-owner --atime-preserve -cvjf /media/TV/doc.tar.bz2 /mnt/doc # to create the archive
tar --preserve-permissions --same-owner --atime-preserve -xvjf /media/TV/doc.tar.bz2 -C /mnt # to restore the archive
it will probably take a while; you mite need to be root (sudo).
tar: http://ss64.com/bash/tar.html


alternatively you can make a byte-for-byte replica of the disk image using disk duplicator:
Code:
dd bs=8192 if=/dev/sdd | bzip2 > xbmc-01.05.2011.iso.bz2 # to create the image
bunzip2 -c ./xbmc-01.05.2011.iso.bz2 | dd bs=8192 of=/dev/sdd # to restore the image
this is very destructive because it is overwriting the whole disk (all partitions as well as boot sector and partition table) although it can be modified to point at a specific partition.

Last edited by schneidz; 05-24-2011 at 12:10 PM.
 
1 members found this post helpful.
Old 05-24-2011, 01:47 PM   #17
Mark_in_Hollywood
Member
 
Registered: Jan 2006
Location: USA
Distribution: Ubuntu - Bionic Beaver
Posts: 133

Original Poster
Rep: Reputation: 16
I deleted this post, as I had not seen the immediate post before this. I'm in LiveCD session and forgot to F5. Sorry.

Last edited by Mark_in_Hollywood; 05-24-2011 at 01:49 PM. Reason: prior post
 
Old 05-24-2011, 02:21 PM   #18
Mark_in_Hollywood
Member
 
Registered: Jan 2006
Location: USA
Distribution: Ubuntu - Bionic Beaver
Posts: 133

Original Poster
Rep: Reputation: 16
schneidz

Thanks! I'm running the tar as I type. It's gotta take until dark, tonight, from the looks of the speed, but I'm so happy. And grateful for your help. It would have taken me all day to get half of those commands.
 
Old 05-25-2011, 07:40 AM   #19
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
your welcome... clik on 'Did you find this post helpful?' to rep me up.

thanks,
 
Old 05-25-2011, 06:57 PM   #20
Mark_in_Hollywood
Member
 
Registered: Jan 2006
Location: USA
Distribution: Ubuntu - Bionic Beaver
Posts: 133

Original Poster
Rep: Reputation: 16
To All To Whom These Presents Shall Come:

Thank you, Linux Community. The tar made a 31 gig file of the /home. And sent it to the external usb harddrive without problems. The /home uncompressed was 36 gig so I guess that's fair for the game. Meanwhile, on a clean reinstall of Natty Narwahl (ver. 11.04) to /sda1, the OS has been restored. I even have some passwords and similar I would not have expected to find still there on a clean re-install. I had to re-install the Brother printer driver and scanner driver, but that was easy enough.
 
Old 05-25-2011, 08:58 PM   #21
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Happy to see a success problem solved.
 
  


Reply

Tags
/home, cp, links, permission



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
livecd-creator, kickstart files, adding files to /home directory. I.E. software dedicated livecd Bastian123 Fedora 2 03-13-2011 05:02 AM
[SOLVED] livecd and encrypted home linus.newbert Ubuntu 4 07-07-2010 10:55 PM
can I make a liveCD use HD's home folder? newbiesforever Linux - General 4 08-08-2009 10:48 PM
In LiveCD NOW & Formating Hard Disk Drive for Ubuntu Intrepid with /, /home, /usr/ Mark_in_Hollywood Linux - Newbie 2 11-17-2008 11:37 AM

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

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