Tags

, ,

  1. Open terminal
  2. Create the directory where you want the drive to mount to.
    • mkdir /media/DriveD
    • sudo chown user:group /media/DriveD (change user:group to your user and group)
  3. Enter sudo fdisk -l. The following is the sample output of that command.
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT
    /dev/sda2          206848   220203007   109998080    7  HPFS/NTFS/exFAT
    /dev/sda3       220203008   688226303   234011648    7  HPFS/NTFS/exFAT
    /dev/sda4       703856640   976771071   136457216   83  Linux

    Let’s say you want /dev/sda3 to be mounted to /media/DriveD

  4. Add an entry in fstab
    • sudo gedit /etc/fstab
    • /dev/sda1 /media/DriveD ntfs rw,user,exec,uid=1000,gid=1000,permissions 0 2 (where uid and gid is a numeric value of current user and group – can be viewed by typing the command id)
  5. Reboot
Advertisements