![](/uploads/1/2/6/6/126655146/437594734.jpg)
Usb mount Auto mountThis program automatically mounts any usb drive you put in the pi to ‘/media/usb0’. $ sudo apt-get install usbmountManual mountFirst we need to find out where our system locates the device. With the USB device not plugged in, type $ tail -f /var/log/messagesThen plug in your USB device and, looking in the new lines which appear, make a note of the ID – it will be something like sda1, sdb1, sda2, sdb2 etc.finding the ID of USB deviceThen CTRL-C To stop the tail command.In this case the usb stick id is sda1. That means the device is located in /dev/sda1.Next, we need to create a directory under /media, so you will be able to mount your drive.
![Rpi Rpi](/uploads/1/2/6/6/126655146/501561304.gif)
USB Automount Script for Raspberry Pi When working with a raspberry pi, you might need some USB storage to carry your data. I for example use a raspberry as a quite powerful seafile cloud server, which will probably be presented in a later post.
![](/uploads/1/2/6/6/126655146/437594734.jpg)