LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 12-29-2010, 04:48 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
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
 
Old 12-29-2010, 06:19 AM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Quote:
Originally Posted by Xeratul View Post
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, ...
 
Old 12-29-2010, 06:34 AM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
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.
 
Old 12-29-2010, 06:34 AM   #4
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by andrewthomas View Post
Give them different mount points. For example /media/pendrive, /media/pendrive2, /media/pendrive3, ...
come on. Thanks anyhow ...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fstab sdxx or uuid or ... jesses93 Linux - General 1 01-05-2010 03:02 PM
after copying partition, how to deal with fstab when it references by UUID ? lumix Linux - Newbie 5 12-09-2008 09:59 PM
UUID, grub, and fstab radiodee1 Debian 4 09-16-2008 05:56 AM
How to clone HD when using UUID in fstab? Frank64 Linux - General 5 03-09-2008 02:17 PM
Question about fstab and digital cameras Nylex Linux - General 5 07-18-2005 04:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration