Probably @arvidjaar was talking about all his posts on the openSUSE mailing lists as well. There he indeed mentioned that command (at least once).
However I never used that command on any of my systems so I saw no need to recommend it.
Please accept my apology if my negligence caused you any trouble.
No need to
The system is running thanks to your āwrongā commands
I made a note of @arvidjaar comments
Old age is making remember things difficult (only 70 butā¦)
The install has become bloated so in the coming year I will do a clean install
Have you ever succeeded doing this on a UEFI/GPT installation? I donāt see anything in that list that gets the ESP mounted before Grub is updated, nor any precaution taken against the new locationās new entry on the ESP usurping the current one required to continue to be able boot the original installation directly. For the first problem, mount -a is needed following chroot. The second problem I deal with by making the original /etc/default/grub GRUB_DISTRIBUTOR= entry unique prior to a normal Grub update, or running an extra one before attempting to install or enable booting of an additional installation.
You may want to read all posts in this thread thoroughly to find the answer (and even more) ā¦
What about mount /dev/nvme0n1p1 /mnt/p5/boot/efi (command number three)?
I know about the GRUB_DISTRIBUTOR= trick (and even use it on some of my systems). However OP mentioned in his first post that he wanted to move his system vom partition /dev/nvme0n1p3 to partition /dev/nvme0n1p5 so I saw no reason āto polluteā his ESP with another directory containing a bootloader pointing to a system which might be deleted immediately after the action discussed here finished successfully.
I read the whole thread before asking, and again after your reply, and still donāt see a clear answer; but, it is a busy thread with multiple posters and subthreads, and I could have missed something.
More what?
I asked because Iād never seen a recommendation to mount the ESP partition prior to the chroot, contrary to Karlās website. I started a new SDB: a week or more ago on the subject, but never got very far, and only just noticed I had never submitted a first draft.
Itās no trick. Everything in /etc/ is at least theoretically under control of the admin. Items placed there in new TW installations are dwindling, as part of the long term migration of distro configs to /usr/.
String move did not exist in this thread until you used it. Iād rather see recommended that the old is maintained operable until such time as the new is fully ready, unless its destruction is unavoidable.
How to boil water in an empty kettle? Fill water, put kettle on a stove.
How to boil water in a full kettle? Pour out water to reduce the problem to the previous one.
How in earth does it matter whether something is mounted on the same directory before or after chroot?
Youāre the expert of experts here. Does it, or not? I have little experience with bind mounting outside the context of setting up a chroot. I canāt think of a reason it canāt, except in the logic of traditional mounting via fstab, which first mounts root, from which all other mounting follows. I wasnāt claiming anyone wrong, just questioning.
That said, which is easier to remember, determine, or type:
mount /dev/rootdevice /mnt
mount /dev/esp-device /mnt/boot/efi
mount -o bind /dev /mnt/dev
mount -o bind /run /mnt/run
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
chroot /mnt
<ready>
189 characters above, or 162 characters below?:
mount /dev/rootdevice /mnt
mount -o bind /dev /mnt/dev
mount -o bind /run /mnt/run
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
chroot /mnt
mount -a
<ready>
The bonus with the latter is potentially more readiness when fstab is conformed to. Could there be something relied upon in fstab besides the usual suspects??? It probably has the more reliable UUID or LABEL for the ESP, but what else might there be???