English Amiga Board


Go Back   English Amiga Board > Support > support.Hardware

 
 
Thread Tools
Old 13 June 2024, 16:44   #61
Gilloo
Registered User
 
Join Date: Nov 2010
Location: Grenoble, Isère, Rhône-Alpes, France, Europe, Earth
Posts: 296
Quote:
Originally Posted by Jope View Post
What does your mount file USBKEY0 look like?Why did you choose 50465301 as your DosType? With PFS3 you really ought to use 50465303 (PFS\03)
In pfs3aio/blocks.h
#define ID_PFS_DISK (0x50465301L) /* 'PFS\1' */


so I don't see why we should put another value in DosType
Gilloo is online now  
Old 13 June 2024, 19:11   #62
Jope
-
 
Jope's Avatar
 
Join Date: Jul 2003
Location: Helsinki / Finland
Age: 43
Posts: 9,907
It is just good form. While it's true that PFS3 will work with almost any dostype (PDS\03 is special for PFS3), if you introduce this mount file into a correctly set up system (or emulator) that is already running PFS3, you will now have multiple versions of PFS3 in memory if there are existing PFS\03 partitions in that setup.

You will also confuse other people who are helping when the dostype is strange, they will be off on a short wild goose chase wondering why it was done like this (often strange things are done for a reason and the reason needs to be investigated).

But it is a free world and you are free to not follow any conventions or best practices. When breaking convention, you do need to be aware of having done it and also for the reasons why (for the fun of it is a valid reason) and potentially be ready to communicate what was done in case you are collaborating with someone on a problem.

The header file you are referring to does not actually have anything to do with to the in memory dostypes used when matching an in-memory filesystem handler to a device. Instead it refers to the four bytes found on the first block of the partition you are mounting. PFS3aio has support for several different older versions and alternate flavours of PFS3 (again regardless of the dostype you used) and will use the correct code path depending on what it finds on disk.

Last edited by Jope; 14 June 2024 at 11:59.
Jope is offline  
Old Yesterday, 10:12   #63
Gilloo
Registered User
 
Join Date: Nov 2010
Location: Grenoble, Isère, Rhône-Alpes, France, Europe, Earth
Posts: 296
The mountlist (HigCyl can differ but it is always odd)

USBKEY0:
Device = usbscsi.device
FileSystem = L:PFS3
Unit = 0
SectorSize = 512
LowCyl = 0
HighCyl = 118271
Surfaces = 8
SectorPerTrack = 128
Mask = 0xFFFFFFFF
MaxTransfer= 0x001FE00
StackSize = 8000
Priority = 0
Flags = 0
Reserved = 0
Buffers = 5
BufMemType = 1
BootPri = 0
GlobVec = -1
DosType = 0x50465301
Mount = 1
#


The Error:
Write 2 Error 170 on block 0 + 2
00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00.00

If I look at how it's built here
https://github.com/tonioni/pfs3aio

mode 2 (direct scsi)
errnum 170
blocknr 0
blocks 2
scsierr (sense error) all void

It seems to be the 2 firsts blocks, but I also got this error on block 64, a bitmap block.
All blocks can be accessed or modified with an hex monitor, without any error, but the format command hangs.
What is the problem ?
Bad MaxTransfer value ?
Wrong disk Geometry ?

To get out of these strange errors, I use HDInstTools on WinUAE, then the key is working under Subway/ANAIIS.
Gilloo is online now  
Old Yesterday, 10:55   #64
Jope
-
 
Jope's Avatar
 
Join Date: Jul 2003
Location: Helsinki / Finland
Age: 43
Posts: 9,907
The mask and maxtransfer should not matter here. The geometry looks reasonable for a 64GB pen drive, if I calculated correctly.

You could try extracting a mount file with giggledisk, if you managed to make it work by partitioning with HDInstTools.

https://aminet.net/package/disk/misc/giggledisk

Something like

giggledisk device usbdisk.device unit 0 to ram:

will create mount files for the partitions in ram:
Jope is offline  
 


Currently Active Users Viewing This Thread: 2 (0 members and 2 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
A1200 subway 2021 question Aether support.Hardware 1 11 March 2023 20:41
SUBWAY USB CONTROLLER (A1200 Clockport) CFou! support.Hardware 59 01 January 2014 02:53
ANAIIS 1.05 (28 may 2012) Gilloo News 59 11 October 2012 12:46
Subway and Indivision installed in A1200 Desktop amigakit.com Hardware pics 10 27 February 2009 03:21
A1200 With Fitted Subway and 030 for sale! Peter MarketPlace 9 09 February 2008 17:05

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 16:13.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.12298 seconds with 14 queries