First, we need super-user privileges:

sudo su -

Then, we need to identify our device’s uuid by executing the following command:


You will get as a result something like:

/dev/mmcblk0: PTUUID="6ab7fffe" PTTYPE="dos"
/dev/mmcblk0p1: SEC_TYPE="msdos" LABEL="boot" UUID="B176-EFEE" TYPE="vfat" PARTUUID="6ab7fffe-01"
/dev/mmcblk0p2: UUID="0aed834e-8c8f-412d-a276-a265dc676112" TYPE="ext4" PARTUUID="6ab7fffe-02"

We then need to edit the fstab file which specifies which drives will be auto-mounted on startup:

nano /etc/fstab

We add the following line in the nano editor:

UUID=123456789 /mnt ntfs defaults 0 0

  • replace 123456789 with the UUID you found with the blkid command
  • replace /mnt with the folder you want the drive to be mounted
  • replace ntfs with the file system type you want (e.g. ext4, fat32, etc.)

Now reboot the raspberry pi using the following command:



Leave a Reply

Your email address will not be published. Required fields are marked *
You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>