| View previous topic :: View next topic |
| Author |
Message |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 27780 Location: 56N 3W
|
Posted: Sun Jul 10, 2005 8:54 am Post subject: |
|
|
vorticies82,
Please post your grub.conf. Its much easier to spot an error that to try to second guess what you might have done.
I will guess though
You only changed the title=. The kernel line points to the old kernel. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
| Back to top |
|
 |
vorticies82 n00b

Joined: 02 Oct 2004 Posts: 36
|
Posted: Sun Jul 10, 2005 5:19 pm Post subject: |
|
|
| Ok, I managed to fix it through trial and error. For some reason, it is looking for my grub directory in /boot/boot/grub instead of /boot/grub. I put my new config file there and now it works fine. How would I go about changing grub to look in /boot/grub instead of /boot/boot/grub? |
|
| Back to top |
|
 |
jmbsvicetto Moderator


Joined: 27 Apr 2005 Posts: 4725 Location: Angra do Heroísmo (PT)
|
Posted: Sun Jul 10, 2005 5:31 pm Post subject: |
|
|
Hi.
You should have your kernel line in /boot/grub/grub.conf as /boot/kernel* and you seem to have removed the symlink /boot/boot to /boot. You just need to remove the /boot/boot dir and make a symlink in /boot to itself as
| Code: | # rm -R /boot/boot
# cd /boot
# ln -s boot . |
If you create anything inside /boot/boot/grub you should first copy it to /boot/grub. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
| Back to top |
|
 |
cylamanae Tux's lil' helper

Joined: 26 Mar 2004 Posts: 126
|
Posted: Sun Jul 10, 2005 7:03 pm Post subject: |
|
|
Hmm I have a really weird one for all of you... When I start up I have to put the chainloader +1 to boot into windows. For some reason the chainloader +1 does not show up in grub even though i have it saved.
Here is my grub.conf
default 0
timeout 10
splashimage=(hd0,1)/grub/splash.xpm.gz
title=Gentoo
root(hd0,1)
kernel /bzimage root=/dev/hda4
title=Gentoo2.6.12
root(hd0,1)
kernel /kernel-2.6.12 root=/dev/hda4
title=Windows
root (hd0,0)
makeactive
chainloder +1
The chainloader +1 is listed and I cant boot into windows unless I edit the line in grub.
Thanks in advance |
|
| Back to top |
|
 |
Deathwing00 Moderator


Joined: 13 Jun 2003 Posts: 4050 Location: Barcelona, Spain
|
Posted: Sun Jul 10, 2005 7:13 pm Post subject: |
|
|
| cylamanae wrote: |
title=Windows
root (hd0,0)
makeactive
chainloder +1
|
How about changing root to rootnoverify? |
|
| Back to top |
|
 |
cylamanae Tux's lil' helper

Joined: 26 Mar 2004 Posts: 126
|
Posted: Sun Jul 10, 2005 7:27 pm Post subject: |
|
|
Nope no such luck... It does does not work. This might help any other changes to the grub.conf file are saved and show up in grub but when you try to boot windows the chainloader +1 is not added to the windows option.
Thanks so far. |
|
| Back to top |
|
 |
Area51mafia n00b

Joined: 11 Jun 2005 Posts: 19
|
Posted: Sun Jul 10, 2005 9:12 pm Post subject: Error 17 on Gentoo with GRUB Boot |
|
|
Im installing Gentoo on a friends computer and everything seemed to go fine until we rebooted and Grub started to load. It gives an Error17 which i found out means the partition exists but it cant mount it. The grub.conf file is:
| Code: |
default 0
timeout 30
splashimage=(hd1,2)/grub/splash.xpm.gz
title=Gentoo Linux
root (hd1,2)
kernel /kernel-2.6.12-gentoo-r4 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hdb1 udev
initrd /initrd-2.6.12-gentoo-r4
title=Windows XP
root (hd0,1)
makeactive
chainloader +1 |
The root parititon is /dev/hdb1 and the boot is /dev/hdb3. Windows is installed on /dev/hda2. Grub was installed using grub-install /dev/hda, was that right? Should it have been grub-install /dev/hdb? If its wrong how can we uninstall grub from /dev/hda and get it on /dev/hdb?
Edit...well we fdisked the mbr and reinstalled grub on /dev/hdb, but we get the same error.
Last edited by Area51mafia on Sun Jul 10, 2005 10:49 pm; edited 1 time in total |
|
| Back to top |
|
 |
Deathwing00 Moderator


