Hans composed on 2024-12-02 11:49 (UTC-0500):

> as my old notebook died, I ntend to buy a new notebook.
> The old one has got a SSD drive, the new one an NVME.

> I want to clone the whole system 1 to 1 to the new NVME.

> In my /etc/fstab I am using UUID entries instead of /dev/sdX.
> The new one then would have /dev/nvme* as entries (that is clear), but if I 
> am 
> using only UUID, the question:

> Will the UUID change at clone, even when the partitions are not changed in a 
> bit of size? IMHO the UUID will not change, but I am not quite sure.

> When cloning from SSD to SSD this is working, but I have no experience when 
> cloning from SSD to NVME. 

You may find it necessary to regenerate your UEFI BIOS boot entry in NVRAM using
efibootmgr.

You very likely would need to add drivers to your initrds first, else have to
rescue boot to rebuild after:

# inxi -Sd
System:
  Host: ab250 Kernel: 6.1.0-25-amd64 arch: x86_64 bits: 64
  Console: pty pts/0 Distro: Debian GNU/Linux 12 (bookworm)
Drives:
  Local Storage: total: 476.94 GiB used: 60.56 GiB (12.7%)
  ID-1: /dev/nvme0n1 vendor: Patriot model: M.2 P300 512GB size: 476.94 GiB
  Optical-1: /dev/sr0 vendor: Optiarc model: DVD RW AD-7200S
    dev-links: cdrom
  Features: speed: 48 multisession: yes audio: yes dvd: yes
    rw: cd-r,cd-rw,dvd-r,dvd-ram
# lsinitramfs /boot/initrd.img-6.1.0-25-amd64 | egrep 'nvme|ata|ahci|piix'
usr/lib/modules/6.1.0-25-amd64/kernel/drivers/nvme
usr/lib/modules/6.1.0-25-amd64/kernel/drivers/nvme/host
usr/lib/modules/6.1.0-25-amd64/kernel/drivers/nvme/host/nvme-core.ko
usr/lib/modules/6.1.0-25-amd64/kernel/drivers/nvme/host/nvme.ko
usr/lib/udev/ata_id
usr/bin/fatattr
#

I forgot to do it first the last time.

Oh, and I never use UUIDs, only LABELs.
-- 
Evolution as taught in public schools is, like religion,
        based on faith, not based on science.

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata

Reply via email to