DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I recently installed Debian Sid on my laptop. Everything works great, but there are a couple things left to be setup. I have a USB hard drive that I would like to use. How do I mount this device? I have used the mount command before, but what device do I mount (how do I tell how it is showing up)? How could I get the system to automatically mount the drive whenever I plug it up? Is there perhaps a package I could install to easily accomplish this?
Thanks for the super fast replies, I was able to mount the drive with no problems. Is there a way to make the system automatically mount the drive whenever I plug it in? I would like the drive to be plug and play so I can just plug and unplug and have it work.
Last edited by Oxyacetylene; 10-18-2004 at 10:55 AM.
Thanks I will look into that. I wonder how SuSE does it? My home desktop is SuSE 9.1 Pro. When I hook the drive up it shows as USB-1238907590w7 or some such nonsense (serial # I guess). Then I just unplug it and the folder disappears.
I got autofs installed and configured so that it would automatically mount the drive for me when I inserted it and did an ls command, of any other way I wanted to access it. I still have to umount it before I can unplug it though....
autofs should automatically unmount the device after a set period of time. I don't remember what the default time is offhand (about 60 seconds?), but you can manually set it by adding "--timeout=5" (or however many seconds you want) to the entry in auto.master.
As for hotplug, I think that's job is to detect what kind of device has been plugged into the usb port, storage device, printer, scanner, whatnot, and load whatever driver modules are needed. It's not involved in the actual mounting of the device. There might be a way to do it, but I haven't heard of any myself.
I tried setting the timeout for autofs to 5 seconds, but even if I wait at least that long before unplugging it I can't access it when I remount it unless I umount it first. I'll have to play with it some more and see what I can do. autofs seems to be the best so far...
Hi. I have a belated heads-up for you. After reading the last post, I started playing around and I discovered that my autofs wasn't unmounting either. After a bit of googling I discovered that there's a bug in the recent versions of autofs. I downgraded mine to a previous version and now it's working again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.