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 - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 11-25-2007, 06:10 PM   #1
Peter Shepard
Member
 
Registered: Apr 2005
Posts: 96

Rep: Reputation: 15
/etc/fstab for mounting an usb mp3 player


I am working on a Gutsy Gibbon OS. I have a Sansa mp3 player that was mounting automatically. I unplugged it prematurely and there are a number of read only files now sitting on my mp3 player. Also when I plug the player in, it mounts but in read only mode. The player will mount in read write mode if I keep in plugged-in when I restart the CPU but the files are still read only. Any ideas. Hear is my cat /eat/fstab:

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda4
UUID=b022438b-d3e4-4b8c-8965-fae4fedc92b2 / ext3 defaults,errors=remount-ro 0 1
# /dev/sda6
UUID=b121f24f-1743-47e6-bb52-74ca53593b17 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
 
Old 11-25-2007, 07:50 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
your fstab does not point to a media player other than cdrom.

you may be using HAL.

plug in your media player and check /var/log/messager or syslog to see if the player as hardware is being detected.

it should be read as a sdX device - X depending on how many usb devices you have
 
Old 12-29-2007, 09:35 PM   #3
smitchel1099
LQ Newbie
 
Registered: Dec 2007
Posts: 15

Rep: Reputation: 0
mounting 2 mp3 players in fstab, an example

Hi, I have two mp3 players that I have mounting correctly in my fstab. I'm
using SLAMD64 12.0.

First to find what to mount your device as, after plugging the player in,
execute this:
ls -d /dev/disk/by-id/
and look for your device. It takes 5-10 seconds to let it settle, so check
after that time.
I am assuming that you have udev on your system, if not you may not have
that directory...
Now that you know the name, you can enter a line in your /etc/fstab file,
which you have to be root to edit.
So you need to open a new terminal, become root, then start an editor, such
as joe, with the filename we want to edit:
su
(enter password to be root)
joe /etc/fstab
go to a blank line and make an entry (one per line) for your device using
the name found above (hope you kept that terminal open...)
when done, in joe, type control-K, then X to save and exit.

Below is a copy of my fstab to see the option switches that I use to mount a
Sansa e280 and a Vibez mp3 player.
This works for my system, hope it helps you get yours going.
Note that my fstab has comments for sections and lots of hard drives--you
can ignore them.

# --------- ide hard drives -----------------
/dev/disk/by-id/ata-ST3500630AS_9QG1AV5N-part1 / ext3
# defaults 1 1
/dev/disk/by-id/ata-ST3500630AS_9QG1AV5N-part2 swap swap
# defaults 0 0
/dev/disk/by-id/ata-ST3500630AS_9QG1AV5X-part1 /mnt/disk2 ext3
# defaults 0 2
/dev/disk/by-id/ata-ST3500630AS_9QG1B1N3 /mnt/disk3 ext3
# defaults 0 2
/dev/disk/by-id/ata-ST3500630AS_9QG167L3-part1 /mnt/disk4 ext3
# defaults 0 2
/dev/disk/by-id/ata-ST3500630AS_9QG15WSW-part1 /mnt/disk5 ext3
# defaults 0 2
/dev/disk/by-id/scsi-3600508e000000000afbe3c2e41fb6709-part1
# /mnt/sasr ext3 defaults 0 1
# --------- optical drives ------------------
/dev/sr0 /mnt/dvd auto noauto,owner,ro 0 0
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
# -------- special file systems -------------
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
# --------- card reader in monitor ----------
/dev/disk/by-id/usb-Generic_Flash_HS-CF_000022272228-0:0-part1
# /media/cfcard auto noauto,users,owner,umask=000 0 0
/dev/disk/by-id/usb-Generic_Flash_HS-COMBO_000022272228-0:0-part1
//media/combo auto noauto,users,owner,umask=000 0 0
# --------- usb devices ----------------------
/dev/disk/by-id/usb-Maxtor_3200_604010016260-part1 /media/maxtor320
/auto users,defaults 0 0
/dev/disk/by-id/usb-Maxtor_OneTouch_IIIs_2CAD10K8-part1 /media/maxtor1000
/auto users,defaults 0 0
/dev/sdg /media/thumb auto noauto,users,owner 0
/0
# -------- sansa E280 mp3 player -------------
/dev/disk/by-id/usb-SanDisk_Sansa_e280_00000000-00000000-8680b38a-d925e817-00000000-0:0-part1
# /media/sansa-main vfat users,defaults,umask=000 0 0
/dev/disk/by-id/usb-SanDisk_Sansa_e280_00000000-00000000-8680b38a-d925e817-00000000-0:1-part1
//media/sansa-card vfat users,defaults,umask=000 0 0
# -------- vibez mp3 player ------------------
/dev/disk/by-id/usb-TrekStor_vibez_0510F7B07F6BA7D2C-0:0 /media/vibez vfat
/users,defaults,exec,umask=000 0 0
--------------------------
note that the umask option is set to 000 (zero,zero,zero) since the umask is
inverse of the permissions that you want (no kidding, see man page)
so a umask of 000 will give you permissions of 777, anybody can
read/write/execute to it, so you can copy files to your mp3 player without
being root.

Good luck and let us know how it goes.
Steve
 
  


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
mounting usb mp3 player saltire Linux - Hardware 13 01-01-2008 12:36 AM
Mounting the Rio MP3 Player as USB Storage Device? apachedude Linux - Hardware 4 12-31-2007 11:39 PM
USB MP3 Player not mounting on debian sarge PEACEYALL Linux - Newbie 6 03-29-2005 07:11 AM
Mounting USB Mp3 player (iRiver H3XX) in Linux vharishankar Linux - General 2 02-27-2005 05:48 AM
mounting USB mp3 player. omes Linux - General 6 01-09-2005 01:23 PM

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

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