You are not logged in.

#1 2008-02-03 12:25:06

Tigertailz
Member
From: Sweden
Registered: 2007-09-11
Posts: 89

Grub + IDE + Sata disk

Hello ive been using Arch for a couple of months and I absolutley adore it. However I still use Windows for my musicproduction with tools like Cubase etc.

I have windows on one hd and Arch on another hd, so I just plug windows in when I need it and linux out,

The linux drive is sata and the windows one is IDE, now I would like to setup grub so I can have both plugged in. Would it work? and how would it be done?

Ive heard that there are problemes when you got one IDE and one SATA..

Offline

#2 2008-02-03 17:09:58

HyperBaton
Member
From: Belgium
Registered: 2008-01-18
Posts: 207

Re: Grub + IDE + Sata disk

Well, grub doesn't care if it's IDE or SATA, It's all hdX for grub. So for example your Windows hard drive would be hd0 and your linux SATA drive would be hd1. Or the other way around smile If I were to setup your configuration, I would write grub to the MBR of the linux drive and boot that. To boot windows from grub, you chainload the windows NTLDR.

Are you actually physically switching the drives or am I misunderstanding that?

Offline

#3 2008-02-03 18:38:11

Tigertailz
Member
From: Sweden
Registered: 2007-09-11
Posts: 89

Re: Grub + IDE + Sata disk

Yes if fysically switchting them now the powercable to be exact smile Well I will try that then

Offline

#4 2008-02-04 16:16:44

Tigertailz
Member
From: Sweden
Registered: 2007-09-11
Posts: 89

Re: Grub + IDE + Sata disk

I cant get it running... Grub is booting since I set in bios to boot from the sata disc first, which contains grub root and home partion.

the config looks like this

root  (hd0,0)
kernel /vmlinuz26 root=/dev/sda3
initrd /kernel26.img

But upon boot I get a kernel pacnoin

Kinit: Unable to moun root fs on device dev(8,3)
kinit: init not found!

If I change to
kernel /vmlinuz26 root=/dev/sdb3

I get alittle further in the booting but it fails at
Filesystem check failed please repair manuallt and reboot... etc

Ideas?

Offline

#5 2008-02-04 16:46:46

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: Grub + IDE + Sata disk

1) Check BIOS order (not boot order) of the disk again. Depending on it, you may have to change the first root line.

2) For BIOS SATA options, disable native mode or set to auto if any. Any compatibility option should be set to IDE, again if availble.

3) Above may not apply, because the last report is interesting. Run fsck /dev/sdb3 if you're given the fallback shell.


I need real, proper pen and paper for this.

Offline

#6 2008-02-04 18:52:56

Tigertailz
Member
From: Sweden
Registered: 2007-09-11
Posts: 89

Re: Grub + IDE + Sata disk

In bios
IDE Channel 1 Master = Windows disc aka IDE disk
IDE Channel 2Master  = Linux disc aka Satadisk

All modes on the sata disc is set to auto, if

Ide Channel 2 Master Auto
Access Mode  Auto

Also tried fsck /dev/sdb3 just got reply No corruptions found

Offline

#7 2008-02-05 18:40:24

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: Grub + IDE + Sata disk

root (hd1,0) and root=/dev/sdb3 depending on which partition / is, but sd_ is b as it's the second device.


I need real, proper pen and paper for this.

Offline

#8 2008-02-05 18:56:36

Tigertailz
Member
From: Sweden
Registered: 2007-09-11
Posts: 89

Re: Grub + IDE + Sata disk

Not working I get error 17: Cannot moun selected partion


root  (hd1,0)
Filesystem typ unknown, patitition typ 0x7

Offline

#9 2008-02-05 19:18:51

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: Grub + IDE + Sata disk

hmm maybe i was wrong, someone else may be able to provide a solution. in the meantime, you may want to try a livecd and check what each device is seen as.


I need real, proper pen and paper for this.

Offline

#10 2008-02-06 11:30:32

mrB
Member
Registered: 2007-05-16
Posts: 28

Re: Grub + IDE + Sata disk

I do have problems with GRUB with one SATA disk and an IDE (error code 23); never managed to fix it no matter what the bios settings are. It works fine in LILO though.

Offline

#11 2008-02-06 13:35:15

Tigertailz
Member
From: Sweden
Registered: 2007-09-11
Posts: 89

Re: Grub + IDE + Sata disk

Hmm.. is there a big deal chaning to lilo as bootloader?

Offline

