How to Sync an iPhone to a New Computer without Losing Music
- 1). Download and install the latest version of iTunes (see "Resources"). It is important that you install the most recent version because not all of the versions have the same options.
- 2). Plug your iPhone into your computer with the supplied USB cable and wait as the drivers are downloaded and installed. The drivers will allow your computer to read the iPhone file system.
- 3). Open iTunes after your computer recognizes your iPhone. iTunes may or may not open automatically when you plug in your iPhone; if it does, do not try to open it again. When the home menu appears for iTunes, click onto your iPhone icon on the left side of iTunes. This will bring up your iPhone's summary page.
- 4). Click "Manually Manage Music and Videos" then click "Apply." This will prevent you from losing your data when going into iTunes. When you have populated your iTunes with your music again, uncheck the "Manually Manage Music and Videos" box.
Source...