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 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
idoneus
Apprentice
Apprentice


Joined: 26 Mar 2003
Posts: 243
Location: Graz, Austria

PostPosted: Fri Jan 09, 2004 6:24 pm    Post subject: Grub Error Collection [Part 7] [POST GRUB QUESTIONS HERE!] Reply with quote

[mod edit] stuck -- pilla[/mod edit]

This thread has been converted into an official Gentoo Documentation Project document.
Thanks to Deathwing00. New problems will (usually) make it into this summary first, from where they will be ported to the official document.

This thread was split due to its length:
[Part 1] http://forums.gentoo.org/viewtopic-t-383320.html
[Part 2] http://forums.gentoo.org/viewtopic-t-383325.html
[Part 3] http://forums.gentoo.org/viewtopic-t-424768.html
[Part 4] http://forums.gentoo.org/viewtopic-t-454696.html
[Part 5] http://forums.gentoo.org/viewtopic-t-478930.html
[Part 6] http://forums.gentoo.org/viewtopic-t-498179.html

So many people seem to have problems with their grub config...
Maybe this collection can help a little bit.

This collection is becoming longer and longer. Please continue to comment on what else is still missing/missleading/wrong etc.

First of all be warned:
The examples provided are just examples. Be sure to change partition numbers and the like according to your systems specs.

Many thanks to Earthwings, penetrode, loyaltonone, pilla, airhead, nephros, yamakawa and all the others for the suggestions on this thread.

Code:
fdisk -l
will tell you which partitions you've got and what number they have. Be warned that grub starts counting at 0.
Thus /dev/hda1 translates to (hd0,0) while /dev/hdb1 will translate to (hd1,0) and /dev/hda2 to (hd0,1)


  • Grub segfaults when trying to install
    The situation described below is only relevant for grub 0.95.something. Currently (Mar. 05) grub 0.96 is available which should have fixed this problem.

    When trying to install grub you receive a
    Code:
    Segmentation fault
    Are you running grub 0.95.something? Currently (Feb. 05) there is a known bug related to this problem. Check out bug #79378 for possible solutions. Or try to emerge grub 0.94 r1 or r2. If that fails as well try emerging grub-static. (Currently only stable on amd64. Testing (~x86) on x86.)

  • Grub loading, please wait...
    When rebooting you get this message and then grub hangs? But booting of your grub floppy works fine?
    Code:
    "GRUB loading stage 1.5."
    "GRUB loading, please wait..."

    According to the_bell you should change the boot order in your bios. Don't first try to boot of your grub floppy.

    penetrode wrote that this may also be due to bad CFLAGS settings. Although the current grub ebuild filters out -fstack-protector it can't hurt to recompile grub with CFALGS="" emerge grub if nothing else helps. :-)

  • Grub error 12
    info grub wrote:
    12 : Invalid device requested This error is returned if a device string is recognizable but does not fall under the other device errors.
    Did you execute those two lines in the grub prompt?
    Code:
    grub> root (hd0,0) (Your boot partition)
    grub> setup (hd0)
    or whatever is appropriate for your installation?
    check out this thread.

  • Grub error 15
    After hitting return in the grub prompt you get something similar to this one?
    Code:
    Booting 'gentoo Linux'

    root (hd0,0)
    Filesystem type is ext2fs, partition type 0x83
    kernel (hd0,0)/boot/kernel-2.4.20 root=/dev/hda3 vga=792

    Error 15: File not found
    Press any key to continue...
    info grub wrote:
    15 : File not found
    This error is returned if the specified file name cannot be found, but everything else (like the disk/partition info) is OK.

    If it's the kernel that it's missing (bzImage, kernel...):make sure that the file it is referring to exists on your boot partition.

    To find out what the exact name of your kernel is, first boot from the live-cd or into your existing linux installation. Then mount /boot if you've got a seperate partition, or mount / if you don't. Then do the following:
    Code:
    cd /boot
    ls
    This will list all the kernels that you've got on your boot partition.

    If your kernel is missing make sure that you compiled a kernel either with genkernel or make menuconfig
    Code:
     cd /usr/src/linux/
    make menuconfig
    and you copied it to your boot partition.
    Code:
    cp /usr/src/linux/arch/[your architecture, e.g. i386]/boot/bzImage /boot/


    However if this error is caused while trying to install grub. And is similar to this one:
    Code:
    grub> root (hd0,0)
     Filesystem type is xfs, partition type 0x83

    grub> setup (hd0)
     Checking if "/boot/grub/stage1" exists... no
     Checking if "/grub/stage1" exists... no

    Error 15: File not found
    First of all make sure that you changed root(hd0,0) and setup (hd0) according to your systems specifications.

    It may also be possible that grub uses other numbers for your drives than your kernel. So although it may be hda it could be that it is not hd0. However usually this is not the case.

    Or else give this line a try provided by dirtboy
    Code:
    grub-install /dev/bootdevice


    If all else fails make sure that your partition is not somehow corrupt. Be sure that you are able to great symbolic links.

  • Grub error 17

    info grub wrote:
    17 : Cannot mount selected partition
    This error is returned if the partition requested exists, but the filesystem type cannot be recognized by GRUB.
    Be sure to check your root(x,y) settings in your grub.conf.

  • Grub error 18

    info grub wrote:
    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).
    Try an update for your BIOS and/or move your boot partition to the front (or at least into the appropriate range).

  • "GRUB GRUB GRUB GRUB..."
    According to airhead this can be caused by having your bios detect your disks automatically. Try to set your bios entry to User Type HDD.

  • Probing devicesto guess BIOS drives. This may take a long time.
    When trying to install grub, grub hangs at this line.
    One possible solution could be that you have some weird configuration of your devices, like ultra/non-ultra DMA disks on one cable.

  • When installing grub it just hangs
    If you haven't got a floppy drive, have you used the --no-floppy switch?

  • Uncompressing Linux... Ok, booting the kernel.
    One possible solution is that ACPI is not working correctly. Try to disable it in your bios or in your kernel.

  • Where is my grub.conf?
    Try those lines provided by madtomkidd:
    Code:
    mount /dev/hda1 /boot
    nano -w /boot/grub/grub.conf
    Be sure to note that this implies that you've got a separate boot partition, which is /dev/hda1. Otherwise you'll have to change the first line accordingly.

  • Could not find device for /boot/boot: Not found of not a block device
    When trying to run grub-install you receive this error message? Check that you didn't forget
    Code:

    Code Listing 6: Updating /etc/mtab
    # cp /proc/mounts /etc/mtab


  • After hitting enter at the grub menu the system reboots
    Try disabeling framebuffer in your kernel.
    If this does not help disable APM/APCI/ACP. (see this posting)

  • After hitting enter at the grub menu the screen goes black
    Turn off framebuffer (typically remove vga=XYZ from your grub.conf) and check the processor architecture in your kernel config.

  • After upgrading grub you only get a grub prompt?
    Did you upgrade to grub 0.96?
    If so make sure that you still have a symlink in /grub pointing from grub to ./

    Else make sure that your menu.lst link exists
    Code:
    cd /boot/grub
    ln -s grub.conf menu.lst

    and you executed
    Code:
    root (hd0,0)
    setup (hd0)
    in grub.
    Check out bug 39392

    You may also want to try this tip provided by ibis:
    ibis wrote:
    Try restoring the /boot/boot symlink
    Code:
    # cd /boot
    # ln -s ./ boot
    And then run grub-install again
    Code:
    # grub-install --root-directory=/boot /dev/hda


  • After upgrading your grub image is gone?
    First of all check if the file you are referring to really exists.
    If that is the case, go and check the ebuild. Maybe the patch for the splash image is commented out in the version that you are using.

  • Cannnot open root device "hdaX"
    Are you getting something like this error?
    Code:
    VFS: Cannot open root device "hda7" or 03:07
    Please append a correct "root=" boot option
    Kernel Panic: VFS: Unable to mount root fs on 03:07
    Make sure your grub.conf reads two times the same (hd0,X) entry. like
    Code:
    root(hd0,1)
    kernel (hd0,1)...

    nephros told me a few more possible reasons for this problem:
    nephros wrote:
    From my expierience, this is 80% of the time caused by an incorrectly configured kernel, specificly either:

      [+]IDE chipset (or SCSI controller) support not compiled or compiled as a module (and no initrd).
      [+]filesystem support used on root partition not compiled or compiled as a module (and no initrd).
      [+]support for MSDOS partition tables not compiled (CONFIG_PARTITION_ADVANCED -> CONFIG_MSDOS_PARTITION)(it happened!)


    On fresh installs it's often caused by not having edited /etc/fstab during the install process, and it still contains lines like "/dev/ROOT / ext2 defaults,noatime 0 0".

    Solution for both kinds is obviously rebooting the LiveCD or, in the former case, just a sane kernel and fix the configs.


    Check out this thread too.

  • can not find [insert any filesystem] on ide0(3,5)
    When trying to boot you get this error?
    Code:
    sh-2021: reiserfs_read_super: can not find reiserfs on ide0(3,5)
    XFS: bad magic number
    XFS: SB validate failed
    Kernel Panic: VFS: Unable to mount root fs on 03:05
    Make sure you've set your root partition in your grub.conf correctly.
    Compare this thread.

  • Using genkernel but forgot to note that kernel version?
    boot your system using your live cd.
    mount your boot partition.
    execute
    Code:
    cd /boot

    ls
    This will list various files that can be found on your boot partitions. One should start with kernel- while anouther one starts with initrd-. The number/text behind it is your kernel version. Now follow the handbooks instructions and exchange the sample kernel version with the one you installed.

  • You only see that Windows entry in your boot options


    Check out this thread, it has not yet come to a conclusion.


  • Unable to boot into Windows
    When trying to boot that other OS, you receive this error?
    Code:
    Booting 'Win2k'
    root (hd1,0)
    Filesystem type unknown, partition type 0x7
    chainloader +1

    Make sure your boot entry reads something similar to this one:
    Code:
    title=%$@@#$*
    root (hd0,0)
    chainloader (hd0,0)+1
    or
    Code:
    title=%$@@#$*
    rootnoverify (hd0,0)
    chainloader (hd0,0)+1

    especially the chainloader
    Compare this thread.

  • Boot Windows from your second harddrive
    If you've got problems doing so, try this tip from cyrillic: change your windows boot entry to this:
    Code:
    title Win2k
    map (hd0) (hd1)
    map (hd1) (hd0)
    chainloader (hd1,0)+1


_________________
Join the adopt an unanswered post initiative today


Last edited by idoneus on Mon Mar 21, 2005 10:03 pm; edited 29 times in total
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


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

PostPosted: Wed Sep 13, 2006 6:25 pm    Post subject: Reply with quote

Hi.
sniggit wrote:

Code:
grub-install /dev/sda1

When I try to boot winxp the screen reads :
Code:
rootnoverify (hd0,0)
chainloader +1

Starting Grub...


and jumps back to the boot selection screen.

You should have installed GRUB into /dev/sda and not /dev/sda1. You seem to have overwritten XP boot loader. You should boot with the XP install cd, choose the recovery console and run fixboot. If that isn't enough, run fixmbr as well, but you'll then need to reinstall GRUB again.
_________________
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
sniggit
Apprentice
Apprentice


Joined: 31 Aug 2003
Posts: 187
Location: n00bcity

PostPosted: Wed Sep 13, 2006 6:43 pm    Post subject: Reply with quote

Thanks!

that did the trick
_________________
Let the money shine!
Back to top
View user's profile Send private message
Bob Leny
Apprentice
Apprentice


Joined: 18 Aug 2006
Posts: 189

PostPosted: Wed Sep 13, 2006 9:20 pm    Post subject: Reply with quote

Here, lets try this again...

