SlackwareThis Forum is for the discussion of Slackware Linux.
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.
I just got a new toy, a Samsung Digimax D53 digital camera (which rocks btw). I use a dual boot system (win98se/slack 11) but I run predominantly in linux. The camera is recognized by linux as a scsi drive (sda1), and works excellently except for the fact that I run as a normal user and I'm having to switch to root to mount it and to delete the pictures/avi files after I've copied them off. (actually having just said that, I've never tried to mv or move them in kde as my user account so not sure what would happen if I tried that)
Anyways, I tried adding a line to fstab so that I could mount/unmount as my normal user account.
/dev/sda1 /mnt/camera auto noauto,user 0 0
But when I do that, the next time I plug the camera into the usb cable and turn it on, it mounts as the next scsi drive after the one I put in fstab. In other words, after I added the above line the system recognized the camera as sdb1 instead of sda1. If I change the fstab entry to sdb1, it goes to sdc1 etc etc. If I remove the line altogether it is recognized as sda1 every time. While I can certainly use it, it'd be easier not to have to switch to root to mount/unmount the camera.
Any ideas how I can fix this? I'm running the 2.6.17.13 kernel custom compiled for my system and I check to see which drive the camera is seen as by watching /var/log/messages (tail -f /var/log/messages). Is it something to do with udev and the 2.6 kernel?
Distribution: Arch Linux 2007.05 "Duke" (Kernel 2.6.21)
Posts: 447
Rep:
try umask=0000 after "user" on your fstab line to fix the root issue. Not sure about the sda/ sdb thing though. You might be able to create a udev rule, but I couldn't begin to tell you how to do that.
Don't use 0000 umask, that opens up everything. "user" as already done is better. If you use "showexec" for FAT filesystems, the files also have saner permissions (only directories, COM, EXE, and BAT files are executable).
Please post the "tail" of syslog and dmesg when you plug in/turn on the camera.
SCSI device sda: 1950720 512-byte hdwr sectors (999 MB)
sda: Write Protect is off
sda: Mode Sense: 00 06 00 00
sda: assuming drive cache: write through
SCSI device sda: 1950720 512-byte hdwr sectors (999 MB)
sda: Write Protect is off
sda: Mode Sense: 00 06 00 00
sda: assuming drive cache: write through
sda: sda1
sd 2:0:0:0: Attached scsi removable disk sda
sd 2:0:0:0: Attached scsi generic sg0 type 0
usb-storage: device scan complete
usb 1-1: USB disconnect, address 5
usb 1-1: new full speed USB device using uhci_hcd and address 6
usb 1-1: configuration #1 chosen from 1 choice
scsi3 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 6
usb-storage: waiting for device to settle before scanning
Vendor: Samsung Model: Digital Camera Rev:
Type: Direct-Access ANSI SCSI revision: 00
SCSI device sda: 1950720 512-byte hdwr sectors (999 MB)
sda: Write Protect is off
sda: Mode Sense: 00 06 00 00
sda: assuming drive cache: write through
SCSI device sda: 1950720 512-byte hdwr sectors (999 MB)
sda: Write Protect is off
sda: Mode Sense: 00 06 00 00
sda: assuming drive cache: write through
sda: sda1
sd 3:0:0:0: Attached scsi removable disk sda
sd 3:0:0:0: Attached scsi generic sg0 type 0
usb-storage: device scan complete
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
IPv6 over IPv4 tunneling driver
eth0: no IPv6 routers present
I just tried to make the problem occur again...with no success. I added the following
/dev/sda1 /mnt/camera auto noauto,user 0 0
to fstab again and now the camera is being recognized as sda1 each time...thus proving to me that inanimate objects will make a fool of you when you try to get someone to help you
The only thing I did notice was there is a little problem with the kde media kicker applet. When I mounted it via the icon on the applet, I could open it up in a konqueror window and everything looked good, but when I unmounted it and tried again to make sure, it was still showing up as mounted in the /mnt directory. When I went to a cl, cd'd to the /mnt directory and issued mount camera I got a statement that mtab was already showing it as mounted. so I issued a cl umount and that worked as normal.
So maybe the issue with showing up as later drives was because I was assuming it was unmounting correctly and it wasn't. So the next time I turned it on it would just use the next available drive letter? Maybe? Dunno. I have never had any problems with my two cd drives mounting and unmounting in this fashion, but I can stick to cl mount/umount for the camera.
If you have any more ideas I'd still like to hear them, and if I have any other problems with this issue I'll certainly repost in this thread.
Everyone should be, glad to meet another Tim I don't know why, but I was happy the first time I ever watched python's holy grail and learned the crazy wizard was a Tim too.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.