![raspberry pi multi port usb hub raspberry pi multi port usb hub](https://www.ubuy.com.tr/productimg/?image=aHR0cHM6Ly9tLm1lZGlhLWFtYXpvbi5jb20vaW1hZ2VzL0kvNzFTMXpiU2c3U0wuX0FDX1NMMTUwMF8uanBn.jpg)
The uid and gid options allow pi to read and write files on the USB keyĪnd then check you can see your files and create a new one: Sudo mount /dev/sda1 /mnt/usb -o uid=pi,gid=pi In my case, I want to mount /dev/sda1 to /mnt/usb. The mount command allows us to mount a device on a specific folder.
![raspberry pi multi port usb hub raspberry pi multi port usb hub](https://cdn.shopify.com/s/files/1/1432/4386/products/24_57_5a73025b-f460-45d3-9a1e-2dd86fac7907_1024x1024.jpg)
#Raspberry pi multi port usb hub how to#
In this part, we’ll see how to mount a USB drive quickly on the Raspberry Pi.
![raspberry pi multi port usb hub raspberry pi multi port usb hub](https://m.media-amazon.com/images/I/615ii161wUL._AC_SL1200_.jpg)
– automatically: need more configuration to start, but this will be automatic next times Manually mount the USB drive – manually: for fast access on temporary devices Now, we can mount the USB drive with two methods: Generally, we create it in /mnt or /media. On Linux systems you need to create a new folder to mount the drive in it later. Note the UUID just before the drive name (it could be longer depending on your disk). This allows us to know this a known drive and do something specific when you plug it on your Raspberry Pi.įind the line corresponding to your drive name (sda1 for example). When you format a disk, the system assign an ID to the disk. The device name: here it’s /dev/sda1, we’ll need this later UUIDĪnother information that could help us later is the UUID.The filesystem format type: here it’s FAT32, it could be NTFS or EXT4 for example.If not sure, unplug it and run the command again to see which one disappear ? Mainly check the size of the drive to know if this is the good one (in this case I plugged a 8Go USB key, so I’m sure it is this one) First thing, be sure you’re checking the disk you want to mount.We’ll use it to display all disks and find your USB drive.Īt the end of the displaying lines, you should get something like this: Fdiskįdisk is a tool to manage disks on Linux. Once you plug the disk, we need to know more about this one before going further. Plug the hub to the Raspberry Pi and your hard drive directly on the hub. Your hard drive will not work without that (except if it has its power supply). Try to add a powered USB hub to the Raspberry Pi ( check this one on Amazon for example if you don’t already have one).
#Raspberry pi multi port usb hub install#
sudo apt install ntfs-3g Plug your deviceįor big external drives, you will need extra power to run the drive correctly (“Under-voltage detected!” will appear in the terminal). And if you are working with NTFS drives, check that you have the required package installed (NTFS is mainly for Windows devices and may not be required in your case).