LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Dual Boot Grub. Windows XP BOOTMGR not found (https://www.linuxquestions.org/questions/linux-software-2/dual-boot-grub-windows-xp-bootmgr-not-found-847581/)

thealmightyos 11-30-2010 10:23 PM

Dual Boot Grub. Windows XP BOOTMGR not found
 
Rebuilt an old box of mine and changed up the drives. Did not think it was an issue as I was formatting the drives and reinstalling the systems.

I installed XP first. Then PCLOS. After PCLOS was installed XP would not boot and gave me an error saying the BOOTMGR was not found and to restart. I figured that I just had to map the drives as XP was installed on HD1 and not HD0. But no changes I made to the GRUB configuration seemed to work.

I have run a script to get all the information you guys will need already. Let me know what I am missing here

Code:

              Boot Info Script 0.55    dated February 15th, 2010                   

============================= Boot Info Summary: ==============================

 => Grub 0.97 is installed in the MBR of /dev/sda and looks on the same drive
    in partition #1 for /boot/grub/stage2 and /boot/grub/menu.lst.
 => Windows is installed in the MBR of /dev/sdb
 => Windows is installed in the MBR of /dev/sdc
 => No boot loader is installed in the MBR of /dev/sdd

sda1: _________________________________________________________________________

    File system:      ext3
    Boot sector type:  -
    Boot sector info: 
    Operating System:  PCLinuxOS release 2010
                      (PCLinuxOS) for i586 Kernel 2.6.33.7-pclos6.bfs on an
                      i686 /
    Boot files/dirs:  /boot/grub/menu.lst /etc/fstab

sda2: _________________________________________________________________________

    File system:      Extended Partition
    Boot sector type:  Unknown
    Boot sector info: 

sda5: _________________________________________________________________________

    File system:      swap
    Boot sector type:  -
    Boot sector info: 

sda6: _________________________________________________________________________

    File system:      ext3
    Boot sector type:  -
    Boot sector info: 
    Operating System: 
    Boot files/dirs: 

sdb1: _________________________________________________________________________

    File system:      ntfs
    Boot sector type:  Windows Vista/7
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows XP
    Boot files/dirs: 

sdc1: _________________________________________________________________________

    File system:     
    Boot sector type:  -
    Boot sector info: 
    Mounting failed:
mount: unknown filesystem type ''

sdd1: _________________________________________________________________________

    File system:      xfs
    Boot sector type:  -
    Boot sector info: 
    Operating System: 
    Boot files/dirs: 

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ _____________________________________________________

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot        Start          End          Size  Id System

/dev/sda1    *            63    62,862,344    62,862,282  83 Linux
/dev/sda2          62,862,345  312,576,704  249,714,360  5 Extended
/dev/sda5          62,862,408    71,039,429    8,177,022  82 Linux swap / Solaris
/dev/sda6          71,039,493  312,576,704  241,537,212  83 Linux


Drive: sdb ___________________ _____________________________________________________

Disk /dev/sdb: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders, total 240121728 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot        Start          End          Size  Id System

/dev/sdb1    *          2,048  240,119,807  240,117,760  7 HPFS/NTFS


Drive: sdc ___________________ _____________________________________________________

Disk /dev/sdc: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot        Start          End          Size  Id System

/dev/sdc1                  63  312,560,639  312,560,577  7 HPFS/NTFS


Drive: sdd ___________________ _____________________________________________________

Disk /dev/sdd: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders, total 2930277168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot        Start          End          Size  Id System

/dev/sdd1    *            63 2,930,272,064 2,930,272,002  83 Linux


blkid -c /dev/null: ____________________________________________________________

Device          UUID                                  TYPE      LABEL                       

/dev/sda1        f91ac37b-a1e9-4ce4-b0d1-1958657c4148  ext3                                   
/dev/sda2: PTTYPE="dos" PART_ENTRY_SCHEME="dos" PART_ENTRY_TYPE="0x5" PART_ENTRY_NUMBER="2"
/dev/sda5        e6a12ad1-c684-4b28-8143-09c1b6b2e0ed  swap                                   
/dev/sda6        10270a6f-39ef-4e1b-a2bc-38b2dce0baba  ext3                                   
/dev/sda: PTTYPE="dos"
/dev/sdb1        5FEC3B870CB6E04F                      ntfs                                   
/dev/sdb: PTTYPE="dos"
/dev/sdc1: PART_ENTRY_SCHEME="dos" PART_ENTRY_TYPE="0x7" PART_ENTRY_NUMBER="1"
/dev/sdc: PTTYPE="dos"
/dev/sdd1        257c99e5-5a05-489b-9082-21e138c1bb92  xfs        MassDrive                   
/dev/sdd: PTTYPE="dos"

============================ "mount | grep ^/dev  output: ===========================

Device          Mount_Point              Type      Options

/dev/sda1        /                        ext3      (rw,relatime)
/dev/sda6        /home                    ext3      (rw,relatime)


=========================== sda1/boot/grub/menu.lst: ===========================

timeout 10
color black/cyan yellow/cyan
gfxmenu (hd0,0)/boot/gfxmenu
default 0

title PCLinuxOS
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=PCLinuxOS root=UUID=f91ac37b-a1e9-4ce4-b0d1-1958657c4148 resume=UUID=e6a12ad1-c684-4b28-8143-09c1b6b2e0ed splash=silent vga=788
initrd (hd0,0)/boot/initrd.img

title MS-WinXP
rootnoverify (hd1,0)
root (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
makeactive
chainloader +1

=============================== sda1/etc/fstab: ===============================

# Entry for /dev/sda1 :
UUID=f91ac37b-a1e9-4ce4-b0d1-1958657c4148 / ext3 relatime 1 1
# Entry for /dev/sda6 :
UUID=10270a6f-39ef-4e1b-a2bc-38b2dce0baba /home ext3 relatime 1 2
none /proc proc defaults 0 0
# Entry for /dev/sda5 :
UUID=e6a12ad1-c684-4b28-8143-09c1b6b2e0ed swap swap defaults 0 0
none /dev/pts devpts defaults 0 0

=================== sda1: Location of files loaded by Grub: ===================


  5.0GB: boot/grub/menu.lst
  4.9GB: boot/grub/stage2
  5.0GB: boot/initrd-2.6.33.7-pclos6.bfs.img
  5.0GB: boot/initrd.img
  5.0GB: boot/vmlinuz
  5.0GB: boot/vmlinuz-2.6.33.7-pclos6.bfs
=========================== Unknown MBRs/Boot Sectors/etc =======================

Unknown BootLoader  on sda2

00000000  69 ef 7d 3e f5 6a bc ea  52 bd ef 5e 14 f7 a6 67  |i.}>.j..R..^...g|
00000010  5d 74 e3 eb d4 93 c9 cb  2d db 48 7b de d8 70 77  |]t......-.H{..pw|
00000020  ae 4c 9d e8 60 74 ce 93  24 46 f7 bd 1e f7 bd 59  |.L..`t..$F.....Y|
00000030  3d e9 95 ef 78 66 9e f7  bd e9 db de 19 bd 35 ae  |=...xf........5.|
00000040  7b de 9e f7 bc 33 11 b8  66 f7 86 6f 11 9a 2f 54  |{....3..f..o../T|
00000050  5f 29 b0 0d 3e 10 8f c5  40 cf 70 53 98 97 40 2e  |_)..>...@.pS..@.|
00000060  7c f5 7b 83 3f 6b c2 98  71 aa ae 1f 69 c7 09 15  ||.{.?k..q...i...|
00000070  55 8e fb e4 78 0d 96 13  4b 93 10 4c 31 07 dd 20  |U...x...K..L1.. |
00000080  87 90 28 c1 ae 71 37 df  0f 05 3a 27 37 31 e6 35  |..(..q7...:'71.5|
00000090  ee 11 b4 ef 28 7c da e9  43 3a 7d 28 46 48 72 55  |....(|..C:}(FHrU|
000000a0  4e af 4a 35 30 d6 f9 d1  4b 93 42 94 b8 f0 94 a1  |N.J50...K.B.....|
000000b0  f3 5f 0f 88 c6 20 85 f8  70 03 9f fd f3 e5 f3 9e  |._... ..p.......|
000000c0  06 c5 b7 5f 9c 30 05 5b  93 c4 a7 ca 3d 9f 0f fe  |..._.0.[....=...|
000000d0  1f ce 46 39 39 38 fb 00  7e c8 5a 07 e3 1f 28 5b  |..F998..~.Z...([|
000000e0  bf 0d 52 75 cc 33 2a 4f  f8 1b e7 59 cb b4 ff 3d  |..Ru.3*O...Y...=|
000000f0  0f 53 e1 f8 ab 3b 74 fd  ee f5 d3 60 59 d0 df 3f  |.S...;t....`Y..?|
00000100  a1 d8 52 7d ca 73 c0 7f  d2 19 22 ef da ea 45 00  |..R}.s...."...E.|
00000110  d8 9e 53 ae e2 8a a6 0c  dd 38 65 25 2f 26 1c 7b  |..S......8e%/&.{|
00000120  0f 90 e8 70 60 8a cb 2b  84 85 4a 55 36 69 93 ae  |...p`..+..JU6i..|
00000130  84 38 57 bd bb ba f4 2d  ef 18 d3 af 7d 25 78 c7  |.8W....-....}%x.|
00000140  be 9b 7b c6 7b de f7 b8  42 31 9d a6 1e e1 1a ac  |..{.{...B1......|
00000150  6a b8 fb dc dc de 29 30  87 bd c9 c9 ef 7b dd d4  |j.....)0.....{..|
00000160  62 7b d1 0a f7 bd 36 83  37 bd e9 a4 f7 bd e9 5d  |b{....6.7......]|
00000170  ef 7a 60 05 19 f7 3c f2  3d ef 7a 74 ff 9d 78 66  |.z`...<.=.zt..xf|
00000180  9c e9 ba e7 bd 39 bd ef  78 8d 1b fe f7 fc eb c2  |.....9..x.......|
00000190  9e 10 1e 24 2a 74 83 e7  5b 8e 0c 9e 14 db 9a 69  |...$*t..[......i|
000001a0  5e 47 fa bc be 5e 42 73  c7 c4 69 09 20 10 5f ff  |^G...^Bs..i. ._.|
000001b0  3b ea 5f f5 31 d4 f8 14  bf 71 f0 f1 a3 ee 00 fe  |;._.1....q......|
000001c0  ff ff 82 fe ff ff 3f 00  00 00 7e c5 7c 00 00 fe  |......?...~.|...|
000001d0  ff ff 05 fe ff ff bd c5  7c 00 fb 90 65 0e 00 00  |........|...e...|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200


ronlau9 12-01-2010 03:37 AM

Try it this way
Title Windows XP
map (hd0,0) (hd1,0)
map (hd1,0) hd0,0)
root (hd0,0)
chainloader +1
makeActive

thealmightyos 12-02-2010 01:42 PM

Got "Error 11: Unrecognized Device String"

Quote:

Originally Posted by ronlau9 (Post 4176753)
Try it this way
Title Windows XP
map (hd0,0) (hd1,0)
map (hd1,0) hd0,0)
root (hd0,0)
chainloader +1
makeActive


ronlau9 12-02-2010 02:10 PM

When did you get the ERROR 11 when windows is trying to start up ?
A other is that I write makeActive that should be makeactive without a capital

yancek 12-02-2010 03:24 PM

You need to map drives, not partitions. Also, your xp on sdb1 is already marked active:

Quote:

title Windows XP
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1

thealmightyos 12-02-2010 05:37 PM

Yes, I got the error when selecting winxp from the grub menu.

I noticed and changed the capitalization.

Quote:

Originally Posted by ronlau9 (Post 4178648)
When did you get the ERROR 11 when windows is trying to start up ?
A other is that I write makeActive that should be makeactive without a capital


thealmightyos 12-02-2010 05:50 PM

using that I get the same "BOOTMGR MISSING" message.

Did linux overwrite the windows boot manager? Would it be easier to change boot order of the drives in my bios, reinstall windows then switch the boot order back?

Quote:

Originally Posted by yancek (Post 4178721)
You need to map drives, not partitions. Also, your xp on sdb1 is already marked active:


syg00 12-02-2010 07:49 PM

Windows always installs its boot code in a primary partition on the first disk. Even when you install it on the second disk.

I reckon you overwrote that partition with PCLOS. You're up for a (XP) re-install.

What I'd do is install XP completely on the second drive (take out the first drive while installing) - then your mapping will work correctly.

