Auto mounting USB sticks - Raspberry Pi Forums


hello, i've bought new pi (b+) , new noobs card. i'm trying have usb sticks automatically mount when pi booted. had working a+ can't find instructions used ( in book long since returned library) :roll: . @ present have manually mount stick each time want use it. can help?

ace rimmer wrote:usb sticks automatically mount when pi booted.
sudo mkdir /media/usbstick
id remember uid ?1000 , gid ?1000 of user ?pi
sudo fdisk -l , remember usb stick @ "sda1"
sudo nano /etc/fstab add new line @ end:
/dev/sda1 /media/usbstick vfat defaults,uid=1000,gid=1000 0 0
sudo mount -a
test:
ls -la /media/usbstick
test after reboot:
sudo reboot
ls -la /media/usbstick


raspberrypi



Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support