Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[9fans] winnt boot method - hand editing boot.ini

4 views
Skip to first unread message

Russ Cox

unread,
Sep 18, 2002, 4:17:16 PM9/18/02
to
You need to copy the first sector of your Plan 9 partition
into a file bootsect.p9 on your NT drive, and then use
something like (this is from my Win2000 system):

[boot loader]
timeout=3600
default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000 Professional" /fastdetect
c:\bootsect.p9 = "Plan 9 from Bell Labs"

There are a few gotchas. First, make sure your
9fat has the right PBS before you copy the first
sector. For example,

disk/format -b /386/pbslba /dev/sdC0/plan9
dd -bs 512 -count 1 < /dev/sdC0/plan9 > bootsect.p9

will probably do the right thing.
Note that format -b doesn't do anything other than
replace the PBS code. In particular it doesn't format
the disk.

The other gotcha is that I vaguely recall reading that
sectors you put in the [operating systems] section have
to be on a FAT drive for the boot loader to find them.
This seems unlikely, since the boot loader clearly reads
NTFS to get at the boot.ini file. But if it is true, then you're
just out of luck.

Another option is to install something like Partition Magic
and let it handle the boot menu. (Anyone know of a good
free program like that, just for selecting the primary partition?)

Russ

Jason Gurtz

unread,
Sep 18, 2002, 4:58:07 PM9/18/02
to

> Another option is to install something like Partition Magic
> and let it handle the boot menu. (Anyone know of a good
> free program like that, just for selecting the primary partition?)

Perhaps, if someone has figured out how to boot Plan 9 with it, grub
would do the trick. It boots the NT based OS's just fine with it's
chainload functionality. Find it here:
http://www.gnu.org/software/grub/grub-download.html

Jack Johnson

unread,
Sep 18, 2002, 5:27:26 PM9/18/02
to
Russ Cox wrote:
> Another option is to install something like Partition Magic
> and let it handle the boot menu. (Anyone know of a good
> free program like that, just for selecting the primary partition?)

I use Smart BootManager ( http://btmgr.sourceforge.net/ ). Though I
don't use it as my regular boot manager, I use it all the time on older
hardware to boot from CD when the BIOS won't support it.

-Jack

Russ Cox

unread,
Sep 18, 2002, 5:39:21 PM9/18/02
to
> Perhaps, if someone has figured out how to boot Plan 9 with it, grub
> would do the trick. It boots the NT based OS's just fine with it's

Our kernels make no attempt at being multiboot compliant,
and we need some special environment setup anyway (plan9.ini
contents are left at a certain address in memory). The other problem
with grub, as I understand it, is that it requires config info.
I'm sick of configuring things. I want a boot manager that just
says ``here are the partitions i found; pick one to boot.''
Configuring means running some non-Plan 9 operating system
(usually Linux). That's not acceptable, mainly because I might
not have the operating system du jour on the machine in question.

> I use Smart BootManager ( http://btmgr.sourceforge.net/ ). Though I
> don't use it as my regular boot manager, I use it all the time on older
> hardware to boot from CD when the BIOS won't support it.

This is exactly what I was looking for. Thanks!

Russ

Lyndon Nerenberg

unread,
Sep 18, 2002, 6:00:26 PM9/18/02
to
Russ> I'm sick of configuring things. I want a boot
Russ> manager that just says ``here are the partitions i found; pick
Russ> one to boot.''

Another option is FreeBSD's boot0, which operates exactly as you describe.

http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/boot/i386/boot0/boot0.s

--lyndon

Richard Miller

unread,
Sep 19, 2002, 4:09:23 AM9/19/02
to
> > Perhaps, if someone has figured out how to boot Plan 9 with it, grub
> > would do the trick. It boots the NT based OS's just fine with it's
> ...

> Configuring means running some non-Plan 9 operating system
> (usually Linux). That's not acceptable, mainly because I might
> not have the operating system du jour on the machine in question.

I understand and agree with Russ's point here; but it's still a useful
option for someone who wants to add Plan 9 to a system which already has
grub. For example, I bought a T21 with Linux pre-installed as a way of
avoiding the Microsoft Tax. After setting up a 9fat partition with pbslba,
I just had to add this to the grub menu.lst file:

title = brazil
root = (hd0,5)
chainloader = +1

-- Richard

Jason Gurtz

unread,
Sep 19, 2002, 10:47:36 AM9/19/02
to

> [...] After setting up a 9fat partition with pbslba,


> I just had to add this to the grub menu.lst file:
>
> title = brazil
> root = (hd0,5)
> chainloader = +1

Thanks for that post, I'm sure I'll use that at some time or another.

~Jason

--

boyd, rounin

unread,
Feb 2, 2005, 6:24:55 PM2/2/05
to
Well, I checked the 9fans archives, since I recall getting help on
this problem some time ago, and voilà!

well yeah, until you get this [translation for the tiny amount of french]:

<window's root>\system32\hall.dll

would appear to be missing.

it would seem they [u$loth] have gone out of their way to make it impossible.
--
MGRS 31U DQ 52572 12604


Andrew Simmons

unread,
Feb 2, 2005, 6:59:42 PM2/2/05
to

>
> <window's root>\system32\hall.dll
>
>would appear to be missing.
This may or may not help:

http://support.microsoft.com/default.aspx?scid=kb;en-us;330184

You're entering a world of pain son, a world of pain.

boyd, rounin

unread,
Feb 2, 2005, 7:04:50 PM2/2/05
to
> You're entering a world of pain son, a world of pain.

locks and loads M1911 ...


Wes Kussmaul

unread,
Feb 3, 2005, 9:55:47 AM2/3/05
to

Andrew Simmons wrote:

> You're entering a world of pain son, a world of pain.

I tried to make this XP laptop into a multi-boot machine following those
instructions (after having tried the usual *BSD methods). It didn't
work. Once XP owns your machine it does not want to see squatters in its
midst. Ended up sending the machine back to HP.

boyd, rounin

unread,
Feb 3, 2005, 5:26:18 PM2/3/05
to
> Once XP owns your machine it does not want to see squatters in its
> midst. Ended up sending the machine back to HP.


yes, this was my conclusion. i've seen these bastards break interfaces
etc to ensure that their shit is the only thing that runs on it.

lesson 1: go near XP you don't get to run plan 9 (unless you use external
boot media).

lesson 2: fewer and fewer machines have floppies.

boyd, rounin

unread,
Feb 3, 2005, 6:29:22 PM2/3/05
to
>> lesson 1: go near XP you don't get to run plan 9 (unless you use external
>> boot media).
>
> this is just not true. you can use smart boot manager,
> as has been mentioned already in this thread, and
> everything just works.

russ, i'm just not 'feeling lucky'. customer 'service' in .fr is a bit of an oxymoron.

Douglas A. Gwyn

unread,
Feb 4, 2005, 5:12:04 AM2/4/05
to
The following boot.ini works fine.
Your disk partitions are undoubtedly different from mine;
I have Windows ME and Windows XP on different drives.
(Watch out for line wrapping in the long line after
[operating systems].)

[boot loader]
timeout=5
default=multi(0)disk(0)rdisk(2)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(2)partition(1)\WINDOWS="Microsoft Windows XP
Professional" /fastdetect /NoExecute=OptIn
C:\="Microsoft Windows Me"
C:\bootsect.p9="Plan 9 from Bell Labs"

0 new messages