Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USB automounting advice
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
patman
n00b
n00b


Joined: 11 May 2003
Posts: 32

PostPosted: Wed Oct 19, 2005 6:38 pm    Post subject: USB automounting advice Reply with quote

I have a slightly different USB automounting question. At least, I think it's different. I've looked at autofs and I don't think it does what I'm looking for.

I have a machine here that has seven USB ports, between onboard and an attached hub. All seven ports work fine, no issue there.

Here's the deal - the people using this machine are going to walk up to it and plug in a variety of USB devices. Sticks, cameras, hard drives, CD-ROMs, et cetera. When these get plugged in, I want the system to automatically mount the device(based on order inserted - i.e., if it gets recognized as /dev/sda1, mount to /mnt/usb1) and then broadcast the mounted location to console.

This sounds to me like a job for a hotplug script, but I'm having trouble finding a place to help me write one that'll work for this.

So, am I on the right track? Is a hotplug script the best way to go about this? If so, where to learn how to write one?

And if not, what direction should I be going in?
Back to top
View user's profile Send private message
amightywind
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jun 2004
Posts: 137
Location: Andover, MN USA

PostPosted: Wed Oct 19, 2005 9:23 pm    Post subject: Reply with quote

I use USB with a flash drive and printer. Like you I use fstab or the little programs that allow you to mount filesystems. The printer is coldplugged. I will be eager to see an authoritative response for this one. What happens when you pull the devices? Do their /dev files disappear too?
_________________
amightywind
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum