LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-09-2003, 01:10 AM   #1
KePSuX
Member
 
Registered: Nov 2002
Location: Fredericksburg Va
Distribution: Gentoo
Posts: 59

Rep: Reputation: 15
USB Song Memory Stick Device


Ive got a sony memory stick reader (its actually in a mouse) model number MSAC-US5 that i can get to mount manually with this command:

mount -t vfat /dev/sda1 /mnt/usb

and i have added

/dev/sda1 /mnt/usb vfat auto 0 0

to my /ect/fstab, so when i type mount /mnt/usb it mounts fine.
Is there a way to have the drive automount when i put the memory stick in the reader the way a windows box auto detects it and mounts? Id like to be able to do this so i dont have to give my girlfriend root access. haha.

On the other side of the coin, if i just had it mount at boot would the machine have a fit if there wasnt any media in the device during its mount process? on the same thought, would be flip trying to unmount during shutdown?

anyone have any experiance here? Thanks!
 
Old 07-09-2003, 03:38 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Hi

Currently you have it so the machine WILL try to mount it during bootup, so if you aren't getting any errors now, you should be fine with that option.

As for your GF not having root priviledges, you can allow users to mount specific devices with the 'users' option:
/dev/sda1 /mnt/usb vfat auto,users 0 0

You can look into SuperMount or AutoMount as options for what you would like to do. I suggest against it, simply because I find bugs everytime I use something like that, probably just my bad luck though Here are some links for ya:
http://hints.linuxfromscratch.org/hints/automount.txt (Automount)
http://hints.linuxfromscratch.org/hints/supermount.txt (SuperMount)

Both are taken from the LFS hints, these really apply to nearly all linux systems, it helps keep things on a more "standard" basis. I'm sure there are RPM's or something specific for your distro, check your install CD's or rpmfind.net for more info

Cool
 
Old 07-09-2003, 12:12 PM   #3
bunhead
LQ Newbie
 
Registered: Jun 2003
Location: Toronto, Canada
Distribution: slackware
Posts: 20

Rep: Reputation: 0
No root access required

If you modify your /etc/fstab then you will be able to mount and unmount the device without root rights.

/dev/sda1 /mnt/usb vfat user,noauto

I would make an icon on your desktop for mounting and unmounting that memory stick. The reason for this is that the apps like supermount and automount tend to use alot of proccessor because they sit and probe all the devices in the fstab every 10 or 15 seconds.

hope you like the fstab entry that I gave you and the other bit about the automounters is just my two cents - I could be wrong.
 
Old 07-09-2003, 05:38 PM   #4
KePSuX
Member
 
Registered: Nov 2002
Location: Fredericksburg Va
Distribution: Gentoo
Posts: 59

Original Poster
Rep: Reputation: 15
Re: No root access required

Quote:
Originally posted by bunhead
If you modify your /etc/fstab then you will be able to mount and unmount the device without root rights.

/dev/sda1 /mnt/usb vfat user,noauto

I would make an icon on your desktop for mounting and unmounting that memory stick. The reason for this is that the apps like supermount and automount tend to use alot of proccessor because they sit and probe all the devices in the fstab every 10 or 15 seconds.

hope you like the fstab entry that I gave you and the other bit about the automounters is just my two cents - I could be wrong.
this worked for me. Having to click on an icon is totally cool, no problems at all. Thanks alot!
 
  


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
Missing memory in USB stick, flash memory, removable hd etc bamboo_spider Linux - Newbie 3 06-14-2006 06:39 PM
usb driver for memory stick pro device Simon Bridge Linux - Hardware 5 05-22-2005 08:25 AM
Valid block device for USB memory stick on SUSE 9.2 amala Linux - Hardware 5 12-24-2004 01:20 PM
USB Memory Stick coal-fire-ice Mandriva 11 12-10-2004 12:59 AM
usb memory stick linen0ise Slackware 9 10-03-2003 05:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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