Bios boots from hda.

My boot partition is located at: hda,5 or hd0,4

My partition setup:
Code:
gentoo@livecd ~ $ sudo su
livecd gentoo # fdisk -l
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, 6002248896 bytes
255 heads, 63 sectors/track, 7297 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device   Boot   Start     End      Blocks    Id   System
/dev/hd1       *       1    6941    55747408+    c   W95 FAT32 (LBA)
/dev/hd2            6941    7297     2865240     f   W95 Ext'd (LBA)
/dev/hd5 


Exactly what I did
Code:
gentoo@livecd ~ $ sudo su
livecd gentoo # mount /dev/hda2 /mnt/gentoo
livecd gentoo # mount /dev/hda5 /mnt/gentoo/boot
livecd gentoo # mount -t proc proc /mnt/gentoo/proc
livecd gentoo # mount -o bind /dev /mnt/gentoo/dev
livecd gentoo # cat /proc/mounts /mnt/gentoo/etc/mtab
rootfs / rootfs rw 0 0
tmpfs / tmpfs rw 0 0
/dev/hdc /mnt/cdrom iso9660 ro 0 0
/dev/loop0 /mnt/livecd squashfs ro 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
udev /dev tempfs rw,nosuid 0 0
devpts /dev/pts devpts rw 0 0
tmpfs /mnt/livecd/lib/firmware tmpfs rw 0 0
tmpfs /mnt/livecd/usr/portage tmpfs rw 0 0
usbfs /proc/bus/usb usbfs rw 0 0
/dev/hda2 /mnt/gentoo ext3 rw,data=ordered 0 0
/dev/hda5 /mnt/gentoo/boot ext3 rw  0 0
proc /mnt/gentoo/proc proc rw 0 0
udev /mnt/gentoo/dev tmpfs rw,nosuid 0 0
cat: /mnt/gentoo/etc/mtab: No such file or directory
livecd gentoo # chroot /mnt/gentoo /bin/bash
livecd / # env -update
TERM=xterm
SHELL=/bin/bash
USER=root
SUDO_USER=gentoo
SUDO_UID=1000
PATH=/sbin:/bin/usr/sbin:/usr/bin
PWD=/
SUDO_COMMAND=/bin/su
HOME=/root
SHLVL=2
LOGNAMe=root
SUDO_GID=1000
_=/bin/env
livecd / # source /etc/profile
livecd / # grub

  GNU GRUB version 0.96 (640k lower / 3072k upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename. ]

grub> root (hd0,4)
 File system type is ext2fs, partition type 0x83
grub> setup (hd1)
 Checking if “/boot/grub/stage1” exists... yes
 Checking if “/boot/grub/stage2” exists... yes
 Checking if “/boot/grub/e2fs_stage1_5” exists... yes
 Running “install /boot/grub/e2fs_stage1_5 (hd1)”... 15 sectors are embedded. Succeeded
 Running “install /boot/grub/stage1 d (hd1) (hd1)1+15 p (hd0,4)/boot/grub/stage 2 /boot/grub/menu.lst”... succeeded
Done.
grub> exit

Error 27: Unrecognized command

