How do I detect that a jump drive is mounted?

Knute Johnson knute2009 at knutejohnson.com
Sat Aug 29 03:18:44 UTC 2009


Andrew Farris wrote:
> On Fri, 2009-08-28 at 15:18 -0700, Knute Johnson wrote:
>> I've got a jump drive that I use to back up some files at night.  Is 
>> there a simple way in a script that I can check to see that the drive is 
>> mounted?
> 
> you could check for an existent/populated folder in /media... or you
> gould give it it's own dedicated mount point, and check there.
> 
> hope it helps
> 
> 

I've written a file on the jump drive and check for its existence before 
I do the backup.  But I had a problem a while back and wrote the file to 
disk without having the jump drive mounted.  I backed up for a couple of 
weeks before I discovered that the jump drive wasn't mounted.  I would 
have thought that this was a fairly common question but maybe I'm 
missing something and not asking the right question.

Can you explain the dedicated mount point in some detail?

Thanks very much,

-- 

Knute Johnson





More information about the ubuntu-users mailing list