If you list the drive in fstab it'll be auto mounted by root so to un-mount you need to do so as root.
Based on your orig. post it leads to these orig. assumptions
1. Orig. none of the data drives are in fstab.
2. One drive out of all of them automounted, the rest don't.
Are the above true true to the orig. issue? If so then maybe consider , if not ignore below-
In default Ubuntu/Gnome there are 2 ways a volume would be auto mounted.
Either at boot thru an fstab entry or at boot/login if the block device is detected as and set 'removable'
A small section of the kernel code seems to suggests how scsi drives are set, i.e
You can check the removable attribute of any block device in /sys/block/sd*/removable, a value of 0 represents removable=no, 1 represents removable=yes
Ex. /dev/sdc
Code:
cat /sys/block/sdc/removable
or use udevadm to ck. attributes of your device(s)
full info, ex. /dev/sdc -
Code:
udevadm info -a -n /dev/sdc
or to ck. just the removable attribute
Code:
udevadm info -a -n /dev/sda1 |grep removable
So compare devices that don't automount vs. the problem one(s)
Bookmarks