Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub Error Collection [Part 7] [POST GRUB QUESTIONS HERE!]
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, ... 24, 25, 26  Next  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54028
Location: 56N 3W

PostPosted: Sun Sep 17, 2006 4:58 pm    Post subject: Reply with quote

Bob Leny,

Some BIOSes check the boot flag, some don't. Setting it may be essential for you. fdisk can do that and nothing is damaged.

Taking your
Code:
# mount /dev/hda2 /mnt/gentoo
# mount /dev/hda5 /mnt/gentoo/boot
mount: mount point /mnt/gentoo/boot does not exist
together, suggests that /dev/hda2 is not your root partition, as it does not have a directory /boot on it to mount your boot partition. mount /dev/hda2 now and look round using the ls command.

Grubs Error 18 states
Code:
18 : Selected cylinder exceeds maximum supported by BIOS
     This error is returned when a read is attempted at a linear block
     address beyond the end of the BIOS translated area. This generally
     happens if your disk is larger than the BIOS can handle (512MB for
     (E)IDE disks on older machines or larger than 8GB in general).
Either you are installing on a box with a BIOS that does not understand Logical Block Addressing or grub is confused. I suspect the latter

Mount your partitions one at a time and look at the contents to work out which is which.
Mount the root partition and check that your /etc/fstab matches. Get into the chroot, fix grub.conf then reinstall grub.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Bob Leny
Apprentice
Apprentice


Joined: 18 Aug 2006
Posts: 189

PostPosted: Sun Sep 17, 2006 5:50 pm    Post subject: Reply with quote

NeddySeagoon wrote:

Taking your
Code:
# mount /dev/hda2 /mnt/gentoo
# mount /dev/hda5 /mnt/gentoo/boot
mount: mount point /mnt/gentoo/boot does not exist
together, suggests that /dev/hda2 is not your root partition, as it does not have a directory /boot on it to mount your boot partition. mount /dev/hda2 now and look round using the ls command.

Your right, I forgot that before I reinstalled it I changed the partitions. hda1 is "/"... However, hda4 is still "/boot".

NeddySeagoon wrote:

Grubs Error 18 states
Code:
18 : Selected cylinder exceeds maximum supported by BIOS
This error is returned when a read is attempted at a linear block
address beyond the end of the BIOS translated area. This generally
happens if your disk is larger than the BIOS can handle (512MB for
(E)IDE disks on older machines or larger than 8GB in general).
Either you are installing on a box with a BIOS that does not understand Logical Block Addressing or grub is confused. I suspect the latter

Lets get this cflag thingy fixed first...

NeddySeagoon wrote:
Bob Leny,

Some BIOSes check the boot flag, some don't. Setting it may be essential for you. fdisk can do that and nothing is damaged.



And How do I do this? I tried this:
Code:
# fdisk /dev/hda
Command (m for help): c

And it said, "DOS Compatibility flag is set".

Um.... A little help please...?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54028
Location: 56N 3W

PostPosted: Sun Sep 17, 2006 6:02 pm    Post subject: Reply with quote

Bob Leny,

Code:
fdisk /dev/hda
m
is a good start.

Press a to toggle a bootable flag. fdisk will ask which partition.
You probably want to turn off DOS compatibility mode. That may be the case of your Error 18.
I'm not sure what it does but I've never used it.

Using p to view the partition table will show what flags are set where. When you are happy,
press w to write the changes to disk.

Note. the kernel does not alway spick up on updated partition tab;e info without a reboot.
Its always a good idea to reboot agyer you have made changes using fdisk.

You may find me in #gentoo-uk on irc.freenode.net. Ping me if you want some real time help.
I'll be in #gentoo too but thats a very busy channel. If you are new to irc, its not a good place to start.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
cheater1034
Veteran
Veteran


Joined: 09 Sep 2004
Posts: 1558

PostPosted: Sun Sep 17, 2006 10:38 pm    Post subject: Need help setting up grub - raid-0, but boot is off of raid Reply with quote

Hello,
i am having some troubles setting up grub for the first time on my new system, i will post some info first:
Partition layout:
/dev/sda = disk 1
/dev/sda1 = windows: ntfs
/dev/sda2 = junk: fat32
/dev/sda3 = root: Linux raid autodetect
/dev/sda4 = boot: Linux
/dev/sdb = disk 2
/dev/sdb1 = root2: Linux raid autodetect
/dev/sdb2 = swap: Linux swap

