# Dietpi boot from SSD

**URL:** https://dietpi.com/forum/t/dietpi-boot-from-ssd/21566
**Category:** Troubleshooting
**Created:** [30 September 2024 21:50 UTC](https://dietpi.com/forum/t/dietpi-boot-from-ssd/21566 "2024-09-30T21:50:33Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![MatthiasG](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@MatthiasG](https://dietpi.com/forum/u/MatthiasG)
#### Post date: [30 September 2024 21:50 UTC](https://dietpi.com/forum/t/dietpi-boot-from-ssd/21566/1 "2024-09-30T21:50:33Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [30 September 2024 23:02 UTC](https://dietpi.com/forum/t/dietpi-boot-from-ssd/21566/2 "2024-09-30T23:02:35Z")

</div>

How do you copied the data from SD card to SSD?

---

<div class="post-metadata">

### Author: ![StephanStS](https://dietpi.com/forum/user_avatar/dietpi.com/stephansts/32/2522_2.png) [@StephanStS](https://dietpi.com/forum/u/StephanStS)
#### Post date: [1 October 2024 04:19 UTC](https://dietpi.com/forum/t/dietpi-boot-from-ssd/21566/3 "2024-10-01T04:19:37Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![StephanStS](https://dietpi.com/forum/user_avatar/dietpi.com/stephansts/32/2522_2.png) [@StephanStS](https://dietpi.com/forum/u/StephanStS)
#### Post date: [1 October 2024 04:27 UTC](https://dietpi.com/forum/t/dietpi-boot-from-ssd/21566/4 "2024-10-01T04:27:44Z")

</div>

Could you check the prerequisites for an USB boot like e.g. described there:

> **[Booting Raspberry Pi 3 B With a USB Drive](https://www.instructables.com/Booting-Raspberry-Pi-3-B-With-a-USB-Drive/)**
>
> Booting Raspberry Pi 3 B With a USB Drive: The Raspberry Pi 3 B can be booted with a compatible thumb drive without spending any money!
> Note: The Raspberry Pi 3 B+ can be USB booted out-of-the-box.

---

<div class="post-metadata">

### Author: ![trendy](https://dietpi.com/forum/user_avatar/dietpi.com/trendy/32/61_2.png) [@trendy](https://dietpi.com/forum/u/trendy)
#### Post date: [1 October 2024 07:29 UTC](https://dietpi.com/forum/t/dietpi-boot-from-ssd/21566/5 "2024-10-01T07:29:30Z")

</div>

Yes, you should follow these instructions as they apply to RPi3 in general and dietpi is a lightweight version of the raspberry debian.

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [1 October 2024 10:54 UTC](https://dietpi.com/forum/t/dietpi-boot-from-ssd/21566/6 "2024-10-01T10:54:00Z")

</div>

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](https://dietpi.com/blog/?p=1236)

---

<div class="post-metadata">

### Author: ![MatthiasG](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@MatthiasG](https://dietpi.com/forum/u/MatthiasG)
#### Post date: [1 October 2024 17:52 UTC](https://dietpi.com/forum/t/dietpi-boot-from-ssd/21566/7 "2024-10-01T17:52:03Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [1 October 2024 18:08 UTC](https://dietpi.com/forum/t/dietpi-boot-from-ssd/21566/8 "2024-10-01T18:08:56Z")

</div>

You are trying to flash a new image or do you like to copy your SD card?

---

<div class="post-metadata">

### Author: ![MatthiasG](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@MatthiasG](https://dietpi.com/forum/u/MatthiasG)
#### Post date: [1 October 2024 19:16 UTC](https://dietpi.com/forum/t/dietpi-boot-from-ssd/21566/9 "2024-10-01T19:16:21Z")

</div>

so I should copy that again?

> dd if=/dev/mmcblk0 of=/dev/sda bs=1M status=progress]

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [2 October 2024 06:45 UTC](https://dietpi.com/forum/t/dietpi-boot-from-ssd/21566/10 "2024-10-02T06:45:45Z")

</div>

> [@MatthiasG](#):
>
> so I should copy that again?

Depends on what you like to do. Am I right, you like to copy your existing SD card?

---

<div class="post-metadata">

### Author: ![MatthiasG](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@MatthiasG](https://dietpi.com/forum/u/MatthiasG)
#### Post date: [2 October 2024 07:02 UTC](https://dietpi.com/forum/t/dietpi-boot-from-ssd/21566/11 "2024-10-02T07:02:17Z")

</div>

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

---

<div class="post-metadata">

### Author: ![trendy](https://dietpi.com/forum/user_avatar/dietpi.com/trendy/32/61_2.png) [@trendy](https://dietpi.com/forum/u/trendy)
#### Post date: [2 October 2024 08:02 UTC](https://dietpi.com/forum/t/dietpi-boot-from-ssd/21566/12 "2024-10-02T08:02:34Z")

</div>

Is the SSD partition with boot marked as bootable in fdisk/cfdisk?

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [2 October 2024 08:07 UTC](https://dietpi.com/forum/t/dietpi-boot-from-ssd/21566/13 "2024-10-02T08:07:09Z")

</div>

> [@MatthiasG](#):
>
> root@DietPi:~# vcgencmd otp\_dump | grep 17:  
> 17:3020000a

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](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?

---

<div class="post-metadata">

### Author: ![MatthiasG](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@MatthiasG](https://dietpi.com/forum/u/MatthiasG)
#### Post date: [2 October 2024 12:15 UTC](https://dietpi.com/forum/t/dietpi-boot-from-ssd/21566/14 "2024-10-02T12:15:28Z")

</div>

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 -

> **[Raspberry Pi X820 V 3,0 2,5 Zoll SATA HDD/SSD Lagerung Expansion Board mit...](https://de.aliexpress.com/item/32832156619.html?gatewayAdapt=glo2deu)**
>
> Smarter Shopping, Better Living! Aliexpress.com

should be connected analog to USB boot - right?

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [2 October 2024 13:01 UTC](https://dietpi.com/forum/t/dietpi-boot-from-ssd/21566/15 "2024-10-02T13:01:37Z")

</div>

> [@MatthiasG](#):
>
> before I repeat everything again with the USB stick:

nothing to be repeated, simply flash a new image to USB stick and check if it is booting.

---

<div class="post-metadata">

### Author: ![MatthiasG](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@MatthiasG](https://dietpi.com/forum/u/MatthiasG)
#### Post date: [2 October 2024 15:55 UTC](https://dietpi.com/forum/t/dietpi-boot-from-ssd/21566/16 "2024-10-02T15:55:54Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [2 October 2024 17:02 UTC](https://dietpi.com/forum/t/dietpi-boot-from-ssd/21566/17 "2024-10-02T17:02:25Z")

</div>

Ok so problem is not with USB boot in general. More with this extension board. Probably it takes to long to detect the SSD 🤔

---

<div class="post-metadata">

### Author: ![MatthiasG](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@MatthiasG](https://dietpi.com/forum/u/MatthiasG)
#### Post date: [3 October 2024 07:20 UTC](https://dietpi.com/forum/t/dietpi-boot-from-ssd/21566/18 "2024-10-03T07:20:12Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![trendy](https://dietpi.com/forum/user_avatar/dietpi.com/trendy/32/61_2.png) [@trendy](https://dietpi.com/forum/u/trendy)
#### Post date: [3 October 2024 08:00 UTC](https://dietpi.com/forum/t/dietpi-boot-from-ssd/21566/19 "2024-10-03T08:00:40Z")

</div>

Maybe problem with the USB2SATA adapter that doesn’t support booting or needs some tweaking in BIOS/UEFI.

---

<div class="post-metadata">

### Author: ![MatthiasG](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@MatthiasG](https://dietpi.com/forum/u/MatthiasG)
#### Post date: [3 October 2024 08:51 UTC](https://dietpi.com/forum/t/dietpi-boot-from-ssd/21566/20 "2024-10-03T08:51:45Z")

</div>

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:~#

[Next page](https://dietpi.com/forum/t/dietpi-boot-from-ssd/21566.md?page=2)
