Re: HD-DOS+ Notes




20 OPEN15,8,15:PRINT#15,"F-P"CHR$(2)CHR$(144)CHR$(101)CHR$(1)CHR$(0)

You're very close. The only difference is the order of the bytes.
The F-P command expects high byte first and low byte last. I know
everyone will think this is odd, however, the block (B-x) commands
basically are high byte first as well. The track value in a B-x
command can be considered the high byte and the sector the low byte.
That is why I kept the same order for the F-P command.

So, the correct line 20 is:

20 OPEN15,8,15:PRINT#15,"F-P"CHR$(2)CHR$(0)CHR$(1)CHR$(101)CHR$(144)

I guess nothing will happen if I try to seek beyond the end of file,
except an error message and the pointer remains unchanged.

That's exactly right. The error is $50 - RECORD NOT PRESENT

Will be there any convient way to set the hidden flag not involving a
diskeditor?

@EH:FILENAME

It's a toggle function. If it's already hidden, it will be made visible.

Isn't the 32 byte filename extension a major compatibility problem?

No, if there are more than 16 characters in the filename, the normal
@$ or LOAD"$",8 commands will only show the first 15 characters plus
an asterisk. This lets the user know the filename is longer than 16
characters. And any software that tries to load the file will work
due to the ending asterisk. The only time this will be a problem is
when there are more than one file with the first 15 characters being
the same. It's up to the individual user to be careful with the choice
of filenames. To show the directory with long filenames:

@$L

All the other syntaxes that can be used with @$ can also be used with
@$L such as:

@$L:G* to show all files beginning with G.

The formatting of the listing is done in a way to be neatly arranged
on both a 40 column screen and an 80 column screen. Sorry about the
VIC-20, but 22 columns is just tough to deal with sometimes. :)

@$L doesn't break in the other partitions. It works just as if the
L wasn't there.

The root partition dir is an interresting idea, but why does it differ
from a simple "chroot"? Why make a separate directory for top level
directories, if one could just change the virtual root directory?

Didn't you know there is also a directory for the partitions which is
yet another directory level up? The partition directory is stored in
the system partition and is arranged just like a directory on a disk
with 30 bytes for each directory entry. Each directory entry points
to a partition. It has always been this way with the CMD-HD.

4GB is a huge partition. I think a way to break it up will be handy
for some people. For those who don't like it, just use the one
default root directory. You'll never have to worry about the
Master directory, just pretend it doesn't exist.

It seems to me that this extended partition thing is meant mostly to
store disk image files, or for new software which can cope with the
situation. That's sad. But at least the way of handling those image
files is nice ;-)

No, you can copy files to it and then load and run them just like you
would any other partition. LOAD"FILENAME",8 and RUN works just like
you would expect.

FCOPY can copy files to/from an Extended Native partition just as well
as it can with a regular native partition.

The only problem you will have is with programs that do direct disk
access. But for them, as long as their support files are within the
first 16MB of the partition, they will work also because they will
always put a 0 byte where the high byte of the block address goes.
Programs that expect to find something on track 18 won't work, but
who cares. Those programs don't work in a 1581 or native partition
either.

-Maurice

--
** Maurice Randall - Click Here Software Co.
** High-Performance for your Commodore
** email: maurice@xxxxxxxxxxx, support@xxxxxxxxxxx
** web: http://cmdrkey.com
.



Relevant Pages

  • IDE HDD fail?
    ... This caused after this command: ... Device contains neither a valid DOS partition table, nor Sun, SGI or OSF ... Offline data collection status: ... Self-test execution status: ...
    (Linux-Kernel)
  • Re: How to clone Windows XP back to your HD?
    ... Admittedly, I am a little "hazy" on which command does what, but having executed both and in both and reverse order, *one* or other of the commands should have: ... Re-written the Master Boot Record - the beginning sector of a hard-drive which contains the partition table and the loading code of the active O.S. ... The MBR written with the "Grub" loading-code stubbornly refuses to be repaired with the FIXMBR / FIXBOOT commands. ...
    (microsoft.public.windowsxp.newusers)
  • Re: Help with a little dd damage!
    ... Partition 3 has different physical/logical beginnings: ... Feb 28 20:20:57 morgansmachine kernel: EXT3-fs: write access will be enabled during recovery. ... So, fingers firmly crossed, have I managed to copy enough of my hard drive with the first two commands to be able to patch back the catastrophic damage I seem to have done with the last command. ... "By choosing not to ship any proprietary or binary drivers, Fedora does ...
    (Fedora)
  • Re: Trying to move /usr - Fixed
    ... After thinking about that mv command, ... Note /dev/ad8s1e is an empty partition (a new disk, ... I'll use user and usrdemo as the names of the ... the root of the file system. ...
    (freebsd-questions)
  • add disk/partition to softRaid5
    ... I am trying to add a partition to a 3 disk RAID5 device by using ... Command: Partition number: ... Old raid-disk 0 has 2132 chunks, ...
    (comp.os.linux.misc)