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, 4, 5, 6 ... 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
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Sat Oct 21, 2006 11:39 pm    Post subject: Reply with quote

fsudler wrote:
quick note. I have to do a mount /boot in order to get to my grub conf, is that normal?

Yes. Boot is not mounted by default when you follow the example in /etc/fstab.
_________________
Bones McCracker wrote:
On the other hand, regex is popular with the ladies.
Back to top
View user's profile Send private message
fsudler
n00b
n00b


Joined: 21 Oct 2006
Posts: 11

PostPosted: Sat Oct 21, 2006 11:47 pm    Post subject: Reply with quote

yabbadabbadont wrote:
What I posted is the correct line for a genkernel created kernel. Once you have corrected your grub.conf, please post any further errors you encounter. Also provide the contents of your /boot/grub/device.map file. When you installed grub, which commands did you use? Are your drives setup in a raid configuration?


Made the changes and still have the same problem.

Here is my device.map

Code:

(fd0)   /dev/fd0
(hd0)   /dev/hdd
(hd1)   /dev/sda


Looks like maybe I need to change my hd0,0's to hd1,0's and vice versa

no raid used.

grub install was:

grep -v rootfs /proc/mounts > /etc/mtab
grub-install /dev/sda also tried this using /dev/sda1
Back to top
View user's profile Send private message
fsudler
n00b
n00b


Joined: 21 Oct 2006
Posts: 11

PostPosted: Sun Oct 22, 2006 12:02 am    Post subject: Reply with quote

changed my grub.conf to the following, to no avail... same problem.

Code:

Default 0
Timout 15
Splashimage=(hd1,0)/boot/grub/splash.xpm.gz

Title=Gentoo Linux 2.6.18-gentoo
root (hd1,0)
kernel /boot/kernel-genkernel-x86_64-2.6.18-gentoo ide=nodma root=/dev/ram0 ini$initrd /boot/initramfs-genkernel-x86_64-2.6-18-gentoo

#Only in case you want to dual-boot
Title=Windows XP
root (hd0,0)
rootnoverify (hd0,0)
makeactive
chainloader +1
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Sun Oct 22, 2006 12:18 am    Post subject: Reply with quote

I assume that you just made some typos in the grub.conf when you posted it, as it is incorrect from the example I gave.

Try installing grub into the mbr of hda as well with "grub-install /dev/hda". You were correct to change the hd0 and hd1 references to match what was in device.map.
_________________
Bones McCracker wrote:
On the other hand, regex is popular with the ladies.
Back to top
View user's profile Send private message
fsudler
n00b
n00b


Joined: 21 Oct 2006
Posts: 11

PostPosted: Sun Oct 22, 2006 12:43 am    Post subject: Reply with quote

if I install to /dev/hda will that affect win-doze?

and yes, I just noticed my grub.conf was pasted incorrectly.

Code:

Default 0
Timout 15
Splashimage=(hd1,0)/boot/grub/splash.xpm.gz

Title=Gentoo Linux 2.6.18-gentoo
root (hd1,0)

kernel /boot/kernel-genkernel-x86_64-2.6.18-gentoo ide=nodma root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3 udev
initrd /boot/initramfs-genkernel-x86_64-2.6-18-gentoo

#Only in case you want to dual-boot
Title=Windows XP
root (hd0,0)
rootnoverify (hd0,0)
makeactive
chainloader +1
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Sun Oct 22, 2006 12:50 am    Post subject: Reply with quote

Installing to /dev/hda only replaces the MBR on the windows drive. It doesn't affect windows itself. If you are actually getting to the grub command line though, then I don't think you really need to do that. (I re-read your posts since I made that suggestion) What is the exact error message that grub prints when it drops you to the grub command prompt?
_________________
Bones McCracker wrote:
On the other hand, regex is popular with the ladies.
Back to top
View user's profile Send private message
fsudler
n00b
n00b


Joined: 21 Oct 2006
Posts: 11

PostPosted: Sun Oct 22, 2006 1:01 am    Post subject: Reply with quote

No error msg what-so-ever. Just straight to the command line. Here's the odd thing. I will type in the following and it gets me running.

Code:

root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-2.6.18-gentoo ide=nodma
initrd /boot//boot/initramfs-genkernel-x86_64-2.6-18-gentoo
boot


After that, linux tries to mount root but barks for the partition so I have to type in /dev/sda3 to finish up and get to the login prompt (run level 3 at this point)
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Sun Oct 22, 2006 1:45 pm    Post subject: Reply with quote

That looks to me like grub is installed in the right place, but it can't find it's grub.conf. I'd suggest to reinstall grub to the same place, and make sure that root(x,x) points to the partition that has the grub.conf (your /boot partition).
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Mon Oct 23, 2006 4:46 pm    Post subject: Reply with quote

Merged some posts above.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
fsudler
n00b
n00b


Joined: 21 Oct 2006
Posts: 11

PostPosted: Mon Oct 23, 2006 5:39 pm    Post subject: Reply with quote

yngwin wrote:
That looks to me like grub is installed in the right place, but it can't find it's grub.conf. I'd suggest to reinstall grub to the same place, and make sure that root(x,x) points to the partition that has the grub.conf (your /boot partition).


I've reinstalled grub a couple of times. Should I unmerge and re-emerge?
Back to top
View user's profile Send private message
piotrwoj
n00b
n00b


Joined: 29 Sep 2006
Posts: 9

PostPosted: Wed Oct 25, 2006 11:26 am    Post subject: Reply with quote

Grub2 (next generation) solve a lot of problems.
http://www.gnu.org/software/grub/grub-2-download.en.html
----------------------------
Regards:
drzwi
drzwi i okna
_________________
Meble dla Dzieci
Drzwi Antywlamaniowe
Back to top
View user's profile Send private message
sceptiq
Tux's lil' helper
Tux's lil' helper


Joined: 29 Nov 2004
Posts: 103

PostPosted: Fri Oct 27, 2006 12:36 pm    Post subject: Grub fallback option on root server suppress user action Reply with quote

Salut,

Im trying to use the fallback option on my root server...
I tested it at home and i failed, I defined a fallback Kernel, made an error in the default "kernel" option
an made a restart. Booting fails and it stops witch "Press any key to continue..." ...the fallback kernel never gets used
so this option is not really usefull for a root-server...

So my question is there a way to disable the Press any key to continue..." question?

thx


UPs sry should be moved to the grub thread
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Fri Oct 27, 2006 1:04 pm    Post subject: Reply with quote

merged above post here.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Guar0x
n00b
n00b


Joined: 01 Nov 2006
Posts: 14
Location: Caracas, Venezuela

PostPosted: Thu Nov 02, 2006 6:34 am    Post subject: Blur after booting Reply with quote

Hello, im new to Linux and Gentoo.

