Sunday, October 16, 2011


Where are my iTunes files located?


Recently I came across a problem when updating my parents’ iOS device to iOS5. They ran out of space on C Drive and were not able to backup their device before the update. SO I started doing some cleanup and wanted to find out where iTunes stores its files. I can’t change this location, but I managed to create a symbolic link from this location to another drive that had space. So all the apps and backups now sits under the new drive, while to iTunes it looks like it’s under the location it’s supposed to go to. Continue reading the article to find the location. You can get more information on iTunes backup and Junction Tool in my other posts.


Summary
This article explains where your iTunes files are located and how they are organized.
Products Affected
iTunes Store, iTunes
Note: If you think you've lost some or all of your iTunes music or other media, see iTunes: Finding lost media and downloads.
General Information
Your iTunes library is what you see in iTunes; it's made up of all the music and other media you've added to it. iTunes uses two "iTunes Library" files and your "iTunes Media" folder keep track of and store your music and other media.
About the iTunes Library files
Your two iTunes Library files keep track of what media you've added to iTunes, how you've organized it, and other information such as playlists. These two files are in your iTunes folder by default:
   Mac OS X:  /Users/username/Music/iTunes/
   Windows XP:  C:\Documents and Settings\username\My Documents\My Music\iTunes\
   Windows Vista:  C:\Users\username\Music\iTunes\
   Windows 7:  C:\Users\username\My Music\iTunes\
See What are the iTunes Library files? for more information.
About the iTunes Media folder
Note: You may have an "iTunes Music" folder instead of an iTunes Media folder.
By default, your iTunes Media folder is located within your iTunes folder and it contains all your media files including:
   Items you imported from CDs.
   Items you purchased from the iTunes Store.
   Any other items you brought into iTunes (if you enabled the option to "Copy files to iTunes Media folder when adding to library" in iTunes Preferences). 
See Understanding iTunes Media Organization for more information.

Options and Preferences
There are several options and preferences related to where you store your iTunes media. Different settings will affect your iTunes organization.
Discovering and changing the iTunes Media folder location
Note: You would usually only change the iTunes Media folder location to share music between accounts on the same computer. See this article for specific steps on how to accomplish this. Also, see this article if you want to know how to move your music to a new computer.
1.            Mac OS X: Click the iTunes menu and choose Preferences. 
Windows: Click the Edit menu and choose Preferences.
2.            Click the Advanced pane. iTunes displays the location of your iTunes Media folder.
            
3.            You can then:
                     Note where your media folder is, such as for backing up your media.
                     Use the Reset button to reset it's location to the default (which is the iTunes folder).
                     Click the Change button to select a folder for a new location. Once you change this location:
                                       If you make a new or alternate iTunes library, the new location will be used by that library.
                                       Existing files will not be moved unless you choose FileLibrary > Organize library and choose the option to "Consolidate files."
Copying music to and keeping the iTunes Media folder organized.
There are two additional selections within the Advanced pane of iTunes preferences that affect your iTunes Media folder:

   The option to "Keep iTunes Media folder organized."
                     Review iTunes 9: Understanding iTunes Media Organization to better understand the way iTunes 9 and later organizes your media.
   The option to "Copy files to iTunes Media folder when adding to library."
                     When you purchase or import media into iTunes from a CD, it is automatically added to your iTunes Media folder. However, if you add media to iTunes another way, such as by choosing "Add to library" from the File menu, or by dragging a MP3 file into iTunes, it may or may not be added to your iTunes Media folder. This is determined by the preference to "Copy files to iTunes Media folder when adding to library." Enable this option to be sure all your media files are stored in the iTunes Media folder; this makes transferring or backing up your media much easier since it is all in one location.
Locating the file for an item you see in iTunes
If you're not sure where some of the content you see in iTunes is stored, iTunes will also show you what it knows about your media in the Get Info window.
   Select an item in iTunes and choose File > Get Info.
    
   You can right-click on the 'Where' to get the option to Show in Finder (Mac OS X) or Show in Windows Explorer (Windows).

   A remote file, such as one from Home Sharing, will not show a path, but will show information such as the name of the remote iTunes Library:

   Notes:
                     It is important to back up your media, either to an external hard drive or to CDs/DVDs.
                     If you are unable to find content you have downloaded or imported into iTunes, see iTunes: Finding lost media and downloads.
Additional Information
A Note about Copyright

iTunes software may be used to reproduce materials. It is licensed to you only for reproduction of non-copyrighted materials, materials in which you own the copyright, or materials you are authorized or legally permitted to reproduce. If you are uncertain about your right to copy any material, you should contact your legal advisor. See the iTunes Store Terms of Service for additional information.

Create a symbolic link in Windows Visa/7 using the tool Junction


Source: http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx
Junction v1.06
By Mark Russinovich
Published: September 8, 2010
 Download Junction(77.7 KB)

Introduction
Windows 2000 and higher supports directory symbolic links, where a directory serves as a symbolic link to another directory on the computer. For example, if the directory D:\SYMLINK specified C:\WINNT\SYSTEM32 as its target, then an application accessing D:\SYMLINK\DRIVERS would in reality be accessing C:\WINNT\SYSTEM32\DRIVERS. Directory symbolic links are known as NTFS junctions in Windows. Unfortunately, Windows comes with no tools for creating junctions—you have to purchase the Win2K Resource Kit, which comes with the linkd program for creating junctions. I therefore decided to write my own junction-creating tool: Junction. Junction not only allows you to create NTFS junctions, it allows you to see if files or directories are actually reparse points. Reparse points are the mechanism on which NTFS junctions are based, and they are used by Windows' Remote Storage Service (RSS), as well as volume mount points.
Please read this Microsoft KB article for tips on using junctions.
Notethat Windows does not support junctions to directories on remote shares.
If you want to view reparse information, the usage for Junction is the following:

Using Junction
Use junction to list junctions:
Usage: [-s]
-s    Recurse subdirectories
Examples:
To determine if a file is a junction, specify the file name:
junction c:\test
To list junctions beneath a directory, include the –s switch:
junction -s c:\
To create a junction c:\Program-Files for "c:\Program Files":
C:\>md Program-Files
C:\>junction c:\Program-Files "c:\Program Files"
Note: I actually found that I need to reverse the arguments on Windows 7. Also make sure the source directory exists.
C:\>junction "c:\Program Files" c:\Program-Files
To delete a junction, use the –d switch:
junction -d c:\Program-Files


iMessage and FaceTime not working on iPad or iPhone



Problem:
After my uncle updated his iPad to iOS5, he was having trouble sending and receiving messages through iMessage and wasn’t able to faceTime as well.

Soltuion:
There was a solution I found on one the Apple support communities forum at

Basically you will need to change the DNS address to 8.8.8.8 by going to
Settings > General > Network > Wi-Fi > Click on the blue circle with the arrow

That’s it! Now you can enjoy all the great features of iMessages and FaceTime

iTunes: About iOS backups


Source: http://support.apple.com/kb/HT4946   

Summary
iTunes can back up your settings, SMS history, Camera Roll, documents, saved games, and other data. Backups do not contain content synced to the device, such as movies, music, podcasts, and apps.  

Products Affected
iPhone, iPad, iPod touch, iTunes, iTunes 10 for Windows, iTunes 10 for Mac

For information about how to create and restore from a backup, see iOS: How to back up.
iTunes and passcode-protected iOS devices
If an iOS device is protected with a passcode, iTunes prompts you to enter the passcode when you connect to your computer. Once you successfully enter the passcode, iTunes will recognize that device as authorized and you will not need your passcode to back up or sync. When restoring from an iOS 4 (or later) backup, if the device had a passcode set, iTunes will ask if you want to set a passcode (and remind you that you had protected your device with a passcode). iTunes will not ask you to set a passcode when restoring from iOS 3.x and prior backups.
In the iTunes Summary screen, select "Encrypt iPhone backup" if you want to encrypt the information stored on your computer when iTunes makes a backup. Encrypted backups are indicated by a padlock icon, and a password is required to restore the information to iPhone. You may want to write down the password for your backup and store it in a safe place. If you use a Mac, when you set a password you can select to store the password in the keychain. With iOS 4 and later, you can transfer the iOS keychain backup to a new device if you encrypt the backup.
Warning: If you encrypt an iPhone backup in iTunes and then forget your password, you will not be able to restore from backup and your data will be unrecoverable. If you forget the password, you can continue to back up and use the device, however you will not be able to restore the encrypted backup to any device without the password. You do not need to enter the password for your backup each time you back up or sync.
If you cannot remember the password and want to start again, you must perform a full software restore and when iTunes prompts you to select the backup from which to restore, choose set up as a new device.
The folder where your backup data are stored varies depending on the computer's operating system. Make sure the backup folder is included in your periodic data-backup routine.
iTunes places the backup files in the following places:
   Mac: ~/Library/Application Support/MobileSync/Backup/
   Windows XP: \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
   Windows Vista and Windows 7: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\
Note: If you do not see the AppData or Application Data folders, you may need to show hidden files (Windows XP, Windows Vista, Windows 7), or iTunes may not be installed in the default location. Show hidden files and then search the hard drive for the Backup directory.
If you want to delete a backup created by iTunes, follow these steps:
1.            Open iTunes Preferences:
                     Windows: Choose Edit > Preferences
                     Mac: Choose iTunes > Preferences
2.            Click Devices (the iOS device does not need to be connected).
3.                            iTunes will show the phone number, IMEI, and serial number of the backed up iPhone when you position your mouse pointer over a backup (iTunes shows only the serial number for iPad and iPod touch). Use this to locate the backup for the iOS device you want to delete. Select the backup you want to remove and click Delete Backup.


4.            Confirm you wish to remove the selected backup by clicking Delete Backup.
5.            Click OK to close the iTunes Preferences Window.
Note: Backups that are listed with a Date and Time stamp in the backup name were created by restoring the iOS device.
   Contacts* and Contact Favorites (regularly sync contacts to a computer or cloud service such as iCloud to back them up).
   App Store Application data inlcuding in-app purchases (except the Application itself, its tmp and Caches folder).
   Application settings, preferences, and data, including documents.
   Autofill for webpages.
   CalDAV and subscribed calendar accounts.
   Calendar accounts.
   Calendar events.
   Call history.
   Camera Roll (Photos, screenshots, images saved, and videos taken. Videos greater than 2 GB are backed up with iOS 4.0 and later.)
Note: For devices without a camera, Camera Roll is called Saved Photos.
   Game Center account.
   Home screen arrangement.
   In-app purchases.
   Keychain (this includes email account passwords, Wi-Fi passwords, and passwords you enter into websites and some other applications. If you encrypt the backup with iOS 4 and later, you can transfer the keychain information to the new device. With an unencrypted backup, you can restore the keychain only to the same iOS device. If you are restoring to a new device with an unencrypted backup, you will need to enter these passwords again.)
   List of External Sync Sources (Mobile Me, Exchange ActiveSync).
   Location service preferences for apps and websites you have allowed to use your location.
   Mail accounts (mail messages are not backed up).
   Managed Configurations/Profiles. When restoring a backup to a different device, all settings related to the configuration profiles will not be restored (accounts, restrictions, or anything else that can be specified through a configuration profile). Note that accounts and settings that are not associated with a configuration profile will still be restored.
   Map bookmarks, recent searches, and the current location displayed in Maps.
   Microsoft Exchange account configurations.
   Network settings (saved Wi-Fi hotspots, VPN settings, network preferences).
   Nike + iPod saved workouts and settings.
   Notes.
   Offline web application cache/database.
   Paired Bluetooth devices (which can only be used if restored to the same phone that did the backup).
   Safari bookmarks, cookies, history, offline data, and currently open pages.
   Saved suggestion corrections (these are saved automatically as you reject suggested corrections).
   SMS and MMS (pictures and video) messages.
   Trusted hosts that have certificates that cannot be verified.
   Voice memos.
   Voicemail token. (This is not the voicemail password, but is used for validation when connecting. This is only restored to a phone with the same phone number on the SIM card).
   Wallpapers.
   Web clips.
   YouTube bookmarks and history.
* Your contacts are part of the backup to preserve recent calls and favorites lists. Back up your contacts to a supported personal information manager (PIM), iCloud, or another cloud-based service to avoid any potential contact data loss.
Additional Information
For information about backups in iCloud, see iCloud: What is backed up with iCloud Backup?
   Safari bookmarks, cookies, history, and currently open pages
   Map bookmarks, recent searches, and the current location displayed in Maps
   Application settings, preferences, and data
   Address Book and Address Book favorites
   Calendar accounts
   Wallpapers
   Notes
   Call history
   Mail accounts
   YouTube bookmarks
   SMS messages
   Saved suggestion corrections (these are saved automatically as you reject suggested corrections)
   Camera Roll (photos and screenshots taken by the iPhone)
   Voicemail token (This is not the voicemail password, but is used for validation when connecting. This is only restored to a phone with the same phone number on the SIM card.)
   Web clips
   Network settings (saved Wi-Fi hotspots, VPN settings, network preferences)
   Paired Bluetooth devices (which can only be used if restored to the same phone that created the backup)
   Keychain (This includes email account passwords, Wi-Fi passwords, and passwords you enter into websites and some other applications. The keychain can only be restored from backup to the same iPhone or iPod touch. If you are restoring to a new device, you will need to fill in these passwords again.)
   Managed Configurations/Profiles
   List of External Sync Sources (Mobile Me, Exchange ActiveSync)
   Microsoft Exchange account configurations
   Nike + iPod saved workouts and settings
   App Store application data (except the application itself, its tmp and caches folder).
   Videos in Camera Roll
   Per-app preferences allowing use of Location Services
   Offline web application cache/database
   Voice Memos
   Autofill for webpages
   Trusted hosts having certificates that cannot be verified
   Websites approved to get the location of the device
   In-app purchases
New with iOS 3.1: Videos in the Camera Roll that are 2 GB or larger are not backed up (iOS 4 and later will back up videos 2 GB and larger)