grub> quit
livecd / # exit
exit
livecd gentoo # cd /
livecd / # umount /mnt/gentoo/*
umount: /mnt/gentoo/bin: not mounted
umount: /mnt/gentoo/etc: not mounted
umount: /mnt/gentoo/home: not mounted
umount: /mnt/gentoo/lib: not mounted
umount: /mnt/gentoo/lost+found: not mounted
umount: /mnt/gentoo/metadata.tar.bz2: not mounted
umount: /mnt/gentoo/opt: not mounted
umount: /mnt/gentoo/portage-2006.1.tar.bz2: not mounted
umount: /mnt/gentoo/root: not mounted
umount: /mnt/gentoo/sbin: not mounted
umount: /mnt/gentoo/sys: not mounted
umount: /mnt/gentoo/tmp: not mounted
umount: /mnt/gentoo/usr: not mounted
umount: /mnt/gentoo/var: not mounted
livecd / # umount /mnt/gentoo
livecd / # exit
exit
gentoo@livecd ~ $ # sudo su
livecd gentoo # reboot


After I take out the cd this is what my error message is:
Code:
   Booting `Gentoo Linux`

root (hd1,4)
Filesystem type is fat, partition type 0xc
kernel /kernel.genkernel.x86.2 6 17.gentoo.r7 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hdb2

Error 15: File not found


Ummm? I hope this is enough information to help me. I wrote exactly what I had on my screen. So In total, I've done this three times.

So, Please help...

Thanks!
_________________
-- www.firemelt.net --
01000010 01101111 01110111 00100000 01100010 01100101 01100110 01101111 01110010 01100101 00100000 01001101 01100101 00100001
Cheer up, the worst is yet to come...
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


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

PostPosted: Thu Sep 14, 2006 1:13 am    Post subject: Reply with quote

Bob Leny wrote:

Code:
gentoo@livecd ~ $ sudo su
livecd gentoo # mount /dev/hda2 /mnt/gentoo
livecd gentoo # mount /dev/hda5 /mnt/gentoo/boot
livecd gentoo # mount -t proc proc /mnt/gentoo/proc
livecd gentoo # mount -o bind /dev /mnt/gentoo/dev
livecd gentoo # cat /proc/mounts /mnt/gentoo/etc/mtab
livecd / # env -update
livecd / # source /etc/profile


Although they weren't relevant here, you have two errors in the above that may create problems.
You want to use cat /proc/mounts > /mnt/gentoo/etc/mtab. The purpose it to let those programs inside the chroot that look at /etc/mtab know what partitions are mounted. You also want to run the env-update command.
Bob Leny wrote:

Code:

livecd / # grub
grub> root (hd0,4)
 File system type is ext2fs, partition type 0x83
grub> setup (hd1)
grub> quit

Code:
   Booting `Gentoo Linux`
root (hd1,4)
Filesystem type is fat, partition type 0xc
kernel /kernel.genkernel.x86.2 6 17.gentoo.r7 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hdb2
Error 15: File not found


hmm, if you're telling the bios to boot from /dev/hda, then you need to do setup (hd0). Furthermore, as you can see in the GRUB messages (hd1,4) is a FAT partition. I think you're booting a previous install of GRUB in /dev/hda. Also look at your grub.conf and check that you're talking about (hd0) and not (hd1).
_________________
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
Bob Leny
Apprentice
Apprentice


Joined: 18 Aug 2006
Posts: 189

PostPosted: Thu Sep 14, 2006 10:48 am    Post subject: Reply with quote

What do you mean by, "You also want to run the env-update command. "? How do I do that? I thought I was doing that by typeing it in and pressing enter?
_________________
-- www.firemelt.net --
01000010 01101111 01110111 00100000 01100010 01100101 01100110 01101111 01110010 01100101 00100000 01001101 01100101 00100001
Cheer up, the worst is yet to come...
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Sep 14, 2006 10:57 am    Post subject: Reply with quote

Bob Leny,

You post has a typo then, you posted
Code:
livecd / # env -update
That would be command env with parameter -update, which is not the same as the command
Code:
env-update
with no space.
_________________
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: Thu Sep 14, 2006 11:19 am    Post subject: Reply with quote

Well, every time I type "env-update" I get "bash: command not found"??
_________________
-- www.firemelt.net --
01000010 01101111 01110111 00100000 01100010 01100101 01100110 01101111 01110010 01100101 00100000 01001101 01100101 00100001
Cheer up, the worst is yet to come...
Back to top
View user's profile Send private message
Deathwing00
Moderator
Moderator


