raspberry pi Uncategorized

Mount external hd permanently on raspberry pi

The best tutorial to use for mounting an external Hard Drive permanently on your rspberry pi is on documentation

  1. List all the disk partitions

  2. Identify the name of the disk partition (eg. sda1)

  3. Install the relevant storage driver for your FSTYPE (eg. exfat-fuse or ntfs-3g) – usually already install on ubuntu server

  4. Get the location of the disk partition

    sudo blkid
  5. Create a folder to mount the device

    sudo mkdir /mnt/mydisk
  6. Mount the device to that folder

    sudo mount /dev/sda1 /mnt/mydisk
  7. Verify it is mounted

    ls /mnt/mydisk
  8. Get the UUID of the device

    sudo blkid
  9. Edit fstab – filesystem table

    sudo vim /etc/fstab
    UUID=5C24-1453 /mnt/mydisk fstype defaults,auto,users,rw,nofail 0 0

replace fstype with the filesystem type. Add ,umask=000 after nofail if the silesystem is FAT or NTFS

  1. Reboot

    sudo reboot