Booting PI from USB

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

Booting PI from USB

Post by emme »

Ciao,

I recently discovered that Raspberry PI3b and PI3B+ support boot from USB with no longer need of the SDCard
I tried with a 250Gb Sata disk and it worked quite well...

my intention was, now, to move my server installation to a 120Gb SSD for the following reasons:

- SD Cards are almost faulty... I already burn 3 in the past
- Small and cheap SSD (less than 80Gb) are normally made by microsd chips instead of SSD chipsets

The PI gains in speed and I'm planning to move all separated server to just one device:

- Domoticz
- Node
- NodeRed/dashboard
- MQTT Broker
- BLE/BT scan

I hope this would help someone else....

here is how to do that:
You will need an SD Card with the most recent rPI image on it

before boot the first time on the SD card edit the config.txt and add the following line:
program_usb_boot_mode=1
save and insert the SD into the PI and boot it.

now you can shut it down and remove the SDCard

on the USB disk burn the most recent rPI image
plug it to the PI
power it up... that's all!

(note that you will need a 3A power supply!!)
ciao
M
The most dangerous phrase in any language is:
"We always done this way"
freijn
Posts: 536
Joined: Friday 23 December 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands Purmerend
Contact:

Re: Booting PI from USB

Post by freijn »

****Warning*****

The change is permanent !! So make sure your Pi can read the SSD and its not an nice experiment , its permanent.....

https://www.raspberrypi.org/documentati ... des/msd.md

Before a Raspberry Pi 3 will boot from a mass storage device, it needs to be booted from an SD card with a config option to enable USB boot mode. This will set a bit in the OTP (One Time Programmable) memory in the Raspberry Pi SoC that will enable booting from a USB mass storage device. Once this bit has been set, the SD card is no longer required. Note that any change you make to the OTP is permanent and cannot be undone.
JuanUil
Posts: 500
Joined: Friday 22 May 2015 12:21
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11083
Location: Asten NB Nederland
Contact:

Re: Booting PI from USB

Post by JuanUil »

Will Domoticz be installed on the ssd automatically when you boot from ssd?
Your mind is like a parachute,
It only works when it is opened!

RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
snuiter
Posts: 67
Joined: Saturday 17 June 2017 12:30
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: Booting PI from USB

Post by snuiter »

:lol:
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Booting PI from USB

Post by poudenes »

I did this on all my rpi. When I add a sdcard it still boot also from it. First it check. Then it boot from usb


Verzonden vanaf mijn iPhone met Tapatalk Pro
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Booting PI from USB

Post by EdwinK »

Good to read. Got an older 2TB drive (just a normal harddrive, no SSD) laying around. Might be worth thinking about it doing it this way. Drive is self powered, so I think we should be good.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest