this post was submitted on 17 Jul 2025
11 points (100.0% liked)

linux4noobs

2543 readers
26 users here now

linux4noobs


Noob Friendly, Expert Enabling

Whether you're a seasoned pro or the noobiest of noobs, you've found the right place for Linux support and information. With a dedication to supporting free and open source software, this community aims to ensure Linux fits your needs and works for you. From troubleshooting to tutorials, practical tips, news and more, all aspects of Linux are warmly welcomed. Join a community of like-minded enthusiasts and professionals driving Linux's ongoing evolution.


Seeking Support?

Community Rules

founded 2 years ago
MODERATORS
 

Some years ago, I make the mistake of doing a single partition for the system (I'm using EndeavourOS). Now I have a new disk, and I want to move the OS there, but not /home, which I want to stay in the old drive. How can I do it?

you are viewing a single comment's thread
view the rest of the comments
[–] Facni@lemmy.dbzer0.com 3 points 3 days ago (5 children)

Even if I move the bootloader partition?

[–] Jumuta@sh.itjust.works 1 points 3 days ago* (last edited 3 days ago) (3 children)

depends on if you copy over the partition table as well iirc. For this to work you'll have to have the /etc/fstab file be defined using UUIDs, not disk names. you can do this with something like:

dd if=/dev/mycurrentdrive of=/dev/newdrive bs=10M

reinstalling the bootloader isn't hard though, just make sure you know if your system is configured to boot via bios or uefi

[–] sun_is_ra@sh.itjust.works 1 points 3 days ago (2 children)

if OP will use "dd" then they need to make sure that new disk is bigger than old disk.

Even then after the "dd" command is complete, the new disk would appear to be same size as old disk. OP would then need a disk resizing tool to reclaim the remaining disk space

[–] Facni@lemmy.dbzer0.com 1 points 3 days ago* (last edited 3 days ago) (1 children)

In fact the new disk has the double size tham the old one. Could I use dd and then gparted to achieve this?

[–] sun_is_ra@sh.itjust.works 1 points 2 days ago

yes but I suggest running simulation first on a virtual machine or at least take a backup first

load more comments (1 replies)