triwave wrote:Rohdry:
Sorry it's been a while but I still wanted to follow-up on the automount questions.
...............[stuff snipped]...........
fstab is:
Code: Select all
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda5
UUID=4967683f-9097-4bbe-9cfa-f61a58268827 / ext3 relatime,errors=remount-ro 0 1
# /dev/sda6
UUID=4fe6b0d2-240c-4654-82e9-ea5e719f89dd none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
If you have any suggestions I appreciate hearing them. I'm not sure how this whole automount thing works.
OK, 1st my disclaimer?!
I am by no means an expert and I must confess Mint is not my primary os, but I think this stuff is pretty generic.
The cdrom line ( ie /dev/scd0 etc) in your /etc/fstab is the clue. Notice in the options section there is the "noauto" option used. You want your cdrom drive available for easy mounting but you do not want it to automount at system start because there may well be nothing in it to mount. This is what the "noauto" option achieves. The system knows all about the drive and its file systems etc because you have a line in the /etc/fstab file; but, it will not try to mount the drive automatically.
You need to add similar lines to the bottom of the /etc/fstab file for your external drive partitions. Those you wish to leave unmounted will have a "noauto" option and the one you want mounted will have an "auto" option. Here is an example of what I mean:
/dev/sdb2 /mnt/sdb2 ext3 user,exec,rw,noauto 0 0
That line says to the os that when the device at address /dev/sdb2 is mounted, mount it to /mnt/sdb2, use an ext3 file system on it, let the user mount it, allow program execution on the mount, mount it read/write but do not try to automount it. The last two zeros tell the os about when to run a file system check on the drive.
If you want that drive automatically mounted, you just change the "noauto" option to "auto".
A couple of things! First and foremost - BACKUP your /etc/fstab file before making any changes. You must be superuser to edit /etc/fstab (use gksudo gedit /etc/fstab). Also, substitute your preferred partition names and mount points for the ones used in the example.
Now, one qualifier. When I do this, my external usb drive is permanently attached to the system and I know this works. I don't plug it in and unplug it. I automount a shared file partition but I only manually mount my backup partition when I want to do a backup. So, I am not 100% certain that this will work in Mint and do exactly what you require. Someone else may have other ideas, but you probably need to remove the solved for a while.
Good luck,
Rhodry.