Terminal Tips: How to Get Tunes Off of Your iPod
I mentioned this in the comments to a post yesterday and thought it warranted a post. If you want to get some
songs off of your iPod, iPod mini, or iPod shuffle, they are within easy reach. The files are rendered invisible
if you open up your iPod in the Finder; however, you can see all the invisible files rather easily by using the
Terminal (found in /Applications/Utilities/).
All of the music on your iPod / iPod mini / iPod shuffle can be found inside the Music folder which is located
inside the iPod_Control folder on your iPod. Both of these folders are invisible. At the Terminal, simply
type cd /Volumes/YOURIPODSNAME/iPod_Control/Music/ and then hit return. If your iPod has a space in
the name then you will need to type a \ before the space. For example, an iPod named iPod Joe
would need to be typed iPod\ Joe. Now type ls and then hit return. This will
list all the invisible folders inside your iPod’s Music folder. They will all be numbered F00,
F01, F02, etc. Now simply type open F00 to open the first folder.
This will open the F00 folder in a Finder Window. All of the files contained inside will be visible and you can
drag them wherever you like.
Now for every folder you want to open, simply type open and then the name of the folder. If you want to open all the
folders within your Music folder at once (be warned that this can take a while if you have a large collection on the
iPod), simply type open F** and hit return. Have fun!
Share
I mentioned this in the comments to a post yesterday and thought it warranted a post. If you want to get some songs off of your...
Add a Comment
Great tip. thx. but, when i do as described i do see all files but names read like: PABP.mp3, PTBZ.m4a, etc. i use itunes 4.9 and the latest iPod update on a iPod 3rd generation. any comments? anything i do wrong?
July 16 2005 at 7:41 PM Report abuse Permalink rate up rate down ReplyThank you for this tip. I got iPodRip to do the copy without thinking too much about it. Of course the data would be in the Volumes folder, duh. By the way, just to be complete (OS 9 and Windows users may like to know) you can open these invisible folders from the Finder by going to the "Go to Folder..." menu item under the Go menu, typing: /Volumes/YOURIPODSNAME/iPod_Control/Music/ and clicking on the "Go" button.
March 20 2005 at 11:49 PM Report abuse Permalink rate up rate down ReplySmall Paul said: "The following comman copies all files from your iPod's music folders to a folder called 'iPodMusicFiles' on your desktop. cp /Volumes/YOURIPODSNAME/iPod_Control/Music/F*/* ~/Desktop/iPodMusicFiles/" In a traditional UNIX system I'd agree, but this is Mac OS X (which IMHO is better). So I recommend using 'ditto -rsrcFork' instead of cp. It preserves resource and HFS meta-data. Use it just as you would the cp command. Check out the ditto man page for more info.
March 20 2005 at 11:32 PM Report abuse Permalink rate up rate down ReplyGraydon....internal index. However, you could simply redefine the "Home computer" each time you plug the shuffle in, since it asks "This iPod is associated with another computer. Would you like to associate it with this one instead? Doing so will erase all songs on the shuffle." or something very close to that...
March 20 2005 at 10:40 AM Report abuse Permalink rate up rate down ReplyOne of the things that bothers me about the Shuffle is that it can have only one "home" computer. Could you use the Terminal to manually move files onto the Shuffle from a different computer and then be able to play them? Or is there an internal index that needs to be updated as well? It would be nice to be able to populate the shuffle from work and home.
March 19 2005 at 8:55 PM Report abuse Permalink rate up rate down Reply-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Brian: It should be noted that if you add the -R (or -r) option, then the entire directory tree will be copied (you probably already know this, but just in case some people don't). Thus you will end up with the F00 etc folders still there. - -- Andy -----BEGIN PGP SIGNATURE----- Version: PGP 8.1 iQA/AwUBQjsnpyzm9970+YPOEQKDoQCgrU0joWDRhS6fl3WpwsdeDPsHndwAoMrg vqjhnu2ySn9YfIFWotj/IH+N =xt1l -----END PGP SIGNATURE-----
March 18 2005 at 2:10 PM Report abuse Permalink rate up rate down ReplyHere's an AppleScript that will "reveal" the files of selected iPod tracks: http://www.dougscripts.com/itunes/scripts/ss.php?sp=showipodsongfiles And another that will import the files of selected iPod tracks to your Music folder: http://www.dougscripts.com/itunes/scripts/ss.php?sp=importipodaudiofiles Both use "do shell script" UNIX commands.
March 18 2005 at 1:26 PM Report abuse Permalink rate up rate down Reply'cp' will copy them. 'mv' is 'move' and will delete the originals. But 'cp' copies them so the originals are unharmed. Easiest possible way: cd to the directory with all the numbered F folders. Then: cp -rv ./* ~/Desktop/temp/ The 'r' stands for 'recursive,' i.e. 'get all folders, subfolders, and contained files.' The 'v' means 'be verbose,' i.e. 'show me the names of all the files you're copying as you're copying them.' That way you get some feedback. UNIX's default quietness can be unsettling to new users. If you're copying a few gigs of music, these commands can take quite a while, and by default, cp will just sit there, silently doing its thing, and drop you back to a prompt when done, which could be quite a while. Seeing the names fly by lets you know something's actually happening and it won't slow the process down any. (OK, maybe 0.0001%, but not enough that you'd notice.)
March 18 2005 at 10:17 AM Report abuse Permalink rate up rate down ReplyHey Andy, Thanks for the added info. One question though: Does cp simply move the files or does it copy them and then erase the originals from the iPod? I ask this as I tried it a while back with some other copy commands and one of them had that unwanted result.
March 18 2005 at 9:41 AM Report abuse Permalink rate up rate down Reply-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Two quick things to note. Firstly, you also need to escape characters such as an apostrophe ('). The other thing to note is that you don't need to do $ open F** As the asterisk wildcards for any character repeated from zero to an infinite number of times. Thus, only $ open F* is necessary. Oh, and one other thing - if you want to copy them all into one big directory, try this: $ cp ./F*/*.mp3 ~/Desktop/temp To copy them to a directory called temp on your Desktop. You might have to be careful because if two files are named the same, then the second will overwrite the first. Thus, $ cp -i ./F*/*.mp3 ~/Desktop/temp might be more appropriate as it will prompt for overwriting. - -- Andy -----BEGIN PGP SIGNATURE----- Version: PGP 8.1 iQA/AwUBQjrkHizm9970+YPOEQLT8QCgvuSf70qPUfJHOcRNLJgh8UdPuEMAoKyL Mf0mywTId+WNrr+IP4/zPagp =oJgn -----END PGP SIGNATURE-----
March 18 2005 at 9:22 AM Report abuse Permalink rate up rate down ReplyHot Apps on TUAW
Deals of the Day
more deals- Altec Lansing Octiv Duo iDock for $48 + free shipping
- Used Apple iMac 17" Core Duo 1.83GHz for $430 + $28 s&h
- Lounge Deluxe Stand for iPhone / iPod touch for $28 + $8 s&h
- Brookstone Surround-Sound Earbuds for $14 + $7 s&h
- Refurbished Skullcandy Tokidoki Smokin' Buds Mic'd Headset for $5 + $2 s&h
- Stitchway Backup Battery for iPod / iPhone for $5 + free shipping
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



11 Comments