Joined: 13 Jun 2003 Posts: 4050 Location: Barcelona, Spain
|
Posted: Sun Jul 10, 2005 9:28 pm Post subject: |
|
|
Merged
"Error 17 on Gentoo with GRUB Boot"
to
"grub error collection [POST GRUB QUESTIONS HERE!]" |
|
| Back to top |
|
 |
syg00 l33t

Joined: 23 Aug 2004 Posts: 907 Location: Brisbane, AUS
|
Posted: Mon Jul 11, 2005 2:44 am Post subject: |
|
|
| cylamanae wrote: | ...
root (hd0,0)
makeactive
chainloder +1
The chainloader +1 is listed and I cant boot into windows unless I edit the line in grub. | Does it make any difference if you spell chainloader correctly ???. |
|
| Back to top |
|
 |
Guilty_Spark343 n00b


Joined: 10 Jul 2005 Posts: 25 Location: Costa Rica
|
Posted: Mon Jul 11, 2005 4:12 am Post subject: |
|
|
| I JUST INSTALLED A GENTOO LINUX SYSTEM ON MY PC, AND I THOUGHT I HAD DONE ALL RIGTH, BUT AS SOON AS I REBOOT, THE ONLY THING I GET IS THE GRUB PROMPT, AND I CANT BOOT IT!!!!! IT SAYS, ERROR 8: LOAD KERNEL FIRST OR SOMETHING LIKE THAT, SO, HOW DO I LOAD THE KERNEL OR MAKE GRUB TO WORK, THIS IS THE ONLY PROBLEM I GOT, I THINK THAT IF I CAN SOLVE THIS, ILL GET A WORKING GENTOO SYSTEM, THANKS TO ALL THE PEOPLE THAT COULD HELP ME!!! |
|
| Back to top |
|
 |
Xithix Apprentice


Joined: 31 Dec 2004 Posts: 228
|
Posted: Mon Jul 11, 2005 1:21 pm Post subject: |
|
|
Nevermind my question on page 24 - Solved by using LILO instead. _________________ :wq |
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 27780 Location: 56N 3W
|
Posted: Mon Jul 11, 2005 5:26 pm Post subject: |
|
|
Guilty_Spark343,
You may have a broken keyboard too - your post was in all capital letters. Thats condsidered to be shouting. Please don't do it.
Anyway, on to your problem. info grub says
| Code: | 8 : Kernel must be loaded before booting
This error is returned if GRUB is told to execute the boot sequence
without having a kernel to start. |
You probably have an error in your grub.conf file. Check it over. Post it here if you want us too look it over with you.
Please don't shout again. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
| Back to top |
|
 |
Guilty_Spark343 n00b


Joined: 10 Jul 2005 Posts: 25 Location: Costa Rica
|
Posted: Mon Jul 11, 2005 5:52 pm Post subject: |
|
|
| NeddySeagoon wrote: | Guilty_Spark343,
You may have a broken keyboard too - your post was in all capital letters. Thats condsidered to be shouting. Please don't do it.
Anyway, on to your problem. info grub says
| Code: | 8 : Kernel must be loaded before booting
This error is returned if GRUB is told to execute the boot sequence
without having a kernel to start. |
You probably have an error in your grub.conf file. Check it over. Post it here if you want us too look it over with you.
Please don't shout again. |
Sorry about the thing of the capital letters, i wont do it again.
Right now im at work, but ill post the grub.conf file here as soon as i get to my home, thats at night, but ill do.
Isnt there a way to load the kernel from the grub prompt, or im just saying stupid things??
What do i have to do in order to look to my grub.conf file using the cd?, cause its obvious i cant see it if im in the grub prompt. |
|
| Back to top |
|
 |
kepple n00b

Joined: 17 Jun 2005 Posts: 9 Location: Iowa
|
Posted: Mon Jul 11, 2005 10:09 pm Post subject: Yet another dual boot question |
|
|
I recently moved from fedora to gentoo and I'm having difficulties booting my WinXP partition. I was able to dual boot just fine under fedora, but foolishly didn't save my grub configuration. Windows is installed on the second partition of hda and the first partition is the Dell utility partition. Gentoo is on hdb.
Here's all the relevant info I could think of:
| Code: |
root@kepple ~ # tail -n 5 /boot/grub/grub.conf
title=Windows XP
rootnoverify (hd0,1)
chainloader +1
makeactive
root@kepple ~ # fdisk -l /dev/hda
Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 4 32098+ 16 Hidden FAT16
/dev/hda2 * 5 4862 39021885 7 HPFS/NTFS
root@kepple ~ # fdisk -l /dev/hdb
Disk /dev/hdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 1 5 40131 83 Linux
/dev/hdb2 6 130 1004062+ 82 Linux swap / Solaris
/dev/hdb3 131 19457 155244127+ 83 Linux
|
|
|
| Back to top |
|
 |
