Re: usb auto mount when nobody is logged in?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 30, 2010 at 10:42 AM, Tom Horsley wrote:

> if mount LABEL=BACKUP /backup
> then
>   ...do backup stuff...
>   umount /backup
> fi

Wow. It's really that easy?

I did have to redirect stderr to null since I'm not interested to
getting mail from cron every time the drive is not plugged in. But
otherwise, that will probably work form me.

I presume that this is safe in the case that somebody *is* logged and
and the drive is already auto-mounted by that user in /media? My
script mounts the drive in /mnt, and it's a little weird having two
mount points for the same device, but I suppose that was intended and
properly handled by the kernel...

-Alan
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux