LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-13-2008, 11:54 PM   #1
PipeDreams
Member
 
Registered: Dec 2005
Distribution: Mandriva 2006 x64
Posts: 161

Rep: Reputation: 30
Grub Entry Problem?


I have a multi-boot setup and have added a hd from another machine(same brand processor,memory,and mb).

The ¨new¨ hd has 2 partitions.1 linux and 1 ntfs.

I installed a new distro to my machine and had its grub re-write the previous debian written grub file.It saw all the os´s i have on both hd´s during install.the linux distros boot fine but win starts to boot and i see a flash of the xp logo and my box restarts.

Is this a win kernal panic?or is there a problem with the boot files?

Listed below are my current menu.lst and win boot files.Does anyone see something i can correct to get win to boot.(i know dont throw stuff at me guys but i like to have at least 1 working win in my machines.)

Btw win hasnt booted since i installed the hd with 4 different distro´s grub installs.it was a single hd machine it came from.

Thanks for any help.

boot.ini file

[boot loader]

timeout=30

default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS

[operating systems]

multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect /noexecute=alwaysoff



Current Grub file
.
title Ubuntu 8.10, kernel 2.6.27-7-generic
uuid e64cefb4-0721-4643-a990-97ac8169376a
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=e64cefb4-0721-4643-a990-97ac8169376a ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet

title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid e64cefb4-0721-4643-a990-97ac8169376a
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=e64cefb4-0721-4643-a990-97ac8169376a ro single
initrd /boot/initrd.img-2.6.27-7-generic

title Ubuntu 8.10, memtest86+
uuid e64cefb4-0721-4643-a990-97ac8169376a
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
title Linux Mint XFCE CE, kernel 2.6.24-19-generic (on /dev/sda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-19-generic root=/dev/sda1 ro quiet splash
initrd /boot/initrd.img-2.6.24-19-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
title Linux Mint XFCE CE, kernel 2.6.24-19-generic (recovery mode) (on /dev/sda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-19-generic root=/dev/sda1 ro single
initrd /boot/initrd.img-2.6.24-19-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
title Linux Mint XFCE CE, kernel memtest86+ (on /dev/sda1)
root (hd0,0)
kernel /boot/memtest86+.bin
savedefault
boot


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sdb1
title Microsoft Windows XP Professional
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdb2.
title Debian GNU/Linux, kernel 2.6.18-6-k7 (on /dev/sdb2)
root (hd1,1)
kernel /boot/vmlinuz-2.6.18-6-k7 root=/dev/hdd2 ro
initrd /boot/initrd.img-2.6.18-6-k7
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdb2.
title Debian GNU/Linux, kernel 2.6.18-6-k7 (single-user mode) (on /dev/sdb2)
root (hd1,1)
kernel /boot/vmlinuz-2.6.18-6-k7 root=/dev/hdd2 ro single
initrd /boot/initrd.img-2.6.18-6-k7
savedefault
boot
 
Old 11-14-2008, 12:53 AM   #2
anonobomber
Member
 
Registered: Aug 2003
Location: Seattle
Distribution: Debian, Fedora, CentOS, FreeBSD, OpenSolaris
Posts: 138

Rep: Reputation: 16
If you see the Windows XP logo then it isn't your bootloader. It is something wrong with your windows installation. You might have to boot from a Windows XP cd and use the 'repair' functionality on there. Once you do that, however, it will overwrite your grub installation in the MBR so you'll have to boot from a linux live cd of some sort to chroot to your linux installation so you can reinstall grub.
 
Old 11-15-2008, 11:06 AM   #3
PipeDreams
Member
 
Registered: Dec 2005
Distribution: Mandriva 2006 x64
Posts: 161

Original Poster
Rep: Reputation: 30
I have already mounted the win partition with ubuntu and retrieved all the music and pics i needed to keep so a loss of the os is no big deal(especialy considering which os it is lol).

Is what im seeing a win kernal panic(by that i mean restarting when trying to start the os)caused by switching hdd´s from one machine to another?

Thanks for the reply
 
Old 11-15-2008, 12:58 PM   #4
jiobo
Member
 
Registered: Nov 2008
Posts: 180

Rep: Reputation: 36
GRUB command line

Try the GRUB command line. Once you find the way to boot up your Windows harddrive, then you can edit your GRUB config file to boot up from the GRUB menu. Windows might have gotten "confused" as to the location of the harddrive. Check the maps. If you need more help, explain in detail the way that you have partitioned your drives and the location of the drives in your system.
 
Old 11-15-2008, 02:00 PM   #5
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Rep: Reputation: 38
Had this problem before.

For some reason winblows would not boot on one of my systems on anything other than the drive connection it was installed on (primary or secondary). It was hanging just as you are describing using the map setting. See if windows boots using the original configuration in the system to rule out the usual borked winblows. If that works and windows boots its probably a mapping error you will need to reverse the drives on the cable. Only have this problem adding a hard drive on one system and hope you are just experiencing the same oddity I noticed on one system.
 
Old 11-15-2008, 02:08 PM   #6
Duck2006
Member
 
Registered: Sep 2006
Distribution: Ubuntu 8.04 Hardy Heron LST
Posts: 346

Rep: Reputation: 33
Try changing this,

title Microsoft Windows XP Professional
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1

To this,

title Microsoft Windows XP Professional
root (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
makeactive
chainloader +1
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GRUB Entry halfbrazilian Fedora - Installation 3 11-09-2007 08:15 AM
GRUB and SATA Entry PipeDreams Linux - Newbie 16 01-03-2007 01:48 PM
grub entry? quaylet Linux - Newbie 2 06-14-2005 02:30 PM
GRUB Entry for 2.6.8 Codegen Linux - Distributions 1 08-14-2004 09:54 PM
adding entry to grub questionasker Linux - General 4 03-18-2004 10:21 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration