How to get permissions to execute programs from other drives in ubuntu?

In windows if you want to execute any file from D or any another drive, you can. But in ubuntu you can not directly execute program from any other drives. So we need to get permissions to execute program. Its useful in many times like to save space you install netbeans in another drive, and you want to execute it.

So how get permission to execute programs from other drive/partitions in ubuntu??

Follow these steps to get permissions to execute programs from other drives:

    1. Open a terminal and type sudo blkid -c /dev/null
      This command allow you to identify your NTFS drive and your UUID number. Example :
/dev/sda1: UUID="xyz" TYPE="ntfs" PARTUUID="abc&"
    1. Open the /etc/fstab file from terminal typing
sudo gedit /etc/fstab
    1. Don’t edit the existing lines, but add new one at the end like this example:
UUID=xyz /media/myDrive ntfs-3g defaults,auto,uid=1000,gid=1000,umask=002 0 0

NOTE: Replace the UUID number and the mounting point /media/myDrive according to your situation!
Save the file and close the text editor.

  1. Enter the next command in the terminal:
    sudo mount -a
    

    This command sount all filesystems (of the given types) mentioned in fstab (except for those whose line contains the noauto keyword). The filesystems are mounted following their order in fstab.

  2. And restart Ubuntu. Done
    Now, every time you mount your NTFS partition, you will be able to run executable files.

Leave a Reply

Your email address will not be published. Required fields are marked *