Zeuser
09-15-2006, 03:47 PM
In this thread I will detail how I got iTunes to work on my 120GB USB drive.
Purpose
I'm sick and tired of iTunes with its library being unique to one computer. I wanted a way to carry iTunes and its library from one PC to another.
The only thing I wanted was a USB drive, iPod USB sync cable and the iPod itself.
The USB drive
The drive is a 120GB Samsung Laptop drive. Usually used as a replacement for the internal HDD on various laptops.
I then purchased a USB enclosure for 3.5" drives. It's a simple procedure. Plug the included USB adapter into the drive's connector, slip the whole assembly into the aluminium case and screw the two small screws to hold it all together.
The drive enclosure comes with a USB cable that has one mini device connector on one end and two standard USB connectors on the other. I think it needs the 2 connectors because it draws more amps than one port can give.
Anyway, you need to use up 2 USB ports on the computer. To avoid failures I usually plug in the computer side first (both connectors) and then plug in the device end into the drive enclosure.
Next is the obvious Windows stuff. You partition the drive, format etc.
Prepping for iTunes
I created an Autorun.inf file in the root folder with the following:
[autorun]
icon=\mobile.ico
label=120GB iTunes drive
open=iTunes_mobile.bat
As you've probably noticed, I use a custom icon so its easy to spot in Windows explorer. I also named the drive (label) so I can easily spot it. The open command is a batch file that will allow iTunes to run automatically on Windows XP SP2. Note: Only service pack 2 has the auto-run from USB feature.
Here goes with the iTunes_Mobile.bat file:
set APPDATA=%~dp0Application Data
if not exist "%~dp0Application Data" mkdir "%~dp0Application Data
set HOMEPATH=%~dp0Documents and Settings
if not exist "%~dp0Documents and Settings" mkdir "%~dp0Documents and Settings
set USERPROFILE=%~dp0
set ALLUSERSPROFILE=%~dp0
echo starting iTunes
start \iTunes_programs\iTunes.exe
This will create the application data and document and settings folders locally on the USB drive and then starts iTunes. This is what allows iTunes to be "mobile".
Installing iTunes
Just install iTunes 7 like you normally would on the computer. Then create a "iTunes_Programs" folder on the USB drive and drag-drop everything from "c:/Program files/iTunes" into the new folder.
I also added an "iTunes_Installer" folder where I keep a copy of the iTunes setup program. This is needed as a first step when you move from one PC to another.
Once iTunes is installed on your USB drive. Run it via the iTunes_mobile.bat batch file. It'll come up with a blank library. don't worry, this is normal! Then shut it down. iTunes has now created the necessary folders on the USB drive.
Now you just need to drag and drop the stuff from /My Documents/My Music/iTunes music on your computer's hard drive into the appropriate folder on the USB drive. This may take a long time if you've got a big library like I do.
Once finished, run iTunes_Mobile.bat again and you'll notice that everything is in it's place. If not, you made a mistake. Figure it out.
Using the USB drive on a new computer
The very first thing you need to do is install iTunes on the new machine. So plug in the USB drive but don't auto-run. Browse the USB drive to the iTunes_Installer folder and run the iTunesSteup.exe program. This will install iTunes with a blank library on the new computer.
Then run iTunes and shut it down. Now you're ready to run your mobile library. Just run the iTunes_mobile.bat file from the root of your USB drive and voila, you're up and running.
You can even plug in your iPod USB sync cable and dock your iPod to sync files with the USB drive on the new machine. I do that all the time since I sync hourly podcasts.
120GB drive with 60GB iPod?
Yes, my iTunes library currently has 106GB worth of stuff (music and videos). I simply uncheck the stuff I don't need until I hit the 55GB mark and then I can sync the iPod. You need to turn on the "only sync checked items" in the devices/summary window of iTunes 7.
No guarantee but it does work
I can't gurantee it works as well for you as it does for me. But its been working for me since last December when I was running iTunes 6 and only had an 80GB drive. I recently migrated to a 120GB drive and iTunes 7 and it still works like a charm.
I have only one library for iTunes, and its on my mobile drive. I use it on 3 seperate computers:
1 - My media PC at home
2 - My laptop
3 - My office PC during the day
I love this thing! iTunes should've been designed like this to start with! Incidently, I'm a fan of thumbdrive apps. I use a 2GB thumbdrive with portable firefox, ble thunderbird, portable sunbird, portable openoffice etc. See http://www.portableapps.com for more.
PS: I assume no responsability if you mess up. It's not a simple setup but any well versed XP power user whouldn't have any trouble with this.
Purpose
I'm sick and tired of iTunes with its library being unique to one computer. I wanted a way to carry iTunes and its library from one PC to another.
The only thing I wanted was a USB drive, iPod USB sync cable and the iPod itself.
The USB drive
The drive is a 120GB Samsung Laptop drive. Usually used as a replacement for the internal HDD on various laptops.
I then purchased a USB enclosure for 3.5" drives. It's a simple procedure. Plug the included USB adapter into the drive's connector, slip the whole assembly into the aluminium case and screw the two small screws to hold it all together.
The drive enclosure comes with a USB cable that has one mini device connector on one end and two standard USB connectors on the other. I think it needs the 2 connectors because it draws more amps than one port can give.
Anyway, you need to use up 2 USB ports on the computer. To avoid failures I usually plug in the computer side first (both connectors) and then plug in the device end into the drive enclosure.
Next is the obvious Windows stuff. You partition the drive, format etc.
Prepping for iTunes
I created an Autorun.inf file in the root folder with the following:
[autorun]
icon=\mobile.ico
label=120GB iTunes drive
open=iTunes_mobile.bat
As you've probably noticed, I use a custom icon so its easy to spot in Windows explorer. I also named the drive (label) so I can easily spot it. The open command is a batch file that will allow iTunes to run automatically on Windows XP SP2. Note: Only service pack 2 has the auto-run from USB feature.
Here goes with the iTunes_Mobile.bat file:
set APPDATA=%~dp0Application Data
if not exist "%~dp0Application Data" mkdir "%~dp0Application Data
set HOMEPATH=%~dp0Documents and Settings
if not exist "%~dp0Documents and Settings" mkdir "%~dp0Documents and Settings
set USERPROFILE=%~dp0
set ALLUSERSPROFILE=%~dp0
echo starting iTunes
start \iTunes_programs\iTunes.exe
This will create the application data and document and settings folders locally on the USB drive and then starts iTunes. This is what allows iTunes to be "mobile".
Installing iTunes
Just install iTunes 7 like you normally would on the computer. Then create a "iTunes_Programs" folder on the USB drive and drag-drop everything from "c:/Program files/iTunes" into the new folder.
I also added an "iTunes_Installer" folder where I keep a copy of the iTunes setup program. This is needed as a first step when you move from one PC to another.
Once iTunes is installed on your USB drive. Run it via the iTunes_mobile.bat batch file. It'll come up with a blank library. don't worry, this is normal! Then shut it down. iTunes has now created the necessary folders on the USB drive.
Now you just need to drag and drop the stuff from /My Documents/My Music/iTunes music on your computer's hard drive into the appropriate folder on the USB drive. This may take a long time if you've got a big library like I do.
Once finished, run iTunes_Mobile.bat again and you'll notice that everything is in it's place. If not, you made a mistake. Figure it out.
Using the USB drive on a new computer
The very first thing you need to do is install iTunes on the new machine. So plug in the USB drive but don't auto-run. Browse the USB drive to the iTunes_Installer folder and run the iTunesSteup.exe program. This will install iTunes with a blank library on the new computer.
Then run iTunes and shut it down. Now you're ready to run your mobile library. Just run the iTunes_mobile.bat file from the root of your USB drive and voila, you're up and running.
You can even plug in your iPod USB sync cable and dock your iPod to sync files with the USB drive on the new machine. I do that all the time since I sync hourly podcasts.
120GB drive with 60GB iPod?
Yes, my iTunes library currently has 106GB worth of stuff (music and videos). I simply uncheck the stuff I don't need until I hit the 55GB mark and then I can sync the iPod. You need to turn on the "only sync checked items" in the devices/summary window of iTunes 7.
No guarantee but it does work
I can't gurantee it works as well for you as it does for me. But its been working for me since last December when I was running iTunes 6 and only had an 80GB drive. I recently migrated to a 120GB drive and iTunes 7 and it still works like a charm.
I have only one library for iTunes, and its on my mobile drive. I use it on 3 seperate computers:
1 - My media PC at home
2 - My laptop
3 - My office PC during the day
I love this thing! iTunes should've been designed like this to start with! Incidently, I'm a fan of thumbdrive apps. I use a 2GB thumbdrive with portable firefox, ble thunderbird, portable sunbird, portable openoffice etc. See http://www.portableapps.com for more.
PS: I assume no responsability if you mess up. It's not a simple setup but any well versed XP power user whouldn't have any trouble with this.