Jump to content











Photo
- - - - -

Accidentally messed up boot order on my WXP machine(urgent)

not sure if its right place for asking

Best Answer Wonko the Sane , 27 March 2013 - 08:52 PM

WHat I want to do, is to get rid of syslinux and roll back computer to previous state.

Boot from a USB stick with grub4dos.

At the command prompt:

 

 

map (hd0) (hd1)
map (hd1) (hd0)
map --hook
find --set-root /ntldr
chainloader /ntldr
boot

If there are not any "strange issues" it should boot the XP normally.

If it does, we'll talk on how to fix the booting.

If it doesn't, post what happens.

 

:cheers:

Wonko

Go to the full post


  • Please log in to reply
17 replies to this topic

#1 popov

popov

    Member

  • Members
  • 59 posts
  •  
    Abu Dhabi

Posted 27 March 2013 - 08:07 PM

Well, I was toying with various linux installations and by accident while booting from USB stick ArchBang live i clicked install. Installer was like: do you want to install to this disk(my hdd), if yes press any key, if no press [x]. Default ArchBang GUI had no X'es on windows, just dots so i took that as x on my keyboard. Guess what happend next :o

Anyway I have cancelled installation, but still I cannot boot to my WXP anymore. The message is
error: no configuration file found No default or UI configuration directory found! boot:

Basically I am using 160GB HDD partitioned into C(40gb fat32), D(40GB ntfs), E(40GB FAT32), F(40GB NTFS). WXP is located on D, I have previous, not working installation on F. This is my boot.ini from C:
[boot loader]
timeout=6
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Professional (2)" /noexecute=optin /noexecute=alwayson /fastdetect
multi(0)disk(0)rdisk(0)partition(4)\WINDOWS="Microsoft Windows XP Professional (4)" /noexecute=optin /fastdetect

WHat I want to do, is to get rid of syslinux and roll back computer to previous state.

#2 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 27 March 2013 - 08:52 PM   Best Answer

WHat I want to do, is to get rid of syslinux and roll back computer to previous state.

Boot from a USB stick with grub4dos.

At the command prompt:

 

 

map (hd0) (hd1)
map (hd1) (hd0)
map --hook
find --set-root /ntldr
chainloader /ntldr
boot

If there are not any "strange issues" it should boot the XP normally.

If it does, we'll talk on how to fix the booting.

If it doesn't, post what happens.

 

:cheers:

Wonko


  • popov likes this

#3 popov

popov

    Member

  • Members
  • 59 posts
  •  
    Abu Dhabi

Posted 27 March 2013 - 09:05 PM

It worked, I could boot normally to Win XP just like before. Thanks.

 

Now I need to make thing permanent :dubbio:


Edited by popov, 27 March 2013 - 09:14 PM.


#4 Motasem

Motasem

    Frequent Member

  • Advanced user
  • 169 posts
  • Interests:War Make's Men And Problems Make's You Expert
    MooT®
  •  
    Jordan

Posted 27 March 2013 - 09:31 PM

boot from windows xp cd and enter recovery console

--

Boot up with your CD in the CD ROM and when you presented with Windows Setup
Options:
1- Install Windows
2- Repair existing copy
3- Quit

 

Press R

 

it will ask for administrator password ( enter ur password if you use one )

 

 

type this in command prompt

 

bootcfg /rebuild


It will scans all disks and says scan successful


Window installs:1


[1] D:\windows <--- as you said D drive


It asks: Add installation to boot list? (Y, N, All) Y


Enter load identifier:  windows


Enter OS load options: answer "just press enter" leave it empty

 

after it done type EXIT pc will reboot and see if it works

 

report when done


  • popov likes this

#5 popov

popov

    Member

  • Members
  • 59 posts
  •  
    Abu Dhabi

Posted 27 March 2013 - 09:38 PM

Hmm.. is there any way of doing this without recovery console? Currently I have external access to those hard disks from another OS. If its not enough, then fine, but I will need to search for working CDROM first :loleverybody:



#6 Motasem

Motasem

    Frequent Member

  • Advanced user
  • 169 posts
  • Interests:War Make's Men And Problems Make's You Expert
    MooT®
  •  
    Jordan

Posted 27 March 2013 - 10:01 PM

ok listen to me

write to me all tools you have and i can make a way out for you

example Wonko the Sane told you to make g4d usb and you answer its working and booting means you have g4d usb ready right ?



#7 Motasem

Motasem

    Frequent Member

  • Advanced user
  • 169 posts
  • Interests:War Make's Men And Problems Make's You Expert
    MooT®
  •  
    Jordan

Posted 27 March 2013 - 10:02 PM

ok listen to me

write to me all tools you have and i can make a way out for you

example Wonko the Sane told you to make g4d usb and you answer its working and booting means you have g4d usb ready right ?



#8 popov

popov

    Member

  • Members
  • 59 posts
  •  
    Abu Dhabi

Posted 27 March 2013 - 10:13 PM

I am on persistent but outdated linux(slax modification) installation with rw access to all my hard disks. There are no windows tools here, but I might be able to install them. Easier way IMO is a fact that I have few formattable flash sticks, so I can get things like HirenCD on them easily. Also I got other fully working computers.

 

