Strange dual boot difficulties (XP and Mint 5) - need advice

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read this

Strange dual boot difficulties (XP and Mint 5) - need advice

Postby madmanmick on Sun Jun 01, 2008 2:30 am

Hi guys,
I'll begin first off by saying that I have tried four other distros prior to Mint, and was unable to get any of them successfully dual booting XP from GRUB, thought Linux always worked. So far it seems that the only way I am successfully able to boot both OSes is if I change the BIOS hard drive boot sequence around - and this becomes quite irritating, as i'm sure you can understand.
My machine will boot XP in this sequence:
Boot sequence:
1. Ch1 Master 250gb
2. Ch0 Master 250gb
3. Ch0 Slave 80gb (Mint drive)

When I installed Mint from the LiveCD, the aforementioned boot sequence was stored in BIOS. At the end of the Mint installation, I commanded that GRUB be installed to (hd0) *I assumed that would write into the MBR of my XP drive).
However, upon rebooting, the computer loaded straight into XP.
In order to boot into Linux, i changed my boot sequence to:
1. Ch0 Slave 80gb (Mint)
2. Ch1 Master 250gb
3. Ch0 Master 250gb

This sequence loaded up GRUB with no errors, but Mint's boot options in menu.lst were incorrect (root was set to hd1,0) for all three linux boot options. I changed root to (hd0,0) and lo and behold, Mint booted fine. However, I went to try (as usual) to boot XP from GRUB.
The original XP configuration in menu.lst was this:

title Microsoft Windows XP Home Edition
root (hd2,0)
savedefault
makeactive
map (hd0) (hd2)
map (hd2) (hd0)
chainloader +1

Booting this in GRUB yielded two errors: Firstly, after the title line, GRUB inserted a line saying "Filesystem type unknown, partition type 0x7", and secondly, after chainloader +1, the error "NTLDR is missing, press CTRL+ALT+DELETE to restart"

Evidently this config doesn't work. So I changed the menu.lst to this:

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

GRUB attempted to boot XP, and I receieved the error: System cannot find file /windows/system32/hal.dll (something along those lines, but the key point being it was missing the Windows DLLs).
This leads me to believe that somehow the NTLDR is located on one of my 250gb HDDs and that the actual XP install is on the other 250gb HDD - though I know no way of checking if this is in fact true.
Early this morning, I had a brainwave, and tried this:

title Microsoft Windows XP Home Edition
root (hd2,0)
savedefault
makeactive
map (hd1) (hd2)
map (hd2) (hd1)
chainloader +1

I tried these settings, as I know for fact that hd0 is my Mint drive, and either hd1 or hd2 contains the XP install or MBR. I attempted to boot from GRUB, and had the "Filesystem type unknown, partition type 0x7" underneath the title line, but GRUB did not actually give me a final error - there was no "hal.dll missing" or "NTLDR missing", it just stopped at chainloader +1, and left me with a flashing text cursor.

I tried switching the map lines (left root the same) to:
map (hd2) (hd1)
map (hd1) (hd2)

And had the same situation at boot attempt. So i then tried changing the root to (hd1,0) and varied the map (hd1) and (hd2) lines, but all with the same result - no error, no loading, just hanging there flashing the text cursor.

Recently I tried using the SuperGRUB disk, but that wouldn't boot windows either - I tried general boot, boot from second hard drive, boot from specified partition, none of them worked! Does anyone have any ideas?
It seems stupid that I have to change the boot sequence to load windows, surely it must be something to do with the Channel and slave properties of the drives? I can't change these though (i think) because the hdd's are sataII, and they don't have jumper pins.

Thanks guys.
madmanmick
Level 1
Level 1
 
Posts: 33
Joined: Mon May 26, 2008 10:39 pm

Linux Mint is funded by ads and donations.
 

Re: Strange dual boot difficulties (XP and Mint 5) - need advice

Postby Husse on Sun Jun 01, 2008 6:48 am

This post is so long that I lost track of what you did....
Anyway
when you first installed Mint it installed grub to (hd0) which is the MBR of the disk Mint is on - neither Mint nor any other Linux can know that you have other disks with an OS on that are first in the BIOS boot order - so the grub was correct and you should leave it at that - ie chainload XP from the 80 GB disk
When this happened "However, upon rebooting, the computer loaded straight into XP." this was because grub was on another MBR than the one first in boot sequence as you suspected
So you now have to change the settings in menu.lst for XP
Remember XP can't boot from "anywhere" you have trick it into believing that it boots from C
Because of this you may have ntldr on what was the first disk at some time and xp on another - but that should not matter....
You must have something like
map (hd0) (hd1)
map (hd1) (hd0)

The (hd0) always to be in the same place and in the other places the (hdx) of the Windows disk
You could boot into Mint and look at the other disks to find out where XP is and if ntldr is on the same disk
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19703
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: Strange dual boot difficulties (XP and Mint 5) - need advice

Postby madmanmick on Sun Jun 01, 2008 8:36 am

I thought the layout of the message was quite straight forward, and if you re-read it you will see that I already tried variants of the map commands. I was trying to give as much information as possible in the one post, as logically ordered as can be, i realise though that it is fairly large.

I tried running the SuperGRUB disk again, and collected some info on the drives it picked up (if this is any help).
When the BIOS boot sequence was set to (standard settings to boot into linux drive):
1. Ch 0 Slave 80gb Linux
2. Ch 1 Master 250gb
3. Ch 0 Master 250gb
SuperGRUB picked up four hard drive entries (This is interesting, because I don't have a fourth hard drive... yet the partitions of 4 are exactly the same as 1, except with different SCSI codes):
NATURAL LINUX IDE LINUX SCSI GRUB PARTITIONS TYPE
1 hda sda hd0 sda1, sda5 (hd 0,0 and hd 0,4) - sda1=ext2fs, sda5=SWAP
2 hdb sdb hd1 sdb1 (hd 1,0) sdb1=NTFS
3 hdc sdc hd2 sdc1, sdc 5 (hd 2,0 and hd 2,4) - sdc1 and sdc5 = NTFS
4 hdd sdd hd3 sdd1, sdd5, (hd 3,0 and hd 3,4) - sdd1=ext2fs, sdd5=SWAP

From this report, it would seem that sdc contains my XP partition (as that hard drive is logically divided in two), with sdb being my 250gb storage drive. Why would SuperGRUB create an artificial clone of hda and label it as hdd? I tried to boot XP off the partitions of hdb and hdc, to no avail.

At this point, I resigned myself to the fact that the boot sequence was somehow messing up SuperGRUB and Mint GRUB, considering neither could boot Windows from the drive it is installed on (sdc). So I changed my BIOS boot sequence to this (I switched 2 and 3):
1. Ch0 Slave 80gb Linux
2. Ch0 Master 250gb
3. Ch1 Master 250gb

SuperGRUB now reported an interesting change, in that there was no longer a clone of hda, the linux drive, appearing in the form of hdd. Here are the results:
NATURAL LINUX IDE LINUX SCSI GRUB PARTITIONS TYPE
1 hda sda hd0 sda1, sda5 (hd 0,0 and hd 0,4) - sda1=ext2fs, sda5=SWAP
2 hdb sdb hd1 sdb1, sdb5 (hd 1,0 and hd 1,4) - sdb1 and sdb5=NTFS
3 hdc sdc hd2 sdc1(hd 2,0) - sdc1= NTFS

Interesting to note is that now my XP drive has changed from hdc (In the first BIOS boot sequence) to hdb - I would assume this means XP is installed to the Channel 0 Master 250gb, not the Channel 1 Master.
I then tried editing my menu.lst in light of this new sequence, i tried setting it to this:

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

... And that didn't boot. So I changed root to (hd2,0) and the map lines to (hd0) and (hd2) instead of (hd1). That gave me another boot error - it's always 'missing hal.dll' or 'NTLDR is missing'.
Can anyone shed light on it for me? It seems stupid that the ONLY WAY I can boot into XP is by changing the BIOS boot sequence back to its original, which means it completely misses GRUB and goes straight into XP.
Husse, what command do I run in Terminal to find out the contents of each hard drive(where XP and NTLDR are located)?
Help is really appreciated, I'm struggling to work this out with my limited understanding of Linux.
madmanmick
Level 1
Level 1
 
Posts: 33
Joined: Mon May 26, 2008 10:39 pm

Re: Strange dual boot difficulties (XP and Mint 5) - need advice

Postby Husse on Sun Jun 01, 2008 10:45 am

Sorry I should have expressed myself somewhat diferently - it's always good with facts - it's only that I got overwhelmed....
This is really strange, and perhaps I should call in some help :)
Anyway inside Mint you should be able to look into the disks - ntldr is not a hidden file I believe
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19703
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: Strange dual boot difficulties (XP and Mint 5) - need advice

Postby Fred on Sun Jun 01, 2008 11:09 am

Greetings gentlemen,

You know, sometimes when you work with a problem long enough without a solution, you develop a mental block.

