hi everyone
I have an oldish box which is has no NVMe support, not in form of M.2
slot, but I got that cheap PCIe M.2 adapter.
Now, I have done dd my original whole drive to NVMe, then I dd my
original drive to another small SSD, fdisk it so only boot partition
remains on this "new" SSD.
Something is obviously missing there in this simplistic approach,
although kernel boots from this new small SSD it does not load the rest
of the whole system.
I am stuck with dracut.
That would be grub or/and dracut need tweaking?
Or any other way to boot a system off a NVMe via a SSD/HDD?
many thanks, L.
Show replies by date
my answer probably may be incomplete, but I guess your UUID for your root partition in
/boot/grub/grub.cfg still points to the old root partition on the old disk.
I don't know if it adequate to change this by hand via vi or an another editor.
other question I'm thinking about are
- is your PCIe adaptor seen at all by your system ( => lspci) and
- is it bootable
first step:
you should still be able to boot your system from your old disk, but I guess only via BIOS
boot menu (on MSI boards: F11-Key) [in my Bios M2-nvme became the very first boot device,
so default boot device has changed and needs adjustments]
=> lspci => PCIe adaptor and nvme seen: yes/no ?
=> blkid => UUID from your new root partition on the nvme
next step:
after making a backup of your old grub.cfg and changing the UUID in grub.cfg on your ssd
(!!!, needs to mount extra).
after reboot you should able to load your system from the root partition on the nvme.
- maybe via Bios boot menu fetching the ssd as first boot device -
next step:
with some luck you are able boot (via Bios Boot menue) from your nvme after adjustments in
grub.cfg ON the nvme - don't know if it works cause no experience with PCIe-adaptor -
open question:
===========
- sudo grub2-install ... <nvme> ?
- sudo dracut -f /boot/initramfs-$(uname -r).img $(uname -r) with parameter of the root
partition on the nvme ?
=> man dracut
... - I'm getting old - ...
/etc/fstab needs adjustments (UUID) too !!!