What more to say? I can boot that Windows machine normally if I do it like Wonko said and it works perfectly fine. So maybe there's another simple way, like some native WXP tool?


Edited by popov, 27 March 2013 - 10:16 PM.


#9 Motasem

Motasem

    Frequent Member

  • Advanced user
  • 169 posts
  • Interests:War Make's Men And Problems Make's You Expert
    MooT®
  •  
    Jordan

Posted 27 March 2013 - 11:32 PM

hiren wont help you because you need to boot in winxp recovery console in order to use the command "bootcfg /rebuild"

i have test this on hirens not working

 

so there's 2 ways to do it

 

1.boot from windows xp cd

2.make a bootable g4d and boot from xp recovery

 

so do you have xp cd with cd rom ? if not then lets you must follow this TUT

 

http://reboot.pro/to...-from-grub4dos/

 

careful to follow all steps from TTTThe FFFFinder :1st:


  • popov likes this

#10 steve6375

steve6375

    Platinum Member

  • Developer
  • 7566 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films
  •  
    United Kingdom

Posted 28 March 2013 - 12:04 AM

Maybe you could download a Win 7 ISO, boot to Win 7 setup - press SHIFT+F10 to get to command console - then run

 

bootsect  /nt52  c:     (where c: is drive letter of hard disk xp partition



#11 popov

popov

    Member

  • Members
  • 59 posts
  •  
    Abu Dhabi

Posted 28 March 2013 - 12:13 AM

Well, I was pissed that it took so long, so I've grabbed CDROM from one of my other computers. Then in recovery console I just did "fixboot" and it works now. The whole situation was pretty stupid because I could normally log into that Windows XP installation with your trick, but I couldn't do what "fixboot" does from there. So this issue is solved, thank you both for help.

Edited by popov, 28 March 2013 - 12:14 AM.


#12 Motasem

Motasem

    Frequent Member

  • Advanced user
  • 169 posts
  • Interests:War Make's Men And Problems Make's You Expert
    MooT®
  •  
    Jordan

Posted 28 March 2013 - 12:29 AM

You Are Welcome  :clap: 



#13 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 28 March 2013 - 08:58 AM

Hey, peeps, take it easy :), no need to panic/get pissed off.

 

In case of need get MBRFIX:

http://www.sysint.no...ting/mbrfix.htm

 

That has the functions needed to restore a MBR code.

 

Then get either of bootpart or RMbootsect (part of RMprepUSB))to fix the bootsector code.

http://www.winimage.com/bootpart.htm

http://www.rmprepusb.com/

 

It's strange how Steve6375 did not suggest his nice little tool, though. :dubbio:

Am I missing something? :unsure:

 

:cheers:

Wonko



#14 steve6375

steve6375

    Platinum Member

  • Developer
  • 7566 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films
  •  
    United Kingdom

Posted 28 March 2013 - 09:23 AM

Could try it on C: volume

It is not part of RMPrepUSB any more and is not supported any more.

It's main use was to be able to boot to WinPE, create a formatted active FAT16 partition on the same hard disk using diskpart, convert it to MSDOS bootable using RMBootSect and then add MSDOS files so that on the next boot the system would boot to MSDOS, do DOS stuff (like flash BIOSes or run DOS h/w tests) and then make the WInPE partition active again so we could boot back to WinPE next time.



#15 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 28 March 2013 - 10:11 AM

Hmmmm :(.

I re-checked and bootpart also seemingly does not support the NTFS bootsector :w00t:.

 

While both tools would do in this case (where the user was smart enough to have the active partition FAT formatted :thumbsup:) they do not represent a "generic" solution.

 

So, unless I am forgetting something we don't have, short of bootsect.exe, *anything* capable of fixing a NTFS bootsector code froma "normally booted" 2K/XP? :unsure:

 

@steve6375

You could actually - I believe - re-vamp the thingy and add to it NTFS support, this way we would have a handy "generic" utility for those that not have an easy access to Vista :ph34r: or later (and/or to the correspondent WAIKs)

 

:cheers:

Wonko



#16 steve6375

steve6375

    Platinum Member

  • Developer
  • 7566 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films
  •  
    United Kingdom

Posted 28 March 2013 - 10:15 AM

Actually, I just checked and I seem to have released the later version which does actually support NTFS even though the readme.txt says it doesn't! :whistling: 


  • Motasem likes this

#17 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 28 March 2013 - 10:32 AM

Actually, I just checked and I seem to have released the later version which does actually support NTFS even though the readme.txt says it doesn't! :whistling: 

Very good :thumbup:, then you could give it some dignity, and - besides correcting the read-me txt, provide a page for it on your site and/or a new "dedicated" thread here on reboot.pro :).

 

:cheers:

Wonko



#18 Motasem

Motasem

    Frequent Member

  • Advanced user
  • 169 posts
  • Interests:War Make's Men And Problems Make's You Expert
    MooT®
  •  
    Jordan

Posted 28 March 2013 - 12:00 PM

:dots:






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users