LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 05-11-2007, 12:05 PM   #1
the1sephiroth
Member
 
Registered: Oct 2005
Location: east coast
Distribution: Ubuntu
Posts: 131

Rep: Reputation: 15
Mounting iPod


i plugged my ipod in, after doing so many times on other machines i naturally type
Code:
mount /dev/sda2 /media/ipod
but this time,

Code:
tjones:~ # mount /dev/sda2 /media/ipod
mount: special device /dev/sda2 does not exist
so i did the following to clearly see that it recognizes that it is plugged in:

Code:
tjones:~ # lsusb
Bus 002 Device 002: ID 046d:c03e Logitech, Inc. Premium Optical Wheel Mouse
Bus 002 Device 001: ID 0000:0000  
Bus 003 Device 001: ID 0000:0000  
Bus 001 Device 005: ID 05ac:1209 Apple Computer, Inc. 
Bus 001 Device 001: ID 0000:0000
Then i found this, but i could not mount the device:
Code:
tjones:~ # cd /dev/bus/usb/001/; ls -l
total 0
crw-r--r-- 1 root root 189, 0 2007-04-20 10:43 001
crw-r--r-- 1 root root 189, 4 2007-05-11 12:26 005
tjones:/dev/bus/usb/001 # mount 005 /media/ipod
mount: 005 is not a block device
it's a 5th gen ipod and i'm running on kernel 2.6.18.2-34-default on opensuse 10.2
 
Old 05-11-2007, 12:36 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
The output of dmesg or udevmonitor should tell you what /dev device entry gets created when you plug it in. 'cat /proc/partitions' will list all the block devices available on your system.
 
Old 05-11-2007, 12:39 PM   #3
the1sephiroth
Member
 
Registered: Oct 2005
Location: east coast
Distribution: Ubuntu
Posts: 131

Original Poster
Rep: Reputation: 15
Code:
tjones:~ # cat /proc/partitions
major minor  #blocks  name

   3     0   58615704 hda
   3     1   58605088 hda1
   3    64   78150744 hdb
   3    65    2104483 hdb1
   3    66   20972857 hdb2
   3    67   55070820 hdb3
i read dmesg upon plugging ipod in, it shows it, but does not tell any entry being created in /dev that i could find.
 
Old 05-12-2007, 03:05 PM   #4
vlad1977
LQ Newbie
 
Registered: May 2007
Posts: 9

Rep: Reputation: 0
Lightbulb

Do I understand correctly that you have a problem viewing the content of your iPod in amarok?
What do you have in /media/ipod/iPod_Control/iTunes ?
Do this:
Code:
ls -l /media/ipod/iPod_Control/iTunes | grep ock
If it shoes an iTunesLock file like this:
Code:
vlad@linux-rulez1:/media/ipod/iPod_Control/iTunes> ls -l | grep ock
-rwxr-xr-x 1 vlad root        0 2007-05-12 15:49 iTunesLock
then move this file somewhere and try to see content of your ipod again with amarok or banshee or whatever media player you are using. This should enable your ipod for viewing in amarok (at least worked for me). After this another iTunesLock file is created automatically by media player so check for it and if it's been created and ipod is working fine - then go to where you moved your old iTunesLock file and delete it permanently. I believe this zero-byte file is created by every program using the ipod to disable viewing or editing content by another media player.
Sorry if I misunderstood your question. Good luck.
Vlad
 
Old 05-12-2007, 03:56 PM   #5
the1sephiroth
Member
 
Registered: Oct 2005
Location: east coast
Distribution: Ubuntu
Posts: 131

Original Poster
Rep: Reputation: 15
No, no. not getting it to work in amarok, getting it to work period. For some reason it doesn't work like the other times it has worked as sda (scsi disk?) am i missing some drivers for it?
 
Old 05-13-2007, 02:59 AM   #6
unknownmosquito
Member
 
Registered: Dec 2005
Distribution: Fedora 8
Posts: 57

Rep: Reputation: 15
if you are running a relatively new kernel, try this:

navigate to /dev/disk/
type ls.
you will notice four folders,
by-id; by-label; by-path; by-uuid

These are devices plugged into your computer identified by more familiar means.
For instance, in iTunes in 'Doze I named my (now deceased, RIP) 4th gen iPod BEAN, and when I threw this:

Code:
/dev/disk/by-label/BEAN /mnt/ipod       auto    noauto,user,uid=1000                                   0 0
into my /etc/fstab, the iPod not only worked () great, but automounted as well.
Note you must have scsi support for this to work, and also check to make sure you have libipod.
 
Old 05-13-2007, 02:36 PM   #7
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Whoops! Sorry, I made a mistake. It's not dmesg that shows the device creation logging, it's /var/log/messages.

I personally prefer to use udevmonitor for this purpose anyway. Just run the program in a root terminal and it will show you what udev is doing in real-time. But both should show you if and what /dev entries are being created.

At first I would've suspected that you just had the wrong device, say sdb instead of sda. But if the messages output or /proc/partitions isn't showing anything, then there probably aren't any device entries being created at all, including the ones in /dev/disk that unknownmosquito suggested. Something seems to be keeping udev from doing it's job.

I think what we really need to know is more of the details behind the problem. What, if anything, did you change about your system before it stopped working? A distro upgrade, for example? Actually, it's not even clear from the previous posts whether this is a machine that used to work but stopped for some reason, or a completely new one.

Also try confirming that it's not a hardware problem. Just because the system can detect the device doesn't mean there aren't problems. Does the ipod mount on other systems? How about the cable? Try booting with a live distro and see if you can mount there.

Let's try narrowing it down a bit, in other words.
 
Old 05-14-2007, 11:18 AM   #8
the1sephiroth
Member
 
Registered: Oct 2005
Location: east coast
Distribution: Ubuntu
Posts: 131

Original Poster
Rep: Reputation: 15
Thanks for all of the posts.
It has worked on this machine before, and then i had to reinstall the OS and i did a "smart upgrade" on it to get the latest packages. I know the cable works and it can mount on other machines.

Unfortunately the machine is my work machine and i won't be back until Wednesday to do further tests.

The ipod worked on this machine before the reinstallation of opensuse, but not after.

I will try a live distro, any suggestions with which one? Knoppix perhaps?
 
Old 05-18-2007, 01:56 PM   #9
the1sephiroth
Member
 
Registered: Oct 2005
Location: east coast
Distribution: Ubuntu
Posts: 131

Original Poster
Rep: Reputation: 15
woohoo problem solved. Made sure i had all of the libraries and rebooted, now it autodetects/mounts Thanks for everyone's help
 
  


Reply

Tags
dev, disk, ipod, itunes, mnt, user



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
ipod mounting issue davimint Slackware 1 01-14-2007 09:16 PM
re:ipod usb mounting jswansster Linux - Hardware 10 05-23-2006 02:30 PM
mounting ipod shuffle D_O_Y_L_E Linux - Hardware 1 03-24-2006 02:08 AM
Mounting an ipod Zawi Linux - General 10 08-23-2005 09:05 PM
Need help mounting iPod in MDK. 10.0... Ausar Linux - Newbie 2 07-05-2004 02:15 AM

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

All times are GMT -5. The time now is 01:53 PM.

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