Run magic mirror from a USB drive?



  • Has anyone had any running a magic mirror from a usb drive? I have had sd crashes every month or so for a year. I have to find a more option.



  • I am running both my mirrors from usb.
    The trick is to have a SD Card with only bootcode.bin on it. That is the boot loader which will try to load firmware from attached devices.

    Download raspbian or whatever image you want and write it to the usb drive with etcher or similar.

    You need to make sure that cmdlint.txt anf /etc/fstab point to the usb drive but that should alteady be the case.



  • In your experience are the usb drives more reliable?



  • Yes, especially if you put the /var lib on a tmpfs which resides in ram.



  • yes and it work fine



  • Is there a guide on how to do this.



  • I would very much be interested in the USB drive installation instructions!

    Newbie here, so please be specific!!!

    Thanks in advance!



  • Which Raspberry Pi do you have? The Raspberry Pi 3 can boot directly from USB but the others need a SD card.

    Download the chosen image and write it to UsB in the same way you created the SD cards. Then remove and insert the USB stick from your computee and copy the file bootcode.bin in the /boot directory to an empty SD card. (This card is needed unless you have a Pi3 but it will only be read from so no signifikant wear.)

    Insert the USB stick and boot your Pi. That should do it.

    If you have a Pi3 there is a different procedure, google is your friend.



  • I’m using Windows 10. Not RasPi.

    I will have to try and figure it out I guess.

    Thanks anyway!



  • If you have a Windows 10 computer, why would you need a USB drive?