LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Cameras, pendrive: how to have severail UUID into the /etc/fstab ? (https://www.linuxquestions.org/questions/linux-general-1/cameras-pendrive-how-to-have-severail-uuid-into-the-etc-fstab-852995/)

Xeratul 12-29-2010 04:48 AM

Cameras, pendrive: how to have severail UUID into the /etc/fstab ?
 
Simple. UUID is apparently limited to a single UUID to be defined. Example
UUID="DEB0-0001","3338-3164" separated with a comma is not working.

What could be the linux alternatives for pluging several UUID disks? How to bypass when there is a CF card and a reader box, since blkid gives no UUID ?

An experienced reply could help a lot.

thanks in advance

Code:

UUID="DEB0-0001"        /media/pendrive        vfat    users,rw,noauto,umask=0000,uid=1000,gid=1000 0 0
#UUID="3338-3164"      /media/pendrive        vfat    users,rw,noauto 0 0
#TYPE="vfat"    /media/pendrive        vfat    users,rw,noauto 0 0


andrewthomas 12-29-2010 06:19 AM

Quote:

Originally Posted by Xeratul (Post 4206397)
Simple. UUID is apparently limited to a single UUID to be defined. Example
UUID="DEB0-0001","3338-3164" separated with a comma is not working.

What could be the linux alternatives for pluging several UUID disks? How to bypass when there is a CF card and a reader box, since blkid gives no UUID ?

An experienced reply could help a lot.

thanks in advance

Code:

UUID="DEB0-0001"        /media/pendrive        vfat    users,rw,noauto,umask=0000,uid=1000,gid=1000 0 0
#UUID="3338-3164"      /media/pendrive        vfat    users,rw,noauto 0 0
#TYPE="vfat"    /media/pendrive        vfat    users,rw,noauto 0 0


Give them different mount points. For example /media/pendrive, /media/pendrive2, /media/pendrive3, ...

David the H. 12-29-2010 06:34 AM

Think about it this way. What would happen if you attatched more than one drive at the same time and then ran mount /media/pendrive?

The mount command connects a single device to a single location in the file tree. fstab is nothing more than a file with pre-configured mount options for designated devices. So in the same way you can't give the mount command multiple options, you can't have more than one /dev entry, label, or UUID specified per mount point in fstab either. If you want to configure multiple UUID's, you have to give each one its own individual mounting location.

But in any case, fstab isn't really the place to be configuring pendrives and other removable media. Those should be handled by other systems, such as pmount, halevt, or your desktop's automounting system.

Xeratul 12-29-2010 06:34 AM

Quote:

Originally Posted by andrewthomas (Post 4206455)
Give them different mount points. For example /media/pendrive, /media/pendrive2, /media/pendrive3, ...

:) come on. Thanks anyhow ...


All times are GMT -5. The time now is 08:04 AM.