LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-01-2004, 07:44 PM   #1
AngryLlama
Member
 
Registered: Sep 2004
Location: /dev/urandom
Distribution: Gentoo
Posts: 171

Rep: Reputation: 30
Strange Dual Boot Problem


I have had Linux running on my computer for some time now, and I have finally decided to install windows for audio/video editing. Fortunately, before installing Linux, I partitioned the harddrive expecting this. Here is my setup: (fdisk -l)

Code:
   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1       40635    20480008+   7  HPFS/NTFS
/dev/hda2           40636       40700       32760   83  Linux
/dev/hda3           40701      232581    96708024    5  Extended
/dev/hda5           40701       44698     2014960+  83  Linux
/dev/hda6           44699       85333    20480008+  83  Linux
/dev/hda7           85334      232581    74212960+   c  W95 FAT32 (LBA)
hda1=windows, hda2=/boot, hda5=swap, hda6=root, and hda7 is a shared data partition.

I tried to install windows on hda1 and of course it put the windows loader on my MBR. I figued I'll stick with it, and install grub when the installation is over. But, during the first installation reboot, after the bios, it said that the operating system couldn't be found. Humm... So I edited my grub.conf and reinstalled grub thinking that maybe I just needed to boot with grub. My grub.conf looks like this:

Code:
timeout 30
default 0
fallback 1

# For booting GNU/Linux
title  Gentoo Linux
        root (hd0,1)
        kernel /kernel-2.6 root=/dev/hda6 vga=795

# For booting Windows NT
title Windows XP Pro
        rootnoverify (hd0,0)
        chainloader  +1
        makeactive
After selecting Windows XP, the screen cleared and then sat there, just displaying the grub boot options. So, I tried to reinstall Windows XP to no avail. Then I installed Windows 2k pro, and the same thing happened. What can cause this to happen? I know I have LBA support because I have been booting off of hda2 for a while and it is well past cyl 1024.

I honestly have no idea why this could be happening. Maybe I need to set a flag on one of the partitions? Or maybe there is something wrong with my partitioning scheme. I've run XP on this machine before, so I know it isn't a simple compatablity issue.

Thank you for your time,

Paul Giblock
 
Old 12-01-2004, 08:35 PM   #2
Mustard010
Member
 
Registered: Nov 2003
Posts: 30

Rep: Reputation: 15
title WinNT/XP
hide (hd0,0)
unhide (hd1,0)
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
makeactive
chainloader +1
boot

add the above lines to your grub.conf ... see if it works
 
Old 12-02-2004, 12:34 AM   #3
AngryLlama
Member
 
Registered: Sep 2004
Location: /dev/urandom
Distribution: Gentoo
Posts: 171

Original Poster
Rep: Reputation: 30
No, that didn't help at all, and I don't see why it would. I only have one harddrive so why would I even want to reference hd1? And besides, shouldn't this have worked when Windows installed its own bootloader into the mbr? Any other suggestions?

Paul
 
Old 12-02-2004, 01:43 AM   #4
AngryLlama
Member
 
Registered: Sep 2004
Location: /dev/urandom
Distribution: Gentoo
Posts: 171

Original Poster
Rep: Reputation: 30
I have tried something derived from your last post like:

title Windows XP Pro
hide (hd0,1)
hide (hd0,5)
hide (hd0,6)
unhide (hd0,0)
rootnoverify (hd0,0)
makeactive
chainloader +1
boot

and that doesn't work either, so I changed it back to how it was. Then I booted with the Windows cd to get into the recovery console. I tried fixboot c: and that didnt work. So I tried fixboot c: AND fixmbr. Of course grub was overwritten, but windows still didn't boot. So I reinstalled grub and now I am still where I was when I started the thread. I did notice something I thought was bizarre inside of Windows recovery's MAP command. Here is the output:

Code:
?             0MB  \Device\Harddisk0\Partition0
C: NTFS   20000MB  \Device\Harddisk0\Partition1
?            32MB  \Device\Harddisk0\Partition2
?         94441MB  \Device\Harddisk0\Partition0
?          1968MB  \Device\Harddisk0\Partition3
?         20000MB  \Device\Harddisk0\Partition4
D: FAT32  72474MB  \Device\Harddisk0\Partition5
I notice that there are two Partition0's. I do not know why the first partition0 is there. I do know that the 2nd one is my extended partition. Is this normal behavior? or should C: be Partition0, \boot be Partition1, and extended be Partition2 ? I'm unsure because I have never used the MAP utility before.

Thanks
Paul

Last edited by AngryLlama; 12-02-2004 at 01:40 PM.
 
Old 12-03-2004, 01:10 PM   #5
AngryLlama
Member
 
Registered: Sep 2004
Location: /dev/urandom
Distribution: Gentoo
Posts: 171

Original Poster
Rep: Reputation: 30
Anyone else? I've made some desperate attempts, and it still won't boot into WinXP.
 
Old 12-03-2004, 01:15 PM   #6
initialdrifteg6
Member
 
Registered: Oct 2004
Location: France, Kentucky
Distribution: debian
Posts: 173

Rep: Reputation: 38
get your xp cd and get into repair mode

type help

look for fixmbr or something like that... it'll give you your mbr back

then you can go do whatever you want... keep win32, or reinstall lilo or grub on hda0 (mbr area)
 
Old 12-03-2004, 01:32 PM   #7
AngryLlama
Member
 
Registered: Sep 2004
Location: /dev/urandom
Distribution: Gentoo
Posts: 171

Original Poster
Rep: Reputation: 30
if you read through the thread you would see i have tried both fixboot and fixmbr.

Thanks anyways


Btw, my hard disk is bigger then yours

Last edited by AngryLlama; 12-03-2004 at 01:34 PM.
 
Old 12-03-2004, 03:34 PM   #8
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Rep: Reputation: 53
Well, if you're sure your BIOS is using LBA for the HDD, then my second guess would be the HDD is configured as "cable select" instead of master. 90% of the time when this happens to me it's one of those two problems. Manually specifying LBA and master, rather than letting the BIOS auto-configure the settings, usually resolves it.

If those suggestions don't fix the prob, I'd try formatting hda1 as FAT32 (using a 98 or ME boot disk) and let Windows setup convert it to NTFS later.
 
Old 12-03-2004, 07:50 PM   #9
AngryLlama
Member
 
Registered: Sep 2004
Location: /dev/urandom
Distribution: Gentoo
Posts: 171

Original Poster
Rep: Reputation: 30
great suggestion crito. I actually had another harddrive on this bus a while ago. So the drive is probably set to Master or CS and I should try setting it to Single. I will try this once I get into my computer.

Thanks,
Paul
 
Old 12-04-2004, 02:04 PM   #10
AngryLlama
Member
 
Registered: Sep 2004
Location: /dev/urandom
Distribution: Gentoo
Posts: 171

Original Poster
Rep: Reputation: 30
My drive didn't have any jumpers set (which means that it was set as factory single) but I changed it to another "single" mode and that didn't work, neither did setting it to cable select. I currently have it in single. It's starting to look like my problem is inexplainable. I still wonder why partition0 shows up twice when calling MAP from the Windows Recovery Console. I posted the output on my third post. What do you mean about setting it up with win98 first? Are you saying do a full install of win98 then overwrite it with a winxp setup? won't that require reformatting to ntfs and I will be where I am now. I tried select FAT for my partition type in the WinXP or Win2K setup already (I forget which one it was). But I will gladly try your suggestion if you clarify what I need to do.

Thanks

Last edited by AngryLlama; 12-04-2004 at 03:25 PM.
 
Old 12-04-2004, 08:07 PM   #11
EnigmaOne
LQ Newbie
 
Registered: Aug 2003
Location: Long Beach, CA - USA
Distribution: Too many to count...
Posts: 28

Rep: Reputation: 15
Do a search for xp behavior with multiple partitions on the drive. I seem to recall runing across something on this (there is an issue with xp) in the past couple of days.

You may be better off installing xp to a different drive and letting GRUB do the OS boot arbitration from the MBR on hd0.
 
Old 12-05-2004, 03:09 PM   #12
AngryLlama
Member
 
Registered: Sep 2004
Location: /dev/urandom
Distribution: Gentoo
Posts: 171

Original Poster
Rep: Reputation: 30
I actually found the solution to my problem.

For explanation and fixes see:
http://www.ces.clemson.edu/linux/fc2.shtml
and
http://www.redhat.com/archives/fedor.../msg00908.html
or
http://lwn.net/Articles/86835/

It seems that when I setup my partition table I used parted. Parted wrote incorrect disk geometry to the disk (it used a head count of 16 instead of 255) Linux apparently reads the information from the BIOS while Windows reads it from the disk. simply changing the head count to 255 (with sfdisk) fixed the problem.

Thanks, I hope this helps other people out too. What a weird problem.
 
Old 12-07-2004, 07:04 PM   #13
AngryLlama
Member
 
Registered: Sep 2004
Location: /dev/urandom
Distribution: Gentoo
Posts: 171

Original Poster
Rep: Reputation: 30
I have noticed a problem though. Whenever I boot into Windows it changes all my 0x83 (Linux) partitions to 0x93 (Amoeba). This causes GRUB and Linux to quit functioning since they are housed on those partitions. GRUB throws an Error 17 I think. I don't know if this is because of Windows or because of me changing the geometry on my drive. In order to fix the problem I have to boot with a live CD, when attempting to run cfdisk I get the following error:
Code:
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
Is there anyway to realign my partitions? or is this not a problem. How can I keep Windows from changing the partition type?

Thanks
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with dual boot/dual drive setup Norab Linux - Hardware 10 08-29-2005 04:13 PM
Strange boot problem... azrael808 Suse/Novell 8 04-01-2005 12:28 AM
Strange Dual boot Windows/Linux Problem KiLLaWaBBiT Linux - Software 3 09-08-2004 04:34 AM
RedHat 9 / W2K Dual Boot system locking up frequently... Very strange... ? pistonhonda Linux - General 3 11-08-2003 12:01 AM
A strange problem when boot dickmitnick Solaris / OpenSolaris 5 09-24-2003 06:20 PM


All times are GMT -5. The time now is 06:15 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration