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

Re: Mounting USB stuff



On Wed, 2005-10-26 at 17:22 -0400, Michael S. Peek wrote:
> Sanjay Debian wrote:
> 
> >     I'm a n00b who's trying to figure out how to mount USB stuff.  I
> >     hear hal will
> >     do just that, but when I run "lshal", I get the following error:
> <snip>
> > I had no idea you have to do so much just to mount usb. On my unstable 
> > debian install I can install my usb flash drive like this
> > 
> > mount -t usbfs /dev/sda1 /mnt/usb
> 
> Ah, but I'm no ordinary n00b.  I'm a Power-N00b, the most dangerous of my breed...
> 
> But seriously, allow me to clarify my question:
> 
> I'm trying to figure out how to automount various USB devices in a consistent 
> manor such that a generic clueless user can use their own devices without 
> having to remember whether or not that flash drive is sdb1 or sdb2, etc..., or 
> for that matter, without the user having to even know what "mount" means. 
> (After all, if I let users mount stuff, it's just a matter of time before 
> someone forgets to unmount, and then they call me wondering why files are 
> broken/missing.)
> 
> I have heard that the hal package can be used to automount USB stuff upon 
> connection, and auto-unmount it upon disconnection, and that it will even mount 
> it according to the product's name (if that can be determined).
> 
> That sounded exactly like what I wanted, but I've run into a snag with dbus-1 
> seg-faulting on startup.
> 
> My alternative option is to set up udev to recognize devices and map them to 
> consistent names in /dev and then add user-mountable entries in /etc/fstab, but 
> that may require that I create rules files for /etc/udev/rules.d/ for 
> (potentially) every single device that a user may bring into my office, which 
> is what I would like to avoid if possible.  It would be sweet if the computer 
> could just figure it out for itself, hence my interest in  hal.
> 
> BTW, I'm running Debian sarge w/ 2.6.8-2-686 kernel.
> 
> Any help is good help, thanks in advance...

GNOME or KDE?  With GNOME 2.10+ and gnome-volume-manager, I just
plug in the pen drive, it automounts, an icon appears on the
desktop and nautilus it up.

-- 
-----------------------------------------------------------------
Ron Johnson, Jr.
Jefferson, LA USA
PGP Key ID 8834C06B I prefer encrypted mail.

"In forty hours I shall be in battle; with little information;
and on the spur of the moment will have to make the most
momentous decisions; But I believe that one's spirit enlarges
with responsibility and that, with God's help; I shall make them;
and make them right."
General George S. Patton



Reply to: