I'm having a small problem and I'm not entirely positive how to fix it. First, here's what I want to do.
I have an external hard drive in an external enclosure (converted a 40GB internal IDE drive to an external USB/Firewire drive). The drive itself works great and has been formated with ext3 (single volume). No issues there.
What I'd LIKE to do is have this drive, whenever plugged into my system, to be mounted to a directory I created, /media/externbackup instead of anywhere else. I would also like it owned by root, have the group set to "staff," and have the permissions 770 (rwxrwx--- so NOBODY but those on the members of staff and root can even go into it...very, VERY important).
I have added the following entry to the bottom of my otherwise stock /etc/fstab.
So, to my understanding, whenever the device is plugged in (as that is its UUID) it should be mounted to /media/externbackup.
Here's my problem. Whether I leave it plugged in at bootup or plug it in during normal use it automatically mounts the drive to /media/usbdisk. This is strange since I can't find out why it would ignore the fstab and mount it somewhere else.
To solve the permissions and ownership issue (since having any old user account able to read a full system backup would be a perilous proposition indeed, even with its own permissions in place) I mounted the disk via "$sudo mount /media/externbackup/" and did a chmod 770 ; chgrp staff to it. Whenever I mount it, even if it's automatically mounted to /media/usbdisk, it maintains these permissions and ownership (I'm going to assume it's actually on the disk filesystem but please feel free to enlighten).
So, anyone have any idea how to stop it being automatically mounted to /media/usbdisk? After modifying the fstab to tell it where I want to be able to mount it I'm not really sure what else to change since I'm not familiar with Ubuntu's automounting. Is there something else I need to change?
I have an external hard drive in an external enclosure (converted a 40GB internal IDE drive to an external USB/Firewire drive). The drive itself works great and has been formated with ext3 (single volume). No issues there.
What I'd LIKE to do is have this drive, whenever plugged into my system, to be mounted to a directory I created, /media/externbackup instead of anywhere else. I would also like it owned by root, have the group set to "staff," and have the permissions 770 (rwxrwx--- so NOBODY but those on the members of staff and root can even go into it...very, VERY important).
I have added the following entry to the bottom of my otherwise stock /etc/fstab.
Originally posted by /etc/fstab
Here's my problem. Whether I leave it plugged in at bootup or plug it in during normal use it automatically mounts the drive to /media/usbdisk. This is strange since I can't find out why it would ignore the fstab and mount it somewhere else.
To solve the permissions and ownership issue (since having any old user account able to read a full system backup would be a perilous proposition indeed, even with its own permissions in place) I mounted the disk via "$sudo mount /media/externbackup/" and did a chmod 770 ; chgrp staff to it. Whenever I mount it, even if it's automatically mounted to /media/usbdisk, it maintains these permissions and ownership (I'm going to assume it's actually on the disk filesystem but please feel free to enlighten).
So, anyone have any idea how to stop it being automatically mounted to /media/usbdisk? After modifying the fstab to tell it where I want to be able to mount it I'm not really sure what else to change since I'm not familiar with Ubuntu's automounting. Is there something else I need to change?
Comment