LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-10-2023, 04:38 PM   #1
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,773
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
seeking drive swap HOWTO


I have a laptop with three "drives" --- SDD1, SDD2, HDD1. Both SDD are 512 GB 2280 NVMe parts inside the laptop. I have a 1 TB NVMe part to upgrade one of the small devices. Can someone tell me how to accomplish the following?

/dev/nvme0 is home for /boot/efi and / as nvme0n1p1 and nvme0n1p2.

QUESTION: How do I clone those two partitions onto the new larger device using an NVME enclosure?
I've done this in the past with HDD devices and enclosures. I have the new larger device and an enclosure that I'm able to read-write from the laptop.
I tried running clonezilla but I must not understand the prompts and menu options well enough to get the results that I expect.
Because this involves an internal NVMe device, I'm not willing or interested in moving the hardware until I have a new larger part that appears to be what I want to deploy.

QUESTION: Will things "just work" to boot iI I succeed in cloning the NVMe parts?
In ancient times, the bootstrap needs specific knowledge of the drives and partitions and flags. QUESTION: After I clone the contents, will I need to use gparted to tinker the partition settings before the new larger part will boot?

Thanks in advance,
~~~ 0;-Dan
Covington, LA USA
 
Old 06-11-2023, 04:33 AM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,573

Rep: Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499
Are you going to keep the internal SSD you are trying to clone to the larger device or are you going to replace it? If you are replacing it and it has an efi partition, that will need to be cloned/copied to the new drive also. If you are still using Mint, there should be an ubuntu directory on the efi partition with a grub.cfg file in it. You need to change the UUID and drive/partition in this grub.cfg file to point to the new cloned device filesystem partition with /boot/grub after creating an efi partition on the new device and copying the files to it. Use the blkid command to get the new drive partitions UUIDs and change them in /etc/fstab and grub.cfg files.

You might also try using the boot repair ppa, the 2nd option described at the site below (if still using Mint) and reinstalling Grub to the efi partition on the new device.

https://help.ubuntu.com/community/Boot-Repair

Last edited by yancek; 06-11-2023 at 04:48 AM.
 
1 members found this post helpful.
Old 06-11-2023, 08:42 PM   #3
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,773

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by yancek View Post
Are you going to keep the internal SSD you are trying to clone to the larger device or are you going to replace it? If you are replacing it and it has an efi partition, that will need to be cloned/copied to the new drive also. If you are still using Mint, there should be an ubuntu directory on the efi partition with a grub.cfg file in it. You need to change the UUID and drive/partition in this grub.cfg file to point to the new cloned device filesystem partition with /boot/grub after creating an efi partition on the new device and copying the files to it. Use the blkid command to get the new drive partitions UUIDs and change them in /etc/fstab and grub.cfg files.

You might also try using the boot repair ppa, the 2nd option described at the site below (if still using Mint) and reinstalling Grub to the efi partition on the new device.

https://help.ubuntu.com/community/Boot-Repair
Yes, my typical protocol is to clone an existing drive's entire content onto the new, larger drive.
Then I swap the new larger hardware into the system under revision and move the old, small drive
into an external enclosure. Initially, the enclosure part(s) are "archive" so that I can grab any parts of the
previous contents that I might need after the hardware swap.

Thanks for the heads-up about the EFI parts and need to tinker UUID settings before I try to boot the new larger clone.

Stay tuned...same bat time ... same bat channel,
~~~ 0;-Dan
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] [Ubuntu] Memory Swap [USB Drive] is there a way to swap all memory? SiBaFT Linux - Newbie 12 06-12-2023 07:07 PM
seeking HOWTO: 'grub' for multiple drive boot SaintDanBert Linux - Hardware 3 04-05-2019 02:57 AM
seeking HOWTO inhibit screen saver from command-line SaintDanBert Programming 6 01-16-2013 05:09 AM
seeking HOWTO scan drive for "lost" partitions and file systems SaintDanBert Linux - Software 1 12-13-2009 09:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration