View previous topic :: View next topic |
Author |
Message |
kinghunter4 Tux's lil' helper
Joined: 26 Nov 2005 Posts: 86
|
Posted: Sat Nov 26, 2005 6:34 pm Post subject: Linux after Windows [SOLVED] |
|
|
Hi, I have a 200GB hard drive on which I wish to install Windows and Linux.
I tried installing linux first, but after finishing the install, Windows said that I
already had the maximum number of partitions and that it could not create more.
(I had a 64M boot, 1024M swap, and 40960M /root) So then I took Linux off, installed
Windows on 150 GB, but when I go to gentoo's fdisk, the Windows partition is marked
as boot. So, I switch the boot from dev/hdc1 to /dev/hdc2, where the Linux boot is,
and continue with the installation. However, after finishing, the computer doesn't boot.
After the BIOS loads, all I get is a blinking underscore at the top left corner of the
screen.
What did I do wrong, and how can I fix it? Also, I am not averse to reinstalling the whole
thing, if need be (Windows and linux)
Any help would be greatly appreciated. Thanks,
kinghunter4
Last edited by kinghunter4 on Sun Nov 27, 2005 3:29 am; edited 1 time in total |
|
Back to top |
|
|
dgaffuri Advocate
Joined: 05 Jun 2005 Posts: 2078 Location: Italy
|
Posted: Sat Nov 26, 2005 6:38 pm Post subject: |
|
|
You don't have to switch boot partitions. Switch back to the windows one and install a boot loader as decribed in the handbook. _________________ Adopt an unanswered post
If you feel that your problem has been solved please edit the top post and add [solved] to the subject |
|
Back to top |
|
|
kinghunter4 Tux's lil' helper
Joined: 26 Nov 2005 Posts: 86
|
Posted: Sat Nov 26, 2005 6:41 pm Post subject: |
|
|
In what part of the handbook does it say how to install a bootloader in the
windows partition? |
|
Back to top |
|
|
BoNd60 n00b
Joined: 17 Nov 2005 Posts: 73 Location: Paris, France
|
Posted: Sat Nov 26, 2005 6:57 pm Post subject: |
|
|
You must take care of not installing the gentoo bootloader in the mbr, or the first time you boot windows, he will overwrite it (that's what many sites over dual-booting windows and linux say)
I advice you to watch one of these sites before; that's what i've done and i have no problem and i find funny to load linux with the dos bootloader _________________ Oops, I think I'm not DOS compatible
In every situation, don't forget that the answer is 42 |
|
Back to top |
|
|
dgaffuri Advocate
Joined: 05 Jun 2005 Posts: 2078 Location: Italy
|
|
Back to top |
|
|
kinghunter4 Tux's lil' helper
Joined: 26 Nov 2005 Posts: 86
|
Posted: Sat Nov 26, 2005 7:45 pm Post subject: |
|
|
This is my configuration:
/dev/hdc1: Windows 150 GB
/dev/hdc2: Linux boot 64 MB
/dev/hdc3: Linux swap 1024 MB
/dev/hdc4: Linux root 40 GB
Here is my grub.conf file:
Code: |
# Which listing to boot as default. 0 is the first, 1 the second etc.
default 1
# How many seconds to wait before the default listing is booted.
timeout 30
# Nice, fat splash-image to spice things up :)
# Comment out if you don't have a graphics card installed
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
title=Gentoo Linux 2.6.12-r10
# Partition where the kernel image (or operating system) is located
root (hd0,1)
kernel /boot/kernel-2.6.14-gentoo-r2 root=/dev/hdc4
# The next four lines are only if you dualboot with a Windows system.
# In this case, Windows is hosted on /dev/hda6.
title=Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1
|
This freezes upon boot. (After bios loads, some text flashes on really quickly and then the flashing underscore appears in the upper left corner)
Is the problem in the partitions, grub.conf, or elsewhere? |
|
Back to top |
|
|
kinghunter4 Tux's lil' helper
Joined: 26 Nov 2005 Posts: 86
|
Posted: Sat Nov 26, 2005 8:43 pm Post subject: |
|
|
Also, is there a recommended partition table for dual boot systems? |
|
Back to top |
|
|
BoNd60 n00b
Joined: 17 Nov 2005 Posts: 73 Location: Paris, France
|
Posted: Sat Nov 26, 2005 10:13 pm Post subject: |
|
|
I don't know if there is a recommended partition table, but this works for me for dual-booting windows and gentoo : Code: | Disque /dev/hda: 40.0 Go, 40007761920 octets
255 têtes, 63 secteurs/piste, 4864 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Périphérique Amorce Début Fin Blocs Id Système
/dev/hda1 * 1 653 5245191 7 HPFS/NTFS
/dev/hda2 654 716 506047+ 82 Linux swap / Solaris
/dev/hda3 717 4864 33318810 83 Linux
| (Sorry, the code is in french because i'm french and my system too)
As you can see, my first partition is my windows xp partition which is bootable
To make it working, this is the way i took :
First of all, i have installed windows on a 5G partition
Next, i did my gentoo installation with a 512M swap partition and a 35G root partition
When i arrived to the step of installing a bootloader, i emerged lilo (because the how-to i chose to follow recommended it)
I configured lilo.conf like it : Code: | boot=/dev/hda3
prompt
timeout=50
default=gentoo
image=/boot/kernel-2.6.12-gentoo-r10
label=gentoo
read-only
root=/dev/hda3
append="video=vesafb:mtrr,ywrap,1024x768-32@60"
| (but you are free to configure it how you want)
Next, i ran /sbin/lilo to install it (there's maybe an option but i don't remember. Anyway, lilo says if it's missing)
After that all, you will need to run the command : Code: | dd if=/dev/hda3 of=bootsect.lnx bs=512 count=1 | (if=xxx where xxx is the partition you have installed the kernel to load)
I copied the file bootsect.lnx on a floppy
I started windows (after finishing gentoo installation)
I copied the file on my windows partition
I modified the file boot.ini through msconfig like that : Code: | [boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Edition familiale" /fastdetect /NoExecute=OptIn
C:\BOOTSECT.LNX="Gentoo Linux"
| (in fact, i added the line C:\BOOTSECT.LNX="Gentoo Linux")
I rebooted the computer and everything works fine (i can now started the OS i want)
i hope i have nothing forgotten and that it will help you _________________ Oops, I think I'm not DOS compatible
In every situation, don't forget that the answer is 42 |
|
Back to top |
|
|
kinghunter4 Tux's lil' helper
Joined: 26 Nov 2005 Posts: 86
|
Posted: Sat Nov 26, 2005 10:21 pm Post subject: |
|
|
3 Questions:
I take it you don't need a seperate Linux boot partition?
How do you copy bootsect.lnx onto a floppy? (Sorry, I'm new to linux)
Can I start msconfig using start->run->msconfig?
Anyway, thanks, this looks like what I need
[EDIT]= Also, in the handbook it says that
boot=/dev/hda, not one of your specific partitions. Which one's correct? |
|
Back to top |
|
|
BoNd60 n00b
Joined: 17 Nov 2005 Posts: 73 Location: Paris, France
|
Posted: Sat Nov 26, 2005 10:35 pm Post subject: |
|
|
1: I didn't make a separate boot partition but it is possible (just don't make it bootable, don't forget to configure lilo correctly and use the dd command with if=<your boot partition>)
2: mount -t vfat /dev/fd0 /mnt/floppy
mv bootsect.lnx /mnt/floppy
umount /mnt/floppy
3 : Yes, that's exactly you have to do. Don't be afraid if windows tells you you have modified something on the next boot, just let it speak and answer you don't want to be warn another time
To finish, every time you compile a new kernel : update lilo.conf, run /sbin/lilo, make a new bootsect.lnx and replace the old one (or you will get into trouble) _________________ Oops, I think I'm not DOS compatible
In every situation, don't forget that the answer is 42 |
|
Back to top |
|
|
kinghunter4 Tux's lil' helper
Joined: 26 Nov 2005 Posts: 86
|
Posted: Sat Nov 26, 2005 10:40 pm Post subject: |
|
|
do you use
boot=/dev/hda
or
boot=/dev/hda3 |
|
Back to top |
|
|
BoNd60 n00b
Joined: 17 Nov 2005 Posts: 73 Location: Paris, France
|
Posted: Sun Nov 27, 2005 12:44 am Post subject: |
|
|
I use boot=/dev/hda3 (that was written in lilo.conf in my previous post)
This argument tells lilo where to find the kernel to load _________________ Oops, I think I'm not DOS compatible
In every situation, don't forget that the answer is 42 |
|
Back to top |
|
|
|
|
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
|
|