View previous topic :: View next topic |
Author |
Message |
b00zy n00b
Joined: 31 Oct 2004 Posts: 46
|
Posted: Thu May 31, 2007 7:30 am Post subject: GRUB gives "read error" when booting Windows XP |
|
|
When I'm trying to boot Windows XP, the computer stalls. It displays the grub commands for the Windows XP entry, then nothing happens.
I believe this started when I installed a new mother board. I am, however, able to mount the drive and read/write files on it from Linux. I wish I had more information to give, but that's all I got :-S If there's any information you want, let me know.
fdisk -l /dev/hda:
Code: | # fdisk -l /dev/hda
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1246 10008463+ c W95 FAT32 (LBA)
/dev/hda2 1247 9729 68139697+ 83 Linux |
/boot/grub/grub.conf
Code: | default 1
timeout 3
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title=Gentoo Linux 2.6.19-gentoo-r4
root (hd0,0)
kernel /vmlinuz-2.6.19-gentoo-r4 root=/dev/md3
title=Gentoo Linux 2.6.21-gentoo
root (hd0,0)
kernel /vmlinuz-2.6.21-gentoo root=/dev/md3
title=Windows XP
root (hd1,0)
chainloader +1 |
|
|
Back to top |
|
|
just-linux n00b
Joined: 23 Mar 2005 Posts: 17
|
Posted: Thu May 31, 2007 9:21 am Post subject: |
|
|
Hey, as far as i can see you have two partitions, one for windows (hda1) and one for linux (hda2). However, your grub.conf doesn't match the partitions... :S are you really sure that this is your grub.conf your booting with? :S Please hit me if i'm wrong
The lines for your linux kernels refer to your windows partition: hd0,0 = hda1. So I can't really believe that your a able to boot your linux system with this grub.conf :S Additionally, your windows command line refers to the first partition of your "second harddisk": hd1,0 = hdb1 (Have a look at the grub documentation: http://www.gnu.org/software/grub/manual/grub.html.gz#Naming-convention) |
|
Back to top |
|
|
b00zy n00b
Joined: 31 Oct 2004 Posts: 46
|
Posted: Thu May 31, 2007 9:34 am Post subject: |
|
|
just-linux wrote: | Hey, as far as i can see you have two partitions, one for windows (hda1) and one for linux (hda2). However, your grub.conf doesn't match the partitions... :S are you really sure that this is your grub.conf your booting with? :S Please hit me if i'm wrong
The lines for your linux kernels refer to your windows partition: hd0,0 = hda1. So I can't really believe that your a able to boot your linux system with this grub.conf :S Additionally, your windows command line refers to the first partition of your "second harddisk": hd1,0 = hdb1 (Have a look at the grub documentation: http://www.gnu.org/software/grub/manual/grub.html.gz#Naming-convention) |
hd0 and hd2 are my SATA drives. For some reason Grub is adding the IDE drive (hd1) in the middle. |
|
Back to top |
|
|
just-linux n00b
Joined: 23 Mar 2005 Posts: 17
|
Posted: Thu May 31, 2007 8:55 pm Post subject: |
|
|
Okay, just tell me something about your partitions. You've got to sata disks if i understood you correctly. Where have you installed windows and where your linux system? |
|
Back to top |
|
|
b00zy n00b
Joined: 31 Oct 2004 Posts: 46
|
Posted: Thu May 31, 2007 8:59 pm Post subject: |
|
|
just-linux wrote: | Okay, just tell me something about your partitions. You've got to sata disks if i understood you correctly. Where have you installed windows and where your linux system? |
Linux is installed on the SATA drives.
Windows is installed on the first 10gb of the IDE drive, and there is also a ReiserFS partition used for storage on the remaining space of the 10gb drive. |
|
Back to top |
|
|
just-linux n00b
Joined: 23 Mar 2005 Posts: 17
|
Posted: Thu May 31, 2007 9:32 pm Post subject: |
|
|
please give me fdisk -l /dev/drive from your sata and ide drive |
|
Back to top |
|
|
God_sprit n00b
Joined: 01 Jun 2007 Posts: 9 Location: Dalarna, Sweden
|
Posted: Fri Jun 01, 2007 4:17 pm Post subject: |
|
|
I have the same problem. Can't boot Windows XP.
fdisk -l /dev/hde (It's in swedish but I hope you get the idea.):
Code: |
Disk /dev/hde: 82,3 GB, 82348277760 byte
16 huvuden, 63 sektorer/spår, 159560 cylindrar
Enheter = cylindrar av 1008 · 512 = 516096 byte
Enhet Start Början Slut Block Id System
/dev/hde1 * 1 38761 19535071+ 7 HPFS/NTFS
Partition 1 slutar inte på cylindergräns.
/dev/hde2 38761 158547 60372204 83 Linux
Partition 2 slutar inte på cylindergräns.
/dev/hde3 158547 159551 506047+ 82 Linux växling / Solaris
Partition 3 slutar inte på cylindergräns.
|
fdisk -l /dev/sda:
Code: | Disk /dev/sda: 320,0 GB, 320072933376 byte
255 huvuden, 63 sektorer/spår, 38913 cylindrar
Enheter = cylindrar av 16065 · 512 = 8225280 byte
Enhet Start Början Slut Block Id System
/dev/sda1 1 4863 39062016 83 Linux
/dev/sda2 * 4864 21884 136721182+ 83 Linux
/dev/sda3 21885 38913 136785442+ 83 Linux
|
Windows is in the hde1 partition, as you probably guessed. I'm using a controller card, hence hde. Linux is in the sda1 partition.
Now to the weird part - menu.lst:
Code: | default 0
timeout 15
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Gentoo Linux (2.6.20-gentoo-r4 2) (hd0,0)
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.20-gentoo-r4 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda1 vga=794
initrd /boot/initramfs-genkernel-x86-2.6.20-gentoo-r4
title Windows
rootnoverify (hd2,0)
makeactive
chainloader +1 |
Root for Linux is hd0?! According to grub hd0 is hde i.e. the hdd with Windows. Somehow it still works.
I have another ide drive (hdf, also on the controller card) which is hd1, according to grub.
I haven't used Gentoo for that long so please be gentle. |
|
Back to top |
|
|
God_sprit n00b
Joined: 01 Jun 2007 Posts: 9 Location: Dalarna, Sweden
|
Posted: Sat Jun 02, 2007 11:24 am Post subject: |
|
|
Ok, some of this has been solved. I've changed the order of the harddrives in device.map to match the order in bios and ran grub-install. Now the bootsplash image works, which it didn't before. In other words, the menu.lst issue is no longer.
Windows still refuses to start though... |
|
Back to top |
|
|
gsoe Apprentice
Joined: 10 Dec 2006 Posts: 289 Location: Denmark
|
Posted: Sun Jun 03, 2007 12:14 am Post subject: |
|
|
Usually windows won't start, if it's not in the first harddrive. I have linux in (hd0,0) and windows in (hd1,0). To remedy the situation i have this in menu.lst: Code: | title Windows 2000
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
makeactive
chainloader +1
savedefault
|
For b00zy: Windows is not linux, if you changed your motherboard, you might have to reinstall windows to get it working. |
|
Back to top |
|
|
God_sprit n00b
Joined: 01 Jun 2007 Posts: 9 Location: Dalarna, Sweden
|
Posted: Sun Jun 03, 2007 4:58 pm Post subject: |
|
|
gsoe:
I got the same advice in an other forum. It did the trick.
Thanks! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|