how do i set a hp mini notebook with windows xp 2000 back to factory setting
If you have the restore discs, just boot off those. If not, then use f11 on startup to boot into the recovery partition (assuming it has one).