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 07-17-2005, 03:16 PM   #1
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Question about fstab and digital cameras


I wasn't sure if I should put this in hardware, so I put it here instead. I added the line

/dev/sda1 /mnt/sda auto noauto,user,ro 0 0

to my fstab file in order to get the pictures from my digital camera (Konica KD-100 if it matters). It works ok, but I can't mount when I'm using my normal user account. I get the message: "mount: only root can do that". I thought by putting "user" in the options list, I'd be able to use my user account and not have to su to root . Could someone explain please?

Also, when I'm done with my camera and need to use "umount /dev/sda1", sometimes I get a message saying /mnt/sda is busy. Is there any way I can tell that it's busy, so I know to wait before issuing umount, or do I just leave it for a few minutes and try?

Thanks for any answers!

Last edited by Nylex; 07-17-2005 at 03:36 PM.
 
Old 07-17-2005, 04:50 PM   #2
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
man mount:

user Allow an ordinary user to mount the file system. The
name of the mounting user is written to mtab so that he
can unmount the file system again. This option implies
the options noexec, nosuid, and nodev (unless overridden
by subsequent options, as in the option line
user,exec,dev,suid).

users Allow every user to mount and unmount the file system.
This option implies the options noexec, nosuid, and nodev
(unless overridden by subsequent options, as in the
option line users,exec,dev,suid).

change user to users and that should do it.
 
Old 07-17-2005, 11:52 PM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Original Poster
Rep: Reputation: Disabled
Nope, that didn't work either. I thought it was a permissions problem, so I did "chmod a+rwx /mnt/sda", but I still get "mount: only root can do that". Should I change the owner using chown?

Thanks again.
 
Old 07-18-2005, 12:12 AM   #4
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 48
Re: Question about fstab and digital cameras

Quote:
Originally posted by Nylex
I wasn't sure if I should put this in hardware, so I put it here instead. I added the line

/dev/sda1 /mnt/sda auto noauto,user,ro 0 0

to my fstab file in order to get the pictures from my digital camera (Konica KD-100 if it matters). It works ok, but I can't mount when I'm using my normal user account. I get the message: "mount: only root can do that". I thought by putting "user" in the options list, I'd be able to use my user account and not have to su to root . Could someone explain please?

Also, when I'm done with my camera and need to use "umount /dev/sda1", sometimes I get a message saying /mnt/sda is busy. Is there any way I can tell that it's busy, so I know to wait before issuing umount, or do I just leave it for a few minutes and try?

Thanks for any answers!
It can be confusing... root can only mount a /dev even if you have 'user' set in fstab... users can mount the "mount point" only... /mnt/thumdrive...

A user can mount a device like this:
mount /mnt/thumbdrive

root can mount like this:
mount /dev/sda1 /mnt/thumbdrive

If you mount as root and then access as user then go back to root to attempt to unmount it may give you busy message if user is still accessing...

use:
fuser -m /mnt/mount_point

This will give you a list of running processes for that specific drive... You can then kill the process to release the drive for unmounting...

Hope this makes a little sense...

KC
 
Old 07-18-2005, 06:54 AM   #5
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Original Poster
Rep: Reputation: Disabled
Thanks kencaz, that's helpful .
 
Old 07-18-2005, 04:24 PM   #6
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
Didn't know that. Good info!!

As to the device being busy, fuser is indeed a great command to use, but often the 'busy' warning is simply because you nautilus/konqueror/you preferred graphical app still has an open window with the device you're trying to unmount so all you need to do is close it.
 
  


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
Digital cameras and Linux khwang Linux - Newbie 4 08-19-2005 02:46 PM
When will Linux like Digital Cameras? Amirhossein Slackware 28 05-24-2005 03:25 PM
Digital Cameras on Linux. excidy Linux - Newbie 1 04-03-2005 07:58 PM
no drivers for digital cameras XforcR Linux - Hardware 2 07-01-2004 12:44 PM
digital cameras allelopath Linux - General 3 04-10-2004 06:31 PM

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

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