Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Hot swap a drive so auto backups work without a user logged in.


  • Please log in to reply
2 replies to this topic

#1 Naught McNoone

Naught McNoone

  • Members
  • 308 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:The Great White North
  • Local time:06:58 PM

Posted 24 August 2016 - 02:45 PM

Does anyone here have experience on hot swapping a drive to a specific location so that a backup program can access it?

 

The system is xubuntu 16.04.01 LTS.

The drive is an SATA drive that inserts into a Startech HSB100SATBK 5.25" Trayless mobile rack. for 3.5" HDD.

 

Automount is working.  

The drive automounts for any user that clicks on it on their desktop, and mounts under that users name in the /media directory.

But then all other users are locked out of it.

 

I want the be able to hot swap the drive, when no one is logged on, and have it accessible to use as a backup device.

 

Cheers!

 

Naught



BC AdBot (Login to Remove)

 


#2 TsVk!

TsVk!

    penguin farmer


  • Members
  • 6,234 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:The Antipodes
  • Local time:08:58 AM

Posted 24 August 2016 - 04:24 PM

Check out Autofs.



#3 Naught McNoone

Naught McNoone
  • Topic Starter

  • Members
  • 308 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:The Great White North
  • Local time:06:58 PM

Posted 25 August 2016 - 11:04 AM

I want to set it up so that no one has to do anything other than swap the drives.  

Experience tells me that users will not bother to do something, if it involves extra steps, like turning on a monitor and logging in.

"I didn't have time to do it now.  I will do it tomorrow."

The more a human has to do, the more likely that it will not get done!

 

I have being trying to configure autofs to work, but something is not right.  

The drive will appear on the users desktop, but will not mount unless someone is logged in.

 

I can get it to work by putting an entry into fstab, but it un-mounts and re-mounts dirty.  Not a good thing.

 

Here is the entry in /etc/auto.master:

/media/hotswap /etc/auto.mount

 

Here is the entry in /etc/auto.mount:

 

/media/hotswap -fstype=auto,sync,rw :UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

 

I think I am missing something, or reading the man page wrong.

 

Cheers!

 

Naught






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users