Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 733  / 2 Years ago, sat, january 1, 2022, 11:27:41

So short story is that I am wanting to grab my ubuntu install, back up to an external disk, delete everything from my hdd, repartition my hdd, put my ubuntu install back.



Long story is.



I finally got my recovery discs, so I do not need to recovery partitions, not the mention my hdd is kinda messy, So I am going to wipe it and put everything back.



Thing is I don't want to have to re-install everything, I would rather just copy/paste my ubuntu install if possible.



Oh, What I should also mention is that I will be dual booting windows!


More From » 11.04

 Answers
1

I would do something like



sudo rsync -avx --exclude=".gvfs" / /path/to/backup/folder/


(The -x option makes it ignore other filesystems, which makes it work even on a running system, which is great for backups!) You will want to do this step for each partition you decide to back up.



Once you have the partitions the way you want and windows installed, I would boot a Ubuntu LiveCD/USB. Then mount the new partition and backup partition and run something like



sudo rsync -avx --exclude=".gvfs" /path/to/backup/folder/ /path/to/new/mounted/partition/


You will want to do this step for each partition you want to restore.



Run sudo blkid to get the uuid of each of the new partitions. Then run



gksudo gedit /path/to/new/mounted/partition/etc/fstab


and change the UUIDs and then save the file.



Then I would follow the instructions on Grub2 Reinstalling from LiveCD in the "Method 3-Chroot" section to install Grub and let it detect the new disk layout.


[#44511] Monday, January 3, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nquirewha

Total Points: 256
Total Questions: 109
Total Answers: 122

Location: Namibia
Member since Mon, Feb 21, 2022
2 Years ago
nquirewha questions
Wed, Jan 26, 22, 03:38, 2 Years ago
Mon, Nov 1, 21, 13:50, 3 Years ago
Thu, Dec 1, 22, 09:23, 1 Year ago
;