I had a problem earlier with Error 15 of grub, it turns out that grub was using different numbers for my hard disks, i had /boot in /dev/hdb1 so i put in grub root (hd1,0) and i got the error(i noticed because it said systemfile is fat and it's supposed to be ext2), when i changed it to (hd0,0) it got fixed. As it said in the first post of the grub errors at the end of error 15 it says "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." so after a couple hours of looking through posts, took a break and then i saw the 'fat' thing. Fresh eyes heheheheh.


But then i had a blackscreen after boot, so I read that i had to remove the vga= command from the grub.conf file. Now comes the problem, grub screen appears (and it's blurry but i can read it) I select the option i have for gentoo, then it starts loading a lot of things, but every character is really really blurry. finally it stops and it's waiting for me to do something, after a while i figured out that i needed to put the password, so I do and then all i see is (text all over but blurry) and something red and something blue at the start of line, which i guess is the prompt where i can keep doing the installation steps which would be 11. Finalizing your Gentoo Installation 11.a. User Administration from the handbook (which i have followed to the best of my abilities).

Im guessing it has something to do with my video card, which is ATI X800XL 256mb PCIe.
it's an AMD 64 X2 4200 if it matters.... ASUS A8N-SLI Deluxe.

I read a post where someone had the same problem but when he replied after, all he said was "dont worry i got it fixed" and he didnt say how.

My kernel is set to everything i could think of that would help the hardware i have (i mainly noticed some options for PCIe and dual core and some other options that the wiki had for installing ati drivers, which i did but apparently it didnt really work) maybe it's something i need to emerge, or i dont know, you guys know more than me.

Thanks in advance.

Daniel
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Nov 02, 2006 2:46 pm    Post subject: Reply with quote

Guar0x,

Welcome to gentoo.

I'm glad to hear you are over your grub problems and are able to boot.

For some users, having the wrong splashimage line makes a mess of things.
Boot normally, log in as root, then type the command reset and press the return key.

That should reset your console and may be fix the blurring.
If so, check your splashimage in grub.conf. Comment the line out and see if that fixes it.

If you can't see what you are doing, boot with the liveCD, mount your root and boot partitions.
grub.conf is then at /mnt/gentoo/boot/grub/grub.conf and can be edited directy with the command
Code:
nano -w /mnt/gentoo/boot/grub/grub.conf
No need to get into the chroot.
_________________
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
Guar0x
n00b
n00b


Joined: 01 Nov 2006
Posts: 14
Location: Caracas, Venezuela

PostPosted: Thu Nov 02, 2006 6:01 pm    Post subject: Reply with quote

Code:
grub.conf

default 0
timeout 5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title=Gentoo Linux 2.6.17-r8
root (hd0,0)
kernel /boot/linux-2.6.17-r8 root=/dev/hdb4

title=Gentoo Linux 2.6.17-r8 (rescue)
root (hd0,0)
kernel /boot/linux-2.6.17-r8 root=/dev/hdb4 init=/bin/bb

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


it was previously splashimage=(hd1,0)....... So it couldnt load because grub it's taking (hd0,0) as /dev/hdb1. So now the Blur is gone.

/dev/hda1 is windows
/dev/hdb1 is boot
/dev/hdb2 is swap
/dev/hdb3 is a fat32 for some files i have
/dev/hdb4 is the rest of disk for root

i get this now
Code:
* Mounting devtps at /dev/pts ...
* Checking root filesystem ...
fsck.ext3: No such file or directory while trying to open /dev/ROOT
/dev/ROOT:
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>

* Filesystem couldn't be fixed :(
Give root password for maintenance
(or type Control-D to continue):


As grub is taking different numbers do i still keep the root=/dev/hdb4 command line in the grub? or do i need to change it, being hdb4 (hd0,3) in the grub and maybe that's why it cant check the root filesystem?

P.S. I have read some things about checking the system.map or some other file .map in the grub folder to see what grub uses as numbers for the drives, can anyone give me the code to execute that or whatever i need to do to check the .map? thank you (because i still have windows in the grub as (hd0,0) and it doesnt load, not even when i change to (hd1,0) so i want to know what number it is for the drive that has windows before i start throwing numbers at the grub).

Thanks for your response Ned
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Nov 02, 2006 6:34 pm    Post subject: Reply with quote

Guar0x,

Grub has done its stuff and loaded your kernel.
The kernel has mounted your root filesystem, so your root= statement must be right.

This
Code:
fsck.ext3: No such file or directory while trying to open /dev/ROOT
/dev/ROOT
says that you omitted the install step that tells you to edit /etc/fstab.

The words ROOT, BOOT and SWAP need yo be changed for your partition references.
/dev/ROOT does not exist but /dev/hdb4 does. Also check the filesystem types are correct.

To fix it boot to that error message and give your root password.
Code:
mount -o remount,rw /
to make root writeable.
Lastly
Code:
nano -w /etc/fstab
and fix it. Reboot to test.
_________________
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
Guar0x
n00b
n00b


Joined: 01 Nov 2006
Posts: 14
Location: Caracas, Venezuela

PostPosted: Thu Nov 02, 2006 7:00 pm    Post subject: Reply with quote

That was it, my fstab was wrong, when i edited it i didnt see there were lines with /dev/ROOT /dev/BOOT and such, so i just commented them out with # and it boots ok, now im gonna keep working on the handbook and finish the installation.

Thank you!!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Nov 02, 2006 7:08 pm    Post subject: Reply with quote

Guar0x,

You shouldn't do that. You need to change the words in capital letters to your actual partition names
_________________
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
Guar0x
n00b
n00b


Joined: 01 Nov 2006
Posts: 14
Location: Caracas, Venezuela

PostPosted: Thu Nov 02, 2006 7:23 pm    Post subject: Reply with quote

i had already done that. my fstab was like this

Code:
fstab
/dev/ROOT      ......................
/dev/BOOT..........................

# A bunch of coments here........................
#
#
#

/dev/hdb1   /boot      ext2   defaults,noatime   1 2
/dev/hdb2   none      swap   sw         0 0
/dev/hdb4   /      ext3   noatime         0 1

none      /proc      proc   defaults      0 0
none      /dev/shm   tmpfs   nodev,nosuid,noexec   0 0

/dev/cdrom   /mnt/cdrom   auto   noauto,user      0 0


so when i edited it (the first time) i didnt notice the /dev/ROOT part so i just commented it out (this time) like this


Code:
fstab
#/dev/ROOT      ......................
#/dev/BOOT..........................

# A bunch of coments here........................
#
#
#

/dev/hdb1   /boot      ext2   defaults,noatime   1 2
/dev/hdb2   none      swap   sw         0 0
/dev/hdb4   /      ext3   noatime         0 1

none      /proc      proc   defaults      0 0
none      /dev/shm   tmpfs   nodev,nosuid,noexec   0 0

/dev/cdrom   /mnt/cdrom   auto   noauto,user      0 0
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Nov 02, 2006 7:53 pm    Post subject: Reply with quote

Guar0x,

Ah ok - thats another way to get it right.
_________________
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
CZAirwolfOC
n00b
n00b


Joined: 08 Nov 2006
Posts: 32

PostPosted: Wed Nov 08, 2006 9:53 am    Post subject: Reply with quote

I have problem with grub. Using 965 chipset (Gigabyte DS4) with JMicron PATA. Harddisk and CD are PATA.
With standard AMD64 miniISO and "all-generic-ide irqpoll" is HDD identified as hdj...

HDD>
part1-5 Win partitions (4 is extended for 5,6,7)
hdj6 ext3
hdj7 swap

Grub errors for root(hd0,0) - no block device or hd(10,0) syntax error
Lilo dont want work with this kernel.

Using miniISO with JMicron support (taken from Unsuported HW)>

HDD identified as /dev/sda>
Grub error> /dev/sda6 is unknown partition 0x7...
Lilo> able to write to MBR hurrraaah...but cant find root after boot with kernel from miniISO - i found JMicron disabled in kernel messages...

Need help setting boot...i will test evening my other compiled kernel with all needed drivers in, but still need boot help...
Back to top
View user's profile Send private message
Crooksey
Apprentice
Apprentice


Joined: 26 Apr 2006
Posts: 239
Location: Vatican City

PostPosted: Wed Nov 08, 2006 11:50 am    Post subject: Reply with quote

Post how you set up your hardrives in detail and also the copy of grub.conf or lilo.conf, so we can see if things are right there.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Nov 08, 2006 8:29 pm    Post subject: Reply with quote

CZAirwolfOC,

Welcome to Gentoo.

If you have a single PATA drive, it will be root (hd0... to grub.
You need to tell grub root (hd0,5) where it asks for the partition for its files. As you have no seperate /boot, /boot is a directory on your /dev/hdj6.

Since your drive IS PATA, not SATA, it will appear to the kernel as /dev/hdX something so your root filesystem is at /dev/hdX6
I guess X will be either a or j
_________________
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
CZAirwolfOC
n00b
n00b


Joined: 08 Nov 2006
Posts: 32

PostPosted: Wed Nov 08, 2006 9:46 pm    Post subject: Reply with quote

NeddySeagoon wrote:
CZAirwolfOC,

Welcome to Gentoo.

If you have a single PATA drive, it will be root (hd0... to grub.
You need to tell grub root (hd0,5) where it asks for the partition for its files. As you have no seperate /boot, /boot is a directory on your /dev/hdj6.

Since your drive IS PATA, not SATA, it will appear to the kernel as /dev/hdX something so your root filesystem is at /dev/hdX6
I guess X will be either a or j


Now solved this with LILO...I love it still...
This is my 3rd install - i was changing HW, bye bye my XGL on AthlonXP...

Now still Grub problem>
own compiled kernel with JMicron support and lilo with params "all-generic-ide irqpoll">

fdisk -l>
/dev/hdj6 HPFS/NTFS
/dev/hdj7 Linux Swap

cat /etc/fstab>
/dev/hdj6 / ext3 noatime 0 1
/dev/hdj7 none swap sw 0 0
/dev/hdi /mnt/cdrom iso9660 noauto,ro 0 0

grub>root (hd0,5)
Error21: Selected disk does not exist
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, 4, 5, 6 ... 24, 25, 26  Next
Page 5 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