On Thursday 11 August 2005 02:13, Daniel Bloemer wrote:
> Hi,
>
> Alan Brown wrote:
> > On Sun, 7 Aug 2005, Mick wrote:
> >> I use an USB disk as backup target for Bacula. It works fine. But there
> >> is one issue: I want to mount it immediatly before the backup and
> >> unmount it afterwards. There is even a mount option for the config file
> >> (sd.config I think), but this option is not allowed for a harddisk.
> >
> > Assuming you're using a linux system, why not allow hotplug and subfs to
> > do this for you automagically?
>
> I am working on a similiar solution here. The problem is, that the
> hotplug-agent doesnt mount the USB-Harddisc on a fixed mountpoint.
>
> I tried to define a fixed mountpoint myself, but the hotplug-agent has
> avoided all my attempts until now.

If you label the disk (using the filesystem's label commands: e2label for 
ext2, xfs_admin -L <label> for xfs, etc), then when the drive is detected, it 
should have a mount point created in /mnt/<LABEL>.  At least that is the way 
it works on my Mandrake 10.2 system.  I have an XFS formatted drive in my USB 
enclosure with the label BackupDrive.  When I turn it on, a mount point is 
created at /mnt/BackupDrive and an entry is added in /etc/fstab.

Of course, you could always mount the drive manually at a known location:

mount /dev/sda1 /mnt/MyKnownLocation

j----- k-----

-- 
Joshua Kugler
CDE System Administrator
http://distance.uaf.edu/


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to