Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
11-30-2010, 10:23 PM
|
#1
|
Member
Registered: Mar 2009
Distribution: CentOS 6.5 / 7
Posts: 119
Rep:
|
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
|
|
|
12-01-2010, 03:37 AM
|
#2
|
Senior Member
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369
Rep: 
|
Try it this way
Title Windows XP
map (hd0,0) (hd1,0)
map (hd1,0) hd0,0)
root (hd0,0)
chainloader +1
makeActive
|
|
|
12-02-2010, 01:42 PM
|
#3
|
Member
Registered: Mar 2009
Distribution: CentOS 6.5 / 7
Posts: 119
Original Poster
Rep:
|
Got "Error 11: Unrecognized Device String"
Quote:
Originally Posted by ronlau9
Try it this way
Title Windows XP
map (hd0,0) (hd1,0)
map (hd1,0) hd0,0)
root (hd0,0)
chainloader +1
makeActive
|
|
|
|
12-02-2010, 02:10 PM
|
#4
|
Senior Member
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369
Rep: 
|
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
|
|
|
12-02-2010, 03:24 PM
|
#5
|
LQ Guru
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,324
|
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
|
|
|
|
12-02-2010, 05:37 PM
|
#6
|
Member
Registered: Mar 2009
Distribution: CentOS 6.5 / 7
Posts: 119
Original Poster
Rep:
|
Yes, I got the error when selecting winxp from the grub menu.
I noticed and changed the capitalization.
Quote:
Originally Posted by ronlau9
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
|
|
|
|
12-02-2010, 05:50 PM
|
#7
|
Member
Registered: Mar 2009
Distribution: CentOS 6.5 / 7
Posts: 119
Original Poster
Rep:
|
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
You need to map drives, not partitions. Also, your xp on sdb1 is already marked active:
|
Last edited by thealmightyos; 12-02-2010 at 06:03 PM.
|
|
|
12-02-2010, 07:49 PM
|
#8
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,365
|
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.
|
|
1 members found this post helpful.
|
12-02-2010, 10:34 PM
|
#9
|
Member
Registered: Mar 2009
Distribution: CentOS 6.5 / 7
Posts: 119
Original Poster
Rep:
|
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)
Last edited by thealmightyos; 12-02-2010 at 11:14 PM.
|
|
|
12-02-2010, 11:02 PM
|
#10
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,365
|
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 .... ?
|
|
|
12-02-2010, 11:15 PM
|
#11
|
Member
Registered: Mar 2009
Distribution: CentOS 6.5 / 7
Posts: 119
Original Poster
Rep:
|
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
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 .... ?
|
Last edited by thealmightyos; 12-02-2010 at 11:20 PM.
|
|
|
12-03-2010, 12:15 AM
|
#12
|
Member
Registered: Mar 2009
Distribution: CentOS 6.5 / 7
Posts: 119
Original Poster
Rep:
|
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?
|
|
|
12-03-2010, 03:53 AM
|
#13
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,365
|
I don't use xfs, but why not.
*After* taking an image backup first of course ....
|
|
|
12-03-2010, 06:08 AM
|
#14
|
Member
Registered: Mar 2009
Distribution: CentOS 6.5 / 7
Posts: 119
Original Poster
Rep:
|
WORKED
Got my data back. Whew, close one.
Now to just unplug this red cord and reinstall windows...
|
|
|
12-03-2010, 06:11 AM
|
#15
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,365
|
Maybe the almighty really is with you .... lol
|
|
|
All times are GMT -5. The time now is 02:18 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|