LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-13-2006, 12:37 AM   #1
vmarian
LQ Newbie
 
Registered: Sep 2006
Posts: 10

Rep: Reputation: 0
Dual Boot Linux-Windows XP


Hello,

I have a computer with two Hard-Drives, the first with
Windows XP and the second with Ubuntu Linux.
The boot order is:
Primary Master:Windows XP
Primary Slave: CD-ROM
Secondary Masder:Ubuntu.

The sencond Hard drive is not detected on a cold boot, only after
I press minimum 2 times CTRL-ALT-DEL.
When I turn off LBA mode on the second hard-drive the hard-disk is detected
even on a cold boot but Grub is not loading.
Please help.

Thank you.
 
Old 09-13-2006, 01:06 AM   #2
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
Hi, better 1st check why your harddrive is not recognized?
Are they both set to cable select? check the Bios and the jumper settings at the drives.
Thats what I would suggest as first step.
 
Old 09-13-2006, 01:10 AM   #3
vmarian
LQ Newbie
 
Registered: Sep 2006
Posts: 10

Original Poster
Rep: Reputation: 0
All jumpers are set correctly.
I tried all the combinations possible and nothing.
 
Old 09-13-2006, 01:12 AM   #4
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
I would suggest to attach both HDDs to the 1st IDE controller and jumper them as Master and Slave. attach the CD Drive as master on the 2nd Controller.
 
Old 09-13-2006, 01:17 AM   #5
vmarian
LQ Newbie
 
Registered: Sep 2006
Posts: 10

Original Poster
Rep: Reputation: 0
I did this also and it seems it works better
but I receive an error at Ubuntu boot: "error mounting root file
system". Thant's because I changed the secondary master to secondary slave I suppose.
I did't know how to fix it so I abandoned this solution.
 
Old 09-13-2006, 01:24 AM   #6
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
No keep it like this! Perfect if you say it works better only the boring Grub is yelling ... so what the hack. Lets reinstall grub again.
You'll have to boot with ubuntu cd and start rescue.
then give me an output of
Code:
/sbin/fdisk -l
and what is in /boot/grub/grub.conf

On the rescue console we can go to grub> and setup the löader up again.
 
Old 09-13-2006, 01:32 AM   #7
vmarian
LQ Newbie
 
Registered: Sep 2006
Posts: 10

Original Poster
Rep: Reputation: 0
I don't think that the grub is the problem, but Ubuntu because Grub starts,
I make the choice (Ubuntu) and when Ubuntu boots at the "mounting root file system"
I receive the error.

Here is the output you requested:

/sbin/fdisk -l

Disk /dev/hda: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 2550 20482843+ 7 HPFS/NTFS
/dev/hda2 2551 4997 19655527+ f W95 Ext'd (LBA)
/dev/hda5 2551 3825 10241406 7 HPFS/NTFS
/dev/hda6 3826 4997 9414058+ 7 HPFS/NTFS

Disk /dev/hdc: 61.4 GB, 61492838400 bytes
255 heads, 63 sectors/track, 7476 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 3188 7475 34443360 f W95 Ext'd (LBA)
/dev/hdc2 1 131 1052226 82 Linux swap / Solaris
/dev/hdc3 132 3187 24547320 83 Linux
/dev/hdc5 3188 5737 20482843+ 7 HPFS/NTFS
/dev/hdc6 5738 7475 13960453+ 7 HPFS/NTFS

Partition table entries are not in disk order
 
Old 09-13-2006, 01:43 AM   #8
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
Oh sorry.. no ubuntu is alway the problem... joke :-)
No Grub has incorrect informations cause you changed the drives.
And now we will have to setup or install however you want to call it.
Again. The output of fdisk -l has been done before you changed physical the drive assignment.
So now we have to rework it grub on the rescue console.
GRUB>setup (hd0,0)
GRUB>root (hd2,2) thats how it is currently but this won't work after you changed the drives so it changes to (hd1,2)
 
Old 09-13-2006, 02:06 AM   #9
vmarian
LQ Newbie
 
Registered: Sep 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Thank you for the informations. I am a Linux beginner
and I never worked with grub on the rescue console.
I don't know even how to access it.
I am afraid af making some mistakes so that my system won't start.
I will perhaps read a groob manual before making any changes.

So that's what I understand from what you said:
I change the hard-disk from secondary master to primary slave
I enter in the rescue console and I type:
setup hd0(0)
 
Old 09-13-2006, 02:18 AM   #10
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
1. After you have booted to rescue enter
Code:
grub
2. Entered grub (we're now are in a command line interface shell for GRUB).
3. Entered root (hd1,2) (setting the boot drive where most of GRUB, and the system kernel files are).
4. Entered find (hd1,2)/grub/stage1 (the first file GRUB uses to boot up from). This step may not be necessary, but I wasn't about to erase a master bootblock, and try again, just to see if it was.
5. Received a list of drives partitions where it could be installed (as far as I could tell). According to their guide, this is a list of where it finds the “stage1” file, which was clearly nonsense (as it was not on the drives listed).
6. Entered setup (hd0) (to install the bootloader to the drive my system BIOS boots up).
7. Entered quit (to properly exit from the GRUB command line interface shell).
 
Old 09-13-2006, 03:34 AM   #11
vmarian
LQ Newbie
 
Registered: Sep 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Hello,

I made a first step.
I still didn't chage the drives, so the first is primary master and the second
is secondary master.
I booted up from my Ubuntu live CD.
I just typed
find /boot/grub/stage1
and it showed me
(hd1,2)

According to what you told me previously it should have been (hd2,2) before
and after all the changes it would transform in (hd1,2).
So I don't know if entering all the command you told me would change something.
Sorry for bothering you so much but I want to make sure it is all OK.
 
Old 09-13-2006, 03:40 AM   #12
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
1st HDD is hd0 = hda
2nd HDD is hd1 = hdb
grub starts counting at 0
so for e.g. (hd3,7) = 4th hdd it's eights partition.
So (hd1,2) would be your root
In case that you want install grub to the mbr which is located on hd0
so setup is (hd0)
Alright so far?
And no sweat for bothering me... I hope that I can help anyway.
:-)
 
Old 09-13-2006, 04:33 AM   #13
vmarian
LQ Newbie
 
Registered: Sep 2006
Posts: 10

Original Poster
Rep: Reputation: 0
I changed the hard disk position but I made another change. I puted
the Ubuntu hard drive as master and the Windows XP as slave.
I suppose this changes the commands you gave me into :

root(hd0,2)
setup(hd0)?????

Please correct me if I am wrong.
 
Old 09-13-2006, 05:08 AM   #14
pckeeper
LQ Newbie
 
Registered: Sep 2006
Distribution: Slackware current and Mandriva
Posts: 12

Rep: Reputation: 0
1st) check jumpers
2nd) try to connect without the old one
3rd) set your BIOS to default
4th) did u try aby live cd (distributions) ?
 
Old 09-13-2006, 05:20 AM   #15
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
aaaaaaaaaaa.... 10:40 you said that you did not change the drives physical yet...
also you said 08:17 that it works better if changed... now you changed it and mixed them arround. So now the whole setup is a little bit different.
And yes it changes not only the commands also you windows will have a little smile now. I try to make you a suggestion
if MASTER Primary = WindowsXP and MASTER Secondary = Ubuntu
do it like I discribed 09:18.
To set the boot order whatever doesn't matter at all
cause you just have to clearify that 1st Master HDD is the primary boot device
this is where the MBR and Grub will be come to play.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux-windows Dual boot question when upgrading from windows 2000 to XP sarikalinux Linux - Newbie 1 03-09-2006 02:21 PM
Solution Dual Boot Windows & Linux [ALL DONE IN WINDOWS] No Linux terminology DSargeant Linux - Newbie 35 02-07-2006 03:29 PM
linux/ windows dual boot. Windows XP is in portable HDD (already installed) izquierdista Linux - General 1 02-03-2006 10:23 AM
Solution Dual Boot Windows & Linux [ALL DONE IN WINDOWS] No Linux terminology DSargeant Linux - Newbie 4 11-10-2005 11:37 AM
How do I dual boot Linux and Windows XP from Windows boot file andyri Linux - Newbie 4 08-04-2004 10:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:49 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
Open Source Consulting | Domain Registration