[SOLVED] I'm in LiveCD - Need help using cp and preserving all that is in my /home
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.