Raspberry: booting from a USB pen instead of an SD card

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite
1












I would like to use a raspberry as a Linux server in a more professional project.



However, I am wary of the OS running in an SD card not offering me a reliable solution over time due to their common failures.



Also the raspberry is known for in some situations corrupting the SD contents when powering it off.



I do remember hearing something about booting from a USB pen or disk, what can I do about it and how does it work?







share|improve this question


















  • 1




    raspberrypi.stackexchange.com
    – Hermann Ingjaldsson
    Jan 23 at 18:21














up vote
1
down vote

favorite
1












I would like to use a raspberry as a Linux server in a more professional project.



However, I am wary of the OS running in an SD card not offering me a reliable solution over time due to their common failures.



Also the raspberry is known for in some situations corrupting the SD contents when powering it off.



I do remember hearing something about booting from a USB pen or disk, what can I do about it and how does it work?







share|improve this question


















  • 1




    raspberrypi.stackexchange.com
    – Hermann Ingjaldsson
    Jan 23 at 18:21












up vote
1
down vote

favorite
1









up vote
1
down vote

favorite
1






1





I would like to use a raspberry as a Linux server in a more professional project.



However, I am wary of the OS running in an SD card not offering me a reliable solution over time due to their common failures.



Also the raspberry is known for in some situations corrupting the SD contents when powering it off.



I do remember hearing something about booting from a USB pen or disk, what can I do about it and how does it work?







share|improve this question














I would like to use a raspberry as a Linux server in a more professional project.



However, I am wary of the OS running in an SD card not offering me a reliable solution over time due to their common failures.



Also the raspberry is known for in some situations corrupting the SD contents when powering it off.



I do remember hearing something about booting from a USB pen or disk, what can I do about it and how does it work?









share|improve this question













share|improve this question




share|improve this question








edited Feb 21 at 20:10

























asked Jan 23 at 18:19









Rui F Ribeiro

35.2k1270113




35.2k1270113







  • 1




    raspberrypi.stackexchange.com
    – Hermann Ingjaldsson
    Jan 23 at 18:21












  • 1




    raspberrypi.stackexchange.com
    – Hermann Ingjaldsson
    Jan 23 at 18:21







1




1




raspberrypi.stackexchange.com
– Hermann Ingjaldsson
Jan 23 at 18:21




raspberrypi.stackexchange.com
– Hermann Ingjaldsson
Jan 23 at 18:21










1 Answer
1






active

oldest

votes

















up vote
6
down vote



accepted










The Raspberry can indeed be programmed to boot from (certain) USB pens, but right now, only the Raspberry 3 is supporting that functionality.



Apparently, the rpi 3 comes with a fuse that can be programatically blown from Raspbian (once). Be aware that once the fuse is blown, there is no coming back. They call it "programming the OTP bit".



Also, there are some timing issues with some USB pens models, however the guys responsible for the project have booted successfully with those models:




  • Sandisk Cruzer Fit 16GB

  • Sandisk Cruzer Blade 16Gb

  • Samsung 32GB USB 3.0 drive

  • MeCo 16GB USB 3.0



So according to their instructions:



Install first Raspbian in an SD card;




Then enable USB boot mode with:



echo program_usb_boot_mode=1 | sudo tee -a /boot/config.txt


This adds program_usb_boot_mode=1 to the end of /boot/config.txt.



Reboot the Raspberry Pi with sudo reboot, then check that the OTP bit has
been programmed with:



$ vcgencmd otp_dump | grep 17:
17:3020000a


Ensure the output 0x3020000a is shown. If it is not, then the OTP bit
has not been successfully programmed.




Install/burn the Linux distro of your choice to your USB device as you would normally do to an SD card.




Attach the USB mass storage device to your Raspberry Pi 3 and power it
up. After between five and ten seconds the Raspberry Pi 3 should begin
booting, and display the rainbow splash screen on an attached screen.




see How to boot from a USB mass storage device on a Raspberry PI 3 and PI 3 booting part I: USB mass storage boot beta






