Jesus 'n Jim
A mainly PC (some Mac) site w/Software, Computer Repair Info, How-To's on Using Computers
Technical Support 1-360-521-2060 (my business line cell)

Format computer to Factory State

 

the intent

the intent behind this is to make the system usable for the person who gets the machine or to recover from a serious problem, such as malware.

try this first

something you can try is installing clamwin(Windows), or clamxav(Mac) or running clamav (already installed on most Unix/Linux/BSD systems)

these programs, although they are ruthlessly removed by other antivirus programs as offensive (because you should not have 2 antivirus programs working at the same time, they conflict, and they know that). this has a fairly decent detection rate from what I have seen, it detects things the big ones do not. you might try this before trashing your OS if your OS is at least limping.

UNIX instructions:
------------------
clamav instructions for mounting an NTFS disk at /dev/sdb1 and scanning it:
start an xterm.
mount -t ntfs-3g /dev/sdb1 /mnt/c
sudo mkdir /mnt/c/quarantine
sudo clamscan --recursive=yes -r --infected --move=/mnt/c/quarantine --algorithmic-detection /mnt/c
...wait until scan finished. quarantine directory is still there, you can remove it if you wish.
sudo rm -f /mnt/c/quarantine
sudo rmdir /mnt/c/quarantine
umount /mnt/c

clamav instructions for scanning root at /:
start an xterm.
sudo mkdir /quarantine
sudo clamscan --recursive=yes -r --infected --move=/quarantine --algorithmic-detection /

what about my software?

most computers I see on craigslist don't come with the system restore cd's or the drivers cd's or the software. Legally, the OEM software belongs with the machine, not to you. If it's not a boxed copy of the software, it's probably OEM (and usually says so on the paperwork). people don't realize that the license for OEM software is only legal if it STAYS WITH THE MACHINE IT WAS FIRST INSTALLED ON.

this means it is not legal to sell your OEM software apart from the machine. it goes with the machine.

so please do the next person a favor, keep it legal, and move the OEM software right along with the machine you sell.

software that is retail, this is yours. you can keep retail/boxed software and software that you have purchased over the internet.

you may want to check the EULA to see what it says regarding transfer to a different CPU. Some software EULAs (licensing agreements) don't allow that.

regarding wiping the disk and why I don't recommend it

I do not recommend this except in extreme circumstances.