jmbsvicetto Moderator


Joined: 27 Apr 2005 Posts: 4725 Location: Angra do Heroísmo (PT)
|
Posted: Tue Jul 12, 2005 1:44 am Post subject: |
|
|
Hi.
I would take the boot flag from /dev/hda1 and although it shouldn't be relevant, I would swap the chainloader +1 line with the makeactive in /boot/grub/grub.conf.
You didn't misteakingly tried to install GRUB in (h0,1), did you? If so, you cleared your Windows boot loader. In that case, you'll have to start with the XP installation cd, choose the recovery console and run fixboot. Hopefully, that'll do the trick. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
| Back to top |
|
 |
kepple n00b

Joined: 17 Jun 2005 Posts: 9 Location: Iowa
|
Posted: Tue Jul 12, 2005 3:31 am Post subject: |
|
|
Thanks for the suggestions Jorge. I tried both, but to no avail. When I try to boot windows grub just prints out the entry and hangs. I really don't think I accidentally installed grub on hda, but I'll try to dig up my windows disk and see if that fixes it.
Thanks for you help, and if you have any other ideas, let me know. |
|
| Back to top |
|
 |
Guilty_Spark343 n00b


Joined: 10 Jul 2005 Posts: 25 Location: Costa Rica
|
Posted: Tue Jul 12, 2005 3:35 am Post subject: |
|
|
| NeddySeagoon wrote: | Guilty_Spark343,
You may have a broken keyboard too - your post was in all capital letters. Thats condsidered to be shouting. Please don't do it.
Anyway, on to your problem. info grub says
| Code: | 8 : Kernel must be loaded before booting
This error is returned if GRUB is told to execute the boot sequence
without having a kernel to start. |
You probably have an error in your grub.conf file. Check it over. Post it here if you want us too look it over with you.
Please don't shout again. |
NeddySeagoon
I loaded the kernel manually from the grub prompt, but after the system starts to boot, it comes up with the following:(:
VFS: Cannot open root device "sda3" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel Panic -not syncing:VFS: Unable to mount root fs on unknown block(0,0)
How do I solve this ???
My partition is as follows:
/dev/sda1 = boot
/dev/sda2 = swap
/dev/sda3 = root
Thanks for the help |
|
| Back to top |
|
 |
romalong Guru


Joined: 08 Jun 2005 Posts: 488 Location: Kiev
|
Posted: Tue Jul 12, 2005 8:54 am Post subject: Re: configure GRUB |
|
|
| romalong wrote: | hi!
i got error 15 booting gentoo.
here're my fstab:
| Code: |
/dev/sda1 /boot ext2 defaults,noatime 1 2
/dev/sda2 none swap sw 0 0
/dev/sda3 / ext3 noatime 0 1
none /proc proc defaults 0 0
none /dev/shm tmpfs nodev,nosuid,noexec 0 0
/dev/cdroms/cdrom0 /mnt/cdrom auto noauto,user 0 0
|
and grub.conf:
| Code: |
default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux 2.6.11-r3
root (hd0,0)
kernel /kernel-2.6.11-gentoo-r3 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3
initrd /initrd-2.6.11-gentoo-r3
title=W2k
root (hd1,0)
makeactive
chainloader +1
|
also what should i enter for windoz in fstab?
thanx! |
nobody wants to help me? |
|
| Back to top |
|
 |
jmbsvicetto Moderator


Joined: 27 Apr 2005 Posts: 4725 Location: Angra do Heroísmo (PT)
|
Posted: Tue Jul 12, 2005 12:30 pm Post subject: |
|
|
@romalong,
can you post the remaining output from GRUB? Did you look at the first page of this thread and tried what is suggested for the error 15?
About the entry in /etc/fstab for mounting windows partitions, if you have NTFS, you can use something like
| Code: | | /dev/sda3 /home/win ntfs noauto,user,uid=atlantis,gid=users 0 0 |
This is what I've been using for years. I've recently been told about the use of umask and after reading the man page for mount, I would suggest that you use instead
| Code: | | /dev/sda3 /home/win ntfs noauto,user,umask=000 0 0 |
if you want more than one user to have access to the disk. If you want any user to be able to unmount the disk, even if he/she didn't mount it, you should replace user with users. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
| Back to top |
|
 |
romalong Guru


Joined: 08 Jun 2005 Posts: 488 Location: Kiev
|
Posted: Wed Jul 13, 2005 9:28 am Post subject: |
|
|
| jmbsvicetto wrote: | @romalong,
can you post the remaining output from GRUB? Did you look at the first page of this thread and tried what is suggested for the error 15?
About the entry in /etc/fstab for mounting windows partitions, if you have NTFS, you can use something like
| Code: | | /dev/sda3 /home/win ntfs noauto,user,uid=atlantis,gid=users 0 0 |
This is what I've been using for years. I've recently been told about the use of umask and after reading the man page for mount, I would suggest that you use instead
| Code: | | /dev/sda3 /home/win ntfs noauto,user,umask=000 0 0 |
if you want more than one user to have access to the disk. If you want any user to be able to unmount the disk, even if he/she didn't mount it, you should replace user with users. |
1. thank you very much!
2. what do you mean saying 'remaining output from GRUB'?
3. why do i need to mount windoz partitions?
4. what should i enter in grub.conf for windows? |
|
| Back to top |
|
 |
jmbsvicetto Moderator


Joined: 27 Apr 2005 Posts: 4725 Location: Angra do Heroísmo (PT)
|
Posted: Wed Jul 13, 2005 12:37 pm Post subject: |
|
|
| romalong wrote: |
1. thank you very much!
2. what do you mean saying 'remaining output from GRUB'?
3. why do i need to mount windoz partitions?
4. what should i enter in grub.conf for windows? |
1. You're welcome.
2. Doesn't GRUB say anything else besides what you've posted? I would assume that you get some extra info. We need that to help you.
3. Don't you want to mount them? That's what I undestood from
| romalong wrote: | | also what should i enter for windoz in fstab? |
your comment.
4. Ah. I was confused by your mixing of /etc/fstab and /boot/grub/grub.conf. What you want is
| Code: | title Windows XP
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
makeactive
chainloader +1 |
Assuming that your windows boot partition is in /dev/sdb1 or /dev/hda1. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
| Back to top |
|
 |
romalong Guru


Joined: 08 Jun 2005 Posts: 488 Location: Kiev
|
Posted: Wed Jul 13, 2005 2:11 pm Post subject: |
|
|
| jmbsvicetto wrote: |
2. Doesn't GRUB say anything else besides what you've posted? I would assume that you get some extra info. We need that to help you.
|
that's all i got for now.
| jmbsvicetto wrote: |
3. Don't you want to mount them? That's what I undestood from
| romalong wrote: | | also what should i enter for windoz in fstab? |
your comment.
|
al my faults, i was talking about grub.conf, sorry!
| jmbsvicetto wrote: |
4. Ah. I was confused by your mixing of /etc/fstab and /boot/grub/grub.conf. What you want is
| Code: | title Windows XP
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
makeactive
chainloader +1 |
Assuming that your windows boot partition is in /dev/sdb1 or /dev/hda1. |
do i actually need to use these map(s)?
bthw, i couldn't boot windows as well
my sdb drive has got three partitions, the first one has got MBR for windoz and FreeBSD (not present now), could this interrupt GRUB to boot windows?
the sda drive is only for linux and the system is going to use its MBR for both OSes |
|
| Back to top |
|
 |
jmbsvicetto Moderator


Joined: 27 Apr 2005 Posts: 4725 Location: Angra do Heroísmo (PT)
|
Posted: Wed Jul 13, 2005 3:36 pm Post subject: |
|
|
Ok.
In that case post the output of
or if you have parted emerged
| Code: | # parted -s /dev/sda print
# parted -s /dev/sdb print |
_________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
| Back to top |
|
 |
kLUMSY bOT n00b


Joined: 23 Jul 2004 Posts: 69
|
Posted: Thu Jul 14, 2005 12:59 pm Post subject: |
|
|
| Hefelumpman wrote: | n/m fixed - don't know why, but it's reading my drives reversed...
o_O
i.e. - hda = hd1, hdb = hd0 |
bump. thanks for your help. this worked for me. |
|
| Back to top |
|
 |
romalong Guru


Joined: 08 Jun 2005 Posts: 488 Location: Kiev
|
Posted: Fri Jul 15, 2005 12:55 pm Post subject: |
|
|
| jmbsvicetto wrote: | Ok.
In that case post the output of
or if you have parted emerged
| Code: | # parted -s /dev/sda print
# parted -s /dev/sdb print |
|
| Code: |
# parted -s /dev/sda print
disklabel type: msdos
minor start end type filesystem flags
1 0.031 39.221 primary ext2 boot
2 39.221 533.408 primary Linux-swap
3 533.408 76347.971 primary ext3
# parted -s /dev/sdb print
disklabel type: msdos
minor start end type filesystem flags
1 0.031 32004.492 primary ntfs boot
2 32004.492 82003.667 extended lba
5 32004.523 82003.667 logical ntfs
3 82003.667 152625.344 primary ext3
|
|
|
| Back to top |
|
 |
|