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.
I remember that I used to have my fstab filled with devices. As all of you probably know, if you connect, for example, an usb device, it will be /dev/sda. However, my /dev/sda is supposed to be another device that I added to /etc/fstab to mount on a specific directory.
What happens is that I would like to know if there is a way to recognize removable hard disks by ID or something, I remember that there was a way to do it but I just couldn't figure it out.
Any help would be appreciated.
Thanks in advance,
Fill
ignoring your usb device.....However, my /dev/sda is SUPPOSED to be another device that I added to /etc/fstab to mount on a specific directory.....sounds like something is not working without usb device or am I mis-reading you?
2) you are probably interested in creating an udev rule?
Imagine that I have a usb-disk which uses ntfs-3g on Linux and it's /dev/sda. I create an entry in /etc/fstab with /dev/sda1 saying to mount my disk using ntfs-3g filesystem, and then I indicate the mount point.
However, I disconnect the disk and then I plug my usb-pen disk. What happens is that my pen disk will be /dev/sda (because there are no other usb devices plugged), and when I type 'mount /dev/sda', it will try to mount the pen using ntfs-3g, which is totally wrong - the pen uses FAT filesystem.
So my question is how would I recognize the NTFS usb disk by product ID or something instead of /dev/sda1...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.