Auto Mount Partitions

Does you dekstop or laptop have multiple partitions (or drives), and you wnat them to be autmatically mounted at boot-up in / log-on? Here’s how to do it.

  1. Determine the UUID (think serial number as in your car’s VIN) of that partition / drive.Open a Terminal and type:
    udisks --dump

    Scroll down the displayed text looking for the text mount-paths: that points to the partition you want to mount. Now scroll down a bit further looking for the text uuid:. Open your favorite Text Editor and copy and paste the uuid value.

  2. Create a shell script to mount the partitions (drives).Again, using you Text Editor create the following shell script:
    #!/bin/bash
    /usr/bin/udisks --mount /dev/disk/by-uuid/*PlaceTheUuidValueHere*

    (Save the shell script and make it executable by: open File Manager; locate the shell script; right mouse click; select Properties, then Permissions and check “Allow this file to run as program”.)

  3. Modify the Ubuntu’s Session and Startup to automaitcally execute the shell script.Click Applications Menu; then click Settings; then Setting Manager; then Session and Startup; then Applicaton Autostart. Press the Add Button and file in the resulting dialog box.

For more details please see https://help.ubuntu.com/community/AutomaticallyMountPartitions