Path: csiph.com!weretis.net!feeder8.news.weretis.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Peter 'Shaggy' Haywood Newsgroups: comp.os.linux.misc Subject: Re: GRUB over MSbootloader Date: Tue, 28 Feb 2023 15:42:20 +1100 Organization: A noiseless patient Spider Lines: 63 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Injection-Info: reader01.eternal-september.org; posting-host="434c0ff187513168d7827857cab2629e"; logging-data="3801120"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+CBhR8q5054i36P6BQK/Nj0Ohg2K7TzQo=" User-Agent: KNode/0.10.9 Cancel-Lock: sha1:8R7Ziu8fCzPsLwVzc+8ivoTgCs4= Xref: csiph.com comp.os.linux.misc:37329 Groovy hepcat vjp2.at@at.BioStrategist.dot.dot.com was jivin' in comp.os.linux.misc on Mon, 27 Feb 2023 06:59 am. It's a cool scene! Dig it. > I installed MSDOS first then WP, so now XP controlled the swithcing I don't know what WP is. Is that a typo? Did you mean XP? > between booting MSDOS or booting XP. > > When I install Linux, will grub replace the Windows boot loader or > include it as a submenu on grub? It will not touch your DOS/Losedows boot loader, which resides in that system's partition. Grub is a multi-stage boot loader. Its first stage can be installed to either the MBR (master boot record - the first sector of the drive) or to a partition. In either case (unless you install it in your DOS partition) it will not interfere with the original boot loader. Actually, even DOS and its derivatives use a two stage boot loader, but the first stage is really just a stub, only loading in the real boot loader. This first stage stub resides in the MBR. It just determines the "active" partition from the partition table (also in the MBR) then loads and runs the real boot loader from the first sector of this partition. Anyhow, while grub is installing, it will usually detect other installed systems and create entries for them in the boot menu. Under some circumstances this will not be done. But it is possible to configure it yourself. Assuming you're installing any reasonably recent Linux, and you'll be using grub 2, the procedure is as follows: 1) open /etc/grub.d/40_custom with a text editor, 2) add an entry for the system, such as (changing the "set root=" parameters to suit your setup, of course): menuentry 'Microstuffed Losedows XP' { insmod part_msdos insmod ntfs set root='hd0,msdos1' chainloader +1 } 3) save and close the file, and finally, 4) run update-grub (as root). > And If I don't like this, how do I put it all on grub? That depends on how you've set up DOS & XP. I'm not so familiar with running both of those from the same drive and sharing a bootloader, so I will not comment on that. But it might be possible to add an entry for both of those using the procedure outlined above. -- ----- Dig the NEW and IMPROVED news sig!! ----- -------------- Shaggy was here! --------------- Ain't I'm a dawg!!