Folks trying to move my manjaro install from an SSD to a NVME I’ve broken something within the partition references. Both systems do boot but every time I boot the old ssd disk im greeted with the following error: set 04 10:42:28 rohan systemd-remount-fs: /usr/bin/mount for / exited with exit status 1.Sep 04 10:42:28 rohan systemd: Failed to start Remount Root and Kernel File Systems.
I understand this is some broken reference in some file. I have some alternatives as running grub again. The issue is I fear it would worsen the situation. I have a bad planned setup here.
sda 8:0 0 447,1G 0 disk
└─sda1 8:1 0 447,1G 0 part
sdb 8:16 0 447,1G 0 disk
├─sdb1 8:17 0 342,1G 0 part
└─sdb2 8:18 0 105,1G 0 part /mnt/dados_vcdoc
sdc 8:32 0 465,8G 0 disk
├─sdc1 8:33 0 499M 0 part
├─sdc2 8:34 0 100M 0 part /boot/efi
├─sdc3 8:35 0 16M 0 part
├─sdc4 8:36 0 369,5G 0 part
├─sdc5 8:37 0 618M 0 part
├─sdc6 8:38 0 477M 0 part
└─sdc7 8:39 0 94,6G 0 part
sdd 8:48 0 447,1G 0 disk
└─sdd1 8:49 0 447,1G 0 part /
nvme0n1 259:0 0 931,5G 0 disk
├─nvme0n1p1 259:1 0 300M 0 part
└─nvme0n1p2 259:2 0 931,2G 0 part
Where grub was left in sdc along with windows from the times I dual booted from a single machine. My first atempt was to use clonezilla to clone to the nvme but that did not work and the nvme was not even bootable. Please give me some insights of how to properly handle this situation.
If you use dd then you will have copied uuids as well and that will give you headaches…
You cannot have duplicated uuids - so check for duplicates.
If you have duplicated uuids - you can use tune2fs to assign a new uuid to a partition - that is if your filesystem is ext4.
Another option is to use sgdisk
Randomize the disk's GUID and all partitions' unique
GUIDs (but not their partition type code GUIDs). This
function may be used after cloning a disk in order to
render all GUIDs once again unique.
I had used clonezilla, at this point I just resintalled the whole nvme and imported the list of packages from my manjaro install. I still have some stuff to do like work certificates and so on. But what I would like at the moment is to get rid of this error on the current manjaro install on the ssd.
Firstly thanks a lot for the walk-through. Now a related question, what would be the best way to do this clone install properly? The reason I want to do it is cause I have some A1 certificates and vpn configuration that I use at work that are annoying to replicate.
The correct method would be an usb enclosure or another usb powered connection.
Think of it as a diskbay - you can plug a disk in - it powers up and is connected - you eject it manually and disk dissappears from the system.
The following is the same thing.
Manjaro is using udev - therefore you can attach a sata disk on powered system just by connecting the data cable - I have done it on several occations - mostly because I have been lazy when testing disks for defects or when recycling a disk.
I assume no responsibility if you decide to do the same.
@linux-aarhus one more question as the enclosure just arrived. I still have a new grub in the target nvme. Should I better erase the whole nvme, clone just the system partition and then install grub later?