this post was submitted on 21 Oct 2024
38 points (97.5% liked)

techsupport

2468 readers
13 users here now

The Lemmy community will help you with your tech problems and questions about anything here. Do not be shy, we will try to help you.

If something works or if you find a solution to your problem let us know it will be greatly apreciated.

Rules: instance rules + stay on topic

Partnered communities:

You Should Know

Reddit

Software gore

Recommendations

founded 1 year ago
MODERATORS
 

As well as all my important stuff in /home, can I transfer over the operating system as well as everything in the root partition? What about the Windows Partition? Thanks in advance.

you are viewing a single comment's thread
view the rest of the comments
[–] Rentlar@lemmy.ca 5 points 3 weeks ago* (last edited 3 weeks ago)

If you're feeling risky, dd can do everything you want to but it can also fuck everything up if you make a mistake (so can ignoring warnings on gui programs). So triple check everything (the if= and of= portions in particular) before you run any dd command. Launch a live distribution off a CD or USB to use a disk image maker or dd, don't make images of the operating system disk while it's being used for best results. A couple sample methods:

  • make an image of the entire smaller disk, place it on a third storage disk
  • restore the image from the third disk to the destination disk you want
  • then resize the partitions or add new ones on the second disk using Gparted for the remaining storage space.

The quicker but riskier method is to directly clone the first disk to the second larger disk, then adjusting the second disk using Gparted to add or expand partitions.

Either way it will copy everything from the old disk including windows and root partitions.