Mount the External Storage Device on the Raspberry Piįirst of all, the hard drive must be connected via USB (ideally to the USB 3.0 port). Answer yes.īefore we go on to the actual configuration, let’s take a look at how to use an external hard drive as a storage medium. You will be asked whether the settings should be used by DHCP. Then we install Samba: sudo apt-get install samba samba-common-bin To do this, open an SSH terminal and enter the following: sudo apt-get update Install and Configure the Raspberry Pi Samba Serverįirst, we bring the package sources up to date. In addition, these are usually cheaper than small 2.5 inch external hard drives. Since the Raspberry Pi can only deliver limited power via the USB 3.0 port, a hard drive with an external power supply is recommended. How to do this is explained in this tutorial.įirst of all, we need a few components to be able to follow this tutorial. This means that images and documents can be processed by various devices at the same time. The integration of a Samba server is very easy under Windows 10, Mac, Linux as well as Android and iOS. This means that the files are not stored with third-party providers, and the transfer speed is also much higher. If the data is only needed at home by several PCs, a Raspberry Pi Samba server is ideal: There is a central network storage device that all other devices can access while on the same network. However, these are usually stored in an online service, and not everyone wants that. This has the advantage that the files can be accessed from anywhere. You should now find that the HDD storage is accessible each time you boot up your Raspberry Pi! This might prove very useful for storing a retro gaming library, or media for a Raspberry Pi-based Plex media center to stream.More and more data is being stored in the clouds. Next, edit the original: sudo nano /etc/fstabĪdd the information need to mount the disk this begins with the 16-character UUID string you made a note of earlier: UUID=ABCDEFGH12345678 /mnt/volume ntfs-3g uid=1000,gid=1000,nofail, umask=007 0 0 Begin by backup: sudo cp /etc/fstab /etc/fstab.backup But what if you want to access the disk after a reboot? Once you've done this, you should be able to access the drive in Raspbian. Next, mount the drive with: sudo mount -t ntfs-3g -o uid=1000,gid=1000, umask=007 /dev/sda1 /mnt/mydisk Note: Swap "mydisk" with your preferred disk label.Īssign permissions with: sudo chmod 770 /mnt/mydisk This is typically: sudo mkdir /mnt/mydisk Next, create a location for the mount point. In the response, the final alphanumeric string is the UUID keep a note of this. If not, you'll need to do a bit more work. Note: If the drive is in FAT32 format, you'll need to install vfat instead.Įnsuring the drive is connected, and powered on, you should find it within the Media directory on your Raspberry Pi. More convenient is the option to use the ntfs-3g software, so that the Raspberry Pi can read the NTFS file system: Once this is done, it should be accessible, but you've wasted a lot of time and effort. One way around this is to remove the data from the drive, reformat in EXT4, and then replace the data. If the disk isn't formatted with the EXT4 file system, then it cannot be natively read. This is due to a couple of factors: the file system on the disk, and the lack of automatic mounting in Raspbian. (If your drive doesn't have a power supply, it will require connecting via a powered USB hub.) All you have to do is connect the drive to a USB port, and power it up.īy default, the hard disk drive won't be immediately accessible. How to Mount and Read an HDD in RaspbianĪs long as you have an external HDD with a USB cable and its own power supply, you'll be able to use it with your Raspberry Pi. But how do you connect a hard disk drive to a Raspberry Pi? And what are the benefits of doing so? Here's everything you need to know.
0 Comments
Leave a Reply. |