English Amiga Board


Go Back   English Amiga Board > Support > support.Other

 
 
Thread Tools
Old 10 November 2020, 13:11   #1
Sim085
Registered User
 
Join Date: Apr 2009
Location: N/A
Posts: 962
How does the system know that the floppy disk inserted is not the same?

I have two floppy disks, both have the same exact content and both have the same name. Both floppy disks have one application. I insert one floppy disk, open it, but before I start the application I remove the floppy disk and insert the other one and then start the application. When I do this I am told I need to insert the original floppy disk.

So my question is; how does the system know that the floppy disks are not the same when the two floppy disks have the same content and same name?
Sim085 is offline  
Old 10 November 2020, 13:16   #2
chip
Registered User
 
Join Date: Oct 2012
Location: Italy
Age: 49
Posts: 2,945
Interesting question ....
chip is offline  
Old 10 November 2020, 13:36   #3
meynaf
son of 68k
 
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,337
It is because they don't have exactly the same content.
When a disk is copied with f.e. WB, some ID is changed.
meynaf is offline  
Old 10 November 2020, 14:47   #4
Galahad/FLT
Going nowhere
 
Galahad/FLT's Avatar
 
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 9,014
Only way the disk is exact is if you use a track/sector copying program I.e. like X-Copy.

If you've used AmigaDOS and copied as files then it won't be exact, time stamps for instance will be different.
Galahad/FLT is offline  
Old 10 November 2020, 16:55   #5
solarmon
Registered User
 
solarmon's Avatar
 
Join Date: Dec 2018
Location: UK
Posts: 1,716
Quote:
Originally Posted by Sim085 View Post
I have two floppy disks, both have the same exact content and both have the same name. Both floppy disks have one application. I insert one floppy disk, open it, but before I start the application I remove the floppy disk and insert the other one and then start the application. When I do this I am told I need to insert the original floppy disk.

So my question is; how does the system know that the floppy disks are not the same when the two floppy disks have the same content and same name?
What is the exact error message? Provide a screenshot of it.
solarmon is offline  
Old 10 November 2020, 17:17   #6
solarmon
Registered User
 
solarmon's Avatar
 
Join Date: Dec 2018
Location: UK
Posts: 1,716
Maybe Workbench also stores and checks other information about the floppy disk from the root block, which is where it gets the disk name from. If certain fields of the root block are different then that is possibly how it knows that it is a different disk.

https://wiki.osdev.org/FFS_(Amiga)#Root_Block

And the file / directory structure will also probably be differrent (unless you did an exact image copy).
solarmon is offline  
Old 10 November 2020, 17:33   #7
Niklas
Registered User
 
Join Date: Apr 2018
Location: Stockholm / Sweden
Posts: 129
AmigaDOS has a list of all the current volumes in the system. The volume data structure is described here. As you can see, the data structure contains the name of the volume, the type of disk, and the volume creation date. The volume creation date is obtained from the root block of the disk's file system. AmigaDOS compares the volume's creation date and name to see if a newly inserted volume is already in the list. Probably the volume creation date differs between your two disks.
Niklas is offline  
Old 10 November 2020, 17:35   #8
chip
Registered User
 
Join Date: Oct 2012
Location: Italy
Age: 49
Posts: 2,945
Thanks Niklas .... wonderful explanation
chip is offline  
Old 11 November 2020, 10:16   #9
Sim085
Registered User
 
Join Date: Apr 2009
Location: N/A
Posts: 962
Thank you all for the replies. I always wondered how it worked in the background.
Sim085 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
GUI taskbar display - current inserted DF0 disk image solarmon support.WinUAE 2 16 July 2020 21:46
Floppy drive randomly thinks there is a floppy disk inserted Sim085 support.Hardware 3 12 April 2020 16:14
Cumana CAX 354 (External Floppy Disk Drive) - fix for floppy disk not ejecting solarmon support.Hardware 0 11 July 2019 09:21
Newly created floppy disk not writing to host system? AmigaLee support.FS-UAE 1 13 March 2019 19:14
Mr. Blobby crashes when disk 2 is inserted apachacha support.WinUAE 16 19 February 2012 19:23

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 23:03.

Top

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