Joined: 13 Jun 2003
Posts: 4078
Location: Barcelona, Spain

PostPosted: Thu Sep 14, 2006 11:32 am    Post subject: Reply with quote

Older posts split off due to the length of the thread. The older posts can be found at the following link:

http://forums.gentoo.org/viewtopic-t-498179.html
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


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

PostPosted: Thu Sep 14, 2006 11:59 am    Post subject: Reply with quote

Bob Leny wrote:
Well, every time I type "env-update" I get "bash: command not found"??

I also have gotten that error before. I haven't been able to pinpoint its cause, but mouinting /proc and some partitions before or after the chroot has solved it. This should probably been marked as a bug - when one can diagnose it.
_________________
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: 31370
Location: 56N 3W

PostPosted: Thu Sep 14, 2006 1:25 pm    Post subject: Reply with quote

Bob Leny,

bash relies on your PATH being correct (which it should be) to find env-update.
Its full name is
Code:
/usr/sbin/env-update
which is a symbolic link to
Code:
../lib/portage/bin/env-update

Try
Code:
/usr/lib/portage/bin/env-update
to give it its full path
_________________
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: Thu Sep 14, 2006 7:15 pm    Post subject: Reply with quote

I remember reading some where to do this:

Code:
livecd / # source /etc/profile


before this:
Code:
livecd / # env-update


I'll try that and see what happens. If it has something to do with the directory, then I don't think it will make a diffrence...

Nope, but worth the try...

As root, I can simply type "env-update" and it works.

but as "livecd / #", even "/usr/lib/portage/bin/env-update" that didn't work.
_________________
-- www.firemelt.net --
01000010 01101111 01110111 00100000 01100010 01100101 01100110 01101111 01110010 01100101 00100000 01001101 01100101 00100001
Cheer up, the worst is yet to come...
Back to top
View user's profile Send private message
Bob Leny
Apprentice
Apprentice


Joined: 18 Aug 2006
Posts: 189

PostPosted: Thu Sep 14, 2006 8:17 pm    Post subject: Reply with quote

Ok, this is obviuslly not working. I just did it 2wic, again. Can I accsess my grub.conf from the cd? If there is, I don't know how to do it...

I'm hopeing I can simply edit and save it with the correct info...
_________________
-- www.firemelt.net --
01000010 01101111 01110111 00100000 01100010 01100101 01100110 01101111 01110010 01100101 00100000 01001101 01100101 00100001
Cheer up, the worst is yet to come...
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Sep 14, 2006 10:56 pm    Post subject: Reply with quote

Bob Leny,

Boot the liveCD. Mount your boot partition (not root) at /mnt/grntoo, then your grub.conf is at /mnt/gentoo/grub/grub.conf
_________________
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: Fri Sep 15, 2006 1:05 am    Post subject: Reply with quote

Ahh.....:
Code:
$ sudo su
# mount /dev/hda5 /mnt/gentoo
# /mnt/gentoo/grub/grub.conf
bash: /mnt/gentoo/grub/grub.conf: Permission denied
#


That, well, you see the problem...

Did I do something wrong???
_________________
-- www.firemelt.net --
01000010 01101111 01110111 00100000 01100010 01100101 01100110 01101111 01110010 01100101 00100000 01001101 01100101 00100001
Cheer up, the worst is yet to come...
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Sep 15, 2006 9:34 am    Post subject: Reply with quote

Bob Leny,

Code:
# /mnt/gentoo/grub/grub.conf
tries to execute your grub.conf as if it were a program.
It does not have execute permissions set, so you get permission denied - even for root.

At that step you need
Code:
nano -w  /mnt/gentoo/grub/grub.conf
to open the file for editing, just as when you created 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
Bob Leny
Apprentice
Apprentice


