First time caller, long time listener
Was following int0x80's segment on Debian PXE server and have successfully deployed one on an old HP Pavillion 503a (1.7GHz Celeron, 1Gb RAM, 160Gb HDD). It broke out of the VM
The one thing I wanted to do was use Spinrite 6 over PXE should the optical drive and hard drive pack it in (that has happened, amazingly ), but saw loads of tutorials using a modified version of Freedos and including Spinrite.
I did notice that Spinrite had its own config.sys file and its own way of doing things. For example, the splash screen is a .sys file.
When I did the Freedos option, it wasn't elegant - it asked for date and time, then had to type spinrite.exe at the prompt.
There had to be a better way. And by <deity>, there is.
Before we continue, I own my own copy of SR6 and if you don't, get yours here.
So, here is the easier method for SR6 via PXE:
1. Get Spinrite.exe onto a Windows desktop (or your windows-compliant system of choice) and launch it.
2. Once the application is open, click on "Create ISO or IMG File" button.
3. A different window will appear and then click "Save a Boot Image File". A dialog box will now appear.
4. Navigate to the location you wish to save the file but BEFORE clicking the Save button, use the dropdown menu to Save as type "IMG". So, your filename should be SpinRite.img. Now save.
5. Upload this img to your PXE server. I put it under /tftpboot/sr6. Make the dir to your liking but if its different, remember the dir name.
6. Use your editor of choice to make a menu file in that (sr6) folder.
7. This is your code for the Spinrite sub menu:
LABEL 21 MENU LABEL Spinrite 6 KERNEL memdisk APPEND initrd=/sr6/SpinRite.img TEXT HELP Boot the Spinrite 6 CD ENDTEXTSave as sr6.menu and close.
8. Use your editor of coice to edit the /tftpboot/pxelinux.cfg/default file. I duplicated the backtrack 5 settings and subbed in the Spinrite details. Be sure your MENU INCLUDE is sr6/sr6.menu.
9. Because syslinux is already installed, we need to copy memdisk to the tftpboot dir. So:
cp /usr/lib/syslinux/memdisk /tftpboot10. Restart the tftpd-hpa and nfs-kernel-server services to be on the safe side by using service:
service tftpd-hpa restart service nfs-kernel-server restart11. Boot your target system via PXE and under the Backtrack menu, should be Spinrite and then the Spinrite 6 CD sub menu option.
If everything worked well, it will boot 99.9998% like the CD does. The only difference I saw was that if the target system had a floppy disk drive, instead of A drive, it would be B instead.
It looks daunting but if you got the PXE server up from int0x80's tutorial, then this should take about 5 mins to implement.
Thanks to Hak5 and int0x80 for everything.