Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have Win98SE on hda1 (this is a primary partition) and Debian "Woody" 3.0r1 on hda10 (this is a logic partition which belongs to Extended Memory).
I tried to make Grub work installing it on hda10 and on hda1, but it didn't.
In the first case Grub didn't show its list of OS, but at least Win could run.
In the second case Grub showed its list but Debian gave me a kernel panic suggesting me to use "init=option", even though I don't know which option I'm supposed to use, while Win simply couldn't run.
To fix this mess I put my Win98SE rescue floppy in its drive and turn my pc on, then pressing Shift-F5 I opened the DOS prompt and I inserted "fdisk /mbr", but rebooting I saw Grub.
I know this is a dumb description, yet I prefer not to be misunderstood, you see.
I heard "fdisk /mbr" can't handle system with more than 4 partitions and I have more than 4 partitions, but it's true?
Distribution: SuSE 8.2, SuSE 9.1 on desktop (besides W2K). SuSE 9.1 on notebook (besides XP).
Posts: 44
Rep:
The magical number of 4 partitions refers to the partition table which is at the beginning of your disk (close to the MBR). This table has space for 4 partitions.
You can have up to 4 "primary" partitions (but only one can be active / bootable at any time if you haven't installed a bootloader like GRUB or Lilo) or alternatively up to 3 primary and one extended partition, which latter in turn can be split into several logical partitions.
The logical partitions present no problem for fdisk <drive:> /mbr, because their respective partition tables are stored far away from the MBR, beginning at the address of the extended partition. So I doubt that you really have a problem with more than 4 partitions.
I have a similar setup to yours, but with SUSE Linux and Windows 2000. GRUB was installed into the MBR and is able to boot both systems. I admit that I let the install routine of SUSE Linux do most of the work. Perhaps you should do the same...
Or alternatively try Lilo?
Partition Magic also includes a bootloader (from OS/2), which you could use (you would have to install a boot loader into your linux partition then). You can get older versions of Partition Magic quite cheap with a magazine CD nowadays.
If you really installed grub into hda1 then you just killed win98 bootsector, but don't panic yet there's a quick and easy way to recover without reinstalling. To install grub into the MBR you should just install into "hda", without putting any partition number.
To repair win9x bootsector grab this: http://www.winimage.com/bootpa25.zip
copy bootpart.exe into your dos bootdisk, boot into c:\ then go:
bootpart win95 boot:c:
This should restore win9x bootsector and next time you boot it should boot directly into win98(if not make sure win98 partition is set to active)
Have you linux bootdisk handy, boot with it and install grub into hda(MBR) as per usual.
The kernel panic probably means you specified the wrong root= option or /etc/fstab is incorrect, sometimes grub sees the partition order differently than linux so try different parameters (hint:use a grub bootdisk/ debian cd rescue mode)
I have Partition Magic 8.0, which owns a boot manager called boot magic, yet it can't handle partitions far from 1024° cylinder, even if they're primary.
Some months ago I tried SUSE 8.1 and I can tell its installation of GRUB in the MBR was impressive 'cause everything could run fine.
Now with Debian is more difficult, perhaps I should try LILO even though I got trouble with the MBR using other linux distributions.
There's another way, luckly. I heard about GAG, a spanish boot manager which can handle up to 9 OS, it can boot logical partitions too. I gonna try that, I think.
Just a question: if I install GAG or another boot manager I need LILO or GRUB too?
just copy bootpart.exe it into your c: then run it there if necessary
ok when you do "root (hd0,9)" you see your debian partition type printed correctly right?
if that is the case then simply do
setup (hd0)
and it will install grub into MBR
but of course you gotta have grub config files in /boot/grub in your debian partition(or /boot partition)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.