Moving MediaMonkey to a new computer/Change Drive

From MediaMonkey Wiki
Revision as of 16:39, 14 March 2024 by Lowlander (talk | contribs)
Jump to navigation Jump to search

Wiki Home > Moving MediaMonkey to a new computer/Change Drive



Introduction

If you want to move MediaMonkey to a new computer (or hard drive) but retain your database, follow these steps. If these steps are followed correctly, all information that is maintained by your database will be retained, including Play History, Play Counts, Dates Added, Playlists and all other fields within MediaMonkey. This guide applies to changing computers, changing hard drives within the same computer and reinstalling Windows. If you're just swapping drive or reinstalled Windows you can skip to Step 5.

The key part here is that MediaMonkey uses driveID to find your media files and not drive letter. This helps when using external drives which may have different drive letters when reconnecting. However when you swap drives or reinstall Windows your drive will have a different driveID requiring the updating of MediaMonkey to point to the new drive.

If you're moving/copying a MediaMonkey Library to a new PC follow steps 1-6. If you're replacing a drive you'll just need step 5. If you're reinstalling Windows you can start at step 3 (and depending on the situation may skip steps).

Alternative options

  1. To just move files, but not the MediaMonkey installation itself, to a different hard drive (internal or external) or a network location you can use MediaMonkey to move the files. In that case this guide doesn't apply.
  2. If instead you wish to move the files outside MediaMonkey, but not the MediaMonkey installation itself, you can use Folder Monitoring on both the old and new folder or skip ahead to the change driveID section.
  3. If you just want to move all your Playlists over you can use File > Export > Export All Playlists in MediaMonkey 5/2024 (or Tools > Scripts > Export All Playlists in MediaMonkey 4). Do make sure that the Path of your media files hasn't changed as Playlists contain this Path and a correct Path is required to be able to import Playlists. On the other installation of MediaMonkey you can run File > Add/Rescan Files and have it scan the location with the Playlists to import them.


Step 1: Preparation

Before performing the migration, it's suggested that you update the tags of your files on your old PC, so that they contain up-to-date metadata.

  1. Run MediaMonkey and select all the media files in your Library
  2. Click Tools > Edit Tags > Update Tags (Tools > Advanced Tag Management > Synchronize Tags in MediaMonkey 4).

You should also make sure that on the new PC that you don't have Folder Monitoring enabled nor that you scan for files before you finish Step 5 as otherwise you will have duplicates in your Library.


Step 2: Move your media files

Next you need to move (or copy) your media files to their new location. You can do this using File Explorer, any backup software to move the files through the network, or by using an external drive to move files between computers. The easiest transition is where you don't change the folder/filename structure of your files. They can be moved to a different hard drive letter as MediaMonkey uses driveID instead.

If your media files are on a network location and you only need to move MediaMonkey you don't need to move your media files and can skip this step.


Step 3: Starting the new MediaMonkey install

Install and run MediaMonkey on your new PC. When you start MediaMonkey on the new PC make sure you don't do any scanning of Media Files (you'll end up with duplicates) before updating the driveID in Step 5. You can now enter your License and change the settings to fit your needs. The first run of MediaMonkey will create the database file which you'll replace in step 4.


Step 4: Copying your database

The next step is to copy your original database to your new PC. The key component you'll need from your old install is the MediaMonkey database file. It contains metadata about your files including metadata not saved to the files and Play History, it also contains your Playlists, Podcast Subscriptions, Devices for Synchronization, DLNA setup as well as some other settings. Make sure you have a copy of the database file so you can go back to it if something doesn't go quite right in the next steps.

  1. Find your database in Windows Explorer. For its location see: mm5.db/mm.db location (Note that you will have to enable viewing of hidden Files and Folders in File Explorer to find the MediaMonkey database file).
    • Verify the Date modified and Size attributes of the database file to confirm you're copying the correct copy.
    • You can search in File Explorer for the database file name. Make sure you include hidden files in your search.
  2. Copy the database file and place it in the appropriate location on the new PC.

Alternative

  • Alternatively you can backup the database file on the old PC and restore the database file on the new PC with MediaMonkey 5/2024.
  • If you have a Portable Install you can move the whole portable installation folder to the new PC. This will also keep your settings and Addons intact on the new PC.

Optional items

Optional items to copy would be:

  • MediaMonkey.ini, which contains many MediaMonkey settings
  • Scripts folder, which contains most of the installed Addons
  • Registry info: @ HKey_Current_ User\Software\Mediamonkey

Verify Library

Optionally, you can verify if your MediaMonkey Library transferred correctly by running MediaMonkey (do not do any scanning) and browse your Library including Playlists. The media files will show greyed out (unless they were on a non-mapped network location), Step 5 will fix this.


Step 5: Updating the database to point to the correct drive (change driveID)

Next you'll have to modify the database to point to the new drive instead of the old one. This is not needed for files stored in a network location AND accessed via UNC Path in MediaMonkey (Mapped drives do need updating).

  1. On MediaMonkey 5/MediaMonkey 2024
    1. Use the build-in manually re-assign drive method if the file Paths (other than drive letter) are unchanged.
    2. Use Locate Moved/Missing Files instead if the Paths on the drive have changed.
  2. On MediaMonkey 4
    1. Use the third party Update Location of Files in Database addon. It can fix the changed drive ID as well as changed base folder for your files.
      1. Download and double-click the Addon to install it. Follow the instructions in the Forum on how to use it.
    2. If you have MediaMonkey Gold, you can also use the Locate Moved/Missing Files function:
      1. Select all the greyed out tracks (if the files are on a drive no longer accessible by this installation you won't find them under Dead Links).
      2. Click File > Locate moved/missing tracks
        This will attempt to find tracks on the new drive that match the file size AND timestamp, or track metadata in the database. Make sure you verify the matches it suggest as incorrect matches will result in the wrong metadata for your files.
  3. On MediaMonkey 3 and older install this script to your new PC:
    1. To install the script, first shut down MM. Next, copy the contents in the 'Code:' box at the link provided into notepad. Save the file as 'MM_HDDSerial.vbs' (without the quotes) in your C:\Program Files\MediaMonkey\Scripts folder. Next, within that same folder, find 'Scripts.ini'. Open this file with notepad and copy the following lines and paste them onto the end of the file, then save.
    2. Copy these lines into Scripts.ini:
      [HDDSerial]
      FileName=MM_HDDSerial.vbs
      ProcName=Change_HDD_Serial
      Order=99
      DisplayName=Move Device Content
      Description=Corrects broken links after exchanged hard drive
      Language=VBScript
      ScriptType=0
    3. Now you're ready to run the script. Open MM (if you are using Windows Vista or Windows 7, right click on the MM icon and choose "Run as administrator" even if your Windows user account has administrative rights) and run the script at Tools > Scripts > Move Device Content. If you receive any errors or the script doesn't appear under Tools > Scripts, check that you have installed the script correctly, and/or try restarting MM.
      Running the script will change the drive-ID within the MediaMonkey database to recognize your new drive, and all your database information will be retained. If you can play your music from MM, and tracks do not grey out, then you have successfully moved your MM installation to a new computer.

Alternatively, if only the drive changed for your media files you could change the DriveID in Windows from the new to the old DriveID. More Information on how to change Volume Serial number can be found Here (for advanced users).


Step 6: Test if it works

After one of the above approaches is taken, test out whether it worked by double-clicking a file in your library to see if it plays. If you see:

  • Duplicates in Library, this likely means that files were scanned before Step 5. Sorting on Added you should be able to remove the new duplicate copies or restart steps at Step 4.
  • Empty Library, this likely means that Step 4 wasn't completed correctly (restart steps at Step 4):
    • Step 4 was not done at all
    • The wrong database file was copied from the old install
    • The old database file was put in the wrong place
  • Playlists missing, this likely means that Step 4 wasn't completed correctly and files were scanned. Restart steps at Step 4.
  • Greyed out media files, this likely means that Step 5 wasn't completed correctly. Restart steps at Step 5.

If everything works you can now do your first scan for media files if you have new files to add to your MediaMonkey Library.


English


Additional Help: Knowledge Base | Forum | MediaMonkey Support | MediaMonkey for Android Help | MediaMonkey 5 Help | MediaMonkey 4 Help