I have disk wiping software that wipes the whole disk. it's better than DBAN (because it boots on more systems), but not fast. but I don't recommend it because:

  • your hard disk may have an EISA Config partition (my Dell does). you DON'T want to eliminate that! On my Dell it shows up as 4GB FAT (Eisa Config).
  • your hard disk may have a System Restore partition on it. On my Dell it shows up as 32GB FAT32 (Unknown). HP and Dell computers, at least, use System Restore partitions, and more and more companies are doing this instead of giving you the System Restore media as a "cost saving" measure. :-( Take it from me, order the media in case you get a techie who doesn't know any better and does a wipe!
  • some linux partitioners only work if windows is there.

Reasons to wipe:

  • You are replacing windows with linux - some partitioners are buggy and only work if it's empty. some only works if there's windows there.
  • you are installing a full version of windows over the top of another version of windows - this does not work! the disk must be empty!
  • installing a weird OS
  • windows or other OS installation isn't taking for some reason - could be a hardware problem, or could be some remnant on the hard disk.

the XP era System Restore Partitions typically format the section of disk that should be formatted.

getting my data off before the format

if you ended up with a virus, you can take your laptop in to have it cleaned up by a computer shop, and tell them to save your data and that it is infected and to format it fresh. provide them with your laptop cd/dvd media that came with it.

or, find a friend with a desktop or laptop, buy a 2.5" USB hard drive dock or the USB hard drive interface that handles 2.5" IDE+SATA, take your laptop drive out (you will need very small screwdrivers for this) mount the drive on the USB interface. make sure it is polarized right, and don't force!

pre-WARNING

if you follow the steps in the next section, you WILL lose your data unless you do the backup in a method that is retrievable.

steps to bring system to factory state for selling (or otherwise usable)

WARNING:if you follow these steps, you WILL lose your data unless you do the backup in a method that is retrievable.

Windows 7: did you make a System Repair Disc beforehand? may save you some trouble.

you find your System Restore keypress one of 3 ways:

  • the key to (repeatedly) press during a split displayed for an instant during boot before windows comesx up (maybe on a splash screen) so you have to really be proactive to get to it, OR it is available . technical support from your manufacturer will have the details on exactly how to get to system recovery mode or OS Repair mode or whatever they call it.
  • by hitting F8 repeatedly during the boot process like there's no tomorrow before windows comes up. it will be a menu item.
  • by doing a keypress repeatedly during boot by discovery - trying function keys during the boot process. one of them will get you into CMOS SETUP where you configure things, that's NOT it, hit Esc. Try F1-F12, Shift-F1 through Shift-F12.
  • by looking up in an online service manual at your manufacturer's web site to find out what the key/process is. If they have one, it is usually free.
  • by contacting technical support to find out what the key is (hopefully your product is under warranty if that's the way your manufacturer works, or you pay something like $49/incident).

IF the manufacturer forgot to put that system restore partition on the hard drive, you could possibly send it back to have them put it back on (since they messed up and you paid for the OS). and I highly suggest you purchase a set of OS Recovery Media for occasions such as this. This does not usually happen (there would probably be no OS!)

with an OS installation system manufacturers will put in a system restore partition alongside the windows partition.

on windows somewhere there is usually some software for making recovery discs (which I hope you did).

you would need to purchase recovery media for your laptop, since the system recovery partition with the OS on it is on the hard drive most likely (common vendor practice), not the new SSD. so you need to buy the media to reinstall the OS+recovery partition. you will need information off of your laptop/computer (model number, make, serial number, build id, any numbers, OS type on the Microsoft COA sticker) in order to order the media. see this page for manufacturer information on getting the part from the parts department or from tech support known as "recovery media".

If you don't have System Restore/System Recovery Media, now is a good time to purchase them, they can come in handy in case of an emergency. If you don't have a PC from a major manufacturer, then buy a "full retail" copy of Windows ($300), or switch to linux (free, I usually choose OpenSuse 11.2, not 11.3 or Ubuntu 10.10).

  1. first off, you have to get into CMOS Setup from the moot menu (F1? F2? F10? Delete? manufacturer dependent) and change the boot order so that the cdrom is before the hard drive.
  2. save your work first and close your apps.
  3. if you can, fix the filesystem. [windows-logo-flag-key]-R chkdsk /f Enter. when it asks you a question, answer Y Enter. then [windows-logo-flag-key]-R shutdown -s -f Enter. it should shut down. if it doesn't after 20 minutes, power the computer off (unless it is doing updates).
  4. turn on the computer. on boot past the windows logo screen, you should see the chkdsk session running in blue. this will take an hour.
  5. backup old data: burn to DVD/cd or copy to usb flash drive or usb external drive.
  6. click on the safely disconnect hardware green icon in the system tray (lower right hand corner) and disconnect your usb external drive which you just backed up your data to, then disconnecct the cable after it is safe.
  7. if the laptop uses system restore disc(s), insert the system restore disc and boot. If you have a system restore partition instead, you will have a special boot menu at startup prompting you to press a certain function key, so do so. system restore MAY be an earlier boot option than F8 which is what comes up when windows boots, or you may have to hit F8 repeatedly during boot to see if anything interesting comes up. I am talking about what comes up when the BIOS/Dell screen comes up. you may have to experiment with keys. could be F12, F10, don't know, but you have to watch and catch it fast.
  8. install, choosing to install, full format the partition, and choose to install windows over the old NTFS partition you had. don't remove the media until it tells you to.
  9. install the drivers cd/dvd(s). drivers for the motherboard/laptop/desktop first.
  10. install the drivers for your other products IF you only are using the system or you are selling the collection of peripherals with the system.
  11. install microsoft works, if that is what you have
  12. install microsoft office upgrade, or microsoft office full or OEM, whichever you have. If you don't have an office package, you can get one for free from me which is an extravagant package of OpenOffice.org with free software and a few pieces of can't-part-with shareware, or IBM Lotus Symphony, which is more compatible with MS Office than OpenOffice.org.
  13. install cd burning software and Windows Media player, Java, .Net Framework redistributable, Adobe Air, Adobe Flash, IE8.
  14. install latest service packs, in order from whatever came with your OS to the latest. you will probably have to burn some cd's/dvds. note that if it is XP, you must install IE8 before SP3, or IE will be forever broken!
  15. use Internet Explorer to visit windowsupdate.microsoft.com and install updates and reboot. repeat this step until there are no more updates.

HP/Compaq

repeatedly press F10 during boot.

emachines

F11, F12, or alt-F10 repeatedly during boot. or see this article.

Dell

F8 repeatedly during boot. on some older machines like the dimension 4600 I think it is F10 (but the tech wasn't sure until I paid money).

Acer

alt-F10 or alt-F11 repeatedly during boot. 1, 2

Toshiba

see yahoo answers post

Sony Vaio

all VAIO computers are shipped with recovery partition, present in a hidden partition of the hard drive.
You may also use the recovery partition to create the recovery discs.
You may use the recovery partition to reinstall the preinstalled operating system, applications and the original drivers.
Please press the F10 key for 5 to 10 seconds when the VAIO logo appears to access the recovery partition.
Please press the Enter key when you view the edit boot options window to access the recovery menu.
Please use the VAIO care rescue feature to backup important data to any removable media (like USB, DVDs) before performing the system recovery.
Please use the 'Restore C drive' option to perform the system recovery.
This option is used to recover the entire C: drive partition to its original factory software configuration.
All the data on the C: drive will be erased while the data on other partitions is not affected.

Apple

see

Lenovo

see techiecorner.com for S10. ideapad

ASUS

see Eee

MSI

F3 [Enter] see youtube video (MSI official video)

tools for the job
windows 7 full retail, available from newegg.com $180-300
there is an advantage to the retail full version - you can transfer to new hardware if you get an upgraded motherboard, for instance, and since you have the OS disc, you can do the all-important repair and partition resize, unlike some people with system restore partitions today!