Stopping disk automounting for one disk

Thilo Six T.Six at gmx.de
Sun Jun 24 08:03:32 UTC 2007


Matthew Flaschen wrote the following on 24.06.2007 09:07
> Cameron Hutchison wrote:
> 
>> I do not want this disk to be automounted. I will mount it in my backup
>> script when I add the scsi device. But I do want the usual case of auto
>> mounting other hotplugged disks, such as USB devices, etc.

generally spoken all is posible with udev.
But you have to write your own rules for that drive.

I am currently just wondering, this drive is connected to the computer
always? ...or do you manually plug it in for backups?

> I would be interested in this.  In my script, I am currently unmounting
> a backup drive, then remounting it by label.

same question here - always conntected or plugin for backups?
When always connected just comment the line in /etc/fstab for that
partition/drive.
(you can mount partitons in /etc/fstab the same way with LABEL=<your_LABEL>
instead of /dev/xyz or UUID nowadays.)

When the partition is LABELed and mounted via automount it will always be
accessible via /media/<your_LABEL>

I use this with several usb discs/pen drives here.

> 
> Matt Flaschen
> 


-- 
Thilo

key: 0x4A411E09





More information about the ubuntu-users mailing list