🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: ahn.tech.linux
Article #1941

Re: ***winNT Partitions with bootm. Linux***

#1941
From: Jeroen de Hertog
Date: Tue, 11 Apr 2000 00:00
75 lines
3908 bytes
"woea!" schreef:

> > I want to install NTworkstation on another partition ! There is allready
> > win98 and linux on 2 other partitions !
> > My Question is - can i install NTworkst. on another partition and is there
> > allso a BOOTmamager with NTworkst.
> > so that i can use win98 or NT or Linux .There is allready a bootmanager
> > [from linux...] but will that give a problem
> > with a new bootmanager or is it better to delete the old bootman. [and
> > how?]................
> > Please help  :-((

Hi, one way to do this is the following:

We will use nt's bootmanager

1. first you should have boot disks -with the program fdisk- for every OS on
your puter so you will still be able to access your harddrive if something
unexpectedly goes horribly wrong :-(

2. reinstall your Linux bootmanager - probably lilo - to the partition where
Linux is installed. Most likely it is now installed in your Master Boot Record (
/dev/hda or the MBR of c:\ in a win9x environment ). Reinstallation is
accomplished by editing lilo.conf and running lilo.
Tell lilo to install in Linux' root partition ( *not /dev/hda*  but for instance
/dev/hda2, find out!, use linux fdisk ) by editing the line in lilo.conf with
boot in it:
boot=/dev/hda2 in this example

3. for security, tell it to make a backup of the soon to be old bootsector
backup=/boot/boot.hda2.currentdate

4. remove the lines considering the other OS from lilo.conf ( win9x )
You can still use a selection of your own kernels if you desire to do so

5. close the editor you used to edit lilo.conf
maybe I elaborate too much, but it would be a shame if anything failed

6. make a backup of your current MBR using the dd-command and remember where you
put it
/bin/dd  if=/dev/hda2  bs=512  count=1  of=/boot/boot.hda.currentdate
Only the hda2 and the /boot/boot.hda.currentdate part of the previous line may
be changed!! the rest should be exactly like this!!

7. check whether /boot/boot.hda.currentdate is 512 bytes in size

8. run /sbin/lilo, this will effectuate the changes in lilo.conf
It will probably complain about being installed on a logical partition and it
rightly does but in order for anything to work, just ignore it and continue.

9. now copy the current bootsector of LILO to a place where nt will be able to
find it
/bin/dd  if=/dev/hda2  bs=512  count=1  of=/mnt/hda/bootsec.lin
Remember I use hda2 as an example, use your Linux's native partition instead (
where / is at ). If you use scsi-disks for example every hda changes to sda

10. reboot using a win9x boot flop
Reinstall the bootsector the way win9x sees it with the command
fdisk /mbr
btw: there should a file on c: named bootsec.lin with a size of 512 bytes :-)

11. do another reboot without the floppy, win9x should start without problems,
Linux doesn't even seem to exist

12. install nt - do'nt touch the linux partition!! some OS are pretty ignorant
or at least pretend to be |-(

13. edit boot.ini, at the end add a line
c:\bootsec.lin="Linux"
maybe you have to adjust boot.ini attributes first

14. if everything went ok at the next boot there should be an entry for Linux in
nt's boot manager!!!

greetz Jeroen
Technical Details
Message-ID: <38F39411.44B571C8@bart.nl>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <Fg7I4.347$5r.4363@nlnews00.chello.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11033e,1037e7aec142b7f9
X-Google-Attributes: gid11033e,public
From: Jeroen de Hertog <jdhertog@bart.nl>
Subject: Re: ***winNT Partitions with bootm. Linux***
Date: 2000/04/11
Message-ID: <38F39411.44B571C8@bart.nl>
X-Deja-AN: 609816784
Content-Transfer-Encoding: 7bit
References: <Fg7I4.347$5r.4363@nlnews00.chello.com>
X-Accept-Language: en,nl
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@bart.nl
X-Trace: Typhoon.bART.nl 955487470 195.38.227.157 (Tue, 11 Apr 2000 23:11:10 MET DST)
MIME-Version: 1.0
NNTP-Posting-Date: Tue, 11 Apr 2000 23:11:10 MET DST
Newsgroups: ahn.tech.linux