Mounting Dirves in linux rasberry pi
If you want to use flash drive and disk you need to mount the drive in linux manually to that use the following reference commands.
pi@rasberrypi ~$ cd /dev
pi@rasberry /dev$
pi@rasberry /dev$ ls
pi@rasberry /dev$ df
pi@rasberry /dev$
we need see system messages to find out if the device has made available
pi@rasberry /dev$ tail -f /var/log/messages
pi@rasberry /dev$
pi@rasberry /dev$ sudo fdisk -l
to mount this usb drive we need to make a mount point
goto /mnt
pi@rasberry /dev$ cd /mnt
pi@rasberry /mnt$
pi@rasberry /mnt$ sudo mkdir usbstick
pi@rasberry /mnt$ sudo mount /dev/sda1 /mnt/usbstick
The above will mount usb drive for root user , but we need to give permissioin to user pi
we do this like this
pi@rasberry /mnt$ sudo mount -t vfat -o uid=pi,gid=pi /dev/sda1 /mnt/usbstick
goto the drive
pi@rasberry /mnt$ cd /mnt/usbstick
pi@rasberry /mnt/usbstick$ ls -lap
pi@rasberry /mnt$ cd /mnt
pi@rasberry /mnt$ sudo umount /mnt/usbstick
pi@rasberry /mnt$ sudo umount /dev/sda1
for different file system use the following
for windows drive use the following command
pi@rasberry /mnt$ sudo mount -t ntfs-3g -o uid=pi,gid=pi /dev/sda1 /mnt/usbstick
pi@rasberry /mnt$
for mac drives use the following mounting command
pi@rasberry /mnt$ sudo mount -t hfsplus -o uid=pi,gid=pi /dev/sda1 /mnt/usbstick
you need to install hfsplus support on pi linux to do that use the following command
pi@rasberry /mnt$ sudo apt-get install hfsplus hfsutil hfsprogs