share|improve this answer






















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f419155%2fraspberry-booting-from-a-usb-pen-instead-of-an-sd-card%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    6
    down vote



    accepted










    The Raspberry can indeed be programmed to boot from (certain) USB pens, but right now, only the Raspberry 3 is supporting that functionality.



    Apparently, the rpi 3 comes with a fuse that can be programatically blown from Raspbian (once). Be aware that once the fuse is blown, there is no coming back. They call it "programming the OTP bit".



    Also, there are some timing issues with some USB pens models, however the guys responsible for the project have booted successfully with those models:




    • Sandisk Cruzer Fit 16GB

    • Sandisk Cruzer Blade 16Gb

    • Samsung 32GB USB 3.0 drive

    • MeCo 16GB USB 3.0



    So according to their instructions:



    Install first Raspbian in an SD card;




    Then enable USB boot mode with:



    echo program_usb_boot_mode=1 | sudo tee -a /boot/config.txt


    This adds program_usb_boot_mode=1 to the end of /boot/config.txt.



    Reboot the Raspberry Pi with sudo reboot, then check that the OTP bit has
    been programmed with:



    $ vcgencmd otp_dump | grep 17:
    17:3020000a


    Ensure the output 0x3020000a is shown. If it is not, then the OTP bit
    has not been successfully programmed.




    Install/burn the Linux distro of your choice to your USB device as you would normally do to an SD card.




    Attach the USB mass storage device to your Raspberry Pi 3 and power it
    up. After between five and ten seconds the Raspberry Pi 3 should begin
    booting, and display the rainbow splash screen on an attached screen.




    see How to boot from a USB mass storage device on a Raspberry PI 3 and PI 3 booting part I: USB mass storage boot beta






    share|improve this answer


























      up vote
      6
      down vote



      accepted










      The Raspberry can indeed be programmed to boot from (certain) USB pens, but right now, only the Raspberry 3 is supporting that functionality.



      Apparently, the rpi 3 comes with a fuse that can be programatically blown from Raspbian (once). Be aware that once the fuse is blown, there is no coming back. They call it "programming the OTP bit".



      Also, there are some timing issues with some USB pens models, however the guys responsible for the project have booted successfully with those models:




      • Sandisk Cruzer Fit 16GB

      • Sandisk Cruzer Blade 16Gb

      • Samsung 32GB USB 3.0 drive

      • MeCo 16GB USB 3.0



      So according to their instructions:



      Install first Raspbian in an SD card;




      Then enable USB boot mode with:



      echo program_usb_boot_mode=1 | sudo tee -a /boot/config.txt


      This adds program_usb_boot_mode=1 to the end of /boot/config.txt.



      Reboot the Raspberry Pi with sudo reboot, then check that the OTP bit has
      been programmed with:



      $ vcgencmd otp_dump | grep 17:
      17:3020000a


      Ensure the output 0x3020000a is shown. If it is not, then the OTP bit
      has not been successfully programmed.




      Install/burn the Linux distro of your choice to your USB device as you would normally do to an SD card.




      Attach the USB mass storage device to your Raspberry Pi 3 and power it
      up. After between five and ten seconds the Raspberry Pi 3 should begin
      booting, and display the rainbow splash screen on an attached screen.




      see How to boot from a USB mass storage device on a Raspberry PI 3 and PI 3 booting part I: USB mass storage boot beta






      share|improve this answer
























        up vote
        6
        down vote



        accepted







        up vote
        6
        down vote



        accepted






        The Raspberry can indeed be programmed to boot from (certain) USB pens, but right now, only the Raspberry 3 is supporting that functionality.



        Apparently, the rpi 3 comes with a fuse that can be programatically blown from Raspbian (once). Be aware that once the fuse is blown, there is no coming back. They call it "programming the OTP bit".



        Also, there are some timing issues with some USB pens models, however the guys responsible for the project have booted successfully with those models:




        • Sandisk Cruzer Fit 16GB

        • Sandisk Cruzer Blade 16Gb

        • Samsung 32GB USB 3.0 drive

        • MeCo 16GB USB 3.0



        So according to their instructions:



        Install first Raspbian in an SD card;




        Then enable USB boot mode with:



        echo program_usb_boot_mode=1 | sudo tee -a /boot/config.txt


        This adds program_usb_boot_mode=1 to the end of /boot/config.txt.



        Reboot the Raspberry Pi with sudo reboot, then check that the OTP bit has
        been programmed with:



        $ vcgencmd otp_dump | grep 17:
        17:3020000a


        Ensure the output 0x3020000a is shown. If it is not, then the OTP bit
        has not been successfully programmed.




        Install/burn the Linux distro of your choice to your USB device as you would normally do to an SD card.




        Attach the USB mass storage device to your Raspberry Pi 3 and power it
        up. After between five and ten seconds the Raspberry Pi 3 should begin
        booting, and display the rainbow splash screen on an attached screen.




        see How to boot from a USB mass storage device on a Raspberry PI 3 and PI 3 booting part I: USB mass storage boot beta






        share|improve this answer














        The Raspberry can indeed be programmed to boot from (certain) USB pens, but right now, only the Raspberry 3 is supporting that functionality.



        Apparently, the rpi 3 comes with a fuse that can be programatically blown from Raspbian (once). Be aware that once the fuse is blown, there is no coming back. They call it "programming the OTP bit".



        Also, there are some timing issues with some USB pens models, however the guys responsible for the project have booted successfully with those models:




        • Sandisk Cruzer Fit 16GB

        • Sandisk Cruzer Blade 16Gb

        • Samsung 32GB USB 3.0 drive

        • MeCo 16GB USB 3.0



        So according to their instructions:



        Install first Raspbian in an SD card;




        Then enable USB boot mode with:



        echo program_usb_boot_mode=1 | sudo tee -a /boot/config.txt


        This adds program_usb_boot_mode=1 to the end of /boot/config.txt.



        Reboot the Raspberry Pi with sudo reboot, then check that the OTP bit has
        been programmed with:



        $ vcgencmd otp_dump | grep 17:
        17:3020000a


        Ensure the output 0x3020000a is shown. If it is not, then the OTP bit
        has not been successfully programmed.




        Install/burn the Linux distro of your choice to your USB device as you would normally do to an SD card.




        Attach the USB mass storage device to your Raspberry Pi 3 and power it
        up. After between five and ten seconds the Raspberry Pi 3 should begin
        booting, and display the rainbow splash screen on an attached screen.




        see How to boot from a USB mass storage device on a Raspberry PI 3 and PI 3 booting part I: USB mass storage boot beta







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Feb 21 at 20:11

























        answered Jan 23 at 18:19









        Rui F Ribeiro

        35.2k1270113




        35.2k1270113






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f419155%2fraspberry-booting-from-a-usb-pen-instead-of-an-sd-card%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay