element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Pi 4 Booting from SSD
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 6 replies
  • Subscribers 664 subscribers
  • Views 1468 views
  • Users 0 members are here
  • ssd
  • pi4
  • raspberry_pi
  • usb boot
Related

Pi 4 Booting from SSD

mp2100
mp2100 over 4 years ago

This isn't recent news, but I am very happy that the raspberry pi org updated the firmware this year to support USB boot on the Pi 4.  I had been using a Pi 3B with USB boot.  Then I switched to a Pi 4, the 2 GB model (because that was what was in stock at the store).  It was great for a while, I used it as my internet surfing and part-time programming machine.  But when I opened too many browser tabs, the memory would fill up.  I'd keep a terminal open with htop running to keep a watch on it.

 

I used this guide from tom's hardware.

     https://www.tomshardware.com/how-to/boot-raspberry-pi-4-usb

 

It's very easy.  Set a few things using the new options in raspi-config.  Then copy my SD card I was using to boot from, to a USB SSD device.  Reboot.

 

I used a small 120 GB SSD drive in the USB 3 port.  It's like I have a new computer now.  Or more like I have a 4 GB Pi  4.  I set the swap on the SSD to be 2 GB, so I have more room to surf.  And of course the SSD is faster than a fast SD card.  The web surfing is much better.  I can have 10 or 15 tabs open no problem.

 

image

  • Sign in to reply
  • Cancel
Parents
  • hugohu
    hugohu over 4 years ago

    I dunno really how it works, but In theory could I set swap to 28GB on my 4GB pi and have it a "32GB pi"?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • hugohu
    hugohu over 4 years ago

    I dunno really how it works, but In theory could I set swap to 28GB on my 4GB pi and have it a "32GB pi"?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • glennvanderveer
    glennvanderveer over 4 years ago in reply to hugohu

    Unfortunately, that is not how swap memory works.  The swap memory is used to "swap" your physical memory to disk so that you can reuse the physical memory for new/other processes.  You could make a 28GB swap file, but the Pi would most likely use only up to 4GB of it...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • hugohu
    hugohu over 4 years ago in reply to glennvanderveer

    Ah. So basically it "stores" the data in the external drive, and then you free up some of the RAM in the Pi.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube