English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 01 October 2021, 05:05   #1
jasonver2.0
ABR Creator
 
Join Date: Mar 2006
Location: Australia
Age: 44
Posts: 178
Smile 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)
jasonver2.0 is offline  
Old 01 October 2021, 06:51   #2
Steady
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
Steady is offline  
Old 01 October 2021, 07:08   #3
jasonver2.0
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
jasonver2.0 is offline  
Old 01 October 2021, 09:05   #4
Exodous
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.
Exodous is offline  
Old 01 October 2021, 12:29   #5
jasonver2.0
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
jasonver2.0 is offline  
Old 01 October 2021, 12:42   #6
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,504
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
Toni Wilen is online now  
 


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

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 19:22.

Top

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