You are not logged in.

#1 2008-01-12 16:19:08

Vilkius
Member
From: Lithuania
Registered: 2007-12-24
Posts: 9
Website

Grub + Archlinux + Windows

Hello,

I have 2 hard drives. In Primary Master is Archlinux, in Primary Slave is Windows. When I select Windows on boot, it shows me an error about filesystem(error code 0x07). My menu.lst:

# (0) Arch Linux
title  Arch Linux
root   (hd0,0)
kernel /boot/vmlinuz26 root=/dev/sda1 ro
initrd /boot/kernel26.img

# (1) Arch Linux
title  Arch Linux Fallback
root   (hd0,0)
kernel /boot/vmlinuz26 root=/dev/sda1 ro
initrd /boot/kernel26-fallback.img

# (1) Windows
title Windows
root = (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
makeactive
chainloader +1

Could anyone help?

Last edited by Vilkius (2008-01-12 16:20:03)

Offline

#2 2008-01-12 16:33:39

SNP
Member
From: Athens / Greece
Registered: 2007-12-05
Posts: 18

Re: Grub + Archlinux + Windows

I *think* you need to have it like this:

# (1) Windows
title Windows
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
#makeactive
chainloader +1

Offline

#3 2008-01-12 18:49:31

RabidWolf
Member
From: WI,USA
Registered: 2007-01-20
Posts: 31
Website

Re: Grub + Archlinux + Windows

mine  [the "vga" part is optional, make sure you pick a resolution your monitor supports]
=============

# (0) Arch Linux
title  Arch Duke KDE sda1
root   (hd0,0)
kernel /boot/vmlinuz26 root=/dev/sda1 ro vga=795
initrd /boot/kernel26.img

# (1) Arch Linux
title  Arch Linux Fallback
root   (hd0,0)
kernel /boot/vmlinuz26 root=/dev/sda1 ro
initrd /boot/kernel26-fallback.img

# (2) Windows
title  WinXP Pro sdb1
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
makeactive


I use sata drives, but according to the arch wiki, these same settings would also work in your setup(although you may have to substitute hda and hdb, not sure, haven't used ide drives in a few years), just type "dual booting" in the wiki's "search" field smile

Last edited by RabidWolf (2008-01-12 19:27:00)

Offline

#4 2008-01-12 19:08:24

Vilkius
Member
From: Lithuania
Registered: 2007-12-24
Posts: 9
Website

Re: Grub + Archlinux + Windows

SNP wrote:

I *think* you need to have it like this:

# (1) Windows
title Windows
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
#makeactive
chainloader +1

I used this ant I got this error:
A disk read error occurred

I will try RabidWolf's suggestion wink

Offline

#5 2008-01-12 20:31:27

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,221
Website

Re: Grub + Archlinux + Windows

I have this:

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

My guess is you didn't set the correct path. If windows is installed on the first partition of your second hard drive, then it's set ok. Otherwise not.

Zl.

Offline

#6 2008-01-12 22:15:48

SNP
Member
From: Athens / Greece
Registered: 2007-12-05
Posts: 18

Re: Grub + Archlinux + Windows

Try an fdisk -l as a su (it will list your hard disk drives) and check which one is your ntfs windows drive.

Then cross check with the device.map file in /boot/grub , is your windows device (hd1) and your linux device (hd0) ?

Offline

#7 2008-01-12 22:46:41

Vilkius
Member
From: Lithuania
Registered: 2007-12-24
Posts: 9
Website

Re: Grub + Archlinux + Windows

SNP wrote:

Try an fdisk -l as a su (it will list your hard disk drives) and check which one is your ntfs windows drive.

Then cross check with the device.map file in /boot/grub , is your windows device (hd1) and your linux device (hd0) ?

Something wrong hmm

[root@myhome_linux vilkius]# fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x6b0b20f6

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        2490    20000924+  83  Linux
/dev/sda2            2491       19208   134287335   83  Linux
/dev/sda3           19209       19457     2000092+  82  Linux swap / Solaris

Unable to seek on /dev/sdb
[root@myhome_linux vilkius]#

What this could be? hmm

Offline

#8 2008-01-12 23:33:41

SNP
Member
From: Athens / Greece
Registered: 2007-12-05
Posts: 18

Re: Grub + Archlinux + Windows

Unfortunately I don't  know neutral
You need some one more experienced to help here.

Maybe this is a good time to describe a little bit more about your system. Which did you setup first, windows or linux ? Did windows work okay before ? Did you do anything "weird" (copy the MBR from one disk to another e.g)?

Last edited by SNP (2008-01-12 23:34:20)

Offline

#9 2008-01-13 00:31:28

Vilkius
Member
From: Lithuania
Registered: 2007-12-24
Posts: 9
Website

Re: Grub + Archlinux + Windows

SNP wrote:

Unfortunately I don't  know neutral
You need some one more experienced to help here.

Maybe this is a good time to describe a little bit more about your system. Which did you setup first, windows or linux ? Did windows work okay before ? Did you do anything "weird" (copy the MBR from one disk to another e.g)?

I've been using Windows in one hard drive for one year and now I bought new hard drive and installed linux. Windows worked fine before.. And now when I need files from Windows hard drive, I connect only Windows hard drive and I use it. I haven't do anything weird. Just installed Windows OS in first hard drive, used it and now I installed another OS in another hard drive. Thats it neutral

Offline

#10 2008-01-13 08:28:55

SNP
Member
From: Athens / Greece
Registered: 2007-12-05
Posts: 18

Re: Grub + Archlinux + Windows

Vilkius wrote:

And now when I need files from Windows hard drive, I connect only Windows hard drive and I use it.

Could you explain that a little bit more? Do you mean that you access the window files through arch? Or do you disconnect the (new)160gb hdd and windows boots normally? I am guessing both hard drives are SATA right? Does Bios detect both hards drives ok?

Offline

#11 2008-01-13 12:53:19

jacko
Member
Registered: 2007-11-23
Posts: 840

Re: Grub + Archlinux + Windows

SNP wrote:

I *think* you need to have it like this:

# (1) Windows
title Windows
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
#makeactive
chainloader +1

# (1) Windows
title Windows
rootnoverify (hd1,0)
makeactive
chainloader +1

u need uncomment the makeactive line as well. I am almost positive on that. I am also not sure, but do u need the map lines? Try the above code and see if that don't work.

Now to the other problem, how are your drives set up, U say primary and slave, well that would suggest to me that u got them hooked up as IDE drives with one cable? Or do u have two SATA drives.

If they are IDE and u are using one cable, make sure the jumpers and cable is set up properly. Read the information that comes with your mobo. If those are IDE and u don't have them setup right then arch will not get the correct information about your drives through the bios and things will not work correctly.

Last edited by jacko (2008-01-13 12:56:05)

Offline

#12 2008-01-13 15:14:05

nesrecar
Member
From: Germany/Munich
Registered: 2004-06-06
Posts: 79

Re: Grub + Archlinux + Windows

rootnoverify (hd1,0)
chainloader +1

That's all you need.


Public Key 0x24685E35 available from any key server you trust.

IRC: ssimon/Nesrecar

Offline

#13 2008-01-13 18:26:26

Dheart
Member
From: Sofia, Bulgaria
Registered: 2006-10-26
Posts: 956

Re: Grub + Archlinux + Windows

If you installed Linux on the second hdd and then Arch on the first your windows bootloader is probably gone. Why is that? Because Windows always installs bootloader on the first hdd. I had similar issue when I tried to swap the positions of Linux and Windows... and ended up swaping my hdds instead... I couldn't install Windows on the second hdd without a bootloader on the first... I think that's why you cannot boot win now...


My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...

Offline

#14 2008-01-13 18:54:34

Vilkius
Member
From: Lithuania
Registered: 2007-12-24
Posts: 9
Website

Re: Grub + Archlinux + Windows

SNP wrote:
Vilkius wrote:

And now when I need files from Windows hard drive, I connect only Windows hard drive and I use it.

Could you explain that a little bit more? Do you mean that you access the window files through arch? Or do you disconnect the (new)160gb hdd and windows boots normally? I am guessing both hard drives are SATA right? Does Bios detect both hards drives ok?

I disconnect HD with Linux and then I use only one HD. My hard drives is IDE. Bios detects both hard drives.

Offline

#15 2008-01-13 18:58:38

Vilkius
Member
From: Lithuania
Registered: 2007-12-24
Posts: 9
Website

Re: Grub + Archlinux + Windows

jacko wrote:

Now to the other problem, how are your drives set up, U say primary and slave, well that would suggest to me that u got them hooked up as IDE drives with one cable? Or do u have two SATA drives.

If they are IDE and u are using one cable, make sure the jumpers and cable is set up properly. Read the information that comes with your mobo. If those are IDE and u don't have them setup right then arch will not get the correct information about your drives through the bios and things will not work correctly.

Two IDE hard drives hooked up with one cable, Linux is Master, Windows is Slave. Jumpers is set correctly, I think... Linux is set up Master, Windows HD is Slave... When Bios loads, it shows what IDE devices is connected and BIOS founds both hard drives.

Offline

#16 2008-01-13 19:07:12

Vilkius
Member
From: Lithuania
Registered: 2007-12-24
Posts: 9
Website

Re: Grub + Archlinux + Windows

Dheart wrote:

If you installed Linux on the second hdd and then Arch on the first your windows bootloader is probably gone. Why is that? Because Windows always installs bootloader on the first hdd. I had similar issue when I tried to swap the positions of Linux and Windows... and ended up swaping my hdds instead... I couldn't install Windows on the second hdd without a bootloader on the first... I think that's why you cannot boot win now...

Now everything looks like this:

Primary IDE cable -> -> -> -> Master: Archlinux HD (sda)
                            -> -> -> -> Slave: Windows HD (sdb)
Secondary IDE cable -> -> -> -> Master: CD/DVD Rom
                                 -> -> -> -> Empty

Before I bought new HD for Archlinux, Windows HD was master but now I changed it to Slave and Archlinux HD connected as Master. I installed Archlinux when everything was connected like now...

Offline

#17 2008-01-13 19:11:31

jacko
Member
Registered: 2007-11-23
Posts: 840

Re: Grub + Archlinux + Windows

Vilkius wrote:
jacko wrote:

Now to the other problem, how are your drives set up, U say primary and slave, well that would suggest to me that u got them hooked up as IDE drives with one cable? Or do u have two SATA drives.

If they are IDE and u are using one cable, make sure the jumpers and cable is set up properly. Read the information that comes with your mobo. If those are IDE and u don't have them setup right then arch will not get the correct information about your drives through the bios and things will not work correctly.

Two IDE hard drives hooked up with one cable, Linux is Master, Windows is Slave. Jumpers is set correctly, I think... Linux is set up Master, Windows HD is Slave... When Bios loads, it shows what IDE devices is connected and BIOS founds both hard drives.

can u move the other HD to the other master? then if u have a cd-rom or dvd-rom put that as slave device on the less used IDE device. I would attach it to the windows IDE cable as slave.

Also make sure the cable is attached right, if the cable has a blue connector that has to be connected to the motherboard then the furthest connector from that blue connector is the master connector, the slave is in the center. As far as I know thats how all cables are made unless otherwise noted on the cable itself.

Also, make sure u have drives setup as master and slave and NOT cable select. I have had problems with that myself. cable select seems to work for the bios, but not always the OS. Not sure why that is, but I have never used cable select jumper setting because of this problem in my experience.

is this computer a build it yourself, or a bought computer that u upgraded? If its one u bought and then upgraded the jumpers may very well be wrong.

If arch is not seeing the drive then u have a hardware hook up problem, I am almost 100% positive about that. I just don't see why arch wouldn't see the drive unless it wasn't hooked up right.

Offline

#18 2008-01-13 19:15:04

jacko
Member
Registered: 2007-11-23
Posts: 840

Re: Grub + Archlinux + Windows

Vilkius wrote:
Dheart wrote:

If you installed Linux on the second hdd and then Arch on the first your windows bootloader is probably gone. Why is that? Because Windows always installs bootloader on the first hdd. I had similar issue when I tried to swap the positions of Linux and Windows... and ended up swaping my hdds instead... I couldn't install Windows on the second hdd without a bootloader on the first... I think that's why you cannot boot win now...

Now everything looks like this:

Primary IDE cable -> -> -> -> Master: Archlinux HD (sda)
                            -> -> -> -> Slave: Windows HD (sdb)
Secondary IDE cable -> -> -> -> Master: CD/DVD Rom
                                 -> -> -> -> Empty

Before I bought new HD for Archlinux, Windows HD was master but now I changed it to Slave and Archlinux HD connected as Master. I installed Archlinux when everything was connected like now...

try like I mentioned and make both HD's master and put cd-rom on the slave of the less used IDE device.

edit: in fact forget about the cd=rom for now and just hook up the two IDE drives as master and see if arch doesn't see it and then try to boot to windows with grub.

Make sure u have windows drive hooked up on the IDE bus 2! smile

Last edited by jacko (2008-01-13 19:16:13)

Offline

#19 2008-01-13 19:16:14

Vilkius
Member
From: Lithuania
Registered: 2007-12-24
Posts: 9
Website

Re: Grub + Archlinux + Windows

jacko wrote:
Vilkius wrote:
Dheart wrote:

If you installed Linux on the second hdd and then Arch on the first your windows bootloader is probably gone. Why is that? Because Windows always installs bootloader on the first hdd. I had similar issue when I tried to swap the positions of Linux and Windows... and ended up swaping my hdds instead... I couldn't install Windows on the second hdd without a bootloader on the first... I think that's why you cannot boot win now...

Now everything looks like this:

Primary IDE cable -> -> -> -> Master: Archlinux HD (sda)
                            -> -> -> -> Slave: Windows HD (sdb)
Secondary IDE cable -> -> -> -> Master: CD/DVD Rom
                                 -> -> -> -> Empty

Before I bought new HD for Archlinux, Windows HD was master but now I changed it to Slave and Archlinux HD connected as Master. I installed Archlinux when everything was connected like now...

try like I mentioned and make both HD's master and put cd-rom on the slave of the less used IDE device.

OK. I will try this smile

Offline

#20 2008-01-14 12:17:10

11010010110
Member
Registered: 2008-01-14
Posts: 284

Re: Grub + Archlinux + Windows

Windows does not like to be slave. I'd put windows primary master, arch whatever else and install lilo / grub to the MBR of the windows drive

Offline

#21 2008-01-14 18:16:27

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,221
Website

Re: Grub + Archlinux + Windows

That could very well be it: if both HD's jumpers are set to master, then only the one on the far end of the cable will work. If you then disconnect the linux HD (on the far end of the IDE-cable), the windows-disk is master and will work. You can esaily avoid it by setting both drives to 'cable select'.

I had totally forgotten in this age of SATA, but I remember having had the same problem in my pre-linux-days...

Zl.

Offline

Board footer

Powered by FluxBB