... having had this fun when moving an instance of SQL Reporting Services (where I couldn't restore the master & msdb).
Check out:
http://support.microsoft.com/kb/240872 - for answer to this question
http://support.microsoft.com/kb/314546/ - for actual MS step-by-step workflow to move a database *and all other objects you might have a dependency on!*