There are a few ways to do this, but this method was recommended as being the safest way to do it.
Drives will be automounted using the /etc/fstab file, and we will use the UUID of the drive to mount it.
To automount you need:
1. The UUID of the partition
2. An existing mount point directory
To get the UUID of a partition
type the following command into console:
sudo blkidand you should get some output that looks like:
/dev/sda1: LABEL="Win7" UUID="C26481916481893D" TYPE="ntfs"The UUID's are clearly shown here.
/dev/sda5: LABEL="Data-Live" UUID="F2A4B196A4B15E33" TYPE="ntfs"
/dev/sdb1: LABEL="Data-Backup" UUID="7F777C4F536ED854" TYPE="ntfs"
/dev/zram0: UUID="29998593-e49e-4f05-bb7c-8023d9a6f725" TYPE="swap"
/dev/sdc1: UUID="5372f43d-4d29-4e7b-a1df-72f416862a56" TYPE="ext4"
/dev/mapper/cryptswap1: UUID="258b6f37-5cfb-450f-a7ed-eced2bb0c3ac" TYPE="swap"
/dev/sdf1: LABEL="Seagate Expansion Drive" UUID="DE286A78286A4F97" TYPE="ntfs"
Create your mount point directories
You may need to be root to do this.
sudo mkdir /media/"Seagate Expansion Drive"etc until you have all the mount points you need.
Edit /etc/fstab to automount on boot
Edit /etc/fstab as root.
sudo nano /etc/fstabAdd a line at the bottom of the file. Each line is the instructions for auto mounting a drive device.
UUID=DE286A78286A4F97 /media/Seagate\040Expansion\040Drive ntfs defaults,nls=utf8,umask=000,uid=1000,windows_names 0 0Add additional lines for more disk devices as you need.
Save and exit the text editor.
Reboot. Verify the devices auto mounted on boot using the "disk free" command:
dfIf it works, you should see all you devices mounted at the mount points you created.
Notes
The \040 in the mount point in the example above is for spaces.
Some options may not be required. I used the ones from the Linux Mint Community Forums.
Any lines that are word wrapped should not be. The entries in /etc/fstab should all be on 1 line.
References
The following pages were used to do this. No glory banditry involved.
http://forums.linuxmint.com/viewtopic.p ... mp;t=22093
http://forums.linuxmint.com/viewtopic.p ... p;t=115601
Comments are not available for this entry.

Categories