What say we back up, take a deep breath, and start fresh here.

@ madmanmick

Please fix everything back, including your boot sequence, so it boots directly into Windows.

Then use the Gparted live cd and post screen shots of all your drives.

Then post your Mint /boot/grub/menu.lst file.

If you will do this in sequence, and post this information, We may be able to help you better.

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: Strange dual boot difficulties (XP and Mint 5) - need advice

Postby madmanmick on Sun Jun 01, 2008 8:49 pm

Thanks Fred.
How do I burn the Gparted Live CD to disk? It came in a .tar.bz2 file whichI can open with WinRAR, but there is no disc image inside. Also, how do I take screenshots while in the Gparted Live CD?
EDIT: My mistake, I assumed v0.3.7 was also a LiveCD, but it turns out that it isn't.
madmanmick
Level 1
Level 1
 
Posts: 33
Joined: Mon May 26, 2008 10:39 pm

Re: Strange dual boot difficulties (XP and Mint 5) - need advice

Postby madmanmick on Sun Jun 01, 2008 9:45 pm

Ok Fred, I ran GPARTED, and it said it saved the images to /root... it didn't give me the option to save them to a USB or hard drive. Where is the location of /root? I booted up XP and had a look around the liveCD, and there is no /root folder - so I don't know where the images are.
Basically, GPARTED found something like this:
sda (sda1 and sda5) where sda1 is a 39gb logical partition, NTFS format, flagged as 'boot' (this is the partition XP is installed upon). sda5 is 193gb partition, NTFS format (I use it as storage)
sdb - This was the linux drive, contained from memory sdb1 (ext2fs, linux 'boot'), and second partition for storage (possibly home, i think it was type SWAP)
sdc (sdc1), 232gb NTFS format storage drive.

If you can tell me where to find those GPARTED screenshots, i'll upload them ASAP.
EDIT: Attached is a screenshot of the XP disk manager, GPARTED found the disk structure to be more of the same - hd0 being sda (Windows drive), hd1 being sdb (Linux drive, though windows doesn't understand the formatting), and hd2 being sdc (the storage drive).
What is interesting to note is how both GPARTED and diskmanager made the Linux drive as hd1, when the BIOS is set to boot it last in the sequence (Which means that the storage drive should effectively be hd1, not Linux). I have no idea, but could this be a result of the computer prioritizing the contents of the disk and placing it in front of the storage drive (i.e. because it detects a linux boot)?
Attachments
disk_manager.jpg
disk_manager.jpg (156.93 KiB) Viewed 1565 times
madmanmick
Level 1
Level 1
 
Posts: 33
Joined: Mon May 26, 2008 10:39 pm

Re: Strange dual boot difficulties (XP and Mint 5) - need advice

Postby Fred on Mon Jun 02, 2008 10:33 am

madmanmick,

OK, I really can't tell you were you put the Gparted images. Let's do this. Post your /etc/fstab file from Mint. Also post your Mint /boot/grub/menu.list file. If you can't boot into Mint, you can use the Mint live cd to find and copy these files.

With the bios set however it has to be set to boot directly into Windows, run the Live cd of Gparted, (url below), and write down the partition table, ie. like I have below. Send me that too. It is important that the BIOS be set so that it will boot directly into windows when you run the Live cd of Gparted though.

http://sourceforge.net/project/showfile ... _id=271779

sda1.... NTFS...... 50 Gig....... Windows
sda2.... NTFS...... 25 Gig....... storage
sda5.... ext3....... 10 Gig....... /
sda6.. etc....................
etc.....

Maybe the above will be easier to do. I really do need that information to help though.

If you have questions, post back.

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: Strange dual boot difficulties (XP and Mint 5) - need advice

Postby madmanmick on Mon Jun 02, 2008 9:46 pm

Hi Fred, here is the GPARTED partition table:
sda1...NTFS...... 39.02GB...BOOT
sda2...extended..193.82GB..lba
sda5...NTFS.......193.82GB

sdb1...ext3.........71.45GB...BOOT
sdb2...extended.....3.08GB
sdb5...linux-swap...3.08GB (LABEL: ID_FS_USAGE=OTHER)

sdc1...NTFS...232.88GB...BOOT

That was with the XP drive set to boot first, storage drive boot second, and linux drive boot third in BIOS (This is my standard XP boot settings, won't work any other way).

Here is FSTAB:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sdb1
UUID=cb194486-527f-4821-a8a3-c1970c765fd4 / ext3 relatime,errors=remount-ro 0 1
# /dev/sdb5
UUID=b8781941-0823-456b-8c41-52c77804a542 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0


And here is Menu.lst:
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-legacy-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0

gfxmenu=/etc/grub/message.elyssa

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10

# Pretty colours
color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/sdb1 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,0)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery mode) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title Linux Mint, kernel 2.6.24-16-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=/dev/sdb1 ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic

title Linux Mint, kernel 2.6.24-16-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=/dev/sdb1 ro single
initrd /boot/initrd.img-2.6.24-16-generic

title Linux Mint, kernel memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin

### 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 a non-linux OS
# on /dev/sdc1
title Microsoft Windows XP Home Edition
root (hd1,0)
makeactive
savedefault
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1


Keep in mind that menu.lst is technically wrong, as it was setup for when Linux was actually hd0 (booting first) with the windows drive as hd1 (boot second). I assume if my menu.lst were to be correct with my Windows BIOS boot sequence, Linux's root would need to be (hd1,0) (as it is registered as sdb in GPARTED) and Window's root would be (hd0,0). Do i need to reinstall GRUB to the Windows drive MBR?
madmanmick
Level 1
Level 1
 
Posts: 33
Joined: Mon May 26, 2008 10:39 pm

Re: Strange dual boot difficulties (XP and Mint 5) - need advice

Postby madmanmick on Wed Jun 04, 2008 10:11 am

No dice?
madmanmick
Level 1
Level 1
 
Posts: 33
Joined: Mon May 26, 2008 10:39 pm

Re: Strange dual boot difficulties (XP and Mint 5) - need advice

Postby Husse on Wed Jun 04, 2008 6:35 pm

Fred is your helper here, but he is not quite well at the moment - hurt his back
This is far too much for me to read in on again and I know I have difficulties with this...
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19703
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: Strange dual boot difficulties (XP and Mint 5) - need advice

Postby madmanmick on Wed Jun 04, 2008 8:57 pm

Ahh, poor Fred. Give him my best then, I hope it all works out fine - back problems are never fun. Hopefully when he is well he will be able to share his wisdom with me again.
Thanks guys.
madmanmick
Level 1
Level 1
 
Posts: 33
Joined: Mon May 26, 2008 10:39 pm

Re: Strange dual boot difficulties (XP and Mint 5) - need advice

Postby Husse on Sat Jun 07, 2008 3:57 pm

OK Fred is limiting his computer time right now
Can you boot into Mint? If I understand you right you can
Do so and post the outcome of
Code: Select all
sudo sfdisk -l

The best would be if you can have Mint in the position you want it to be
I strongly suspect your troubles has to do with that you assign the wrong partitions to the different OS you have
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19703
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: Strange dual boot difficulties (XP and Mint 5) - need advice

Postby madmanmick on Sun Jun 08, 2008 10:15 pm

Husse, to boot into Mint I need to change my BIOS boot order, which changes the fdisk layout (see the SuperGRUB and GPARTED results). I think the whole idea is that we are trying to get Mint to boot without changing the BIOS boot order that Windows works with - to me this represents having to reinstall GRUB to the MBR of my Windows hard drive, because it turns out GRUB is actually installed to the MBR of my Linux drive, which boots second in the default order, hence why I dont get GRUB options at boot. Once before, many months ago with another distro, i tried to install (to my knowledge i did) GRUB to the MBR of my Windows drive which corrupted it, resulting in me having to run a Fixboot and FixMBR to get it booting again.

If i were to reinstall GRUB to my Windows drive (hd0), how would i do that? Do i run the Mint Live CD (I dont want to have to boot into HDD Mint because that changes the BIOS boot order) and reinstall the GRUB through terminal?
madmanmick
Level 1
Level 1
 
Posts: 33
Joined: Mon May 26, 2008 10:39 pm

Re: Strange dual boot difficulties (XP and Mint 5) - need advice

Postby Husse on Mon Jun 09, 2008 10:38 am

If i were to reinstall GRUB to my Windows drive (hd0), how would i do that? Do i run the Mint Live CD (I dont want to have to boot into HDD Mint because that changes the BIOS boot order) and reinstall the GRUB through terminal?

Yes - spot on
http://www.linuxmint.com/wiki/index.php ... _your_grub
This can be done from the live CD
Be very careful to search for grub
Study the menu.lst carefully first so the chainloading gets right
You have the supergrub disk - that can restore the MBR to the "Win way" - you better look at how to do that first
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19703
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: Strange dual boot difficulties (XP and Mint 5) - need advice

Postby Fred on Mon Jun 09, 2008 2:20 pm

madmanmick,

I apologize for being so tardy with my assistance. The partition table that you posted will work just fine. What is important is to not get confused by changing it in bios. You need to leave it as you showed it to me so that it boots directly into windows without a problem. That puts windows on sda1, which is where it needs to be.

Your grub menu.lst file will have to be corrected and also you fstab file will need major changes.

I will make a commitment to you. I will redo those two files and post them today. Just give me a bit more time. I'll post back after a while.

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: Strange dual boot difficulties (XP and Mint 5) - need advice

Postby Husse on Mon Jun 09, 2008 6:18 pm

Thanks Fred - I read and write so many posts that I actually get confused over these a bit more complicated ones
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19703
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: Strange dual boot difficulties (XP and Mint 5) - need advice

Postby Fred on Mon Jun 09, 2008 10:46 pm

madmanmick,

Ok, you have a little editing to do. :-)

You need to do all this with your bios set the way it was when you sent me the partition table. So Windows will boot. Use the SuperGrub disk to boot into the Mint install. It might be flaky but it should work. Do not try to fix anything with SuperGrub, just use it to boot the Mint install.

If this won't work you will have to use the Mint live cd to do the editing with. But try what I suggested above first.

Open your Mint /etc/fstab file for editing and remove everything that is in it. Replace it with what I have in the code box labeled "fstab" below.

Open your Mint /boot/grub/menu.lst file for editing and remove everything in it and replace with what I have in the code box labeled "menu.lst" below.

Type in a terminal:

cd /media

sudo mkdir sda1

sudo mkdir sda5

sudo mkdir sdc1

close terminal

Make sure your bios is set like it was when you gave me the partition table. ie., so Windows would boot.

Open a terminal and type:

sudo grub

root (hd1,0)

setup (hd0)

quit

Close terminal and reboot.

fstab
Code: Select all
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0

# /dev/sdb1   UUID=cb194486-527f-4821-a8a3-c1970c765fd4
/dev/sdb1   / ext3 relatime,errors=remount-ro 0 1

# /dev/sda1
/dev/sda1   /media/sda1   ntfs   defaults,umask=007,gid=46   0   2

# /dev/sda5
/dev/sda5   /media/sda5   ntfs   defaults,umask=007,gid=46   0   2

# /dev/sdc1
/dev/sdc1   /media/sdc1   ntfs   defaults,umask=007,gid=46   0   2

# /dev/sdb5   UUID=b8781941-0823-456b-8c41-52c77804a542
/dev/sdb5   none swap sw 0 0

/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0




menu.lst
Code: Select all
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-legacy-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0

gfxmenu=/etc/grub/message.elyssa

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10

# Pretty colours
color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/sdb1 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,0)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery mode) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title Linux Mint, kernel 2.6.24-16-generic
root (hd1,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=/dev/sdb1 ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic

title Linux Mint, kernel 2.6.24-16-generic (recovery mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=/dev/sdb1 ro single
initrd /boot/initrd.img-2.6.24-16-generic

### 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

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

title
root

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sdc1

title Microsoft Windows XP Home Edition
root (hd2,0)
makeactive
savedefault
map (hd0) (hd2)
map (hd2) (hd0)
chainloader +1


I was left unsure if sdc1 was another copy of Windows. I made the assumption it was and set it up in the menu. If it isn't, it won't boot, of course. If you want access to your ntfs partitions in your /home folder let me know and we can fix that easily. Right now you should have access through /media to those partitions.

I am sorry I took so long, but I just couldn't sit at the computer long enough to do this until now.

Fred

PS: In order for all this to work you must leave your bios set like it was when you sent me the partition table. If you change the bios settings you will scramble everything again.
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: Strange dual boot difficulties (XP and Mint 5) - need advice

Postby Fred on Mon Jun 09, 2008 10:59 pm

Husse,

No problem sir. Anytime I can help, fell free to call on me. I know how busy you are. I really don't see how you do it sometimes. I am always happy to do what I can.

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: Strange dual boot difficulties (XP and Mint 5) - need advice

Postby madmanmick on Tue Jun 10, 2008 1:27 am

Thanks Fred and Husse, I appreciate the support. I'll have a go at reinstalling the GRUB to the XP MBR soon, I just don't want to bone my computer in the process haha. Will report back soon with results.
madmanmick
Level 1
Level 1
 
Posts: 33
Joined: Mon May 26, 2008 10:39 pm

Linux Mint is funded by ads and donations.
 
Next

Return to Installation & Boot

Who is online

Users browsing this forum: acerimusdux, maurolm, NewToLinuxxx and 17 guests