Author Topic: 1581 partitions - how to use them  (Read 746 times)

0 Members and 1 Guest are viewing this topic.

Offline RCtech

  • VIC 20 user
  • ****
  • Posts: 101
  • Age: 37
  • Activity:
    4.4%
  • Country: de
  • Reputation: 2
  • With us since: 26/03/2008
    YearsYearsYearsYearsYears
    • View Profile
1581 partitions - how to use them
« on: August 04, 2011, 04:30 AM »
Everyone (I hope) knows the weird partitions on the 1581. They weren't used too much because they're rather complicated to use, but I like them. Here's a little guide to these things.

1581 partitions must have these characteristics:

- a minimum of 120 Blocks (minus 40 blocks for the directory = 80 Blocks free)
- always start at sector 0
- the size must be divideable by 40
- they musn't allocate Track 40

Maybe these restrictions are the reasons because 1581 partitions weren't used often. But it's not too difficult. For creating a partition in the size you want it you have to do following calculations:

- the amount of blocks you need
- add 40 blocks for the directory
- raise the block number if its divisibly by 40.

To create a 1541 disk you have to calculate like this: 664+40 = 704. The next size divisibly by 40 is 720. That's all.

I'm using the standard Partition Aid tool from the 1581 Test/Demo disk. With key 4 you can select between different 1581 drives, key 3 shows the directoy and with key 1 you can swap between partitions. With key 1 you can create partitions.

First you enter the name of the partition. Then choose the track, either 1-39 or 41-80, so the directory track isn't allocated. Then follows the sector, it is always 0. If that's ok, the programm will ask if the partition should be created. You have to enter the name displayed in the partition directory and the ID, like formatting a disk. That's all. If you show the actual directory, you're already in the partition you just created.

These are some typical partition sizes:

1541 disk: 720 blocks (680 free)
near-1571: 1360 blocks (1320 free)
1571 full: 1400 Blocks (1360 free)
maximum size: 1560 blocks (1520 free)

Partitions are easy to handle, they could be renamed or deleted like files. Joker functions also work. Changing partitions is done with the / command, in JiffyDos @/tools selects a partition, @/ selects the root directory.

I like these things because you could organize things better. So I created a 1581 disk with four 720 block partitions to store the CMD Utility disks there. For emulators I created a game disk, using the HD-patched versions of Turrican and Katakis. I first I created an empty file MENU, then a divider file '-------------'. Now I created a partition about a 1571 size starting at track 5 for Turrican 1, a similar sized partition for Turrican 2 was starting at Track 41. Katakis is put in the root directory, I'll always wanted to add something in the directory that hides these files. Now I programmed a loader menu in BASIC with allow to select the games, after selection the program changes the partitions and loads the game. Of course this is easier as using 5 different 1541-images in an emulator. I hate changing disk images.

By the way, what's the best method to hide the following files in a director? I always know these "filename"+CHR$(0)+CHR$(0) tricks, but the directory is always a bit distorted after this method. What is a good solution for this?
« Last Edit: August 04, 2011, 05:06 AM by Naquaada »

Offline RobertB

  • Forum god
  • ********
  • Posts: 2874
  • Location: Visalia, California
  • Activity:
    2.4%
  • Country: us
  • Reputation: 451
  • With us since: 05/06/2006
    YearsYearsYearsYearsYearsYearsYears
    • View Profile
    • Fresno Commodore User Group
Re: 1581 partitions - how to use them
« Reply #1 on: August 04, 2011, 08:29 AM »
     I'm glad I use the easier 1581 Toolkit program when I have to make partitions on a 1581 disk.

          Truly,
          Robert Bernardo
          Fresno Commodore User Group
          http://videocam.net.au/fcug

Offline LarryJor

  • KIM-1 user
  • **
  • Posts: 13
  • Age: 55
  • Location: Denver, Colorado
  • Activity:
    0%
  • Reputation: 111
  • Gender: Male
  • With us since: 13/09/2009
    YearsYearsYearsYears
    • View Profile
Re: 1581 partitions - how to use them
« Reply #2 on: August 04, 2011, 11:54 PM »
     Yeah, I used them to make copies of the disks for D&D games....customized the games to run off the disks that way.  Can't remember quite how, but I ended up reducing a 10 floppy disk game to use just 3 1581 disks.

Offline Shaun_B

  • KIM-1 user
  • **
  • Posts: 42
  • Activity:
    0%
  • Country: gb
  • Reputation: 2
  • With us since: 12/12/2012
    Years
    • View Profile
Re: 1581 partitions - how to use them
« Reply #3 on: January 17, 2013, 02:01 AM »
Thanks for the tips, I'll give it a go, just out of interest. I'm quite surprised it takes 40 blocks to make the partition though, seems a lot of disk space, but hey, if it works :-)

I guess I could get quite a lot of VIC 20 programs on a disk using 1581 partitions.

Regards,

Shaun.

Offline wte

  • C64 user
  • *****
  • Posts: 342
  • Location: Frankfurt
  • Activity:
    0%
  • Country: de
  • Reputation: 10
  • Gender: Male
  • With us since: 18/03/2007
    YearsYearsYearsYearsYearsYears
    • View Profile
    • http://blog.c128.net
Re: 1581 partitions - how to use them
« Reply #4 on: January 17, 2013, 06:19 AM »
I'm quite surprised it takes 40 blocks to make the partition though, seems a lot of disk space, but hey, if it works :-)
It's a 1581! Even after making 1581-SubPartitions. So you need 40 blocks for BAM and directory (always)!

Offline gsteemso

  • PET user
  • ***
  • Posts: 91
  • Age: 36
  • Location: Near Seattle
  • Activity:
    0%
  • Country: us
  • Reputation: 24
  • Gender: Male
  • C128 & Mac user
  • With us since: 31/01/2008
    YearsYearsYearsYearsYears
    • View Profile
Re: 1581 partitions - how to use them
« Reply #5 on: January 24, 2013, 02:04 PM »
I'm glad I use the easier 1581 Toolkit program when I have to make partitions on a 1581 disk.

[size=78%]Sounds great. Where can you find it? Will it run on a 128 in 128 mode? Given where this discussion is taking place I'd imagine so, but so much Commodore-related stuff is C64-specific that I am a bit leery of just assuming.[/size]
The world’s only gsteemso

Offline RobertB

  • Forum god
  • ********
  • Posts: 2874
  • Location: Visalia, California
  • Activity:
    2.4%
  • Country: us
  • Reputation: 451
  • With us since: 05/06/2006
    YearsYearsYearsYearsYearsYearsYears
    • View Profile
    • Fresno Commodore User Group
Re: 1581 partitions - how to use them
« Reply #6 on: January 25, 2013, 07:25 AM »
Where can you find it?
     Find it at http://ftp.pokefinder.org   Search for "1581 Toolkit".
Quote
Will it run on a 128 in 128 mode?
     No, it is a C64 program.

          Truly,
          Robert Bernardo
          Fresno Commodore User Group
          http://videocam.net.au/fcug

 



Back to top