Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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 just want to know how everybody works with this problem.
Problem, which I ran into is:
when I connect more than two storage device to USB port,
the device assigned to them is a kind of random.
So, I have not figured out how /etc/fstab look like.
My memory stick seems to go either sda1 or sdb1,
My Zip drive seems to go either sda4 or sdb4.
At this moment, I have no more devices to check, but in future, the number will increase.
Oh please excuse me, I thought I posted my /etc/fstab.
The last line is problem. The actual device file name is not always /dev/sda1. Depending the order I connect, sometimes, sdb1. Zip dirve can be either sda4 or sdb4.
/dev/hde1 is a device file for PC-card memory. I never had more than two cards connected.
I wanted to know exactly the same (but nobody answered my post ).
I've several USB devices as you, and depending on the order, they are asociated to different scsi devices. Even "worst", one of the external hard disks has more than one partitions, so I would like to mount all of them when I connect it.
I think that automount could be used for this, because is the only way I know to have a "dynamic" /etc/fstab file, but I've had no time during these days to check
It is also possible that this problem is "new" and happened only now, when USB external storage devices became more popular, so it is possible that there is no solution yet
The option 'noauto' controls only if the drive should be mounted on bootup. The automatic mounting of a device that is plugged in should be controlled by some type of automounter and hotplug. Not sure what Debian uses...
Hotplug creates the device nodes in the order the device has been added to the system (sda,b,c,...) The number identifies the partitions on the drive. You could try to use udev-rules to assign fixed devicenodes to a particular hardware. Have a look here: http://www.reactivated.net/udevrules.php
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.