Installing SSD on a laptop along with a HDD
Hello everyone
I have a laptop with a 1TB HDD in it. I want to install a SSD in it and replace the dvd rom with the HDD. my current partition scheme of the hard drive is one efi partition, a root partition and the rest being the home partition. What I want to do is move the efi and root partitions on the ssd and possibly extend the home partition to take entire HDD.
I want to ask for possible ways in which I could achieve this. I am also open to suggestions on some different approach on this.
Thanks
About this post
- Posted
- Archived
- Score
- 11 · 100% up
- Kind
- Text
- ID
- eltefc
12 comments
Clonezilla to copy the partitions over, Gparted to repartition, then manually update your fstab/bootloader configuration.
extending the home partition backwards using gparted could result in data loss or not?
Doing anything with partitions could result in data loss. It's very unlikely to though.
IMHO this is the cleanest way to do this. But that's just my preference.
Yeah, this way you shouldn't have to worry about errors while copying/resizing/cloning the data.
You can copy the files using rsync. The EFI partition should be easy to clone. If you didn't customize the bootloader, the simplest thing would be to just reinstall the bootloader to the new EFI partition. Root and home can easily be copied afterwards (using rsync again)
I made 2 partition on SSD and used rsync to copy root and efi. then edit fstab and kernel root parameter. then removed old root and efi from HDD.
That is simple enough, but when you removed the root and efi from HDD, did you resize your home and if you did, how? I mean I could use gparted but I have a very bad experience with it as once I tried to resize a partition backwards and it was corrupted.
You don't need to resize it for this method, you are copying the files over to the other, not raw blocks.
Edit: I missed the part about your home folder, what file system are you using? If it is ext4 you can run resize2fs
If you have home partition, then create another partition on ssd and follow same procedure. I don't have home partition so I just made 2. You don't need to resize anything because you are just copying files to existing partition. You need to use specific rsync flags to copy root partition. It's available on arch wiki.
Just dd. I've done it like 3 times and the installation is still working perfectly.
Even better would be to have been using LVM, since then it's trivial to move LVM LVs/partitions and can be done on a live system.
dd is what I would use but it's pretty tedious to calculate the partition offsets but I suppose you could right a little partition-mover bash function to do it for you.
How exactly am I supposed to use dd?