I want to backup the SSD of a new laptop so that I can safely reinstall it (no user data, just system). I want to backup all necessary boot info too (e.g. MBR). I want to create an image stored in an external HD.
I was planning to use
dd to clone the complete disk, including MBR. However, all examples I find use
sdb devices and SSD seem to use a different naming convention.
fdisk -l shows
/dev/nvme0n1 as disk, and
/dev/nvme0n1p4 partitions. However, if I list
/dev, there is also a
Should I care about
nvme0? Or which name should I use as input to get a complete backup?
Btw, would it be better to use bin image or iso image?
Would the following command achieve my objective?
dd if=/dev/nvme0n1 | gzip > /mnt/externalHD/backupimage.bin.gz
Feel free to suggest alternatives to dd if there are better ones for this purpose.