View previous topic :: View next topic |
Author |
Message |
Apax Tux's lil' helper
Joined: 27 Jun 2003 Posts: 137
|
Posted: Fri Jun 27, 2003 10:57 am Post subject: Gentoo/XP dual boot - HELP |
|
|
Hello all,
I decided to take the linux plunge Im a windows / dos user and linux is all new to me. I decided to try Gentoo vs Mandrake/Redhat and jump in feet first. Ive read that Mandrake/Redhat may be more user friendly than Gentoo but I will probably learn more by using Gentoo. Anyways...I attempted to install Gentoo and need some help please. I want a dual boot with xp for games mostly...
Heres my partition setup
hda1 - 100mg 83 Linux Bootable filesystem ext3
hda2 - 500mg 82 Linux Swap
hda3 - 9 gig 83 Linux filesystem reiserfs
hda4 - 10 gig Fat 32 (windowx xp on this) Tagged bootable
Ok..so I set up my partitions and then loaded xp to hda4 with no problems...booted up properly. Then I installed Gentoo as the directions stated. Installed Grub as the bootloader and thats where im stuck. From the Grub menu I can boot into windows fine. But when i select gentoo the system hangs....gives me this message.
"Error 1 filename must be either a absolute pathname or blocklist"
Heres my conf file entries...
default 0
timeout 30
spalshimage=(hd0,0) /boot/grub/splash.xpm.gz
title=Gentoo
root (hd0,0)
kernel (hd0,0) /boot/bzImage root=/dev/hda3
title=Windoz
root=(hd0,3)
chainloader (hd0,3)+1
Any help would be great!! Also if anyone knows a good site that has linux syntax and explanations on how to navigate around your hard drive in linux please post the link. Keep in mind a complete linux noob but am a fast learner!!
Thanks!! |
|
Back to top |
|
|
Bangz Tux's lil' helper
Joined: 23 Jan 2003 Posts: 148 Location: Brisbane/Austrralia
|
Posted: Fri Jun 27, 2003 11:04 am Post subject: |
|
|
Your problem is:
title=Gentoo
root (hd0,0)
kernel (hd0,0) /boot/bzImage root=/dev/hda3
Make root():
root (hd0,2) |
|
Back to top |
|
|
slartibartfasz Veteran
Joined: 29 Oct 2002 Posts: 1462 Location: Vienna, Austria
|
Posted: Fri Jun 27, 2003 11:05 am Post subject: |
|
|
Quote: |
kernel (hd0,0) /boot/bzImage root=/dev/hda3
|
grub cant seem to find bzImage - make sure that it is there. notice that /boot doesnt get mounted by default on all systems. u may have to 'mount /dev/hda1 /boot' if /boot is a partition.
perhaps u should also read the kernel faq in the faq section of this board. and btw - there is a huge thread about dual booting winXP and gentoo somewhere on the board...
EDIT: Bangz is right root is not set to the correct partition... _________________ To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be. |
|
Back to top |
|
|
taylorad n00b
Joined: 20 Jun 2003 Posts: 28
|
Posted: Fri Jun 27, 2003 11:08 am Post subject: |
|
|
Well, off hand I'd say it has something to do with /boot/grub/grub.conf. Do you have your first partition mounted to /boot ? If your answer to that last question is yes, then change:
Code: | title=Gentoo
root (hd0,0)
kernel (hd0,0)/boot/bzImage root=/dev/hda3 |
to the following:
Code: | title=Gentoo
root (hd0,0)
kernel (hd0,0)/bzImage root=/dev/hda3 |
However, you do not have /dev/hda1 mapped to /boot, then just do what Bangz said. |
|
Back to top |
|
|
stustill Guru
Joined: 25 Feb 2003 Posts: 333 Location: Aberdeen, Scotland
|
Posted: Fri Jun 27, 2003 11:21 am Post subject: |
|
|
Another possibility is that the space
Code: |
kernel (hd0,0) /boot/bzImage root=/dev/hda3
^
|
Might be stopping it from working. However, maybe this is just a mistake you made in copying the text to the forum, but I thought it was worth highlighting just in case
Stu |
|
Back to top |
|
|
Apax Tux's lil' helper
Joined: 27 Jun 2003 Posts: 137
|
Posted: Fri Jun 27, 2003 12:23 pm Post subject: |
|
|
Thanks for good info..will try some of your suggestions...will post results |
|
Back to top |
|
|
Apax Tux's lil' helper
Joined: 27 Jun 2003 Posts: 137
|
Posted: Fri Jun 27, 2003 2:39 pm Post subject: |
|
|
I put the mount /dev/hda1/boot in the grub.conf and it doesnt recongnize the command.
is that the right syntax? |
|
Back to top |
|
|
Vanquirius Retired Dev
Joined: 14 Jun 2002 Posts: 1297 Location: Ethereal plains
|
Posted: Fri Jun 27, 2003 2:56 pm Post subject: |
|
|
Use (hd0,0)/boot
If you use /dev/hda1 Grub doesn't know what the **** you're talking about. _________________ Hello. |
|
Back to top |
|
|
Apax Tux's lil' helper
Joined: 27 Jun 2003 Posts: 137
|
Posted: Sat Jun 28, 2003 12:25 am Post subject: |
|
|
UPDATE
hda1 - 100mg 83 Linux Bootable filesystem ext3
hda2 - 500mg 82 Linux Swap
hda3 - 9 gig 83 Linux filesystem reiserfs
hda4 - 10 gig Fat 32 (windowx xp on this) Tagged bootable
I reinstalled Gentoo...just in case I messed up somewhere. I still get this message when i try and boot into Gentoo.
"Error 1 filename must be either a absolute pathname or blocklist"
Heres my conf file entries...
default 0
timeout 30
spalshimage=(hd0,0) /boot/grub/splash.xpm.gz
title=Gentoo
root (hd0,2)
kernel (hd0,0) /boot/bzImage root=/dev/hda3
title=Windoz
root=(hd0,3)
chainloader (hd0,3)+1
It seems as though bzImage is not being located for some reason..can some post the method of finding out if bzImage on my hard drive in the correct spot?
Thanks so much |
|
Back to top |
|
|
wheerdam n00b
Joined: 18 May 2003 Posts: 36 Location: OK, U.S.
|
Posted: Sat Jun 28, 2003 12:35 am Post subject: |
|
|
stustill wrote: | Another possibility is that the space
Code: |
kernel (hd0,0) /boot/bzImage root=/dev/hda3
^
|
Might be stopping it from working. However, maybe this is just a mistake you made in copying the text to the forum, but I thought it was worth highlighting just in case
Stu |
Have you make sure of this? _________________ I'm weird, damn. |
|
Back to top |
|
|
Apax Tux's lil' helper
Joined: 27 Jun 2003 Posts: 137
|
Posted: Sat Jun 28, 2003 1:00 am Post subject: |
|
|
yes..no spaces..sorry I wasnt clear on that |
|
Back to top |
|
|
nbg Tux's lil' helper
Joined: 04 Oct 2002 Posts: 77
|
Posted: Sat Jun 28, 2003 4:28 am Post subject: |
|
|
You're gonna love this, but root should be (hd0,0)
|
|
Back to top |
|
|
dol-sen Retired Dev
Joined: 30 Jun 2002 Posts: 2805 Location: Richmond, BC, Canada
|
Posted: Sat Jun 28, 2003 6:11 am Post subject: |
|
|
Sometimes the link /boot/boot which is suppose to point back to the first /boot gets screwed up, then grub can't find the files.
as taylorad stated your grub.conf should look like
Quote: | title=Gentoo
root (hd0,0)
kernel (hd0,0)/bzImage root=/dev/hda3
|
to avoid the possible problem.
Explanation
If you mount your /boot partition /dev/hda1 and cd to it, looking at it you should see another /boot folder [/boot/boot in the filesystem] you can check that it points to the first /boot by using the command
Code: | big_squirt boot # ls -l
total 2992
lrwxrwxrwx 1 root root 5 Jun 27 23:47 boot -> /boot
drwxr-xr-x 2 root root 1024 Jun 10 22:23 grub
-rw-r--r-- 1 root root 41895 Jun 10 22:18 initrd-1024x768
-rw-r--r-- 1 root root 101494 Jun 10 22:17 initrd-1280x1024
-rw-r--r-- 1 root root 1419857 Apr 1 23:45 kernel-2.4.21_pre6
-rw-r--r-- 1 root root 1468557 Apr 29 18:22 kernel-2.4.21_pre7.gss
drwx------ 2 root root 12288 Feb 1 09:33 lost+found
big_squirt boot #
|
You can see in the second line of output boot -> /boot , it is a folder (/boot/boot) that points (links) to the /boot directory & partition. If it does not then the grub command Code: | kernel (hd0,0)/boot/bzImage root=/dev/hda3 | will fail to find the file bzImage. You then have 2 options
1) fix the link
Code: | big_squirt boot # rm /boot/boot
big_squirt boot # ls
grub initrd-1024x768 initrd-1280x1024 kernel-2.4.21_pre6 kernel-2.4.21_pre7.gss lost+found
big_squirt boot # ln -s /boot /boot/boot
|
OR
2) change your grub.conf to
Code: | kernel (hd0,0)/bzImage root=/dev/hda3 |
In grub (hd0,0) is equivalent to the filesystems /boot directory and (hd0,0)/boot is equivalent to the filesytems /boot/boot directory which redirects you back to /boot.
Clear as mud???
hope it helps[/b] _________________ Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch... |
|
Back to top |
|
|
vargen Tux's lil' helper
Joined: 29 May 2003 Posts: 76 Location: Lost somewhere in the deep woods of northern Sweden
|
Posted: Sat Jun 28, 2003 7:00 am Post subject: |
|
|
Apax wrote: | UPDATE
spalshimage=(hd0,0) /boot/grub/splash.xpm.gz
|
Did you really write spalshimage... it should be splashimage
try that...
if anything else doesn't work, try using LILO it's the "old" and tried way to use a bootloader.. GRUB is something most Lilo users turn to nowadays just for the fun of it..
oh.. and make sure you have bzImage where it's suppose to be.. also splash.xpm.gz _________________ "We are known by the tracks we leave behind.." |
|
Back to top |
|
|
Apax Tux's lil' helper
Joined: 27 Jun 2003 Posts: 137
|
Posted: Sat Jun 28, 2003 10:04 am Post subject: |
|
|
Ok..thanks for the good advice...
I mounted /dev/hda1 and found
Boot, Grub , and lost+found
Grub directory had files in it but the boot had nothing....
I followed the install instructions and am confused why nothing shows up in Boot
|
|
Back to top |
|
|
slartibartfasz Veteran
Joined: 29 Oct 2002 Posts: 1462 Location: Vienna, Austria
|
Posted: Sat Jun 28, 2003 10:09 am Post subject: |
|
|
Apax wrote: |
I followed the install instructions and am confused why nothing shows up in Boot
|
did u compile the kernel and move it to boot? perhaps u forgot to mount boot before u copy the kernel... _________________ To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be. |
|
Back to top |
|
|
Apax Tux's lil' helper
Joined: 27 Jun 2003 Posts: 137
|
Posted: Sat Jun 28, 2003 10:29 am Post subject: |
|
|
guess ill compile and install the kernal again.....
ill try that |
|
Back to top |
|
|
dol-sen Retired Dev
Joined: 30 Jun 2002 Posts: 2805 Location: Richmond, BC, Canada
|
Posted: Sat Jun 28, 2003 12:53 pm Post subject: |
|
|
The bzImage will still be there where it was compiled, just mount your /boot partition and copy it again. _________________ Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch... |
|
Back to top |
|
|
Apax Tux's lil' helper
Joined: 27 Jun 2003 Posts: 137
|
Posted: Sun Jun 29, 2003 2:23 am Post subject: |
|
|
GENTOO IS WORKING!!!!!
Thanks for all the advice!! The problem was the the bzImage file was not copied to /boot. Stupid human error of course... I didnt write the cp command correctly...I had a space in front of the cp...pretty sure thats why it didnt copy to /boot.
Well now I need to figure out what the login is...LOL |
|
Back to top |
|
|
|