Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.
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?
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.
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 :-)
# (0) Slackware 10.1
title Slackware 10.1 [2.6.12]
kernel (hd0,0)/kernel-2.6.12-2-ev2 vga=0x317 root=/dev/hda5 devfs=nomount ro splash=verbose
# (1) Slackware 10.1
title Slackware 10.1 [220.127.116.11-ev1]
kernel (hd0,0)/vmlinuz-18.104.22.168-ev1 vga=0x317 root=/dev/hda5 devfs=nomount ro splash=verbose
# (2) Slackware 10.1
title Slackware 10.1 single
kernel (hd0,0)/vmlinuz-22.214.171.124-ev1 vga=0x317 root=/dev/hda5 devfs=nomount ro splash=verbose single
# (5) Freebsd
title Freebsd 5.4
kernel (hd1,0,a)/boot/loader vga=0x31A
# (6) Microsoft Windows(TM)
title Win XP
map (hd0) (hd2)
map (hd2) (hd0)
### Special cases
## Boot special bootimage
## Boot FreeDOS
# title freedos
# root (hd0,4)
# chainloader +1
## Boot Microsoft Windows(TM)
## Boot from Floppy
## 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]
#kernel /boot/vmlinuz26 root=/dev/hdb1 ro devfs=nomount vga=0x31A
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
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.
First HD with 3 partitions
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.
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
# Modified by YaST2. Last modification on Sat Jul 23 08:12:29 UTC 2005
color white/blue black/light-gray
###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
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.
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.