DietPi v9.7.1 : 23:24 - Mo 30.09.2024
─────────────────────────────────────────────────────
- Device model : RPi 3 Model B (aarch64)
I copied a new, current DietPi installation on SD card to and copied it to SSD with
dd if=/dev/mmcblk0 of=/dev/sda bs=1M status=progress
root@DietPi:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 953,9G 0 disk
├─sda1 8:1 0 128M 0 part
└─sda2 8:2 0 14,5G 0 part
mmcblk0 179:0 0 14,6G 0 disk
├─mmcblk0p1 179:1 0 128M 0 part /boot
└─mmcblk0p2 179:2 0 14,5G 0 part /
After removing the SD card, dietpi cannot be booted from the SSD.
the command does not work:
-bash: diepti-drivemanager: Command not found.
How to select the boot partition on the SSD? Do I have to mount?
dietpi-drive_manager can be started
I probably have to mount sda1 as boot
my knowledge is not sufficient
Can anyone help me?
How do you copied the data from SD card to SSD?
Shown above:
dd if=/dev/mmcblk0 of=/dev/sda bs=1M status=progress
I assume.this was a copy of a running SD card to the SSD.
Could you check the prerequisites for an USB boot like e.g. described there:
trendy
5
Yes, you should follow these instructions as they apply to RPi3 in general and dietpi is a lightweight version of the raspberry debian.
Usually RPi3B should be able to boot ootb. Just move the system using dd
command as described on our blog post Moving a running DietPi system to a USB stick/disk or an onboard eMMC – DietPi Blog
have gone through the list: do I have to adjust the path/to/image.img?
after
root@DietPi:~# sudo dd if=/dev/sda of=“/path/to/image.img”
the error message appears
Cannot open ‘/path/to/image.img’: File or directory not found
You are trying to flash a new image or do you like to copy your SD card?
so I should copy that again?
dd if=/dev/mmcblk0 of=/dev/sda bs=1M status=progress]
Depends on what you like to do. Am I right, you like to copy your existing SD card?
ok - so i copied the sd card again as described
After removing the sd card the device does not boot correctly
→ the IP is not available
boot is possible after inserting the sd card.
Here is the data again:
root@DietPi:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 953,9G 0 disk
├─sda1 8:1 0 128M 0 part
└─sda2 8:2 0 14,5G 0 part
mmcblk0 179:0 0 14,6G 0 disk
├─mmcblk0p1 179:1 0 128M 0 part /boot
└─mmcblk0p2 179:2 0 14,5G 0 part /
root@DietPi:~# vcgencmd otp_dump | grep 17:
17:3020000a
trendy
12
Is the SSD partition with boot marked as bootable in fdisk/cfdisk?
That should be ok according official RPI docs https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#raspberry-pi-2b-3a-3b-cm3-cm3-zero-2-w
Do you have a USB pen stick available? If yes, can you flash a new image directly to USB stick and try to boot?
Thank you,
before I repeat everything again with the USB stick:
An SSD is connected with this adapter:
Raspberry Pi X820 V3.0 2.5 Inch SATA HDD/SSD Storage Expansion Board with Case for RPI 3 B+ (Plus) / 3B / 2B -
should be connected analog to USB boot - right?
nothing to be repeated, simply flash a new image to USB stick and check if it is booting.
Hello
booting from the USB stick - (has been given the name SDA) works!
root@DietPi:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 1 14,9G 0 disk
├─sda1 8:1 1 128M 0 part /boot
└─sda2 8:2 1 14,5G 0 part /
sdb 8:16 0 953,9G 0 disk
├─sdb1 8:17 0 128M 0 part
└─sdb2 8:18 0 14,5G 0 part
Ok so problem is not with USB boot in general. More with this extension board. Probably it takes to long to detect the SSD
So that would be a problem with the hardware?
Couldn’t I install the Ditpi software on the SSD and work with the SSD after booting?
trendy
19
Maybe problem with the USB2SATA adapter that doesn’t support booting or needs some tweaking in BIOS/UEFI.
after I removed the USB stick (also without SD card) rebooted - it works now
Thank you very much
root@DietPi:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 953,9G 0 disk
├─sda1 8:1 0 128M 0 part /boot
└─sda2 8:2 0 14,5G 0 part /
root@DietPi:~#