I am trying to copy my root partition into another partition in order to boot from that partition. My system has 2 hard drives - an sdd which is /dev/sda, and an hdd, which is /dev/sdb. Here is how they are partitioned:
fdisk -l Disk /dev/sda: 232.9 GiB, 250059350016 bytes, 488397168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: 5105ED88-0EA8-4BF5-B7B8-31C56BA1351E
Device Start End Sectors Size Type /dev/sda1 2048 52430847 52428800 25G Linux filesystem /dev/sda2 52430848 104859647 52428800 25G Microsoft basic data /dev/sda3 104859648 488396799 383537152 182.9G Microsoft basic data Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: A4BA7F24-83E8-4139-BBE3-76AB94D3CDDC Device Start End Sectors Size Type /dev/sdb1 2048 1026047 1024000 500M EFI System /dev/sdb2 1026048 1288191 262144 128M Microsoft reserved /dev/sdb3 1288192 433004543 431716352 205.9G Microsoft basic data /dev/sdb4 1928595456 1929517055 921600 450M Windows recovery environment /dev/sdb5 1929517056 1951195135 21678080 10.3G Windows recovery environment /dev/sdb6 1951197184 1953523711 2326528 1.1G Windows recovery environment /dev/sdb7 433004544 466558975 33554432 16G Linux swap /dev/sdb8 466558976 518987775 52428800 25G Linux filesystem /dev/sdb9 518987776 1928595455 1409607680 672.2G Linux filesystem Partition table entries are not in disk order. What I want to do is copy the contents of /dev/sda1 to /dev/sdb8, then setup grub to see the operating system at /dev/sdb8, and be able to boot from there. I have already copied /dev/sda1 to /dev/sdb1 using rsync, so now it is just a matter of setting up grub. I have successfully used the following procedure many times in the past, but this time it isn't working. root@tribetrekDellbig:/home/george> mount /dev/sdb8 /mnt root@tribetrekDellbig:/home/george> mount -o bind /proc /mnt/proc/ root@tribetrekDellbig:/home/george> mount -o bind /sys /mnt/sys/ root@tribetrekDellbig:/home/george> mount -o bind /dev /mnt/dev/ root@tribetrekDellbig:/home/george> cd /mnt root@tribetrekDellbig:/mnt> chroot /mnt /bin/bash: error while loading shared libraries: libreadline.so.8: cannot open shared object file: No such file or directory The plan was after changing root, I was going to re-install grub. I can reinstall grub regardless, but if I change the root first, then it will make the new partition the first partition in the grub list. I also tried to do this using a rescue system, but I get the same error. My rescue system stick is a leap 42.3 stick, so I expect that library was not part of 42.3 and that is the problem there. But trying to change root inside a shell on a fully booted system, where the root partition files are simply copied from one partition to another should not cause this problem. I am running leap 15.0 in this partition that I copied over to /dev/sdb8. I was running tumbleweed on this partition before, but I used a zypper dup to change it to leap 15.0. Any suggestions? -- George Box: TW | Plasma 5 | AMD Phenom IIX4 | 64 | 32GB Laptop #1: 15.0 | Plasma 5 | AMD FX 7TH GEN | 64 | 32GB Laptop #2: 15.0 | Plasma 5 | Core i5 | 64 | 8GB -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org