0

I wanted to make a backup of Ubuntu. I only have ubuntu on the machine.

I did the following. I got a live usb and booted. Then I used gparted to copy my Ubuntu to another ext4 partition that I have. Nothing more.

Now I booted back to Ubuntu and opened gparted. It shows that both the old and the new partitions are mounted and the mount point is /

  • What's happening?

  • Does it relate to UUIDs? (because blkid shows that both partitions have the same UUID)

  • How can I maybe disconnect or something, the two Ubuntus from each other? Make them 2 independent OSs. And, would it be a good idea?

Please let me note that Ubuntu is running very slowly

3
  • 1
    No, that's not a good idea at all ... really not. GParted is not a backup tool, it is a partitioning tool. You can use Clonezilla to backup an operating system. Learn more here -> askubuntu.com/questions/876444/…
    – cl-netbox
    Feb 5, 2017 at 16:36
  • uh oh worried. I'll delete the new partition I made
    – 842Mono
    Feb 5, 2017 at 16:39
  • btw I was following the first answer here
    – 842Mono
    Feb 5, 2017 at 16:40

1 Answer 1

2

Does it relate to UUIDs? (because blkid shows that both partitions have the same UUID)

Yes. If your intent is to create an independent OS, you need to assign a different UUID. GParted can do that for you. Right-click on the cloned partition, and choose new UUID. A random UUID will be assigned to the partition.

How can I "separate" the two Ubuntus from each other? Make them 2 independent OSs.

  • It's been a while since I did this. I remember having to change /etc/fstab and /boot/grub/grub.cfg of the cloned partition to reflect the new UUID. Be careful with grub.cfg coz there are multiple entries of the old UUID that needs to be edited. Make sure to get them all.
  • Boot into the original partition, make sure the cloned partition is no longer being mounted upon boot, and do sudo update-grub to create the new menu entries for the cloned partition.
  • Reboot into the cloned partition to check if it works. I may have missed out on other entries that needs to be changed.

Is this a good idea?

If your intent is to make a back-up, then NO. There are better ways to back up your root partition without resorting to cloning and changing UUIDs.

If the intent is to make a separate, independent OS out of the original root partition, then maybe yes.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .