Suppress notification popup for always connected USB drives

Suppress notification popup for always connected USB drives

Postby wagalaweia on Thu Jan 12, 2012 4:00 am

Hello!
I have two external USB drives that are always connected to my netbox. Whenever I start Mint (Lisa), the notification pops up and asks me what to do. I think I can disable this notification totally, but I just want to disable it for these two drives. Is that possible? Perhaps I should do something with /etc/fstab or so?
Does anybody have an idea and can free me from these needless notifications?
wagalaweia
Level 1
Level 1
 
Posts: 3
Joined: Wed Jan 04, 2012 5:20 pm

Linux Mint is funded by ads and donations.
 

Re: Suppress notification popup for always connected USB dri

Postby xenopeek on Thu Jan 12, 2012 3:50 pm

Yes, you have to add an entry to /etc/fstab to ensure it is always mounted during boot. Otherwise it gets automounted after you login (causing the notification).

A rudimentary guide is here: http://linuxconfig.org/Howto_mount_USB_drive_in_Linux

Suggest however that instead of using /dev/sdb1 or similar as device name for mounting (which can change if you plug or unplug other storage devices), to use mounting by UUID or LABEL. Arch has a guide on how to do this: https://wiki.archlinux.org/index.php/Persistent_block_device_naming
Image
Linux Mint 14 Nadia / 64-bit / Cinnamon
User avatar
xenopeek
Level 20
Level 20
 
Posts: 10567
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Suppress notification popup for always connected USB dri

Postby wagalaweia on Fri Jan 13, 2012 5:17 am

Ah! It wasn't that hard:

I just edited the fstab with sudo nano /etc/fstab and added the following line (similar for the other harddisc):
Code: Select all
LABEL=Extern    /media/Extern    ext3    user    0    0

where the label matches the label of the harddisc, which can be determined by ls /dev/disk/by-label. More information on this, e.g., identifying by UUID instead of LABEL, can be found behind the second link of Vincent's answer.

One can test if the mounting is correct either by re-login, or by sudo umount -a; sudo mount -a.

Thank you for pointing me into this direction!
wagalaweia
Level 1
Level 1
 
Posts: 3
Joined: Wed Jan 04, 2012 5:20 pm


Return to Gnome 3

Who is online

Users browsing this forum: No registered users and 2 guests