My raid-0 is between /dev/sda3 and /dev/sdb1, they are installed to /dev/md1 in a raid array, and gentoo is installed there, along with the kernel. /dev/sda4 has grub installed, and the kernel, and the config is all setup, etc.

In the chroot, as normal procedure follows, I do:

grub: root (hd0,3)
grub: setup (hd0)
grub: quit
reboot, get error 17, try again:
grub: root (hd0,3)
grub: setup (hd0)
grub: setup (hd1)
grub: quit
reboot, get error 17 again, give up and ask on forums.

here is my grub.conf:

default 0
timeout 30
splashimage=(hd0,3)/grub/splash.xpm.gz

title=Gentoo
root (hd0,3)
kernel /boot/bzImage root=/dev/md1

title=Windoze
rootnoverify (hd0,0)
makeactive
chainloader +1

I don't get as far as the grub menu, i just get error 17 when it tried to load into it.

Any help would be appreciated!
_________________
IRC!: #zen-sources on irc.rizon.net
zen-kernel.org
--
Lost in android development land.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54028
Location: 56N 3W

PostPosted: Sun Sep 17, 2006 10:53 pm    Post subject: Reply with quote

cheater1034,

I've added your grub problem to our collection

Your grub.conf looks ok, and grub must be looking at the right drive.
Code:
17 : Cannot mount selected partition
     This error is returned if the partition requested exists, but the
     filesystem type cannot be recognized by GRUB.
whst filesystem do you have on /boot ?

Do you have any USB or firewire storage attached ?
That can mess up drive numbering and cause some strange errors.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
cheater1034
Veteran
Veteran


Joined: 09 Sep 2004
Posts: 1558

PostPosted: Mon Sep 18, 2006 12:28 am    Post subject: Reply with quote

NeddySeagoon wrote:
cheater1034,

I've added your grub problem to our collection

Your grub.conf looks ok, and grub must be looking at the right drive.
Code:
17 : Cannot mount selected partition
     This error is returned if the partition requested exists, but the
     filesystem type cannot be recognized by GRUB.
whst filesystem do you have on /boot ?

Do you have any USB or firewire storage attached ?
That can mess up drive numbering and cause some strange errors.


No USB or firewire is attached, and my sda4 (/boot) is on ext2, and it is recognized by grub when I set it up in the chroot from the grub command line. (it says ext2fs or whatever)

then setup (hd0) is successful, I just keep getting error 17, i can't seem to figure this out.
_________________
IRC!: #zen-sources on irc.rizon.net
zen-kernel.org
--
Lost in android development land.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54028
Location: 56N 3W

PostPosted: Mon Sep 18, 2006 8:54 am    Post subject: Reply with quote

cheater1034,

Look in your BIOS for your hard drive set up.
If you can choose USER and do the detection once and store it, you have less problems than using drive auto detect at boot time.

Do you have any IDE hard drives (CD/DVDs don't count)
Do you have a floppy drive ?
If not, you need to start grub with
Code:
grub -no-floppy
when you do the install the the MBR.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
ChrisJumper
Advocate
Advocate


Joined: 12 Mar 2005
Posts: 2389
Location: Germany

PostPosted: Mon Sep 18, 2006 12:11 pm    Post subject: Grub install on usb-drive from Gentoo-chroot Reply with quote

A New Question: Grub install on usb-drive from Gentoo-chroot

Hello together!

I have a small ThinClient with 250 MB Flashdisk and USB-Disk-Drive with 16 GB.
Before installing Gentoo there is Damn small Linux (Dsl) on the Flash-Diskdrive.
From DSL command line i used a Stage3-Install to install - everything works fine but... now i cant install Grub in the MBR?!

I have no cdrom an no floppy, and install Gentoo just on USB-HDD-Drive.
DSL will be stay on the /dev/hda.

Maybe i can do it like this:
The ThinClient can boot from this USB-Drive. I can connect the hdd (in the usbdrive as a slave-hdd, hdb) to another PC and install grub into the MBR of this drive but i dont know how to use the "right" device.map to install it. Because then grub use the device map of the PC, didn' t it?

Is there a way to "cheat" this device.map and make grub to believe that the hdd which is on /dev/hdb at the another pc. Is the first sda or uba?

Or like that:
If i try from the gentoo chroot i get this
Code:
# grub-install /dev/uba
/dev/uba: Not found  or not a block device.

I can try to install grub into the MBR of the Flashdisk (/dev/hda) but i think grub cant access the Usb-Drive before boot?

Iam anxiety to distroy the "ds-linux" on the flashdisk... with a wrong grubconfig. So i will try this at last! And i cant modify the ds-linux-grub-config because its a bequest of the "LIVE-CD"-installation that this config is in a "KNOPPIX" part - without writeaccess.

Is there another option i cant see?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54028
Location: 56N 3W

PostPosted: Mon Sep 18, 2006 12:58 pm    Post subject: Reply with quote

ChrisJumper,

A few things.

You can only use Grub if the BIOS can map the drive. If the BIOS has no idea the drive exists, it can't give grub the drive info.

It appears you are trying to use the slow USB block driver. USB devices are better mapped as SCSI, so if the USB drive is your first 'SCSI' device, it will be /dev/sda

Its quite safe to modify your existing grub.conf by adding a new boot block below the one(s) your already have. A boot block is the lines
Code:
title=...
root (hd...
kernel .....
initrd ... (thats optional)
I you want to do that, you need to remount the partition rw, with
Code:
mount -o rw,remount /dev...


You can also poke about in the grub shell, to see what grub can detect.
Do the manual grub install process - almost. -> means press the tab key
Code:
grub -no-floppy
root (hd-> 
grub shows all the drives it knows, or addin in 0, if there is only one.
Contine by adding to the root line
Code:
root (hd0,->
grub shows all the partitions on (hd0).
Use backspace to check any other drives too. You can tell them apart.
You may quit at any time is contine with the
Code:
 setup (hd...
command to actually do the install.

Grub does not see the USB drive, the BIOS does. If the BIOS cannot boot from USB, its game over (almost) You have to use grub on the USB device as a secondary boot loader and use another boot loader that can read USB to get started. That probably means installing your Gentoo kernel on your flash drive and using DSLs grub to load it, as outlined above.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
thebiggiantmouse
n00b
n00b


Joined: 11 Sep 2006
Posts: 6
Location: Da Bronx

PostPosted: Mon Sep 18, 2006 2:26 pm    Post subject: Reply with quote

jmbsvicetto wrote:
[mod]I forgot to post stating that I've merged thebiggiantmouse's post here.[/mod]

thebiggiantmouse,
if you can't boot windows because you installed it on master and now moved it to slave, your windows entry on grub.conf should be something like:
Code:
title Windows XP
        map (hd0) (hd1)
        map (hd1) (hd0)
        rootnoverify (hd0)
        makeactive
        chainloader  +1

thanx this seems to have done the trick. just to be sure. this was to be written to /boot/grub/menu.1st
_________________
As long as i have my books, my mind and google; I am as knowledgeable as any linux guru
Back to top
View user's profile Send private message
ChrisJumper
Advocate
Advocate


Joined: 12 Mar 2005
Posts: 2389
Location: Germany

PostPosted: Mon Sep 18, 2006 3:06 pm    Post subject: Reply with quote

NeddySeagoon wrote:

It appears you are trying to use the slow USB block driver. USB devices are better mapped as SCSI, so if the USB drive is your first 'SCSI' device, it will be /dev/sda


I think that the ThinClient have just the slow usb-1.0. Is in my instance a large performance drifference between my Hardware and the slow USB-Block-Driver? How can i mapped the device as a faster SCSI-Device? - But i think the gentoo-kernel do it at boot-time!?

Quote:

You can also poke about in the grub shell, to see what grub can detect.


Grub in chroot-mode cant detect any drive than the Flashdisk.

Quote:
Grub does not see the USB drive, the BIOS does. If the BIOS cannot boot from USB, its game over (almost)


I know that the bios can Boot from USB. I installed DSL with an Live-Cd-Image from my USB-Stick :)

Quote:
You have to use grub on the USB device as a secondary boot loader and use another boot loader that can read USB to get started. That probably means installing your Gentoo kernel on your flash drive and using DSLs grub to load it, as outlined above.


Yes now i think this will be the best. "BUT" theres a problem. Maybe a small one.
Grub didnt start at bootup. Now i thnk that the "grub" in the KNOPPIX-Dir is not used.

But it "looks like". The Boot-Partition of DSL is Link on the KNOPPIX Directory which is used as a CLOOP-Device. I cant install grub from there..?

I am confident that the usb-drive can boot if i install grub in his MBR and set the root Partition on (hd0,3).

Maybe i try to install the drive as first drive in another pc, start gentoo-live-cd and start grub-install?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54028
Location: 56N 3W

PostPosted: Mon Sep 18, 2006 4:08 pm    Post subject: Reply with quote

ChrisJumper,

If grub can only find your flash drive, you cannot install grub on any other drive.

As you say, its up the the kernel how it sees the USB drive - the DSL kernel that is, since thats the kernel in use now,
not the Gentoo kernel you may have made but are not using.

If you only have USB 1.x, you may not see any speed improveemt from using SCSI over USB for your external drive.
However, that may be why the BIOS/Grub are not seeing it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
ChrisJumper
Advocate
Advocate


Joined: 12 Mar 2005
Posts: 2389
Location: Germany

PostPosted: Mon Sep 18, 2006 4:27 pm    Post subject: Reply with quote

Thank you NeddySeagoon,

for your help.

I test to install grub with a live-cd from another pc. And it "works". And now if i bootup the Client from "USB" he load grub. And i can use the Commandline in there etc.. to made a setup. In there, grub can see the drive right.

But i think the main-problem is to start the Kernel. If he lunch, he cant see the USB-drive!
-Every time i got kernel panic.-

But that mean that grub "works", it resolve the device right and know the FileSystemtyp.

Damn! - OK. I think the only sollution is to boot the client with a "live-cd-usb-disk". Formating the Flashdisk and move my "boot" over.. to this. Then i think the grub-install works right there...
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54028
Location: 56N 3W

PostPosted: Mon Sep 18, 2006 5:31 pm    Post subject: Reply with quote

ChrisJumper,

To make a kernel boot from USB, you need a special kernel parameter.
In grub.conf, on the kernel line add
Code:
rootdelay=<seconds>
where <seconds> is a number between 7 and 30.

Normally, the kernel mounts root before its USB subsystem is initalised. Thats a problem is root is to be on USB.
This delay makes the kernel delay mounting root. You need to choose a time that allows the USB subsystem to start.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Gooserider
Apprentice
Apprentice


Joined: 30 Dec 2005
Posts: 165
Location: Universe, Milky Way Galaxy, Solar System, Earth, North America, USA, MA, North Billerica

PostPosted: Mon Sep 18, 2006 8:43 pm    Post subject: Still having problems Reply with quote

I'm back... :? As a result of my last round of difficulties, (see error collection part 6) I ended up blowing away the entire installation and redoing it from scratch (this time using 2006.1) on a reformatted disk.

I AM STILL HAVING THE SAME PROBLEM!!!

I can boot fine off a grub floppy, indeed I don't even need to tell it where the root partition is, just
Code:

grub# root (hd0,0)
grub# kernel /2.6.17-gentoo-r8ART-9-14-06-gander
grub# boot
and away it goes, finding my boot directory and otherwise acting just as it should...

But if I try to boot off the hard drive, I keep getting "Hard Disk Error" which per the GNU GRUB manual means: "The stage2 or stage1.5 is being read from a hard disk, and the attempt to determine the size and geometry of the hard disk failed." :cry:

Per Neddy's suggestion to a few others, I have set my BIOS to use LBA addressing on the hard drive, which it ID's correctly.

I have tried installing grub manually, and with grub-install, both from the livecd and from the hard drive. In every case, the install goes as expected, with no error messages or other signs of problems.

Grub version is 0.97-r2, which is the latest version available according to portage.

My new FSTAB
Code:

# Hard Drive
/dev/hda1               /boot           ext3            defaults,noauto,noatime 1 2
/dev/hda2               none            swap            sw                      0 0
/dev/hda3               /dos            msdos           defaults                0 0
#/dev/hda4              EXTENDED
/dev/hda5               /               reiserfs        defaults,noatime,notail 0 1
/dev/hda6               /usr            reiserfs        defaults,noatime,notail 0 0
/dev/hda7               /opt            reiserfs        defaults,noatime,notail 0 0
/dev/hda8               /tmp            reiserfs        defaults,noatime,notail 0 0
/dev/hda9               /var            reiserfs        defaults,noatime,notail 0 0
/dev/hda10              /home           reiserfs        defaults,noatime,notail 0 0
/dev/hda11             /backups        reiserfs        defaults,noatime,notail 0 0

# Removable Media
/dev/cdroms/cdrom0      /mnt/cdrom      auto            noauto,users                    0 0
/dev/fd0                /mnt/floppy     auto            noauto,users                    0 0

# Other (virtual) filesystems
udev                    /dev            tmpfs           rw,nosuid               0 0
proc                    /proc           proc            defaults,nosuid         0 0
none                    /dev/shm        tmpfs           nodev,nosuid,noexec     0 0
sysfs                   /sys            sysfs           defaults                0 0
devpts                  /dev/pts        devpts          defaults                0 0
usbfs                   /proc/bus/usb   usbfs           defaults                0 0

ALL partitions were created with Linux cfdisk, and at this point I haven't even formatted or installed DOS in the DOS partition.

And my fdisk -l
Code:

# fdisk -l
Disk /dev/hda: 80.0 GB, 80060424192 bytes
255 heads, 63 sectors/track, 9733 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1          12       96358+  83  Linux
/dev/hda2              13         134      979965   82  Linux swap / Solaris
/dev/hda3             135         158      192780    6  FAT16
/dev/hda4             159        9733    76911187+   5  Extended
/dev/hda5             159         401     1951866   83  Linux
/dev/hda6             402        1860    11719386   83  Linux
/dev/hda7            1861        2103     1951866   83  Linux
/dev/hda8            2104        2954     6835626   83  Linux
/dev/hda9            2955        3805     6835626   83  Linux
/dev/hda10           3806        5629    14651248+  83  Linux
/dev/hda11           5630        7453    14651248+  83  Linux
/dev/hda12           7454        9733    18314068+  83  Linux


Dev//hda12 is just a blank right now, I don't have it assigned or formatted to anything, I just added it to fill up the rest of the disk in case that was a part of my problem. I have also tried playing with the "boot" flag, putting it on the /DOS partition, the /boot partition, and not having a bootable flag at all. Nothing has made any difference.

Per Nightwing's suggestion earlier, I did check the Gigabyte website, and they do have several updates on the BIOS, mine is currently at F2
and the latest is F8. However, none of the listed changes below seem to address this issue. I haven't actually done the upgrade yet, because Gigabyte says "copy the upgrade file to floppy" without saying what floppy format to use. (I have a question into their tech support on this)
Quote:

F8 2004/08/02 Support K7 SEMPRON CPU, Fix USB camera 2.0 can't use
F7 2004/06/17 Fix FSB200 BOOT NG, Fix bios error detect ATA 33 Cable line
F5 2004/01/27 Easytune 4 support cpu ratio change, CPU ratio support 12.5 X, Patch SYNNEX VM512 unstable in S1/S3 resume
Support FSB 200 MHZ, Patch windows 98 boot fail when legacy USB mouse Enable, fix system resource conflict indevice management ,
fix AC97 CODEC error detect
F4 2003/09/22 Update smartfan spec for gigabyte,Fix windows xp show unknow device if unplug ps2 KBC & MOUSE, Fix windows 98 show unknow device in device management, Support codec ALC655
F3 2003/08/26 To improve stability, set DDR frequency to 266MHz when dimm 3 and 4 occupied
F2 2003/08/13 Add easytune4 support,Adjust temperature monitoring tolerence
F1 2003/08/05 First Release


Still Hoping for a cure...

Gooserider
_________________
Box 1: P2 Celeron 400, 320mb RAM, 80GB HD, Cirrus Logic 4614/22/24 sound card, ATI 3D RAGE PRO AGP 1X/2X (sound & video onboard)
Box 2: AMD Athlon 2500+ 512mb RAM, 80GB HD, Gigabyte K7 Triton (Nvidia) mobo, GeForce2 video
Back to top
View user's profile Send private message
cheater1034
Veteran
Veteran


Joined: 09 Sep 2004
Posts: 1558

PostPosted: Mon Sep 18, 2006 10:24 pm    Post subject: Reply with quote

NeddySeagoon wrote:
cheater1034,

Look in your BIOS for your hard drive set up.
If you can choose USER and do the detection once and store it, you have less problems than using drive auto detect at boot time.

No go

Quote:
Do you have any IDE hard drives (CD/DVDs don't count)

No, I posted my partition layout above, the partitions are in a raid-0 via the bios, but as far as lux goes, only my root is on a software raid-0. Both hard drives are sata-II.[/quote]
Quote:
Do you have a floppy drive ?

Yes

Quote:
If not, you need to start grub with
Code:
grub -no-floppy
when you do the install the the MBR.

nein ;)
_________________
IRC!: #zen-sources on irc.rizon.net
zen-kernel.org
--
Lost in android development land.
Back to top
View user's profile Send private message
cheater1034
Veteran
Veteran


Joined: 09 Sep 2004
Posts: 1558

PostPosted: Tue Sep 19, 2006 12:18 am    Post subject: Reply with quote

I removed both the disks from the raid controller in the bios, and now it will go into grub. Cursed you raid!

Oh well, I'll see what I can do about that.
_________________
IRC!: #zen-sources on irc.rizon.net
zen-kernel.org
--
Lost in android development land.
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Tue Sep 19, 2006 2:18 am    Post subject: Reply with quote

Hi.
cheater1034 wrote:
I removed both the disks from the raid controller in the bios, and now it will go into grub. Cursed you raid!
Oh well, I'll see what I can do about that.

Have you checked in the BIOS if you can disable the RAID on those drives? Or if there's a compatibility mode? That might work.
Having them on non-RAID may be better, though.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Tue Sep 19, 2006 2:20 am    Post subject: Reply with quote

thebiggiantmouse wrote:

thanx this seems to have done the trick. just to be sure. this was to be written to /boot/grub/menu.1st

Your /boot/grub/menu.lst file should be a symlink for grub.conf. If so, it doesn't matter which you try to edit, you'll end up editing the same file.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54028
Location: 56N 3W

PostPosted: Tue Sep 19, 2006 9:28 am    Post subject: Reply with quote

cheater1034,

BIOS raid is a problem. Your only reason for using it is that you want to share the raid set with windows. If thats a requirement see thedmraid sticky

For linux only, ignore your BIOS raid and use kernel raid. You must not make /boot raid0, since grub does not understand raid at all but is quire happy to boot off one part of a raid1 set.
Be aware that kernel raid puts partitions, not drives into raid sets, so you can mix raid1 and raid0 on the same drives.
The process is partition, form the raid devices (/dev/mdX) format the raid devices and forget about the underlying drives. The kernel looks after that from now on.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Gooserider
Apprentice
Apprentice


Joined: 30 Dec 2005
Posts: 165
Location: Universe, Milky Way Galaxy, Solar System, Earth, North America, USA, MA, North Billerica

PostPosted: Wed Sep 20, 2006 2:19 am    Post subject: Reply with quote

Progress report - executive summary - None :!: :cry:

I have repeatedly installed Grub, using both the manual and grub-install methods, no change.

I have also (when using grub-install) experimented with most of the options listed in the grub-install help screen, particularly "--no-floppy" (even though I have a floppy), --recheck and --force-lba. None of these have made a difference either singularly or in combination. The system still gives me "Grub Hard Disk Error" when I attempt to boot from the hard drive, but boots fine if I stick in a Grub floppy, and use that to boot manually.

I also per some suggestions I've seen tried re-emerging it with empty CFLAGS (CFLAGS=" " emerge grub), again no change.

Further, since my last post, I did a minimal DOS install to /dev/hda3 as I was planning to. Grub will also boot DOS from the floppy disk if I give it the right commands.

While there still might be a problem with my BIOS revision, I'm also fairly comfortable saying I don't think there are any other hardware related issues. Among other things both the boxes in my sig use the same model hard-drive, and the Celeron box boots off the hard drive (via grub) just fine.

Much as I hate to do it, I think I'm about ready to give up and just leave a floppy in the drive all the time and boot off of that. However it's a pain to keep having to enter in the grub console command sequence. so I'm hoping that I can get a boot floppy with a grub.conf / menu.lst menu file on it. (I can live without a splash image if need be) I think I've found a guide on how to do that, so it shouldn't be to big of a problem.

Gooserider
_________________
Box 1: P2 Celeron 400, 320mb RAM, 80GB HD, Cirrus Logic 4614/22/24 sound card, ATI 3D RAGE PRO AGP 1X/2X (sound & video onboard)
Box 2: AMD Athlon 2500+ 512mb RAM, 80GB HD, Gigabyte K7 Triton (Nvidia) mobo, GeForce2 video
Back to top
View user's profile Send private message
imanassypov
Tux's lil' helper
Tux's lil' helper


Joined: 08 Dec 2005
Posts: 118
Location: Toronto, Canada

PostPosted: Wed Sep 20, 2006 2:49 am    Post subject: GRUB locks up with 'GRUB' message Reply with quote

Hello,


I had a perfectly working gentoo setup working with latest grub. After a regular kernel upgrade (semi-automatic as in make && make modules_install && make install), the system wont come up. I.e., the first thing that pops un in the bootup process is just 'GRUB' message and then system locks up.

I tried chroot'ing back in, and re-setting the mbr with grub's root & setup, - just in case the mbr got corrupted or something of that sort, - it did not help...
I checked the boot partition, no corruptions, all files are in place. The only thing that might have led to this situation was the kernel upgrade.


System is dell poweredge 1850, perc raid controller, hardware mirror.


Anyone sharing any thoughts on this would be appreciated,


thanks!

-igor
_________________
I.M.
Back to top
View user's profile Send private message
Gooserider
Apprentice
Apprentice


Joined: 30 Dec 2005
Posts: 165
Location: Universe, Milky Way Galaxy, Solar System, Earth, North America, USA, MA, North Billerica

PostPosted: Wed Sep 20, 2006 4:42 am    Post subject: Reply with quote

Just as a note, I was able to generate a full function grub floppy following (mostly) the directions from here.

A couple of minor mods,

1. Every time I tried to use /dev/fd0u1440 I got complaints about no such device, so I just used plain /dev/fd0 instead, which worked. I assume the long device name was to specify the 1.44mb format, but in my case at least it did 1.44mb by default.

2. I copied the grub.conf I had made on the hard drive to the floppy, changing the name to menu.lst at the same time.

3. I also copied the splash image file as well, and so now I still get the splash screen, just loading off the floppy instead.

4. It is worth noting that the grub.conf / menu.lst file DOES NOT CHANGE when you move it over to the floppy, It still points to the same places on the hard drive, and really doesn't seem to care where it is run from.

I still think it's an ugly, miserable solution, but at least it works. I get a boot menu that lets me start either Gentoo or :Puke: DOS.

Gooserider
_________________
Box 1: P2 Celeron 400, 320mb RAM, 80GB HD, Cirrus Logic 4614/22/24 sound card, ATI 3D RAGE PRO AGP 1X/2X (sound & video onboard)
Box 2: AMD Athlon 2500+ 512mb RAM, 80GB HD, Gigabyte K7 Triton (Nvidia) mobo, GeForce2 video
Back to top
View user's profile Send private message
Bob Leny
Apprentice
Apprentice


Joined: 18 Aug 2006
Posts: 189

PostPosted: Thu Sep 21, 2006 12:13 am    Post subject: Reply with quote

Hi! How do I get windows to load from grub?

Here is my fdisk -l:
Code:
Disk /dev/hda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1         132     1060258+   5  Extended
/dev/hda2             133        1378    10008495   83  Linux
/dev/hda3            1379        5114    30009420   83  Linux
/dev/hda4            5115       30401   203117827+  83  Linux
/dev/hda5   *           1           7       56164+  83  Linux
/dev/hda6               8         132     1004031   82  Linux swap / Solaris

Disk /dev/hdb: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1        6941    55747408+   c  W95 FAT32 (LBA)
/dev/hdb2            6941        7297     2865240    f  W95 Ext'd (LBA)
/dev/hdb5            6941        7297     2865208+   c  W95 FAT32 (LBA)


This is my grub.conf:
Code:
default 0
timeout 5
splashimage=(hd0,4)/grub/splash.xpm.gz
title=Gentoo Linux
root (hd0,4)
kernel /kernel-genkernel-x86-2.6.17-gentoo-r7 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda2
initrd /initramfs-genkernel-x86-2.6.17-gentoo-r7


title=Windows XP (Unstable at Best)
rootnoverify (hd1,0)
makeactive
chainloader +1


title=Possible Windows P5
rootnoverify (hd1,4)
makeactive
chainloader +1

This is the error I receive:
Code:
  Booting 'Windows XP (Unstable at Best)'

rootnoverify (hd1,0)
makeactive
chainloader +1

_


So, how do I get windows to load from grub?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54028
Location: 56N 3W

PostPosted: Thu Sep 21, 2006 9:08 am    Post subject: Reply with quote

Bob Leny,

Windows will hate being in the second drive. Try this in grub.conf :-
Code:
title=Windows XP (Unstable at Best)
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd0,0)
makeactive
chainloader +1

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page Previous  1, 2, 3, ... 24, 25, 26  Next
Page 2 of 26

 
Jump to:  
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