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.
Thanks for the reply.
But can you break it down a bit for me? I'm not so good at these types of things.
I do have hotplug, and I know how to make an entry into fstab (basically). What I don't know is how to find the stick. In other posts, it talks about /sda, but that's not on my system.
Where is it going to be?
One more question: if I put the mount command in fstab, and the stick is not in the drive, will there be a problem? (I may not always have the stick in the drive when I boot.)
Also, once this is setup, I assume I can take the stick out and put it in at will when the machine is on. Yes?
I don't know what will happen when your Linux kernel tries to boot a device that is not where it's supposed to be according to fstab (probably it just gives an error message) but I REALLY don't think that it's a good idea to remove the memory stick without unmounting it first.
Here's the fstab line for my memory stick:
/dev/sda1 /media/usbkey vfat rw,user,noauto 0 0
The "noauto" option means that it won't be mounted unless I use the "mount /media/usbkey" command. After doing "umount /media/usbkey" it's safe to remove the memory stick. And I can do this all as normal user, so it's really not much trouble at all.
And, to make things even easier, I've got on my wmaker desktop an icon to launch the "xvmount" program, which is a graphical frontend for mounting removable media. Xvmount is a handy utility, not only for mounting and unmounting my memory stick but also for quickly checking the current state of cdrom, floppy, and memory stick -- are they currently mounted or unmounted?
Some people like to dabble with error-prone automounting solutions but I find it safer to follow the KISS (Keep It Simple & Stable) principle. It's a bit more trouble to manually mount/unmount removable media, but it works every time.
Last edited by Dead Parrot; 07-23-2004 at 08:11 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.