Whatever you do avoid making changes to the drive named mmcblk0 because this is your SD card. The Linux command lsblk will list all bulk storage devices. The easiest way to identify your drive is to only plug one in at a time. Proceed only if you are comfortable working with the command line and have a backup of your data. So we will be formatting our drive with the EXT4 filesystem and using a unique label so that we can use multiple devices at the same time. The best option for most people will be to use the default settings Raspbian - the official Operating System from the Raspberry Pi Foundation. The PiDrive from WDLabs comes with splitter cable allowing a Pi and a HDD to be powered at the same time.
In general - adding USB pen-drives will not consume noticeably more power. This may mean that your setup will need one PSU for the Raspberry Pi and an additional one per hard drive you add. Pictured: WDLabs NodeZero with 314GB HDD Pre-requisitesįor most USB hard drives you will need a power supply (PSU) capable of supplying at least 2.5A 5V, for some drives you may need even more power than this. It's likely that at some point you will need to plug in a USB hard drive or a USB pen-drive for extra storage, remote backups, for your Docker images or as part of a Network Attached Storage server.
How to set up retropie on a flashdrive how to#
Now the terminal should return to the way it originally looked.Ĭongratulations! You're done! Your USB hard drive is now permanently mounted to the Raspberry Pi and will be remounted on every reboot.In this quick guide we'll show how to attach storage to your Raspberry Pi.
Press Enter to acknowledge the file name and then press Ctrl+X to exit Nano. Now press Ctrl+O (not Ctrl+Shift+O) to save the file.
How to set up retropie on a flashdrive code#
This code should look familiar since it's very similar to the mount command we used to manually mount the drive. Press the down arrow to navigate to one line below the line that says "/dev/mmcblk0ps" and press enter to insert a new line.Īrrow up one to place your cursor on the new line and type in: /dev/sda1 /media/pidrive ntfs-3g uid=pi,gid=pi 0 1 #So that your window now looks like this proc /proc proc defaults 0 0 /dev/mmcblk0p1 /boot vfat defaults 0 2 /dev/mmcblk0p2 / ext4 defaults,noatime 0 1 /dev/sda1 /media/pidrive ntfs- 3g uid=pi,gid=pi 0 1 # a swapfile is not a swap partition, so no using swapon|off from here on, use dphys-swapfile swap for that We are now in the text editor Nano and are ready to edit this file. In the terminal type in this code: sudo nano /etc/fstab #You will see something like this proc /proc proc defaults 0 0 /dev/mmcblk0p1 /boot vfat defaults 0 2 /dev/mmcblk0p2 / ext4 defaults,noatime 0 1 /dev/sda1 /media/pidrive ntfs- 3g uid=pi,gid=pi 0 1 #A swapfile is not a swap partition, so no using swapon|off from here on, use dphys-swapfile swap for that