billw2 / rpi-clone

A shell script to clone a booted disk.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unable to login after cloning.

Nels2 opened this issue · comments

  • Alright, I have a special case. I'm running ubuntu server 20.04.3 on a Surface RT using a USB stick to boot & a sd card inserted that has the server preinstalled on it. I know you haven't updated this in a while.
  • I wanted to clone the file system from the sd card to the internal eMMC storage so I ran your script 'rpi-clone' as: sudo rpi-clone -v -l mmcblk0 -e mcblk0 -s icxmini.
  • After rpi-clone was finished, I edited cmdline.txt, startup.nsh(specific to the sRT) and fstab on the destination directories to use the destination UUID(so i can boot). I was able to boot up fine, but when I reach login screen, i'm not able to login with the same user/pass combo that i logged in with on the sd card install. My question is, is this something related to when your script clones, or is this user error?

Same problem without any special case.

Standard Raspberry pi 4, Ubuntu Server 22.10, simple "rpi-clone sda -e sda" and some editing in cmdline.txt and /etc/fstab on the destination device.

Login was working fine when booting from SD, no longer working after cloning, editing fstab and reboot. How is it related to user accounts and their passwords ?