20 October 2011

How to: Ubuntu Automount a Drive on Startup

One thing ubuntu is different compare to Windows is ubuntu do not automatically mount all the partition/drive on the system during startup. Under the file explorer for ubuntu, you can click on any drive to mount it, and you can also unmount it anytime you want. There will be problems when you have an application that is auto start with your ubuntu and that application need to access the files under the unmounted drive.

To solve this problem, you can configure the drive to automount everytime your ubuntu started. Run this command under your terminal to install Storage Device Manager:
sudo apt-get install pysdm
After the installation completed run Storage Device Manager from Unity (press Super key and type Storage Device Manager).



Before you do any changes to the Storage Device Manager, you will need to check for the Device label for the partition you want to enable automount. You can open Disk Utility to get the Device label for the particular partition. For my laptop, I wish to automount the partition called Data, and the Device label is /dev/sda4.


Now, under Storage Device Manager, click on the partition you want to enable automount (for my case, sda4) and click OK on the "Configure now?" dialog box. Make sure that the selected drive is correct before you click OK, and take note your hard drive configuration might be mess out if you mistakenly configure the wrong setting or partition. So, becareful with this.


After clicking OK, click the "Mount" button, "Apply" and "Close". Now you can try to restart your ubuntu, and the partition that you "mount" just now should automount everytime your ubuntu start.

No comments:

Post a Comment