Mounting a USB drive on Raspberry Pi

When you connect a pen drive to a linux distribution it automatically gets mounted but not in the case of raspberry. You have to manually mount it. Lets check the procedure for it.


Step1: Insert the SD-Card to the pi and power it. And connect via ssh

Step2: Connect the USB drive in the USB -Slot


Step3: Type dmesg . And check where it is mounted. By default it will be mounted to sda .If not then to sdb.

Step4: Create a folder in /media
mkdir /media/USB

Step5: Now mount the USB drive to this folder
sudo mount /dev/sda /media /USB

Step6: Now you can access the USB drive from this folder

Comments

Popular posts from this blog

bb.utils.contains yocto

Difference between RDEPENDS and DEPENDS in Yocto

PR, PN and PV Variable in Yocto