Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

CCI Power 6/40: one board, a megabyte of cache, and an attitude...


devel / comp.os.os2.programmer.misc / hard disk image

SubjectAuthor
* hard disk imagePaul Edwards
+- Re: hard disk imagePaul Edwards
+* Re: hard disk imageDave Yeo
|+* Re: hard disk imagePaul Edwards
||`* Re: hard disk imageDave Yeo
|| `* Re: hard disk imagePaul Edwards
||  +- Re: hard disk imagePaul Edwards
||  `- Re: hard disk imageDave Yeo
|`- Re: hard disk imageMarcel Mueller
`- Re: hard disk imagePaul Edwards

1
hard disk image

<usn514$3lml7$1@dont-email.me>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=137&group=comp.os.os2.programmer.misc#137

  copy link   Newsgroups: comp.os.os2.programmer.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mutazilah@gmail.com (Paul Edwards)
Newsgroups: comp.os.os2.programmer.misc
Subject: hard disk image
Date: Mon, 11 Mar 2024 22:38:21 +0800
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <usn514$3lml7$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 11 Mar 2024 14:38:28 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="22195c256e75c8a7cb1f889fd9b34ba9";
logging-data="3857063"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/9JjaKRPnA+9wR+C/0D1oRG21Y8UR8tqw="
User-Agent: Mozilla/5.0 (OS/2; Warp 4.5; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:gUAcWKRX5eGdLxcnnRrZ2m4iunw=
X-Mozilla-News-Host: news://news.eternal-september.org:119
 by: Paul Edwards - Mon, 11 Mar 2024 14:38 UTC

Because PDOS/386 now supports (a subset of) the OS/2 API,
it can be considered a mini-OS/2-clone already.

However, it ships with zero LX executables.

At the end of the section "PDOS/386 hard drive image"
there is now a pdoso.zip which contains a VHD that
can be mounted on either Windows or Virtualbox.

However, when I add it Virtualbox for my ArcaOS
guest, it doesn't appear as my D drive. I don't
see it at all.

I tried running "lvm" and by going to "physical view"
I could see the disk, which supposedly is full of
"free space".

This is a FAT32, MBR and the partition starts at
sector LBA 128, not LBA 63.

Is that an issue?

Note that if I could mount it, I was going to do:

d:
path %path%;d:\dos
cd \devel\pdos\pdpclib
pdmake -f makefile.sos
cd \devel

attempt to unzip \misc\custom gcc-stag*
unzip gcc-stage*
cd gcc\gcc
copy config\i386\genfiles
pdmake -f os2.mak

Also note that although you can boot PDOS/386 from
the pdoso.vhd, it will boot fine, but you won't be
able to do the above because of bugs that have
already been fixed and a new release is expected
in the coming hours.

Any idea how to make the volume available, or what
I need to do to make it acceptable to ArcaOS?

Thanks. Paul.

Re: hard disk image

<usnatt$3n1f4$1@dont-email.me>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=138&group=comp.os.os2.programmer.misc#138

  copy link   Newsgroups: comp.os.os2.programmer.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mutazilah@gmail.com (Paul Edwards)
Newsgroups: comp.os.os2.programmer.misc
Subject: Re: hard disk image
Date: Tue, 12 Mar 2024 00:19:09 +0800
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <usnatt$3n1f4$1@dont-email.me>
References: <usn514$3lml7$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 11 Mar 2024 16:19:11 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="22195c256e75c8a7cb1f889fd9b34ba9";
logging-data="3900900"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/PuAyctQi3ZuqGtImwLb+uxYXiP/D1iJs="
User-Agent: Mozilla/5.0 (OS/2; Warp 4.5; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:n8E8NQ4Z+103QKpUD4SjaQaF/dU=
In-Reply-To: <usn514$3lml7$1@dont-email.me>
 by: Paul Edwards - Mon, 11 Mar 2024 16:19 UTC

On 11/03/24 22:38, Paul Edwards wrote:

> At the end of the section "PDOS/386 hard drive image"

Forgot to mention "at http://pdos.org "

> Also note that although you can boot PDOS/386 from
> the pdoso.vhd, it will boot fine, but you won't be
> able to do the above because of bugs that have
> already been fixed and a new release is expected
> in the coming hours.

The new image is on the website now and so under
PDOS/386 OS/2-flavor it works fine.

BFN. Paul.

Re: hard disk image

<AEHHN.683385$p%Mb.531729@fx15.iad>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=139&group=comp.os.os2.programmer.misc#139

  copy link   Newsgroups: comp.os.os2.programmer.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mb-net.net!open-news-network.org!news.mind.de!bolzen.all.de!npeer.as286.net!npeer-ng0.as286.net!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx15.iad.POSTED!not-for-mail
Subject: Re: hard disk image
Newsgroups: comp.os.os2.programmer.misc
References: <usn514$3lml7$1@dont-email.me>
From: dave.r.yeo@gmail.com (Dave Yeo)
User-Agent: Mozilla/5.0 (OS/2; Warp 4.5; rv:45.0) Gecko/20100101 Firefox/45.0
SeaMonkey/2.42.9esr
MIME-Version: 1.0
In-Reply-To: <usn514$3lml7$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 13
Message-ID: <AEHHN.683385$p%Mb.531729@fx15.iad>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Mon, 11 Mar 2024 18:00:00 UTC
Date: Mon, 11 Mar 2024 10:59:59 -0700
X-Received-Bytes: 1254
 by: Dave Yeo - Mon, 11 Mar 2024 17:59 UTC

Paul Edwards wrote:
> This is a FAT32, MBR and the partition starts at
> sector LBA 128, not LBA 63.
>
> Is that an issue?

Generally OS/2 needs CHS partitioning with the cylinders aligned. You
likely need to wipe the first sectors, then use LVM to partition it and
add the LVM stuff such as a drive letter.
The rule is to always use OS/2 tools to partition. The exception now is
with GPT partitioning, which is only available with the latest ArcaOS,
or added to earlier OS/2 versions.
Dave

Re: hard disk image

<usnp6v$3qdjk$1@dont-email.me>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=140&group=comp.os.os2.programmer.misc#140

  copy link   Newsgroups: comp.os.os2.programmer.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mutazilah@gmail.com (Paul Edwards)
Newsgroups: comp.os.os2.programmer.misc
Subject: Re: hard disk image
Date: Tue, 12 Mar 2024 04:22:15 +0800
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <usnp6v$3qdjk$1@dont-email.me>
References: <usn514$3lml7$1@dont-email.me> <AEHHN.683385$p%Mb.531729@fx15.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 11 Mar 2024 20:22:56 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="22195c256e75c8a7cb1f889fd9b34ba9";
logging-data="4011636"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ADjapg/BJ0nflpE4A8Wkh3iIYmguiKb8="
User-Agent: Mozilla/5.0 (OS/2; Warp 4.5; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:ls3upOOwDbTm5tlA5LPzYEAwqkA=
In-Reply-To: <AEHHN.683385$p%Mb.531729@fx15.iad>
 by: Paul Edwards - Mon, 11 Mar 2024 20:22 UTC

On 12/03/24 01:59, Dave Yeo wrote:
> Paul Edwards wrote:
>> This is a FAT32, MBR and the partition starts at
>> sector LBA 128, not LBA 63.
>>
>> Is that an issue?
>
> Generally OS/2 needs CHS partitioning with the cylinders aligned. You
> likely need to wipe the first sectors, then use LVM to partition it and
> add the LVM stuff such as a drive letter.
> The rule is to always use OS/2 tools to partition. The exception now is
> with GPT partitioning, which is only available with the latest ArcaOS,
> or added to earlier OS/2 versions.

Thanks for that info.

I create a VHD using our own tools that we have
control over.

So I can change it to a different geometry. And
it is arbitrary. But I would like it to be 4k
aligned. 128 sectors does that.

Any suggestions on geometry that will be both 4k
and satisfy OS/2?

Thanks. Paul.

Re: hard disk image

<usnr2p$p8gn$1@gwaiyur.mb-net.net>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=141&group=comp.os.os2.programmer.misc#141

  copy link   Newsgroups: comp.os.os2.programmer.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mb-net.net!open-news-network.org!.POSTED!not-for-mail
From: news.5.maazl@spamgourmet.org (Marcel Mueller)
Newsgroups: comp.os.os2.programmer.misc
Subject: Re: hard disk image
Date: Mon, 11 Mar 2024 21:54:49 +0100
Organization: MB-NET.NET for Open-News-Network e.V.
Message-ID: <usnr2p$p8gn$1@gwaiyur.mb-net.net>
References: <usn514$3lml7$1@dont-email.me> <AEHHN.683385$p%Mb.531729@fx15.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 11 Mar 2024 20:54:49 -0000 (UTC)
Injection-Info: gwaiyur.mb-net.net;
logging-data="827927"; mail-complaints-to="abuse@open-news-network.org"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:NRmRwCcNeR6WJ57216TqbWj6Bzw= sha256:kDkBkjOi8l0FFVG1iKjaaPebgyHch143uropiYhZNPo=
sha1:nqrVcl/xFbjgns2bV8Jjh87oFaY= sha256:0JAjbSQyOEicuKvd9YjRY06NxHRtU12uWR7ocLifgrw=
Content-Language: de-DE, en-US
In-Reply-To: <AEHHN.683385$p%Mb.531729@fx15.iad>
 by: Marcel Mueller - Mon, 11 Mar 2024 20:54 UTC

Am 11.03.24 um 18:59 schrieb Dave Yeo:
> Paul Edwards wrote:
>> This is a FAT32, MBR and the partition starts at
>> sector LBA 128, not LBA 63.
>>
>> Is that an issue?
>
> Generally OS/2 needs CHS partitioning with the cylinders aligned.

AFAIR this is not true. OS/2 fdisk and probably lvm refuses to do
changes if the partition table is wrong. But I remember that I have
booted from an HDD where the BIOS mapping was completely wrong.
To get aligned partitions on SSD with OS/2 tools working I used unusual
mappings with 32 sectors per track.

Marcel

Re: hard disk image

<hdMHN.554298$xHn7.155963@fx14.iad>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=142&group=comp.os.os2.programmer.misc#142

  copy link   Newsgroups: comp.os.os2.programmer.misc
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx14.iad.POSTED!not-for-mail
Subject: Re: hard disk image
Newsgroups: comp.os.os2.programmer.misc
References: <usn514$3lml7$1@dont-email.me> <AEHHN.683385$p%Mb.531729@fx15.iad>
<usnp6v$3qdjk$1@dont-email.me>
From: dave.r.yeo@gmail.com (Dave Yeo)
User-Agent: Mozilla/5.0 (OS/2; Warp 4.5; rv:45.0) Gecko/20100101 Firefox/45.0
SeaMonkey/2.42.9esr
MIME-Version: 1.0
In-Reply-To: <usnp6v$3qdjk$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 33
Message-ID: <hdMHN.554298$xHn7.155963@fx14.iad>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Mon, 11 Mar 2024 23:12:13 UTC
Date: Mon, 11 Mar 2024 16:12:13 -0700
X-Received-Bytes: 1812
 by: Dave Yeo - Mon, 11 Mar 2024 23:12 UTC

Paul Edwards wrote:
> On 12/03/24 01:59, Dave Yeo wrote:
>> Paul Edwards wrote:
>>> This is a FAT32, MBR and the partition starts at
>>> sector LBA 128, not LBA 63.
>>>
>>> Is that an issue?
>>
>> Generally OS/2 needs CHS partitioning with the cylinders aligned. You
>> likely need to wipe the first sectors, then use LVM to partition it and
>> add the LVM stuff such as a drive letter.
>> The rule is to always use OS/2 tools to partition. The exception now is
>> with GPT partitioning, which is only available with the latest ArcaOS,
>> or added to earlier OS/2 versions.
>
> Thanks for that info.
>
> I create a VHD using our own tools that we have
> control over.
>
> So I can change it to a different geometry. And
> it is arbitrary. But I would like it to be 4k
> aligned. 128 sectors does that.
>
> Any suggestions on geometry that will be both 4k
> and satisfy OS/2?
>

Not easily. As Marcel says, you may find a mapping that works that is
not strictly legal for OS/2 or just do the math. You will still need the
LVM info on the drive.
Dave

Re: hard disk image

<usojuh$3h4l$1@dont-email.me>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=143&group=comp.os.os2.programmer.misc#143

  copy link   Newsgroups: comp.os.os2.programmer.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mutazilah@gmail.com (Paul Edwards)
Newsgroups: comp.os.os2.programmer.misc
Subject: Re: hard disk image
Date: Tue, 12 Mar 2024 11:59:11 +0800
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <usojuh$3h4l$1@dont-email.me>
References: <usn514$3lml7$1@dont-email.me> <AEHHN.683385$p%Mb.531729@fx15.iad>
<usnp6v$3qdjk$1@dont-email.me> <hdMHN.554298$xHn7.155963@fx14.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 12 Mar 2024 03:59:14 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a8601467c144d39749698763867c9e17";
logging-data="115861"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18pKMt+g8yuy9rra0DjvkS/XZ8SWIy6aF4="
User-Agent: Mozilla/5.0 (OS/2; Warp 4.5; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:GP0xZuY3kIeQjthrblsuGtTckC4=
In-Reply-To: <hdMHN.554298$xHn7.155963@fx14.iad>
 by: Paul Edwards - Tue, 12 Mar 2024 03:59 UTC

On 12/03/24 07:12, Dave Yeo wrote:

> Not easily. As Marcel says, you may find a mapping that works that is
> not strictly legal for OS/2 or just do the math. You will still need the
> LVM info on the drive.

What LVM info?

Or is this some sort of internal OS/2 thing that
is not appropriate to be created by an external
tool, and the external tool should just use
32 sectors per track or something similar and
then let LVM accept the new drive?

Thanks. Paul.

Re: hard disk image

<uspdd8$8k47$1@dont-email.me>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=144&group=comp.os.os2.programmer.misc#144

  copy link   Newsgroups: comp.os.os2.programmer.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mutazilah@gmail.com (Paul Edwards)
Newsgroups: comp.os.os2.programmer.misc
Subject: Re: hard disk image
Date: Tue, 12 Mar 2024 19:13:40 +0800
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <uspdd8$8k47$1@dont-email.me>
References: <usn514$3lml7$1@dont-email.me> <AEHHN.683385$p%Mb.531729@fx15.iad>
<usnp6v$3qdjk$1@dont-email.me> <hdMHN.554298$xHn7.155963@fx14.iad>
<usojuh$3h4l$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 12 Mar 2024 11:13:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a8601467c144d39749698763867c9e17";
logging-data="282759"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1927MTTLfEqgbnqxA3i8lsrg+/fw1yoIm4="
User-Agent: Mozilla/5.0 (OS/2; Warp 4.5; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:xdGTIcRD3O2ErfxX9kZHXUWvKsI=
In-Reply-To: <usojuh$3h4l$1@dont-email.me>
 by: Paul Edwards - Tue, 12 Mar 2024 11:13 UTC

On 12/03/24 11:59, Paul Edwards wrote:

>> Not easily. As Marcel says, you may find a mapping that works that is
>> not strictly legal for OS/2 or just do the math. You will still need the
>> LVM info on the drive.
>
> What LVM info?
>
> Or is this some sort of internal OS/2 thing that
> is not appropriate to be created by an external
> tool, and the external tool should just use
> 32 sectors per track or something similar and
> then let LVM accept the new drive?

I've done something further on this.

I'm setting my disks to 0B already, so that should
qualify as CHS.

But is it track or cylinder alignment that I need?

If I just multiply 63 * 8 then I should be 4k aligned,
and only waste about 256k - no big deal.

That's only track alignment though.

I'm doing some other tests currently (with respect to
gccwin as LX module rebuilding itself on PDOS/386) so
not yet ready to mess with that.

BFN. Paul.

Re: hard disk image

<aZ_HN.561556$xHn7.25969@fx14.iad>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=145&group=comp.os.os2.programmer.misc#145

  copy link   Newsgroups: comp.os.os2.programmer.misc
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx14.iad.POSTED!not-for-mail
Subject: Re: hard disk image
Newsgroups: comp.os.os2.programmer.misc
References: <usn514$3lml7$1@dont-email.me> <AEHHN.683385$p%Mb.531729@fx15.iad>
<usnp6v$3qdjk$1@dont-email.me> <hdMHN.554298$xHn7.155963@fx14.iad>
<usojuh$3h4l$1@dont-email.me>
From: dave.r.yeo@gmail.com (Dave Yeo)
User-Agent: Mozilla/5.0 (OS/2; Warp 4.5; rv:45.0) Gecko/20100101 Firefox/45.0
SeaMonkey/2.42.9esr
MIME-Version: 1.0
In-Reply-To: <usojuh$3h4l$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 28
Message-ID: <aZ_HN.561556$xHn7.25969@fx14.iad>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Tue, 12 Mar 2024 15:59:02 UTC
Date: Tue, 12 Mar 2024 08:59:01 -0700
X-Received-Bytes: 1808
 by: Dave Yeo - Tue, 12 Mar 2024 15:59 UTC

Paul Edwards wrote:
> On 12/03/24 07:12, Dave Yeo wrote:
>
>> Not easily. As Marcel says, you may find a mapping that works that is
>> not strictly legal for OS/2 or just do the math. You will still need the
>> LVM info on the drive.
>
> What LVM info?

There's some stuff written to the MBR/EBR containing stuff such as the
drive letter and also in the case of the original JFS, info about
volumes that span partitions, something that isn't really recommended.
You can grow but not shrink a non-bootable JFS volume.

>
> Or is this some sort of internal OS/2 thing that
> is not appropriate to be created by an external
> tool, and the external tool should just use
> 32 sectors per track or something similar and
> then let LVM accept the new drive?
>

That's the recommended way. The only outside tool that handles the LVM
info is DFSee (dfsee.com) and even that recommends not doing it.
You will know if you got the alignment right if lvm (minilvm) accepts
the partition.
Dave

Re: hard disk image

<ut809i$3q47h$1@dont-email.me>

  copy mid

http://rslight.i2p/devel/article-flat.php?id=152&group=comp.os.os2.programmer.misc#152

  copy link   Newsgroups: comp.os.os2.programmer.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mutazilah@gmail.com (Paul Edwards)
Newsgroups: comp.os.os2.programmer.misc
Subject: Re: hard disk image
Date: Mon, 18 Mar 2024 08:01:48 +0800
Organization: A noiseless patient Spider
Lines: 117
Message-ID: <ut809i$3q47h$1@dont-email.me>
References: <usn514$3lml7$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 18 Mar 2024 00:01:55 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="bc07e2a61029128247ec646626b15c7e";
logging-data="4002033"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/c7B3eKdqFTcrTW95ZMtpO0oWfJtixJvk="
User-Agent: Mozilla/5.0 (OS/2; Warp 4.5; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:jCjPktZi9xKwI4jUx/AjoDJQ5ps=
X-Mozilla-News-Host: news://news.eternal-september.org
In-Reply-To: <usn514$3lml7$1@dont-email.me>
 by: Paul Edwards - Mon, 18 Mar 2024 00:01 UTC

On 11/03/24 22:38, Paul Edwards wrote:

After a lot of effort, I can now answer my own questions.

> This is a FAT32, MBR and the partition starts at
> sector LBA 128, not LBA 63.

ArcaOS documents this vaguely as "CHS aligned".

When it creates a partition at beginning of free
space, it starts on LBA 63, which means it is
track-aligned, not cylinder-aligned.

However, the end of the partition is indeed
cylinder aligned.

But actually it accepts the start of the partition
not even track aligned, as in this 128 example below.

Thus this command (using the latest bug-fixed parted):

D:\scratch\xxx>parted mkpart 0x80,0x0b,128,954448 pdos.vhd

D:\scratch\xxx>hexdump pdos.vhd 0 512
....
0001A0 00000000 00000000 00000000 00000000 ................
0001B0 00000000 00000000 230CA653 00008002 ........#..S....
0001C0 03000B0F FFB28000 00005090 0E000000 ..........P.....
0001D0 00000000 00000000 00000000 00000000 ................
0001E0 00000000 00000000 00000000 00000000 ................
0001F0 00000000 00000000 00000000 000055AA ..............U.

has an end head of 0F (offset 1C3) and the FF is actually 3F,
meaning sector number 63. The high 2 bits should be ignored -
they are part of the cylinder number.

This VHD has a geometry of 16 heads, as seen here
at offset 3A:

D:\scratch\xxx>hexdump pdos.vhd 488743424
1D21A200 636F6E65 63746978 00000002 00010000 conectix........
1D21A210 FFFFFFFF FFFFFFFF 2D8A2B2E 77696E20 ........-.+.win
1D21A220 00060001 5769326B 00000000 1D21A200 ....Wi2k.....!..
1D21A230 00000000 1D21A200 03B3103F 00000002 .....!.....?....
1D21A240 FFFFEB3E 27146D29 2607290F 202E1426 ...>'.m)&.). ..&
1D21A250 496C2B22 00000000 00000000 00000000 Il+"............
1D21A260 00000000 00000000 00000000 00000000 ................

and 63 sectors per track as per offset 3B, and
number of cylinders 3B3 (big endian format at 38).

Although it seems that any start value can be used,
I chose to use 504 to get a clean track alignment,
as well as being 4k-aligned. That's a trivial amount
of wasted space (about 200k).

Here is the command I (now) use:

parted --boot devel\pdos\src\mbr.com mkpart 0x80,0x0b,504,954072 ..\pdos.vhd

However, I think I will take advantage of the fact
that 128 is accepted to return to what I was using
before.

Note that I am using x'0b' to indicate that the CHS
values are accurate - as required by ArcaOS, rather
than x'0c' to say that LBA should be used as the CHS
values may be inaccurate. It is ironic that ArcaOS
uses x'0c' in partitions it creates given that it
relies on the CHS.

Finally, ArcaOS doesn't appear to properly detect or
enforce that the end CHS is cylinder-aligned, so
doesn't always throw an error. The fact that it
doesn't throw an error doesn't mean that there isn't
a problem with failing to properly align. It may or
may not be OK. I don't have sufficient insight into
ArcaOS internals.

Anyway, the end result of this is a FAT32 VHD in
pdoso.zip (not pdos.zip) at http://pdos.org that
contains a bootable image of PDOS/386 (a partial
Windows, OS/2 and Linux clone) with native OS/2
LX executables sufficient to run a toolchain
(which includes gcc 3.2.3) so that you are in a
position to compile (or write new software) any
other C90-compliant software available. And there
is a masm (subset) compatible assembler too (as86),
so you can write assembler in traditional standard
format too.

Simply add the disk (the disk is standard FAT32 -
there is no LVM information or anything else that
is specific to ArcaOS - so you need to use ArcaOS
to add that) to the ArcaOS machine in Virtualbox,
open a command prompt and run lvmgui, select the
partition, then volume, create volume (I chose
non-bootable and compatible - other options may
work but I didn't try them and I don't know what
they mean).

When you exit, you should have a D drive or whatever.

Then you can do:

path %path%;d:\dos
d:
cd \devel\pdos\pdpclib
pdmake -f makefile.sos
pdptest abc def

to demonstrate the software.

BFN. Paul.


devel / comp.os.os2.programmer.misc / hard disk image

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor