LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ipod shuffle, again. (https://www.linuxquestions.org/questions/linux-newbie-8/ipod-shuffle-again-323753/)

JoeUser11 05-15-2005 01:05 PM

ipod shuffle, again.
 
I've used this site's help to get this far, but now I'm stuck. I've added such a line to /etc/fstab
Code:

/dev/sda2        /mnt/ipod    vfat        noauto,owner        0  0
created a directory /mnt/ipod.
Now when I try to mount, I get
Code:

linux:/home/jordan # mount /mnt/ipod
mount: wrong fs type, bad option, bad superblock on /dev/sda,
      or too many mounted file systems

wha...? I tried unmounting some things and seeing if that did anything, but it still didn't work.

johnson_steve 05-15-2005 01:12 PM

are you suer that you ipod is fat32? all ipods come from apple formated with hfsplus unless you used this ipod with windows it wont work with fat32

JoeUser11 05-15-2005 07:17 PM

I have only used that ipod with windows, it has never touched a mac.

JoeUser11 05-16-2005 09:58 PM

Perhaps I need a better fstab line? That one I got from some one who had not used a shuffle on linux just from the top of his head.

johnson_steve 05-17-2005 12:15 PM

I don't have a shuffle but my ipod (20G) is /dev/sda3

this is my fstab line (my ipod is mac formated)
#iPod
/dev/sda3 /mnt/iPod hfsplus users,rw,noauto 0 0

you should do a:
fdisk -l /dev/sda
it will print up the partition table for your ipod the largest partition should be your music. If it is /dev/sda2 and it still doesn't work check your dmesg and see if you get lots of input output errors. I don't know about the shuffle but the large ipods won't work if your kernel supports efi partitions. You may have to recompile your kernel.

JoeUser11 05-17-2005 01:27 PM

That's another thing, I've done dmesg , but right now I just get dozens of pages of techno-babble. I really don't feel like picking through thousands of lines not even knowing exactly what I'm looking for? On a side note, what is dmesg, how do you use it, and how can you make it give you the information you need?

johnson_steve 05-17-2005 02:15 PM

dmesg is a log it restarts when you reboot the computer you can view it page by page like:

dmesg | less

or you can search for info like:

dmesg | grep cpu

but for the ipod I would boot up your computer wait then plug in the ipod and:

dmesg

the part about the ipod gets added when you plug it in so it should be at the very end

oh and | is shift+\ on most keyboards it's used to combine commands like dmesg and grep

JoeUser11 05-17-2005 06:53 PM

Whoa! Blowing my mind man!
Alright, today I plugged in my ipod and BAM, a screen comes up saying would I like to open the USB mass storage device. So I click 'yes' and I can see everything that's on the ipod.
Here's the working dmesg:
Code:

usb 4-6: new high speed USB device using address 3
usb 4-6: Product: iPod
usb 4-6: Manufacturer: Apple
usb 4-6: SerialNumber: 000A2700101FD755
usb 4-6: configuration #1 chosen from 2 choices
scsi2 : SCSI emulation for USB Mass Storage devices
  Vendor: Apple    Model: iPod              Rev: 2.70
  Type:  Direct-Access                      ANSI SCSI revision: 02
SCSI device sda: 999936 512-byte hdwr sectors (512 MB)
sda: assuming Write Enabled
sda: assuming drive cache: write through
 sda: sda1
Attached scsi removable disk sda at scsi2, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi2, channel 0, id 0, lun 0,  type 0
USB Mass Storage device found at 3
usb 4-6: USB disconnect, address 3
usb 4-6: new high speed USB device using address 4
usb 4-6: Product: iPod
usb 4-6: Manufacturer: Apple
usb 4-6: SerialNumber: 000A2700101FD755
usb 4-6: configuration #1 chosen from 2 choices
scsi3 : SCSI emulation for USB Mass Storage devices
  Vendor: Apple    Model: iPod              Rev: 2.70
  Type:  Direct-Access                      ANSI SCSI revision: 02
SCSI device sda: 999936 512-byte hdwr sectors (512 MB)
sda: assuming Write Enabled
sda: assuming drive cache: write through
 sda: sda1
Attached scsi removable disk sda at scsi3, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi3, channel 0, id 0, lun 0,  type 0
USB Mass Storage device found at 4

Then me being the idiot I am, I pull it out real quick to see if maybe I had left it on or something diffrent. It closes. Then I plug it back in and nothing happens. I try to plug it in several times on several diffrent ports, but nothing like that even happens again. "Damn it!" I think to myself. After trying several more times to mount the ipod or get anything to happen, I look again at the disk partitioner, check it:
http://img.photobucket.com/albums/v2...r11/sspart.png
Now I have two registered ipod's under my partition table, but only 1 plugged into the computer. And it's not under /dev/sda anymore, like it was, the new one is under /dev/sda1 . So I change the /etc/fstab line from /dev/sda to /dev/sda1 and there ya go! Now it mounts! I have no clue what went on, but it's all good.

I think I understand why it wasn't working, the front USB port I was using might have been buggy. Now I'm using the back ports. I can't believe that I was so stupid as to not try other USB ports, but the fact that that it worked momentarily on the front port today confuses me. Also the fact that when I plug in the ipod on the back with the working USB ports, nothing pops up telling me it has been plugged in. I'm dazed but pleased it is now working

Now on a similar note, how nessesary is gtkpod?
Take for example this view of my ipod:
Code:

jordan@linux:/mnt> ls -R ipod
ipod:
image.gz      Makefile    syslinux.exe  vmlinuz
iPod_Control  syslinux.c  usr_cram.fs
 
ipod/iPod_Control:
iTunes  Music
 
ipod/iPod_Control/iTunes:
DeviceInfo    iTunesDB        iTunesPrefs  iTunesSD      iTunesStats
iTunesControl  iTunesEQPresets  iTunesPState  iTunesShuffle  winPrefs
 
ipod/iPod_Control/Music:
f00  f01  f02
 
ipod/iPod_Control/Music/f00:
01 Track 01 12.m4a      14 Track 14 42.m4a
01 Track 01.m4a        14 Track 14 43.m4a
02 Track 02.m4a        16 One Of A Kind 1.mp3
04 Track 04 42.m4a      80_s Rock - Dead or Alive-.mp3
04 Track 04.m4a        ACDC - Hells Bells.mp3
05 Track 05 51.m4a      Eye of the Tiger 1.mp3
1-05 What You Got_.m4a  Pink Floyd - Another Brick.mp3
10 Track 10 2.m4a      Rolling Stones - Paint It B.mp3
11 Track 11 12.m4a      Scorpions - Rock You Like a.mp3
12 Track 12 22.m4a      Take On Me 1.mp3
12 Track 12.m4a        Wanna Be A Balla 1.mp3
 
ipod/iPod_Control/Music/f01:
01 Party All The Time 1.mp3  11 Track 11.m4a
01 Track 01 11.m4a          18 Track 18.m4a
02 Track 02 21.m4a          80_s - Michael Jackson - Do.mp3
02 Track 02 22.m4a          ACDC - TNT.mp3
03 Sky Is Falling 1.mp3      Aqua - Cartoon Heros.mp3
03 Track 03 31.m4a          CHICAS DE HOY.mp3
04 Track 04 41.m4a          Coolio - Gangsters Paradise.mp3
06 Ghostwriter 1.mp3        DDR - Smile DK - Kissy Kiss.mp3
06 Track 06 61.m4a          Quiet Riot - Cum On Feel Th.mp3
09 Track 09 91.m4a          The Rolling Stones - Satisf.mp3
09 Track 09 92.m4a          Welcome To Atlanta 1.mp3
 
ipod/iPod_Control/Music/f02:
01 Der Kommissar 1.mp3  1-02 Lapdance.m4a  80_s Rock - Def Leopard -.mp3
01 The Promise.mp3      1-04 Fuck That.m4a  80_s - The Pretenders - I W.mp3
02 Full Clip 1.mp3      12 Track 12 23.m4a  Black Sabbath - Iron Man.mp3
03 Track 03 32.m4a      15 Track 15 52.m4a  Dick Dale - Misirlou _Pulp.mp3
07 Track 07 71.m4a      15 Track 15 53.m4a  MC Hammer - Can_t Touch Thi.mp3
07 Track 07 72.m4a      15 Track 15.m4a    Mexican Rap.mp3
08 Track 08 81.m4a      16 Track 16 62.m4a  Not So Blue 1.mp3
08 Track 08 82.m4a      17 Track 17 72.m4a  The Knack - My Sherona 80s.mp3


Notice that all of my music is stored in f00, f01, or f02. Could I not just simply copy music into these files? Wouldn't that work?

P.S. If you're wondering what all those boot files are in my ipod, yea, I use my ipod-shuffle as a linux boot drive. Yea baby!

johnson_steve 05-17-2005 07:58 PM

you cant just unplug your ipod thats why it gave you trouble you must first eject it:

eject /dev/sda1

you could copy files to the music directories but your ipod won't play them because they aren't in your ITunesDB you need either gtkpod (nice gui) or gnupod (command line) to add music so that you can play it on your ipod.


All times are GMT -5. The time now is 05:00 AM.