[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

grub as bootloader for linux and windows



--- please reply directly, I'm not on the list ---

Hello,

I guess i need the help from somebody very familiar with grub.....

I am going to install Woody and Win2000 with grub as bootloader on a Dell 
Inspiron 5000 notebook ( P III, 128 MB, 12 GB ).

I proceeded so far to partition the HD like shown below, install Woody 3.0  
from CD with lilo, then booted into it and installed from there grub with 
aptitude. In the first instance, I only tried to create a grub-boot-floppy, 
according to  a Multiboot with GRUB Mini-HOWTO
[ http://www.tldp.org/HOWTO/mini/Multiboot-with-GRUB.html ]
Instead of 'grub-install' i used 

dd if=stage1 of=/dev/fd0 bs=512 count=1
( -->  1+0 records in and out )
dd if=stage2 of=/dev/fd0 bs=512 seek=1
( --> 153+1 records in and out )

as recommendet in the grub-info-doc ( node: Creating a boot-Floppy ).


But there occured some wickened things, as always....;-)

I chose to have no special /boot-Partition, it's within the / on hda8. Note 
that i thought i would need three primaries for Win, therefor all 
Linux-Partitions are logical. Mounting / worked when the first logical was 
hda5 = /home, but later I moved the Linux-Numbering one up and made Exchange 
( FAT32 ) = hdda5;
this was because i inserted a special boot-Partition for Win2000. 
Note also that Win2000 is hda3 but physically at the 'inner end' of the disk 
( i hope ).
Don't worry about the Hibernation-Partition, it's not the topic by now....


-------------------------  Attach1: partition table --------------------------

Partitioning Doubleboot Win2000 + Debian Woody on a 12 GB HD
hopefully considering optimal disk speed


( First number = grub-partition-count..........Size in MB.....Linux-Device )


0) Hibernation     = Hidden Win95 FAT32 ( LBA ) .... 550 ... hda1 = prim
1) BOOT: Win2000 = Hidden FAT16 ........................... 50 ... hda2 = prim
2) Exchange   = Win95 FAT32 (LBA) .................... 500 ... hda5 = log1

Linux = ext2:
4) home ....................................... 500 ... hda6 = log2
5) / (inkl. /boot ) ........................  3000 ... hda7 = log3
6) var ..........................................  500 ... hda8 = log4
7) tmp .......................................... 500  ... hda9 = log5
8) swap_linux .............................. 500 ... hda10 = log6
9) free  ....................................... 1500 ... hda11 = log7

Win2000 C:\
3) Win2000 ..........NTFS ............. 4450 ... hda3 = prim3
( inclusive win-swap ) 


----------------------------  Attach2:  menu.lst  ----------------------------

# Der 1. Menu-Eintrag ist default:
default 0

# Als Fallback der zweite Eintrag
fallback 1

# Starte den Standard-Eintrag nach xx Sekunden, falls keine Tastatur-Eingabe
timeout 60

# ---------------- Booting Linux from floppy (1)

title Debian Woody (floppy )
kernel (hd0,5)/boot/vmlinuz-2.4.18 root=/dev/hda6


#----------------- Booting Windows from floppy (2)

title Windows 2000 ( floppy )

hide (hd0,0)   # Hibernation
unhide (hd0,1) # Windows-Boot-Partition
hide (hd0,2)   # Exchange

rootnoverify (hd0,1)
chainloader (fd0)+1
# chainloader (hd0)+1 when booting von Harddisk
makeactive

# ---------------- For MS-Installer-CD ???
# title Windows Installation-CD ( ??? )
# map (hd0,0) (hd0,1)   # ???
# map (hd0,1) (hd0,0)   # ???
# chainloader (hd0)+1

# --------------- Install grub auf Hard-Disk
title Install grub -> mbr (hd0,0) + Linux-root (hd0,5)
root (hd0,5)
setup (hd0)

===========================================




TIA
-- 
Michl.



Reply to: