Categories
How-to Linux Ubuntu

Mount Partition Automatically in Ubuntu Using PySDM

After dual-booting Ubuntu with other operating system like Windows 7, sometimes we want to use file in other partition from Ubuntu like playing music, but it can’t play because we forget to mount it. Sometimes it make my system hang when I play music from other partition using Clemetine. It is very annoying and ineffective.So in this post I will share how to mount partition automatically on startup in Ubuntu using PySDM

PySDM is a Storage Device Manager that allows full customization of hard disk mountpoints without manually access to fstab.
It also allows the creation of udev rules for dynamic configuration of storage devices. PySDM can handle any type of partittion, e.g NTFS, FAT, FAT32, exFAT, ext2/3/4.

First, we need to install Storage Device Manager by type these in Terminal

sudo apt-get install pysdm

Before we make any changes, it’s very wise to back up fstab file

sudo cp /etc/fstab /etc/fstab.old

After did it, determine which partition we should set. If you know the which partition you can skip this step. Type this on Terminal

sudo fdisk -l

partition Ubuntu
You can see the picture above, for the example I want to mount sda5 automatically. In Windows 7 this partition identified as drive D: , it contains many music, games, documents, etc. So we need to set up sda5.

Execute PySDM from Application – System Tools – Administration – Storage Device Manager or by running gksu/pysdm

Then choose sda5, and then click “Assistant”

PySDM Partition

Check/uncheck some options below

partition PySDM options

  • Check the Allow any user to mount the file system box
  • Check The file system is mounted at boot time box
  • Check the Allow a user to mount and unmount the filesystem box
  • Uncheck the Mount file system in read-only mode box

If you have finished it, press OK and don’t forget to press Apply.

You need to reboot to see that it works! You can see in File Manager that partition sda5 is mounted.

If you want to restore fstab file, type this in Terminal

sudo cp /etc/fstab.old /etc/fstab

Enjoy it! 🙂

2 replies on “Mount Partition Automatically in Ubuntu Using PySDM”

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.