38

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.

top 21 comments
sorted by: hot top controversial new old
[-] bjoern_tantau@swg-empire.de 10 points 1 month ago

You can use dd to transfer literally everything, like partitions, boot sector and filesystems over and then use gparted to grow the partitions. Boot any Linux live image to do it.

[-] boredsquirrel@slrpnk.net 5 points 1 month ago

No, this will not fixup the GPT partition table, so partclone, integrated in clonezilla, is way easier.

Otherwise yes, dd and gdisk work really well. But you can easily mess up and Clonezilla just works

[-] Interstellar_1@lemmy.blahaj.zone 1 points 1 month ago

Good to know.

[-] Interstellar_1@lemmy.blahaj.zone 1 points 1 month ago

Nice. I assume I'll need to transfer to an external drive first, and then transfer back to the new one?

[-] bjoern_tantau@swg-empire.de 4 points 1 month ago

Depends. If you have enough slots you can do it in one go. Otherwise you'll have to use an external drive.

[-] some_guy@lemmy.sdf.org 2 points 1 month ago

You can buy an external drive case cheap and plug in the old one with USB-C. I have multiple from Inateck which cost ten bucks on Amazon.

[-] Interstellar_1@lemmy.blahaj.zone 1 points 1 month ago

It's an internal drive though.

[-] some_guy@lemmy.sdf.org 2 points 1 month ago

If it's a 2.5" drive, get a drive case and make it external. If it's an m.2 chip, you can still get cases for those. I don't know how much they cost, but they exist. If it's soldered to the logic board, you're out of luck.

[-] bjoern_tantau@swg-empire.de 2 points 1 month ago

These are cases specifically to house internal drives.

Actually most cases are. Chances are good that even if you just buy any external drive that if you were to screw it open that it would have just a normal internal drive in there hooked up to an adapter.

I did this a few weeks ago with two M.2 drives and just one slot on my motherboard.

  • boot into clonezilla
  • clone smaller drive onto the bigger one (I used and external enclosure via USB)
  • shutdown and swap drives
  • reboot into live medium
  • resize partitions on the new drive with gparted
  • reboot and check/adjust UEFI settings if needed
[-] Imgonnatrythis@sh.itjust.works 4 points 1 month ago

Bookmarking this, but still sounds a bit more of a hassle than it should be. I've done this before with some paid software packages and am disappointed this is not part of the operating system. Like, hey OS. It's 2024 and I'd like to upgrade my HD. Can you give me a hand? Go fuck myself? - go spend 4 hours nervously playing with software I've never heard of before? OS I thought we were cool??

[-] Interstellar_1@lemmy.blahaj.zone 1 points 1 month ago

This sounds fairly straightforward. Does it work to note down the partition sizes initially, and then just make sure they're the same type and bigger on the new drive?

Clonezilla creates a 1:1 copy on the new drive. I went from 1 to 2 TB and had 1 TB of unallocated space left. You can use the space to increase other partitions or make new ones.

[-] Interstellar_1@lemmy.blahaj.zone 1 points 2 weeks ago

I finally got my ssd, but as you can see after cloning the partitions the unallocated space is not next to my / partition. Do you know of any way to move it over or merge them?

[-] Rentlar@lemmy.ca 5 points 1 month ago* (last edited 1 month 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.

[-] boredsquirrel@slrpnk.net 4 points 1 month ago* (last edited 1 month ago)

Clonezilla, automatically resize GPT partition table.

Nothing better than that.

If you use an LVM or a modern filesystem like BTRFS, you can just increase it afterwards, so that your partitions grow to the entire available space.

This is not possible with regular static partitions.

Otherwise afaik you can delete it and recreate it to fill up all usable space.

But well, just use BTRFS or maybe LVM.

[-] Interstellar_1@lemmy.blahaj.zone 1 points 1 month ago

Would deleting it also delete the data on it? What is the point of automatically resizing them then?

[-] boredsquirrel@slrpnk.net 2 points 1 month ago

No it doesnt. Partitions need to start at the exact bit they start, but can end at something bigger.

Thats the trick.

Using gdisk you would print the table, make a photo, delete it, create them new and set the max for the storage partition (if you use BTRFS or LVM like a normal person) to the original start, but max available end

Then you print again and verify and write to apply the changes.

Then there is space but the partitions need to fill that up still, with btrfs on Fedora that would be sudo btrfs resize max / I think

[-] Valmond@lemmy.world 4 points 1 month ago

I changed my 256GB OS/Data ssd to a 2TB and I used clonezilla, everything was copied, like parameters and installed soft.

You do need an external drive for it though (just to save a big file on) and a thumbdrive (to wipe and install clinezilla boot), but if you have that I'd recommend 100%.

[-] Interstellar_1@lemmy.blahaj.zone 4 points 1 month ago

I did a web search but it's all SEO :(

[-] Agent641@lemmy.world 3 points 1 month ago* (last edited 1 month ago)

I've always used Acronis Clonedisk, but there are probably newer tools that do the job.

I think it costs money, but I stole my copy from work.

It's very easy to use, just a few clicks on the default options, and it also auto-scales the partition to fit the destination dish, whether blarger or smaller.

It boots from a USB drive and is OS-agnostic.

I use it whenever I'm swapping out my windows boot drive for something faster or bigger. Never had any problems from using it

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

techsupport

2470 readers
1 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