PDA

View Full Version : knoppix only boots to grub!



Josh83
04-03-2005, 02:14 PM
hi all.

i have the following partition table:

- windows xp
- programs for windows xp
- windows 98
- programs for windows 98
- linux swap
- knoppix

i installed knoppix with sudo knoppix-installer and everything went ok, but when it tried to install lilo (which i did not want because i'm using xosl bootmanager) it asked me something about if the partition was an nt or win2000/xp partition and i answered yes, so it aborted the (lilo?) installation.
i rebooted and added to xosl a new entry which should start the knoppix harddisk. i started this one, but then not knoppix was loaded but only GRUB! i never saw grub in knoppix before and i'm very confused why i'm seeing grub now instead of booting knoppix?!

thanks for help!
josh

DuckDodgers
04-03-2005, 09:18 PM
If GRUB is detecting your windows installation and your knoppix installation, why not just use it for the bootloader? I have not used xosl so cannot comment on it. I do, however, use GRUB and it seems to do the job quite well. Other bootable partitions can also be added to /boot/grub/menu.lst

Josh83
04-04-2005, 09:52 AM
thanks, but that's no option for me. anyway grub does not list any bootable disks, it only tells me that i can show some stuff with TAB...

ruymbeke
04-05-2005, 04:06 AM
thanks, but that's no option for me. anyway grub does not list any bootable disks, it only tells me that i can show some stuff with TAB...
Grub is probably one of the best boot loader I know and I have tried so far. [Tab] gives you the list of the shell command you can use and a man grub will tell you more about it. A menu.lst file is usually created by the grub installer and is similar to the lilo.conf in order to preset a nice "user readable" opton menu you can select from. You can obviously create one on your own or modify an existing one. As for xp, grub can load and start the boot sector of your ntfs partition and boot xp (ntldr...) You can also boot from floppy disk files images, from the network, from kernel and ramdisk, from partition bootsectors, you can even logically swap partitions to run more than one win98/me system running as a c:\ drive, ... Grub cannot just list any bootable partition. Grub needs some help to set it up, but grub gives you all the tools to make it work (rootnoverify (hdx,y), chainloader +1 , boot, ...) [tab] can also be used for autocompletion and is very usefull to get a list of partitions as an example, but you should know which ones are bootable or not. Well just have a look at the grub reference documentation. I have been using other bootloaders in the past, "gag" being one of my preference, but I now use grub everywhere.
Hope this helps, Gilles

mr_ed
04-05-2005, 05:43 AM
Knoppix-installer actually installs GrUB in order to look for other bootable operating systems on your machine. Then it gives you the four choices of using either LILO or GrUB, and putting them into either the Master Boot Record for the whole drive or the Partition Boot Sector for Knoppix. (Too bad the fifth choice of not adding a bootloader is ignored....)

This must be where you bailed out, leaving GrUB only partially installed with no options written to menu.lst - and there may well be other stuff left in some unknown state after knoppix-installer suffered its "abend" (abnormal end). :cry:

Really you have two problems here, and because of the way knoppix-installer works (or doesn't) you have to deal with them separately.

Getting rid of GrUB is actually easy. When you pick Knoppix in xosl, what you want to happen is for control to get handed off to a PBS full of zeros, and then Knoppix boots. So filling the Knoppix PBS up with zeros again will put GrUB back to sleep.

And it's astonishingly quick and simple to do this in unix-like systems - dd is one of those very, very sharp knives that comes standard with UTRU - the Unix-like Toolkit for Responsible Users. (In other words, you already have it. :wink: ) Just be careful not to slice and dice the rest of your hard drive with it! :shock:

The other problem is the incomplete installation. You really need to run through that again and decide whether it's easier afterwards to re-install xosl into the MBR or to zero out the PBS.

(Or, the silly option would be to leave LILO or GrUB in the Knoppix PBS. Then you'd get xosl first, and if you picked Knoppix then you'd get LILO, and depending on what you put into that menu, you could go ahead and boot Knoppix or send the system back to xosl and play ping-pong between the bootloaders. :D There are times when chaining two bootloaders is useful, but your setup isn't one of them.)

OR ... you could install something like Debian sarge or Progeny Debian, which politely allow you to not install a bootloader if you don't want to. After all, if you shoot yourself in the foot, it is your foot to do with as you please.

[Rude comment about GrUB documentation deleted with apologies by author - see next post for something much more useful.]

-- Ed

ruymbeke
04-05-2005, 06:20 AM
have a look at the grub reference documentation
Try this link: http://www.gnu.org/software/grub/manual/