Booting a Raspberry Pi from a regular disk, avoiding the flaky SD card

By: ( +David Herron; Date: August 7, 2017

Tags: Raspberry Pi

The Raspberry Pi is a cool little computer allowing you to do lots of crazy DIY projects interfaced through the GPIO port. While the Raspberry Pi is a small embeddable computer, because it runs Linux the Raspberry Pi is instantly approachable by any programmer. The biggest flaw in this picture is that it uses an SD card as the boot device. SD cards are not exactly fast nor reliable, preventing the Raspberry Pi from being used in serious production situations.

In April 2017 the Raspberry Pi foundation released the ability for the Raspberry Pi Model 3 to boot off a drive connected via USB. That instantly opens the door to using reliable regular disks rather than unreliable SD cards. The downside is that disks must connect via USB2 limiting disk throughput speed. As with anything there are plusses and minuses, but this is an interesting step forward.

For those seriously interested in using a Linux-Single-Board-Computer with a regular disk, some of the other devices will be a better choice. For example the Orange Pi Plus 2 has a SATA connector.

Raspberry Pi 3 Model B Motherboard
Raspberry Pi 3 Model B Motherboard:

Updating Raspbian

First, update your copy of Raspbian to the latest version. The feature was enabled in April 2017. Either, set up a brand new copy of Raspbian on an SD card, or else type in these commands on your existing Raspbian:

$ sudo apt-get update
$ sudo apt-get upgrade

With an up-to-date Raspbian on your Raspberry Pi, you can go to the next step.

Setting the boot mode in firmware

What we're going to do is enable a Raspberry Pi boot mode enabling the ability to boot off a "Mass Storage Device"


The first thing is to run:

$ vcgencmd otp_dump | grep 17:

This queries the hardware registers for the boot mode. It will print a number other than 0x3020000a.

Next, edit /boot/config.txt and at the end of the file insert this line:


When the Rapberry Pi is rebooted, this line rewrites the register queried above so that now the command should output:

$ vcgencmd otp_dump | grep 17:

This enables the USB Mass Storage Device boot mode on that Raspberry Pi. From now on, that particular machine will boot either from SD card or USB MSD.

For good measure, remove the line from config.txt or else any Raspberry Pi booted by this SD card will gain that boot mode.

Prepare a USB drive

Put together an external USB drive case along with a drive of your choice. I know from experience you can power a laptop SATA drive in an external 2.5" drive case off the power available on a Raspberry Pi USB port. I used that for awhile to drive a larger disk on a Raspberry Pi.

Go to the Raspberry Pi downloads page - (

Download a copy of Raspbian.

Use your favorite method to "etch" the Raspbian onto the disk. The instructions on the Raspberry Pi website describe writing the Raspbian image to an SD card. You'll have to adjust the instructions because you're instead writing to an USB disk.

The easiest method is to use Etcher ( ( since that application made the process so danged easy. One picky detail is that Etcher won't, by default, let you choose a USB drive because it only shows removable drives. However, in the Etcher settings is a checkbox for an unsafe mode that WILL let you install Raspbian onto a non-removable drive. Set that setting, and now your USB drive should show up, and you can then copy Raspbian to that drive.

Once Raspbian is on your USB drive, simply connect it to the Raspberry Pi. Remove the SD card, and then boot the computer.

If all went right, Raspbian will boot even though you do not have an SD card.

« What does TARDIS stand for? Create a Spring Boot REST API using Swagger/OpenAPI "Generate Swagger OpenAPI REST API documentation for Spring Boot application" »
2016 Election Acer C720 Ad block AkashaCMS Amazon Amazon Kindle Amazon Web Services America Amiga and Jon Pertwee Android Anti-Fascism AntiVirus Software Apple Apple Hardware History Apple iPhone Apple iPhone Hardware April 1st Arduino ARM Compilation Artificial Intelligence Astronomy Astrophotography Asynchronous Programming Authoritarianism Automated Social Posting AWS DynamoDB AWS Lambda Ayo.JS Bells Law Big Brother Big Finish Bitcoin Mining Black Holes Blade Runner Blockchain Blogger Blogging Books Botnets Cassette Tapes Cellphones China China Manufacturing Christopher Eccleston Chrome Chrome Apps Chromebook Chromebox ChromeOS CIA CitiCards Citizen Journalism Civil Liberties Clinton Cluster Computing Command Line Tools Comment Systems Computer Accessories Computer Hardware Computer Repair Computers Cross Compilation Crouton Cryptocurrency Curiosity Rover Currencies Cyber Security Cybermen Daleks Darth Vader Data backup Data Storage Database Database Backup Databases David Tenant DDoS Botnet Detect Adblocker Developers Editors Digital Photography Diskless Booting Disqus DIY DIY Repair DNP3 Do it yourself Docker Docker MAMP Docker Swarm Doctor Who Doctor Who Paradox Doctor Who Review Drobo Drupal Drupal Themes DVD E-Books E-Readers Early Computers Election Hacks Electric Bicycles Electric Vehicles Electron Emdebian Encabulators Energy Efficiency Enterprise Node EPUB ESP8266 Ethical Curation Eurovision Event Driven Asynchronous Express Face Recognition Facebook Fake News Fedora VirtualBox File transfer without iTunes FireFly Flickr Fraud Freedom of Speech Front-end Development Gallifrey git Github GitKraken Gitlab GMAIL Google Google Chrome Google Gnome Google+ Government Spying Great Britain Heat Loss Hibernate Hoax Science Home Automation HTTP Security HTTPS Human ID I2C Protocol Image Analysis Image Conversion Image Processing ImageMagick In-memory Computing InfluxDB Infrared Thermometers Insulation Internet Internet Advertising Internet Law Internet of Things Internet Policy Internet Privacy iOS Devices iPad iPhone iPhone hacking Iron Man iTunes Java JavaScript JavaScript Injection JDBC John Simms Journalism Joyent Kaspersky Labs Kindle Kindle Marketplace Lets Encrypt LibreOffice Linux Linux Hints Linux Single Board Computers Logging Mac Mini Mac OS Mac OS X Machine Learning Machine Readable ID macOS MacOS X setup Make Money Online March For Our Lives MariaDB Mars Mass Violence Matt Lucas MEADS Anti-Missile Mercurial MERN Stack Michele Gomez Micro Apartments Microsoft Military AI Military Hardware Minification Minimized CSS Minimized HTML Minimized JavaScript Missy Mobile Applications Mobile Computers MODBUS Mondas Monetary System MongoDB Mongoose Monty Python MQTT Music Player Music Streaming MySQL NanoPi Nardole NASA Net Neutrality Network Attached Storage Node Web Development Node.js Node.js Database Node.js Testing Node.JS Web Development Node.x North Korea npm NVIDIA NY Times Online advertising Online Community Online Fraud Online Journalism Online Photography Online Video Open Media Vault Open Source Open Source Governance Open Source Licenses Open Source Software OpenAPI OpenVPN Palmtop PDA Patrick Troughton Paywalls Personal Flight Peter Capaldi Phishing Photography PHP Plex Plex Media Server Political Protest Postal Service Power Control Privacy Production use Public Violence Raspberry Pi Raspberry Pi 3 Raspberry Pi Zero ReactJS Recaptcha Recycling Refurbished Computers Remote Desktop Removable Storage Republicans Retro Computing Retro-Technology Reviews RFID Right to Repair River Song Robotics Rocket Ships RSS News Readers rsync Russia Russia Troll Factory Russian Hacking Rust SCADA Scheme Science Fiction SD Cards Search Engine Ranking Season 1 Season 10 Season 11 Security Security Cameras Server-side JavaScript Serverless Framework Servers Shell Scripts Silence Simsimi Skype SmugMug Social Media Social Media Warfare Social Network Management Social Networks Software Development Space Flight Space Ship Reuse Space Ships SpaceX Spear Phishing Spring Spring Boot Spy Satellites SQLite3 SSD Drives SSD upgrade SSH SSH Key SSL Stand For Truth Strange Parts Swagger Synchronizing Files Telescopes Terrorism The Cybermen The Daleks The Master Time-Series Database Tom Baker Torchwood Total Information Awareness Trump Trump Administration Trump Campaign Twitter Ubuntu Udemy UDOO US Department of Defense Virtual Private Networks VirtualBox VLC VNC VOIP Vue.js Web Applications Web Developer Resources Web Development Web Development Tools Web Marketing Webpack Website Advertising Weeping Angels WhatsApp William Hartnell Window Insulation Windows Windows Alternatives Wordpress World Wide Web Yahoo YouTube YouTube Monetization