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.
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.
Would deleting it also delete the data on it? What is the point of automatically resizing them then?
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
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
I did a web search but it’s all SEO :(
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
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??
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.
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.No, this will not fixup the GPT partition table, so
partclone
, integrated in clonezilla, is way easier.Otherwise yes,
dd
andgdisk
work really well. But you can easily mess up and Clonezilla just worksNice. I assume I’ll need to transfer to an external drive first, and then transfer back to the new one?
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.
It’s an internal drive though.
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.
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.
Depends. If you have enough slots you can do it in one go. Otherwise you’ll have to use an external drive.
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.
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%.