PDA

View Full Version : Is Grub complete?



kepler
11-05-2004, 10:47 AM
Hi,

I'm trying to install GRUBC in my hard disk. According to the manual, one must copy the files and folders of the Root_Of_NTFS folder to c:\ except boot.ini
Well, this includes the folder BOOT, and 3 files (bootgrub, grldr and menu.lst).
Now, the next thing to do is to add the line c:\grldr="Start Grubc..." to the boot.ini file in c:\
Then copy the ISO image of Knoppix to c:\BOOT\Knoppix.36, etc...
My doubt is: How, in the boot.ini file, will the system find c:\grldr if this folder doesn't exists?

Regards,

Kepler

OErjan
11-05-2004, 11:04 AM
as C:\ is the root of the filesystem ... the grldr needs only lie there

kepler
11-05-2004, 11:21 AM
Never mind...

Kepler

kepler
11-05-2004, 12:36 PM
The menu.lst is like this:


################################################## ####
# GvR Oct 6th 2004
color black/cyan yellow/cyan
timeout=5
default=0

title Default Boot on HD 0
rootnoverify (hd0,0)
chainloader +1
boot

# Knoppix Boot from a single NTFS partition hda1:
# All the files within the directory "Root_Of_NTFS" of the grub9.zip
# have to be copied into the root of the NTFS hda1 partition c:\
# but the boot.ini file (which is just here as an example,
# the line "c:\grldr="Start Grub" has been added at the end of the boot.ini)
# Copy the also the 700MB knoppix ISO file into c:\boot\knoppix.36\ directory

title Knoppix 3.6 kernel 2.6 from NTFS hda1 ISO scan ramdisk=32MB
kernel (hd0,0)/boot/knoppix.36/linux26 ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 nomce quiet bootfrom=/dev/hda1/boot/knoppix.36/*.iso config=scan home=scan ramdisk=32768 noprompt
initrd (hd0,0)/boot/knoppix.36/minirt26_ntfs.gz
boot

title Knoppix 3.6 kernel 2.4 from NTFS hda1 ISO scan ramdisk=32MB
kernel (hd0,0)/boot/knoppix.36/linux24 ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 nomce quiet bootfrom=/dev/hda1/boot/knoppix.36/*.iso config=scan home=scan ramdisk=32768 noprompt
initrd (hd0,0)/boot/knoppix.36/minirt24_ntfs.gz
boot

title Memory test
kernel (hd0,0)/boot/knoppix.36/memtest

title Win311 from Dos from Floppy image 1.44Mb, just for fun...
kernel (hd0,0)/boot/memdisk
initrd (hd0,0)/boot/win311.img
boot

################################################## ####



How can I modify it in order to work with the FAT32 hard disk, and, more important, initiate it in TEXT MODE (option 2 - knoppix 2 )?

Regards,

Kepler

OErjan
11-05-2004, 01:06 PM
add a "2" here i should guess.
it is where all the other cheatcodes go...

kernel (hd0,0)/boot/knoppix.36/linux26 ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 2 vnomce quiet bootfrom=/dev/hda1/boot/knoppix.36/*.iso config=scan home=scan ramdisk=32768 noprompt

OErjan
11-05-2004, 01:13 PM
just one question. why not use nt's own bootloader to boot linux? worked for me on several occasions, no need to fiddle so much then.
http://www.knoppix.net/forum/viewtopic.php?t=4174&highlight=boot


you could use the Win2000/NT/XP bootloader.
to do that I let the nt bootloader and lilo work together for me. works well.
quick sketch what i do, write LILO to a floppy, make a "image" of the floppy-mbr put that image in C:\ edit BOOT.INI mine looks like this.


[boot loader]
timeout=2
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOW S
[operating systems]
C:\linux.ipl="LINUX"
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /fastdetect

a few more details.

1) make lilo write to floppy, have this line in lilo.conf:

boot=/dev/fd0

or give floppy as an argument to lilo

lilo -b /dev/fd0


2) make a image of the floppy-mbr: and put it in C:\

dd if=/dev/fd0 of=/mnt/C/linux.ipl bs=512 count=1


3) Modifiy c:\boot.ini -- add a line with:

C:\linux.ipl="Linux"


repeat 1) and 2) every time you run LILO.

Microsoft ntldr now believes you have yet another windows installed. happy booting
oh btw, i have several linuxes booting from that same lilo.