Joined: 18 Aug 2006
Posts: 189

PostPosted: Fri Sep 15, 2006 11:13 am    Post subject: Reply with quote

Thank you. That worked. I don't think I hit the right numers to load windows though... lol
_________________
-- www.firemelt.net --
01000010 01101111 01110111 00100000 01100010 01100101 01100110 01101111 01110010 01100101 00100000 01001101 01100101 00100001
Cheer up, the worst is yet to come...
Back to top
View user's profile Send private message
alexnoot
n00b
n00b


Joined: 16 Sep 2006
Posts: 2

PostPosted: Sat Sep 16, 2006 9:28 am    Post subject: Error 22 - with 4 SATA drives Reply with quote

Hi,

I have a confusing problem (I think..). I get a Grub error 22.

Setup:

4 SATA drives configured as such:

sda (mobo port 3) storage drive
sdb (mobo port 4) storage drive
sdc (mobo port 1) windows XP drive (1 partition)
sdd (mobo port 2) Linux drive (boot partition is primary 1 - sdd1)

Anyway, I run this:
grub> root (hd3,0)
grub> setup (hd2)
successfully. I boot from the windows drive (sdc, or drive channel 1 on the mobo (DFI Lanparty NF4 Ultra-D)).

And yeah, when I reboot, I get the error 22. Whats going on?

thanks in advance
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


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

PostPosted: Sat Sep 16, 2006 5:31 pm    Post subject: Reply with quote

Hi and welcome to the forums.

