Change SD-Card from RPi 3 to 2

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
Hevilp
Posts: 4
Joined: Wed Oct 31, 2018 12:17 pm

Change SD-Card from RPi 3 to 2

Post by Hevilp »

Hi,

I changed the SD-Card from RPi 3 to my 2.

Now i got :

Code: Select all

login as: dietpi
dietpi@192.168.178.230's password:

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
-bash: /DietPi/dietpi/func/dietpi-globals: No such file or directory
-bash: /DietPi/dietpi/login: No such file or directory
grep: /DietPi/dietpi.txt: No such file or directory
The vice versa change was without problems, how can I fix it? and why does it happend?
User avatar
MichaIng
Site Admin
Posts: 2262
Joined: Sat Nov 18, 2017 6:21 pm

Re: Change SD-Card from RPi 3 to 2

Post by MichaIng »

Hmm, dietpi-ramdisk failed.

Could you check:

Code: Select all

cat /var/tmp/dietpi/logs/dietpi-ramdisk.log
dmesg | grep 'mmcblk'
lsblk -ao NAME,MOUNTPOINT,LABEL,PARTUUID,UUID | grep '\(mmc\|NAME\)'
cat /etc/fstab
- Check log of dietpi-ramlog
- Check dmesg boot/kernel log on mounting the SDcard, although strange, I can't find any hint of mounting /boot, even that it is mounted on my RPi2.
- Check actual dev name, UUID, PARTUUID of the boot partition (should be mmcblk0p1)
- Verify that fstab /boot mount entry matches the on from lsblk output. But that should be actually the case, if you switch the SDcard :?. However just to assure.

However let's see first what you get from the above.
Post Reply