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)
. @ present have manually mount stick each time want use it. can help?

sudo mkdir /media/usbstickace rimmer wrote:usb sticks automatically mount when pi booted.
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
Post a Comment