Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Is it possible to have multiple entries in /etc/fstab with the same device name? I have an external usb hard drive formatted as ReiserFS as well as various other usb devices with other filesystems, and it would be nice to have an entry for each (e.g. /mnt/hd would do ReiserFS, /mnt/camera would do vfat, etc. but all for /dev/sda1).
If I'm following you, you mean you have multiple usb devices that when plugged in all show up as the same /dev/sda1 device, right?
I don't think it's possible to have multiple fstab entries for the same device entry. I tried that once and only got errors. But if your system is using udev, then it should be pretty easy to set it up to detect the individual devices when they are plugged in and create different device aliases for each one. That is, you can have a /dev/harddrive, a /dev/camera, /dev/flashdrive and so on. Then you can create different fstab entries for each of those devices.
I don't have a 2.6 kernel, so no udev at this point. I don't mean multiple ones plugged it at the same time, but just various usb devices that I own with different filesystems. Since no one fstab entry will cover all of them, I thought it would be nice to have different mount points and use a different filesystem depending on which I use. Any way to do that without udev, or am I going to have to do manual mount commands all the time?
i think by default 'mount' will determine what file system you have, just make 1 script like:-
#!/bin/bash
sudo mount /dev/sda /home/user1/Desktop/usbdisk
*don't care who's usb hdd u use, this script will mount the partition.
Then later on you can create a custom menu at kde to mount the disk.
So, next time when you plugin the usb disk, you can use the menu to mount the disk to ~/Desktop/usbdisk
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.