LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-25-2008, 07:56 AM   #1
yusufs
Member
 
Registered: Oct 2007
Posts: 162

Rep: Reputation: 30
Dual boot problem


Dear all,

My PC is loaded with Linux RHEL ES 4.0 and MS-win xp ( Dualboot) on the same SATA HDD.then accidentally, the partition for linux was deleted from the diskmanagement from windows.

I tried recovery.. but failed.. then I loaded the same RHEL ES 4 in the same partition thinking that I will get the same configuration again..

Everytime, I use to boot am getting option to enter linux only and not the winows partition.


The windows part of my /boot/grub/grub.conf looks like this.

rootnoverify (hd0,1)
chainloader +1


nothing is there..

Please suggest ideas and help ?


Thanks
Yusuf
 
Old 05-25-2008, 08:14 AM   #2
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
You need to open boot/grub/menu.lst file as root and add this to it:
Code:
title Windows XP
rootnoverify (hd0,x) (where x is number of partition where Xp is)
makeactive 
chainloader +1
 
Old 05-25-2008, 10:48 AM   #3
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Windows unless remapped should be in the first partition of the first boot drive. To be certain I would need to see your fdisk -ls. If windows is in the first partition of the first boot drive it should read

rootoverify (hd0,0)
chainloader +1
 
Old 05-26-2008, 03:42 PM   #4
yusufs
Member
 
Registered: Oct 2007
Posts: 162

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Larry Webb View Post
Windows unless remapped should be in the first partition of the first boot drive. To be certain I would need to see your fdisk -ls. If windows is in the first partition of the first boot drive it should read

rootoverify (hd0,0)
chainloader +1


Thanks Larry and Alan for the answers...I have 2 harddisks (320+250GB) in my HDD .. Currently the only linux which it boots is there is 320GB HDD.

here is my fdisk -l.

under 320GB, /dev/sda1 and /dev/sda2 indicates the current Linux (the only OS which is loading)

Under 250GB,/dev/sdb1,/sdb2,/sdb5 has Windows XP,Windows 2003 and Oracle Enterprise Linux in it..


am having this as a test machine to test many of the scenarios before implementing in the production...

[root@oracle usb]# fdisk -l

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 38913 312464250 8e Linux LVM

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 12748 102398278+ 7 HPFS/NTFS
/dev/sdb2 12749 30400 141789690 f W95 Ext'd (LBA)
/dev/sdb5 12749 24221 92156841 7 HPFS/NTFS
/dev/sdb6 24222 30400 49632786 83 Linux


[root@oracle usb]# cat /etc/fstab
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
LABEL=/d01 /d01 ext3 defaults 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dv/sdc1 /usb nfs efaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0

Now I want to logon to windows.. I have all my files there in that machine.

Hope I've made the issue clear. Please guide


Yusuf
 
Old 05-26-2008, 04:19 PM   #5
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Make your entry in your menu.lst for windows like this if everything else boots.

Windows
rootoverify (hd1,0)
map (hd1) (hd0)
map (hd0) (hd1)
chainloader +1
 
Old 05-27-2008, 04:42 PM   #6
yusufs
Member
 
Registered: Oct 2007
Posts: 162

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Larry Webb View Post
Make your entry in your menu.lst for windows like this if everything else boots.

Windows
rootoverify (hd1,0)
map (hd1) (hd0)
map (hd0) (hd1)
chainloader +1



Thanks Larry.... but I have 2 windows OS loaded in the same harddisk...




YUsuf
 
Old 05-27-2008, 06:24 PM   #7
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Oh I see now, well here is an article explaining how to hide each partition and still map them. I am referring you here because he explains it better than I can and if you are planning on booting a number of hard drives it will help. Check this out and see if it helps, what I am talking about is near the end of the article.

http://www.justlinux.com/forum/showt...hreadid=147959
 
Old 05-27-2008, 06:48 PM   #8
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Larry Webb's advice should be followed.

You can have any number of Windows systems in the PC but MS systems are booted by only one boot loader which should be the NTLDR residing in sdb1. MS system's MBR boots the primary partition marked "active". The * in sdb1 indicates it has been marked active (in Linux it is equivalent to being marked bootable).

Once you boot up the NTLDR in sdb1 then you can select either Win2k or XP to boot.

You only get yourself into trouble if you have swapped the sda and sdb position by the cable connections. Larry and I assume your first boot disk is sda.
 
  


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
linux boot problem on dual boot mac mini dla-nor Linux - General 2 06-13-2007 07:02 AM
dual boot dual drive XP and FC6 problem arjay Fedora 2 05-20-2007 12:38 PM
Need help fixing boot problem on Ubuntu/WinXp dual-boot Ay-Karamba! Linux - General 5 09-06-2005 10:20 PM
Problem with dual boot/dual drive setup Norab Linux - Hardware 10 08-29-2005 04:13 PM
problem with Installing red hat linux dual boot(/boot < for 1024 cylinders ) praveenb Linux - Newbie 2 02-13-2004 09:49 PM


All times are GMT -5. The time now is 04:26 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