Re: [Hampshire] Safely unmounting a server's external hard d…

Top Page

Reply to this message
Author: John Cooper
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Safely unmounting a server's external hard drive
Chris Dennis wrote:
> Hello folks
>
> I'm planning to use one or more external USB hard drives to backup a
> headless server running Debian. I'll probably use rsnapshot, with a
> script that detects for the presence of the right drive.
>
> But how can the server tell the user when it is safe to unplug the
> drive? Or maybe the user should somehow tell the server "I want to
> unplug the drive -- stop using it and unmount it".
>
> The user's only way of communicating with the server is by email or
> possibly via Webmin.
>
> Has anyone come up with a cunning plan to deal with this?
>
> cheers
>
> Chris


Have a look at this USB suspend script:-

http://elliotli.blogspot.com/2009/01/safely-remove-usb-hard-drive-in-linux.html


--
--------------------------------------------------------------
Discover Linux - Open Source Solutions to Business and Schools
http://discoverlinux.co.uk
--------------------------------------------------------------