English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 01 October 2021, 06:05   #1
jasonver2.0
ABR Creator
 
Join Date: Mar 2006
Location: Australia
Age: 42
Posts: 171
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, 07:51   #2
Steady
Registered User

 
Join Date: May 2021
Location: Melbourne, Australia
Posts: 20
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 07:52. Reason: typo
Steady is offline  
Old 01 October 2021, 08:08   #3
jasonver2.0
ABR Creator
 
Join Date: Mar 2006
Location: Australia
Age: 42
Posts: 171
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, 10:05   #4
Exodous
Registered User

 
Join Date: Sep 2019
Location: Leicester / England
Posts: 153
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, 13:29   #5
jasonver2.0
ABR Creator
 
Join Date: Mar 2006
Location: Australia
Age: 42
Posts: 171
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, 13:42   #6
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 46
Posts: 25,099
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 offline  
 


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 22:27
Checking for undesireable contents rare_j project.Amiga File Server 15 30 June 2020 01:41
Checking / Scanning ADF Files sTe New to Emulation or Amiga scene 4 19 March 2019 14:06
Checking my Religion Axxy request.Modules 0 04 July 2005 20: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 11:43.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Page generated in 0.07470 seconds with 15 queries