LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   RAID + Dual Boot problems (https://www.linuxquestions.org/questions/linux-newbie-8/raid-dual-boot-problems-346369/)

Virnas 07-24-2005 08:02 PM

RAID + Dual Boot problems
 
I have hardware raid 0 set up on my windows boot drive. I installed Suse 9.3 on
my secondary harddrive and grub was installed as my boot manager. However,
during every boot, I get a Error 25 (apparently a disk read error... and it's apparently 'dreaded'... fun) from Grub. My system does not continue to boot. The only way I can enter an
operating system is by running a 'boot existing linux' type installation
from the Suse install dvd.

I attempted to restore to the windows boot loader using the recovery
console (fixmbr). I had no success. Inside linux, I tried to change my
boot manager to lilo, also to no avail. In linux, I have no access to my
raid hard drives. How can I set up grub to work?

I'm using a VIA 8237 raid chip.

Any help would be greatly appreciated. First priority is restoring access to windows, getting the dual boot working is secondary.

Thanks!

aikidoist72 07-24-2005 11:29 PM

In order to fixmbr in Windows, you need to log into the installation. This being the case the mbr should be restored as Windows is very possessive of it. I would say your issue now lies with Windows or your RAID setup. Are you sure the RAID setup is correct, and it is attempting to boot the correct hard drive?

When it boots up do you get the words lilo or grub coming up? If you do, then your mbr has not been fixed. Also, and I am a little rusty..... did you try fixboot at the same time?

Hope this can help

Virnas 07-25-2005 12:16 AM

I have tried both fixboot and fixmbr... not at the same time, though... I'll try that. I have been able to log into the correct windows installation by using a driver disk with my RAID drivers on them (in windows setup, you hit F6 to do this). However, I still get the grub screen every time I boot.

aikidoist72 07-25-2005 01:08 AM

At this point...... sorry to say grub is still loaded in you mbr.

Can i suggest you grab a live cd. From the cd you can check all your settings and edit anything you need to. It may help you to simply repair grub, and correct any entries you have in the /boot/grub/menu.1st file. It sounds like grub didn't install properly.

You can disable the linux hard drive in your bios and then try to recover mbr so there can be no confusion to where Windows needs to the mbr. Also, if you have two hard drives, why not install grub to the linux hd's mbr and boot up to the linux disk first.

If you choose to have the linux disk mounted first (ie Primary Master) in /boot/grub/menu.1st file simply map the windows disk like this.

My setup is

Primary Master - HD1 - Slackware
PS - HD2 - Spare testing HD
SM - DVD-RW
SS - HD4 - WinXP for games and huge music partition

I have thrown in a few old ones that i keep for moments like this :-)
Code:

# (0) Slackware 10.1
title Slackware 10.1 [2.6.12]
root        (hd0,0)
kernel        (hd0,0)/kernel-2.6.12-2-ev2 vga=0x317 root=/dev/hda5 devfs=nomount ro splash=verbose
initrd        (hd0,0)/initrd-dolphin

# (1) Slackware 10.1
title Slackware 10.1 [2.6.11.10-ev1]
root        (hd0,0)
kernel        (hd0,0)/vmlinuz-2.6.11.10-ev1 vga=0x317 root=/dev/hda5 devfs=nomount ro splash=verbose
initrd        (hd0,0)/initrd-dolphin

# (2) Slackware 10.1
title Slackware 10.1 single
root        (hd0,0)
kernel        (hd0,0)/vmlinuz-2.6.11.10-ev1 vga=0x317 root=/dev/hda5 devfs=nomount ro splash=verbose single


# (5) Freebsd
title        Freebsd 5.4
root        (hd1,0,a)
kernel        (hd1,0,a)/boot/loader vga=0x31A


# (6) Microsoft Windows(TM)
title  Win XP
root (hd2,0)
map (hd0) (hd2)
map (hd2) (hd0)
makeactive
chainloader +1

### Special cases

## Boot special bootimage
#title Memtest
#kernel (hd0,0)/boot/memtest.bin

## Boot FreeDOS
# title freedos
# root (hd0,4)
# makeactive
# chainloader +1
# boot 

## Boot Microsoft Windows(TM)
#title Windows
#root (hd0,5)
#makeactive
#chainloader +1

## Boot from Floppy
#title floppy
#root (fd0)
#chainloader +1

## Boot with different /boot partition
## /    = /dev/hdb2 = (hd1,1)
## /boot = /dev/hdb1 = (hd1,0)
##
#title Slackware GNU/Linux drive 2
#kernel (hd1,0)/vmlinuz root=/dev/hdb2

# (3) Arch Linux
#title  Arch Linux  [/boot/vmlinuz26]
#root  (hd1,0)
#kernel /boot/vmlinuz26 root=/dev/hdb1 ro devfs=nomount vga=0x31A


Virnas 07-25-2005 01:34 AM

in grub, how would I refer to my hard drive that is a SATA raid 0? Is it still hd0, or is there a different name for it (is grub even able to access/recognize it?). I suspect that my raid setup is at the root of the problem.

(I have 3 hard drives -- 2 SATA hooked through a raid with windows on the first partition, and 1 PATA with windows on the first partition and linux on the fourth).

edit: There doesn't seem to be anything that looks particularly out of place with my menu.1st, except that grub refers to what should be one of my windows installations (on the raid drives) as 'linux, other' at hd0,0

aikidoist72 07-25-2005 02:03 AM

With a true raid controller the (hd0,0) would become (sd0,0). I have a promise fasttrak tx2 controller which is a fake controller. This was seen as (hd0,0) because it was software driven only. Also in the file /etc/fstab your entries would be sdxx - where xx is harddrive and then partition.

For example

First HD with 3 partitions

sda1
sda2
sda3

Second HD

sdb1
sdb2
sdb3

I am not super with these setups as I only have the fake SATA

Now Grub is a fine piece of programming. Basically what it does is directs the computer to load what it needs to begin the OS environment. Similar to the Xp system where Xp's 'bootloader' had to create an environment for Win98 to load.

So grub has two stages. 1st is direction, second stage is environment eg if your partition are formatted as reiserfs, Grub has the drivers in the second stage to understand the formatting to then load the kernel. This is not entirely accurate, and I am sure others have a more technical understanding of this, but it is a start.

Virnas 07-25-2005 04:51 PM

this is how my raid setup appears in fstab

/dev/sda1 /data1 auto noauto,user 0 0

it doesn't recognize it as ntfs; there's definitely some sort of config problem.

I will try using sd0,0.

edit: same error 25. In case it's helpful the following is my menu.1st file

# Modified by YaST2. Last modification on Sat Jul 23 08:12:29 UTC 2005

color white/blue black/light-gray
default 0
timeout 8
gfxmenu (hd2,5)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 9.3
kernel (hd2,5)/boot/vmlinuz root=/dev/hdc6 vga=0x317 selinux=0 splash=silent console=tty0 resume=/dev/hdc5 showopts
initrd (hd2,5)/boot/initrd

###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows
root (hd2,0)
chainloader +1

###Don't change this comment - YaST2 identifier: Original name: Linux other###
title Linux other
root (sd0,0)
chainloader +1

###Don't change this comment - YaST2 identifier: Original name: floppy###
title Floppy
root (fd0)
chainloader +1

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE LINUX 9.3
kernel (hd2,5)/boot/vmlinuz root=/dev/hdc6 showopts ide=nodma apm=off acpi=off vga=normal noresume selinux=0 barrier=off iommu=noforce 3
initrd (hd2,5)/boot/initrd

aikidoist72 07-25-2005 06:04 PM

Ok, now we are cooking with gas my friend.

In your menu.1st file notice how grub is directing the initial boot up to (hdx,x) For all your Sata drives, this needs to be changes to
(sdx,x) and also where root=/dev/hdxx. to root=/dev/sdxx ONLY for the scsi drives. Normal drives are noted as hd

Example
Code:

# Modified by YaST2. Last modification on Sat Jul 23 08:12:29 UTC 2005
 
 color white/blue black/light-gray
 default 0
 timeout 8
 gfxmenu (hd2,5)/boot/message
 
 ###Don't change this comment - YaST2 identifier: Original name: linux###
 title SUSE LINUX 9.3
 kernel (sd2,5)/boot/vmlinuz root=/dev/sdc6 vga=0x317 selinux=0 splash=silent console=tty0 resume=/dev/sdc5 showopts
 initrd (sd2,5)/boot/initrd

This is only on example.

You will need to adjust your settings according to this method.

(sd0,0) means (sd first scsi hard drive, first partition)
(sd0,1) means (sd first scsi hard drive, second partition)
(sd1,0) means (sd Second scsi hard drive, first partition)
(sd2,1) means (sd Second scsi hard drive, second partition)

Then when it comes to root= you use the actual values. Example
root=/dev/sda1 - means first scsi hard drive first partition
root=/dev/sdb3 - means second scsi hard drive third partition.

You will need to know your partition layout. It sounds confusing at first, but once use to it, this is very powerful.

Virnas 07-25-2005 06:14 PM

my linux distribution is on my parallel ATA drive. The only thing that's on the serial drive is my most recent installation of windows. I think that everything is referring to the correct partitions, at least extrapolating from my fstab.

Speaking of fstab, I figured I'd post it if it would be any help:

sda1 is what _should_ be a windows drive on a serial ATA raid.

/dev/hdc6 / reiserfs acl,user_xattr 1 1
/dev/sda1 /data1 auto noauto,user 0 0
/dev/hdc1 /windows/C ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hdc2 /windows/D ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hdc3 /windows/E ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hdc5 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
sysfs /sys sysfs noauto 0 0
/dev/cdrecorder /media/cdrecorder subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/dvdrecorder /media/dvdrecorder subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/fd0 /media/floppy subfs noauto,fs=floppyfss,procuid,nodev,nosuid,sync 0 0

aikidoist72 07-25-2005 07:25 PM

It looks like everything is correct, so you must have a corrupt mbr. If you can get to a command line type in
Code:

fdisk /mbr
as root, then try to recover Xp in the usual way with fixmbr.

Virnas 07-25-2005 08:59 PM

when attempting fdisk /mbr I got the message
"Unable to open /mbr"
I attempted to run this as root in linux.


All times are GMT -5. The time now is 03:08 AM.