From the \Mssql7\Binn folder. Run Rebuildm.exe pointing to the instal disks master.mdf file.
When rebuilt work out where SQL Server runs from look for the file sqlservr.exe. don't run it from here run from a command line adding the flags -c-m ie:
D:\Program Files\SQl Server\MSSQL\Binn\sqlservr.exe -c -m
You have now started SQL Server in single user mode, from Query Analyser connect to the server and use the following command to restore....
RESTORE DATABASE master FROM DISK = 'D:\Program Files\SQl Server\MSSQL\Backups\master\master.bak';
Alter names folders as necessary.
Restart SQL Server from the services menu, take out any flags. You'll need to start SQLServerAgent as well. From this point you can restore any other databases as needed