Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New NVMe drive but only one NVMe slot in motherboard. How?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
__name__
n00b
n00b


Joined: 06 Feb 2024
Posts: 43
Location: where the wind blows

PostPosted: Fri Oct 18, 2024 12:20 am    Post subject: New NVMe drive but only one NVMe slot in motherboard. How? Reply with quote

    I'm trying to migrate my Gentoo installation from my current NVMe drive to a new NVMe drive, but I'm running into a roadblock. My laptop only has a single NVMe port on the motherboard, so I have to use a USB enclosure for the new drive. Unfortunately, the USB enclosure's write speeds are quite slow.

    Does anyone have any recommendations for how I can efficiently migrate my installation to the new drive? I've considered using a live CD to clone the disk, but I'm unsure if that would be the best approach. Any advice would be greatly appreciated.
Back to top
View user's profile Send private message
mirekm
Apprentice
Apprentice


Joined: 12 Feb 2004
Posts: 215
Location: Gliwice

PostPosted: Fri Oct 18, 2024 5:08 am    Post subject: Reply with quote

Use USB NVME drive case.
Later you can use this case with old NVME disk as backup device.
Back to top
View user's profile Send private message
__name__
n00b
n00b


Joined: 06 Feb 2024
Posts: 43
Location: where the wind blows

PostPosted: Fri Oct 18, 2024 6:22 am    Post subject: Reply with quote

mirekm wrote:
Use USB NVME drive case.
Later you can use this case with old NVME disk as backup device.


Thank you for the suggestion. I plan to use the USB NVMe drive enclosure after the migration. However, what is the most efficient way to clone my existing Gentoo installation to the new drive using the USB enclosure?
Should I do a fresh install on the new drive and then manually copy over my configuration and data, or should I attempt to clone the existing installation to the new drive after setting up the partitions?

Are there any specific tools or techniques you recommend for a smooth migration process?
Back to top
View user's profile Send private message
Ralphred
l33t
l33t


Joined: 31 Dec 2013
Posts: 603

PostPosted: Fri Oct 18, 2024 11:07 am    Post subject: Reply with quote

There are "cloning" USB enclosures that will effectively 'dd' one drive to another.
Other than that, using a Gentoo live CD/USB is the safe way, you "follow the handbook" for the new drive, then when it comes to dropping a stage3 on it you copy the files over from the old drive. If the bandwidth to the new drive is the bottleneck issue, then using rsync to do the copying, or creating a compressed tar archive* ahead of the copy might serve you better.

*assuming you have the space, this could be the start of your "backup regime" too.
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3376

PostPosted: Fri Oct 18, 2024 11:23 am    Post subject: Reply with quote

Quote:
Are there any specific tools or techniques you recommend for a smooth migration process?


Advanced version: make it similar to a new installation, but with your own files and skipping redundant steps.
Partition the new disk (or clone partition table), format partitions, copy your files over, possibly fix UUIDs in fstab and bootloader, and you're done.

Simple version: just dd it and - in case of GPT - repair partition table.
Yes, it is suboptimal, yes, empty space, blah blah blah.... It's easy and will be faster than thinking about doing it the "right" way, and your brand new SSD can take that 1 extra write.
And if you have a system on a single partition or LVM, you can expand into new space after you're done. If you want to expand a partition other than the last one, you'll need to do the "advanced" version though.
_________________
Make Computing Fun Again
Back to top
View user's profile Send private message
Ralphred
l33t
l33t


Joined: 31 Dec 2013
Posts: 603

PostPosted: Fri Oct 18, 2024 4:38 pm    Post subject: Reply with quote

szatox wrote:
Yes, it is suboptimal, yes, empty space, blah blah blah....

You can work round the empty space issue if you have a "shrinkable" filesystem, yeah you have to "delete the partition" but it's nowhere near as scary as it sounds.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum