Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with 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.
Well its up to the udev system to decide. If it believes that /dev/sda exists currently in the system (even if its not really there), its going to mount as /dev/sdb. There's no sure-fire way to ensure that it'll always be one or the other unless are thorough in your proper umounting/mounting. Even then, its not guaranteed. What is your end goal?
If you want to write an fstab entry for a usb external storage device, use "UUID=<the_uuid_number>" or "LABEL=<label>" instead. I have a thumbdrive where I used "mlabel" to label the drive as "PODCASTS". An fstab entry for it could use "LABEL=PODCASTS" instead of the device node.
Even without an fstab entry, udev notices the label and it is mounted at /media/PODCASTS.
Well its up to the udev system to decide. If it believes that /dev/sda exists currently in the system (even if its not really there), its going to mount as /dev/sdb. There's no sure-fire way to ensure that it'll always be one or the other unless are thorough in your proper umounting/mounting. Even then, its not guaranteed. What is your end goal?
Basically I am running Desktop with LIVE-CD, Whenever system boots up I would like to copy few files from USB to Livecd environment, then operate.
So whenever system boots up I am mounting the USB as /deev/sda1. Sometimes mount fails because USB is detected as /dev/sdb1, resulting failure in next execution also. So I want to make sure on what basis it OS decides it as /dev/sda1 or /dev/sdb1
If you want to write an fstab entry for a usb external storage device, use "UUID=<the_uuid_number>" or "LABEL=<label>" instead. I have a thumbdrive where I used "mlabel" to label the drive as "PODCASTS". An fstab entry for it could use "LABEL=PODCASTS" instead of the device node.
Even without an fstab entry, udev notices the label and it is mounted at /media/PODCASTS.
thanks for your kind reply.
I am operating in LIVECD environment. so there is no fstsb entry.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.