thealmightyos 12-02-2010 10:34 PM

AAAGGGGHH!!! I just ****ed up.

Before you posted I used the windows XP recovery console to "fixboot"

I thought for sure it stated the drive I wanted. But instead it did something to my SATA drive (the 1.5tb) with all my data on it!!! Now I can not access the data on that drive!! it was XFS, is there anyway to fix it?

Update::
I googled and found this guy had the same problem and fixed it. However, I need someone to translate for me what he did. This is far beyond my knowledge level
http://forum.soft32.com/linux/XFS-Pa...ict421760.html

Update::
Running xfs_repair -n now (-n = No change, just check for damage)

syg00 12-02-2010 11:02 PM

I'm surprised it allowed you to do that to a Linux (x'83') partition type.

Maybe testdisk - or photorec or something more forensic like foremost. That will be a PITA, but may get your data back.

Need I mention my sigline .... ?

thealmightyos 12-02-2010 11:15 PM

yes, yes, I know. The funny thing: the SATA drive WAS my backup :(
I am kicking myself in the arse for not keeping it unplugged

Quote:

Originally Posted by syg00 (Post 4179068)
I'm surprised it allowed you to do that to a Linux (x'83') partition type.

Maybe testdisk - or photorec or something more forensic like foremost. That will be a PITA, but may get your data back.

Need I mention my sigline .... ?


thealmightyos 12-03-2010 12:15 AM

Ok, in no-modify mode, repair_xfs found a secondary superblock. Hell, in it's own words::
Code:

found candidate secondary superblock...
verified secondary superblock...
would write modified primary superblock
Primary superblock would have been modified.
Cannot proceed further in no_modify mode.
Exiting now.

What do you think? should I proceed with this course of action or do I want to do something else first?

syg00 12-03-2010 03:53 AM

I don't use xfs, but why not.
*After* taking an image backup first of course ....

thealmightyos 12-03-2010 06:08 AM

WORKED

Got my data back. Whew, close one.

Now to just unplug this red cord and reinstall windows...

syg00 12-03-2010 06:11 AM

Maybe the almighty really is with you .... lol


All times are GMT -5. The time now is 08:27 AM.