With such a setup, I wouldn't be surprised if GRUB sees disks differently than your kernel was seeing them.
I would use the GRUB command-line, press 'c' on GRUB menu and would try to determine how GRUB labels the disks. Write root (hd and press TAB. You should see your disks. Then complete the line to root (hd0, and press TAB again. You should see the available partitions. Do this for each disk and you should be able to see how GRUB calls the disks.
When you reboot with the live-cd, mount your partitions and chroot, you should edit /boot/grub/device.map and have each disk entry point to the correct disk. Then update your grub.conf file and install GRUB into the MBR again.
Does it work now?
_________________
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
alexnoot
n00b
n00b


Joined: 16 Sep 2006
Posts: 2

PostPosted: Sat Sep 16, 2006 7:49 pm    Post subject: Reply with quote

jmbsvicetto wrote:
Hi and welcome to the forums.

With such a setup, I wouldn't be surprised if GRUB sees disks differently than your kernel was seeing them.
I would use the GRUB command-line, press 'c' on GRUB menu and would try to determine how GRUB labels the disks. Write root (hd and press TAB. You should see your disks. Then complete the line to root (hd0, and press TAB again. You should see the available partitions. Do this for each disk and you should be able to see how GRUB calls the disks.
When you reboot with the live-cd, mount your partitions and chroot, you should edit /boot/grub/device.map and have each disk entry point to the correct disk. Then update your grub.conf file and install GRUB into the MBR again.
Does it work now?


Hi,

Thanks so much for the response... I suspect you're right with my kernel-vs-grub drive stuff...
However I realized that there was really no reason I had my SATA drives plugged in the way they were...so I decided to just swap them around so that LInux found it like this:
sda - windows
sdb - linux
sdc, sdd - storage

This worked perfectly.

Again, thanks for the response and help...Gentoo users are too helpful ;)
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 4:04 am    Post subject: Reply with quote

Gahh!!!

Once I fixed my GRUB problems linux started to load. This is when I ran into a bunch more problems. For example, not finding anything.. It was looking for "/" in hdb2 which it was at when I installed it originally. So I reformatted my disks and reinstalled. This will fix most of my problems...

That is not my problem. I was trying to make a GRUB floppy. I finally found a guide, but it wasn't for livecd. No problem... I got to a step where I needed to copy files from "/boot". So, I mounted my root:
Code:
# mount /dev/hda2 /mnt/gentoo
#


Then I need to mount my boot:
Code:
# mount /dev/hda5 /mnt/gentoo/boot
mount: mount point /mnt/gentoo/boot does not exist
#


does not exist!?? Of course it exists, I made it when I installed it with the GTK+ installer, which hardly ever works for anyone, I might add...

So, I wanted to see what I could find in fdisk:
Code:
# fdisk -l
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    1305    10482381    83   Linux
/dev/hda2           1306    5222    31463302+   83   Linux
/dev/hda3           5223   30264   201149865    83   Linux
/dev/hda4          30265   30401     1100785+    5   Extended
/dev/hda5          30265   30271       56196    83   Linux
/dev/hda6          30272   30401     1044193+   82   Linux swap /solaris

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

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


As you can see, hda5 is not marked as boot, in fact, nothing is marked as boot.... Could that be my problem.

On start up I get this error:
Code:
GRUB Loading stage1.5


Grub loading, please wait...
Error 18
_


I know, I know...
From Top wrote:
[*]Grub loading, please wait...
When rebooting you get this message and then grub hangs? But booting of your grub floppy works fine?
Code:
"GRUB loading stage 1.5."
"GRUB loading, please wait..."

According to the_bell you should change the boot order in your bios. Don't first try to boot of your grub floppy.

penetrode wrote that this may also be due to bad CFLAGS settings. Although the current grub ebuild filters out -fstack-protector it can't hurt to recompile grub with CFALGS="" emerge grub if nothing else helps. :-)


But, if “/boot” doesn't exist, then changing the CFLAGS won't do anything... Right..?

What do you think is wrong? How do I know for sure that my /boot exists?

Thanks!

Edit:

jmbsvicetto wrote:
Bob Leny wrote:
Gahh!!!

Bob, do you have any question or did you just need to vent out? :wink:


Sorry about that, I had a diffrent question and I wanted to change the whole post so I just put "Gahh!!!" there as a place holder. :)
_________________
-- www.firemelt.net --
01000010 01101111 01110111 00100000 01100010 01100101 01100110 01101111 01110010 01100101 00100000 01001101 01100101 00100001
Cheer up, the worst is yet to come...


Last edited by Bob Leny on Sun Sep 17, 2006 3:28 pm; edited 4 times in total
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


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

PostPosted: Sun Sep 17, 2006 1:59 pm    Post subject: Reply with quote

Bob Leny wrote:
Gahh!!!

Bob, do you have any question or did you just need to vent out? :wink:
_________________
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
thebiggiantmouse
n00b
n00b


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

PostPosted: Sun Sep 17, 2006 2:23 pm    Post subject: grub cant boot second harddrive Reply with quote

here is my issue. I installed gentoo with the 2006.1 live cd everything installed with some headaches that i have managed to take care instead of one. I have gentoo installed on /dev/hda and windows installed on /dev/hdb. however grub doesnt seem to be able to boot it. does any know of a fix for this..
_________________
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
Bob Leny
Apprentice
Apprentice


Joined: 18 Aug 2006
Posts: 189

PostPosted: Sun Sep 17, 2006 3:30 pm    Post subject: Re: grub cant boot second harddrive Reply with quote

thebiggiantmouse wrote:
here is my issue. I installed gentoo with the 2006.1 live cd everything installed with some headaches that i have managed to take care instead of one. I have gentoo installed on /dev/hda and windows installed on /dev/hdb. however grub doesnt seem to be able to boot it. does any know of a fix for this..


Could you post your "fdisk -l" and what disk is set to boot on your BIOS.? Did you get any GRUB errors? Any errors?
_________________
-- www.firemelt.net --
01000010 01101111 01110111 00100000 01100010 01100101 01100110 01101111 01110010 01100101 00100000 01001101 01100101 00100001
Cheer up, the worst is yet to come...
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


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

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

[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

_________________
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
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 1, 2, 3 ... 24, 25, 26  Next
Page 1 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