Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dual booting Win2k & Gentoo problems (Grub - Error 13)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Chompy
n00b
n00b


Joined: 15 Oct 2003
Posts: 12
Location: Sydney

PostPosted: Sat Apr 03, 2004 12:28 am    Post subject: Dual booting Win2k & Gentoo problems (Grub - Error 13) Reply with quote

Okays, I have finished the Stage 3 installation, with everything by default and I wanted to have my system to dual boot Win2k & Gentoo. Throughout the installation I had been using this guide - IG2: How to install Gentoo in a Win XP/NT config
. Now the problems I am having is I cannot mount the Floppy drive to copy the boot image into windows. I can mount the windows Paritition ... in read mode. Any help.

Using grub, I've emerged it, Can access Windows Partition just as easy. My paritions are like this.:
/dev/hda1 - NTFS - Windows
/dev/hda2 - Windows boot or something.
/dev/hda3 - Linux boot - ext2
/dev/hda4 - Linux Swap
/dev/hda5 - Linux - ext3

I'm just wondering if it would be easier not to use grub an switch over to Lilo. Or to install the bootloader onto the MBR??? Also just for backups sake, after I get this bootloader working proerly, how would I create a bootdisk with it on it?


Last edited by Chompy on Sun Apr 04, 2004 1:48 am; edited 1 time in total
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Sat Apr 03, 2004 12:48 am    Post subject: Reply with quote

I would advise installing GRUB into the MBR.

Here is a quick guide for creating a GRUB boot floppy.
https://forums.gentoo.org/viewtopic.php?t=118147
You can use this to test your configuration before actually installing GRUB on the harddrive.
Back to top
View user's profile Send private message
Chompy
n00b
n00b


Joined: 15 Oct 2003
Posts: 12
Location: Sydney

PostPosted: Sat Apr 03, 2004 3:32 am    Post subject: Reply with quote

Thanks for that quick reply :D, I've done the grub stuff that had been stated in the link you sent. I can get grub to boot into my windows partition and thats about it. When I try to boot up into gentoo this happens:

Code:

root (hd0,2)
 Filesystem type is ext2fs, partition type 0x83
kernel /linux-2.4.24

Error 15:File not found

Press any key to continue...

Now the partition with everything on it, the main partition is in ext3. Would I need to change anything in reguard to that?

In your notes you said
Code:

kernel /kernel-2.4.20-gentoo-r6
initrd /initrd-2.4.20-gentoo-r6

With mine, I had a look through the installatino notes and found that my kernel is linux-2.4.24 emerged from vanilla-sources-2.4.24. As in the notes.

Now is there a quick way to find out what where is my kernel, and the name of it. Also where is the initrd file?

I'll read over the installation guide a bit more, a bit brain dead now....
Back to top
View user's profile Send private message
deadaim
Guru
Guru


Joined: 27 Oct 2003
Posts: 467
Location: Florida

PostPosted: Sat Apr 03, 2004 4:42 am    Post subject: Reply with quote

Go into the LiveCD, mount your partitions as described in section 4e of the handbook, then chroot as described in section 6a of the handbook. Once you do that, type the following:
Code:
ls -l /boot

You should be able to identify your kernel name from the output. Once you do so, type the following:
Code:
nano /boot/grub/grub.conf

Then change the file appropriately. (Make sure the kernel name listed in your grub.conf matches that listed in your /boot)
Back to top
View user's profile Send private message
LostSon
Guru
Guru


Joined: 21 Nov 2003
Posts: 514
Location: Wisconsin

PostPosted: Sat Apr 03, 2004 12:16 pm    Post subject: Reply with quote

I would suggest buying another HD and installing windows as the slave drive. HD's are cheap nowadays anyway 8)
Back to top
View user's profile Send private message
Chompy
n00b
n00b


Joined: 15 Oct 2003
Posts: 12
Location: Sydney

PostPosted: Sun Apr 04, 2004 1:43 am    Post subject: Reply with quote

deadaim: I've ls -l boot, and it came up with config-2.4.24. And I'm wonderin' why has it changed names, and does it matter if it not named "kernel-2.4.24"????

LostSon: I have a spare harddrive, just not very big 4 + 3 gigs. The hard drive I'm working on has 120Gigs.


I have changed the grub.conf to config-2.4.24 and we are progress down the error tree :D . At least I'm moving forward. This error is what I get
Code:
root (hd0,2)
 Filesystem type is ext2fs, partition type is 0x83
kernel /config-2.4.24 root=/dev/hda5

Error 13:Invalid or unsupported format


I think I've seen a previous grub posts, I'll have a look into those.
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3065
Location: Korea

PostPosted: Sun Apr 04, 2004 1:51 am    Post subject: Reply with quote

That file, config-2.4.24 isn't the kernel obviously. Otherwise, trying to boot from it would work.

What you need to do is:
as root and in a shell go into the directory that you have those vanilla-sources installed (probably /usr/src/2.4.24 or something similar). Run through the commands for installing the kernel. Make sure /root is mounted and copy the kernel over to /boot.

Then you can edit your /boot/grub/grub.conf to use the new kernel.

It's obvious that your 2.4.24 kernel either isn't installed to /boot or it is and you just named it something strange.
Back to top
View user's profile Send private message
monkey89
Guru
Guru


Joined: 08 Mar 2004
Posts: 596

PostPosted: Sun Apr 04, 2004 2:24 am    Post subject: Reply with quote

Am I losing it... or are there 5 primary partitions there?

Shouldn't there be 3 primary, 1 extended, and the rest logical?
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3065
Location: Korea

PostPosted: Sun Apr 04, 2004 2:33 am    Post subject: Reply with quote

monkey89 wrote:
Am I losing it... or are there 5 primary partitions there?

Shouldn't there be 3 primary, 1 extended, and the rest logical?


Yeah you're right. It's impossible to have it set up as above. Maybe he means /dev/hda2 is the extended and the others are logical drives. Though in that case the numbers for the logical ones are wrong.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Sun Apr 04, 2004 2:48 am    Post subject: Reply with quote

Chompy wrote:
I've ls -l boot, and it came up with config-2.4.24. And I'm wonderin' why has it changed names, and does it matter if it not named "kernel-2.4.24"????

The kernel can be named anything you want, but normally the config-x.x.xx file is a plain text file with your kernel configuration.

Default names for kernels :
bzImage -- If you copied it directly from /usr/src/linux/arch/i386/boot/ after compiling manually
kernel-2.4.24 -- If you compiled using genkernel
vmlinuz-2.4.24 -- If you did "make install" after compiling your kernel

If you don't have any of these in /boot, then maybe you skipped a step in compiling your kernel (or maybe you renamed it to something strange :wink: ).
Back to top
View user's profile Send private message
Chompy
n00b
n00b


Joined: 15 Oct 2003
Posts: 12
Location: Sydney

PostPosted: Sun Apr 04, 2004 5:08 am    Post subject: Reply with quote

Yea... I remerged the kernel, using the genkernel (wasn't too happy about doing it) but it works fine. I can get into Gentoo!!!!! happy :D

If you were wondering the Windows partition one is extended. I created the linux partitions through Partition magic.

Thanks to your replies, I hope I can be of some help to other newbies in the future :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
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