Difference between revisions of "Connecting your MP3 Player"

From ArchWiki
Jump to: navigation, search
m (UUID Player Mounting)
(Conversion to blkid.)
Line 7: Line 7:
 
*creative
 
*creative
 
**Creative MuVo
 
**Creative MuVo
***Note that with some (older) models of MuVo deleting settings.dat from the stick renders it useless, newer models don't have the file
+
***Note that with some (older) models of MuVo deleting settings.dat from the stick renders it useless, newer models don't have the file.
 
*iriver
 
*iriver
 
**All iriver players with "UMS Mode" firmware are recognized as usb-storage
 
**All iriver players with "UMS Mode" firmware are recognized as usb-storage
Line 28: Line 28:
 
Mounting your mp3 player(in this example an ipod) is very easy. But without the "proper" set up, it can be problematic. The following steps can be used for any mp3 player or usb mass storage device.
 
Mounting your mp3 player(in this example an ipod) is very easy. But without the "proper" set up, it can be problematic. The following steps can be used for any mp3 player or usb mass storage device.
  
* Every drive creates a [http://en.wikipedia.org/wiki/UUID UUID] (Universally Unique Identifier), these identifiers can be used to track individual drive no matter their device node (ie '/dev/sda'). To find the current UUIDs execute the following command.
+
* Every drive creates a [http://en.wikipedia.org/wiki/UUID UUID] (Universally Unique Identifier), these identifiers can be used to track individual drive no matter their device node (ie {{filename|/dev/sda}}).
<pre>
+
 
  ls -lF /dev/disk/by-uuid/
+
To find the current UUIDs execute:
</pre>
+
# blkid
 +
 
 
''' At this point you should see a list of your system drives and a long strings of characters. These long strings are the uuids.'''
 
''' At this point you should see a list of your system drives and a long strings of characters. These long strings are the uuids.'''
  
 
* Now plug in your mp3 player to a usb port . . . wait for a few seconds . . .  
 
* Now plug in your mp3 player to a usb port . . . wait for a few seconds . . .  
  
* Now re-execute the previous command
+
* Reexecute '''blkid'''
<pre>
+
ls -lF /dev/disk/by-uuid/
+
</pre>
+
 
''' Notice a new device and UUID? That's your mp3 player!'''
 
''' Notice a new device and UUID? That's your mp3 player!'''
  
* Copy or write down the new UUID. My UUID for my ipod looks like this: 6411-EF7E
+
* The player likely has a label. If not use the device node path. Execute '''as superuser''':
 +
# blkid | grep YOURLABEL >> /etc/fstab
  
* Let's create an easy to remember directory listing for the device
+
* Now create an easy to remember directory listing for the device:
<pre>
+
  # mkdir /media/ipod
  mkdir /media/ipod
+
</pre>
+
'''If you don't have an ipod, just rename the directory to something that you like (/media/mp3player)'''
+
  
* Now it's time to roll up your sleeves and edit your /etc/fstab
+
''If you don't have an ipod or have Your drives somewhere else, just rename the directory to something that you like. ({{filename|/mnt/mp3player}})''
<pre>
+
$EDITOR /etc/fstab
+
</pre>
+
  
* Now add this line to the bottom of your /etc/fstab
+
* And now edit the last line in {{filename|/etc/fstab}} from someting like:
<pre>
+
  /dev/sdd: LABEL="Ipod" UUID="E8F1-5438" TYPE="vfat"
  /dev/disk/by-uuid/6411-EF7E /media/ipod vfat users,exec,noauto 0 0
+
to
</pre>
+
UUID=E8F1-5438  /media/ipod vfat   user,noauto,noexec  0 0
'''Remember the UUID in the above example will be different, so remember to change it. Also remember to change your directory.'''
+
''Further questions can be answered with the man page for fstab''
+
  
* Remove your device from the usb port . . . wait a second . . .
+
''Further questions can be answered with the man page for fstab.''
 +
''The autor does not own any Idevices, so the Label could be wrong.''
  
 +
* Remove your device from the usb port . . . wait a second . . .
 
* Reinsert your device
 
* Reinsert your device
 
 
* Mount with the following command
 
* Mount with the following command
<pre>
+
  # mount /media/ipod
  mount /media/ipod
+
 
</pre>
+
 
'''Now no matter what, your device will always mount under the same directory!'''
 
'''Now no matter what, your device will always mount under the same directory!'''
''Much (if not all) of this came from [http://www.linuxquestions.org/linux/answers/Hardware/Linux_and_Apple_iPod LinuxQuestions.org]''
+
 
 +
===Alternative way===
 +
If 'blkid' doesn't work as aspected, You can look for the UUIDs in {{filename|/dev/disk/by-uuid/}}.
 +
# ls -lF /dev/disk/by-uuid/
  
 
==udev Player Mounting==
 
==udev Player Mounting==
 
''Alternatively you can use udev to do the same thing. I have not tried this yet (the above works fine for me), but here's the basics:
 
''Alternatively you can use udev to do the same thing. I have not tried this yet (the above works fine for me), but here's the basics:
  
* Edit your /etc/udev/rules.d/00.rules
+
* Edit your {{filename|/etc/udev/rules.d/00.rules}}
<pre>
+
 
  ## iPod
 
  ## iPod
 
  BUS="scsi", SYSFS{model}="iPod*", NAME="ipod"
 
  BUS="scsi", SYSFS{model}="iPod*", NAME="ipod"
</pre>
 

Revision as of 03:30, 1 February 2011


There are different kinds of MP3-Players around.

Players Accessible as usb-storage

  • creative
    • Creative MuVo
      • Note that with some (older) models of MuVo deleting settings.dat from the stick renders it useless, newer models don't have the file.
  • iriver
    • All iriver players with "UMS Mode" firmware are recognized as usb-storage
  • Cowon
    • iAudio U2 MP3 Player
  • NextCom
    • flash drive + mp3-player
  • MPIO
    • MPIO HD300

Players Accessible With Native Protocols

  • creative
    • creative players, probably all that don't support usb-storage, should be supported by gnomad2

UUID Player Mounting

Mounting your mp3 player(in this example an ipod) is very easy. But without the "proper" set up, it can be problematic. The following steps can be used for any mp3 player or usb mass storage device.

  • Every drive creates a UUID (Universally Unique Identifier), these identifiers can be used to track individual drive no matter their device node (ie Template:Filename).

To find the current UUIDs execute:

# blkid

At this point you should see a list of your system drives and a long strings of characters. These long strings are the uuids.

  • Now plug in your mp3 player to a usb port . . . wait for a few seconds . . .
  • Reexecute blkid

Notice a new device and UUID? That's your mp3 player!

  • The player likely has a label. If not use the device node path. Execute as superuser:
# blkid | grep YOURLABEL >> /etc/fstab
  • Now create an easy to remember directory listing for the device:
# mkdir /media/ipod

If you don't have an ipod or have Your drives somewhere else, just rename the directory to something that you like. (Template:Filename)

/dev/sdd: LABEL="Ipod" UUID="E8F1-5438" TYPE="vfat"

to

UUID=E8F1-5438  /media/ipod  vfat   user,noauto,noexec  0 0

Further questions can be answered with the man page for fstab. The autor does not own any Idevices, so the Label could be wrong.

  • Remove your device from the usb port . . . wait a second . . .
  • Reinsert your device
  • Mount with the following command
# mount /media/ipod

Now no matter what, your device will always mount under the same directory!

Alternative way

If 'blkid' doesn't work as aspected, You can look for the UUIDs in Template:Filename.

# ls -lF /dev/disk/by-uuid/

udev Player Mounting

Alternatively you can use udev to do the same thing. I have not tried this yet (the above works fine for me), but here's the basics:

## iPod
BUS="scsi", SYSFS{model}="iPod*", NAME="ipod"