LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 08:25 PM   #1
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Rep: Reputation: 210Reputation: 210Reputation: 210
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 08:27 PM.
 
Old 07-24-2011, 09:10 PM   #2
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Original Poster
Rep: Reputation: 210Reputation: 210Reputation: 210
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, 10:53 PM   #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
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, 12:39 AM   #4
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

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


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 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 09:48 AM
[SOLVED] fstab ignores user option (Debian Squeeze) mike11 Linux - Newbie 5 01-06-2010 09:04 PM
fstab and mounting devices nass Slackware 2 07-11-2007 08:18 AM
USB devices in mtab, not fstab coldsalmon Linux - Hardware 1 02-05-2006 02:12 AM
Juggling USB devices (fstab related) leiavoia Debian 7 01-28-2005 05:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:07 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