LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 07-24-2011, 09:25 PM   #1
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux
Posts: 1,073

Rep: Reputation: 103Reputation: 103
fstab for usb devices in Squeeze


Hello. Back in the good old days when I used Lenny, I was able to mount my usb stick, mount my digital camera, and sync my palm pilot, at the same time. After upgrading to Squeeze, this now seems like an impossible dream.

My fstab file used to look like this:

Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/hda1       /               ext3    defaults,errors=remount-ro 0       1
/dev/hda5       none            swap    sw              0       0
/dev/hdc        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/fd0        /media/floppy0  vfat,msdos    rw,user,noauto  0       0
/dev/sda1	/media/usb	vfat	noauto,user	0	0	
/dev/sdb1	/media/usb2	vfat	noauto,user	0	0
/dev/sdc1	/media/usb3	vfat	noauto,user	0	0
Now, it has all these messy unreadable entries like "UUID=14c375f6-91a3-45cd-b12a-d06b507c9dfe" in it. What does this mean?

I use Fluxbox, on an old Dell OptiPlex GX1. Whenever I try to mount and read the files on my digital camera, I am told I have "wrong fs type, bad option, bad superblock".

There's some strange entry in the current (and now incomprehensible) fstab that reads:

Code:
UUID=A456-E995	/media/usb  vfat  noauto,user  0 0
I think this might be for my usb stick, which sometimes I can mount and read. But, when I try to read images from my digital camera, via plugging it in and mounting /media/usb, it tells me that "mount: special device UUID=A456-E995 does not exist".

How I yearn for the good old days of Lenny. But, I digress. Can someone tell me how to fix my fstab to get it so I can once again mount my usb devices (specifically the camera)?

Mark

Last edited by mark_alfred; 07-24-2011 at 09:27 PM.
 
Old 07-24-2011, 10:10 PM   #2
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux
Posts: 1,073

Original Poster
Rep: Reputation: 103Reputation: 103
A user on the Debian mailing list helped me to solve it. The program blkid did the trick, allowing to find the weird number for my fstab:
Code:
debian:/home/mark# blkid
/dev/sdc1: SEC_TYPE="msdos" UUID="0000-115E" TYPE="vfat" 
debian:/home/mark#
So, with the UUID=0000-115E, I was able to make the entry in the fstab to establish a mount point for the camera.
 
Old 07-24-2011, 11:53 PM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950
UUID is a unique device identifier. mount/fstab can use it instead of a /dev entry, allowing you to tie the command a specific drive or partition. There are many ways to get the UUID for a device, so google it. You can also define a device by its label, which may be a little more flexible.

But in any case, fstab is generally not the recommended place for handling removable disks. These really should be dealt with by your desktop's automounting system or pmount, or something similar.
 
Old 07-25-2011, 01:39 AM   #4
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 515

Rep: Reputation: 102Reputation: 102
Removable media is handled by udisks in Squeeze.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VirtualBox USB devices history effect: fstab and udev rules catkin Slackware 3 11-07-2010 10:48 AM
[SOLVED] fstab ignores user option (Debian Squeeze) mike11 Linux - Newbie 5 01-06-2010 10:04 PM
fstab and mounting devices nass Slackware 2 07-11-2007 09:18 AM
USB devices in mtab, not fstab coldsalmon Linux - Hardware 1 02-05-2006 03:12 AM
Juggling USB devices (fstab related) leiavoia Debian 7 01-28-2005 06:38 AM


All times are GMT -5. The time now is 11:33 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration