Skip to content

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

11 points12 comments
Open on Reddit
About this post
Posted
Archived
Score
11 · 100% up
Kind
Text
ID
eltefc

Author

4
posts
22
comments
2
media
View profile

12 comments

Clonezilla to copy the partitions over, Gparted to repartition, then manually update your fstab/bootloader configuration.

4 points

extending the home partition backwards using gparted could result in data loss or not?

2 points

Doing anything with partitions could result in data loss. It's very unlikely to though.

3 points
  1. Copy all your /home to an external backup disk.
  2. Nuke (format, format, not literally) everything. Install whatever OS on your SSD.
  3. Copy your /home back to the HDD.

IMHO this is the cleanest way to do this. But that's just my preference.

3 points

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)

1 points

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.

2 points

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.

1 points

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

1 points

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.

1 points

Just dd. I've done it like 3 times and the installation is still working perfectly.

1 points

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.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.