01 October 2021, 05:05 | #1 |
ABR Creator
Join Date: Mar 2006
Location: Australia
Age: 44
Posts: 178
|
Checking to see if an ADF is FFS
Hello
In an ADF, how does one find out if a disks filesystem is FFS or not please? I found the byte position for the disk label etc Thanks (Possibly the wrong section -- sorry) |
01 October 2021, 06:51 | #2 |
Registered User
Join Date: May 2021
Location: Melbourne, Australia
Posts: 40
|
The first 4 bytes of a boot block (first block) will contain the following:
'D', 'O', 'S', <number> Where <number> represents the Amiga FileSystem type the disk is formatted in. Note that the numbers below are actual numbers, not ASCII representations of numbers: 0 - OFS 1 - FFS 2 - OFS International 3 - FFS International 4 - OFS Directory Cache 5 - FFS Directory Cache 6 - OFS Long File Name 7 - FFS Long File Name Last edited by Steady; 01 October 2021 at 06:52. Reason: typo |
01 October 2021, 07:08 | #3 |
ABR Creator
Join Date: Mar 2006
Location: Australia
Age: 44
Posts: 178
|
Hello Steady
Oh sorry, not in the bootblock - i know that bit In the disk itself - if one puts a FFS bootblock on an OFS disk or visa versa a crash happens |
01 October 2021, 09:05 | #4 |
Registered User
Join Date: Sep 2019
Location: Leicester / England
Posts: 201
|
The 'DOSx' header in the bootblock is the identifier.
If you format a blank disk as OFS and one as FFS, then compare the two, the only differences are the 'DOSx' in the bootblock and the creation dates and corresponding checksum in the root block, there are no other differences. |
01 October 2021, 12:29 | #5 |
ABR Creator
Join Date: Mar 2006
Location: Australia
Age: 44
Posts: 178
|
Oh fair enough thank you
I was hoping to figure out a way to tell if a disk was FFS so it would warn of a OFS bootblock install etc Thanks |
01 October 2021, 12:42 | #6 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,517
|
You can usually check it if it has any files: It is OFS if data blocks have valid checksum and valid OFS only identifier fields. But this can't be done without parsing directory structure. Which isn't trivial.
Check also file size (OFS stores 488 bytes per block, FFS stores full 512 bytes), someone might have written OFS data block dump(s) as a file on FFS disk |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can anybody help with converting .scp to .adf? or checking .scp made with arduino? | Amcio | support.Games | 17 | 30 July 2021 21:27 |
Checking for undesireable contents | rare_j | project.Amiga File Server | 15 | 30 June 2020 00:41 |
Checking / Scanning ADF Files | sTe | New to Emulation or Amiga scene | 4 | 19 March 2019 13:06 |
Checking my Religion | Axxy | request.Modules | 0 | 04 July 2005 19:22 |
|
|