#12 2008-02-06 16:39:52

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

Re: Grub + IDE + Sata disk

You may want to try something if your bios has this option, although I use an Asus mobo with American Megatrends bios so yours may be set up a bit different.

If you can go to the "Boot" page(or tab) and you have something similar to the "Hard Disks" page, you can then change which drive should be seen as the first or second, change the order so your sata(linux) is listed as the first drive, and your windows is the second, save the changes and exit.

Next you will need to edit your /boot/grub/menu.lst to reflect these changes to look like this:

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

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

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

edit #if your boot is not on /dev/sda3 edit accordingly eg: /boot is on mbr-sda "root  (hd0,0)"
                                                                                            /boot is on sda1 "root  (hd0,0)
                                                                                            /boot is on sda2 "root  (hd0,1)   etc
If your grub install is borked or you can't find a way to edit it, you may have to reinstall grub, there is an entry on the arch linux wiki about how to chroot in and reinstall grub from your arch install cd, I've also had luck with vector linux's install cd for just getting the kernel to load where I could then login as root from the shell and fix stuff, prolly several different ways to do it, Best of Luck to you smile

I don't have ide hard disks in hda or hdb.
I have ide dvd drives in hdc and hdd.
I have sata drives in third and fourth hard disk positions in ide compatability mode

It may work for you, it may not, it might be worth a shot though.

I guess I would just reinstall arch, hopefully you make incremental backups of your important stuff, reinstalling never bothers me, I just get more familiar with the process wink

Last edited by RabidWolf (2008-02-06 23:42:54)

Offline

#13 2008-02-06 23:02:40

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: Grub + IDE + Sata disk

^might work, yes.

but root (hd0,2) will not work if GRUB is not installed to /dev/sda3

it specifies the partition where /boot is so if you have separate /boot, take note.

btw, why not just plug out the Windows disk and troubleshoot just the Linux disk first?


I need real, proper pen and paper for this.

Offline

#14 2008-02-06 23:29:30

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

Re: Grub + IDE + Sata disk

ahh yes, thnx, I will edit smile

Offline

#15 2008-02-07 07:34:03

Tigertailz
Member
From: Sweden
Registered: 2007-09-11
Posts: 89

Re: Grub + IDE + Sata disk

Well when Only yhe linux disc is plugged in it works great

Offline

#16 2008-02-08 00:24:33

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: Grub + IDE + Sata disk

because your Windows disk's MBR gets the priority, as that disk is listed first when you plug both in. like mentioned, change that priority, your mobo should have that option.


I need real, proper pen and paper for this.

Offline

#17 2008-02-09 13:05:11

Tigertailz
Member
From: Sweden
Registered: 2007-09-11
Posts: 89

Re: Grub + IDE + Sata disk

I have changed the boot order, grub pops up, as I have said before.

Offline

#18 2008-02-10 13:24:55

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: Grub + IDE + Sata disk

it must be a BIOS option somewhere that's messing with you, or it's the Windows MBR that's taking priority away in any manner. you did install GRUB to MBR and not somewhere like sdb1 ja?

well, in the worst case scenario you may just have to live like this. not much trouble i would say. afterall, a music production system is best left by its lonesome smile


I need real, proper pen and paper for this.

Offline

#19 2008-02-10 14:44:09

Tigertailz
Member
From: Sweden
Registered: 2007-09-11
Posts: 89

Re: Grub + IDE + Sata disk

But since grub is the first thing thats pops up when i boot the computer, (with both hds connected) it should be in the mbr of the first disc being loaded

Offline

#20 2008-02-12 06:55:36

ProfessorTomoe
Member
From: Garland, TX
Registered: 2008-02-12
Posts: 61

Re: Grub + IDE + Sata disk

How is your linux disk partitioned?  What are your mountpoints?

FWIW, I'm running a system with one IDE and two SATA hard drives.  The IDE drive (hd(0,0)) is for WinXP, SATA #1 (hd(1,0)) holds Arch Linux, and SATA #2 (hd(2,0)) holds Fedora (it was my first Linux install, using FC6 - I'm now in the progress of migrating to Arch).  GRUB is installed on the MBR of my IDE drive, with the actual grub menu files sitting on the first partition of hd(2,0).  Both SATA drives have /boot by itself on the first partition, with / on the second partition (sdx2) of each.

The above setup works just fine.  Proof that IDE and SATA can co-exist with GRUB. big_smile

Offline

Board footer

Powered by FluxBB