10 November 2020, 13:11 | #1 |
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? |
10 November 2020, 13:16 | #2 |
Registered User
Join Date: Oct 2012
Location: Italy
Age: 49
Posts: 2,945
|
Interesting question ....
|
10 November 2020, 13:36 | #3 |
son of 68k
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. |
10 November 2020, 14:47 | #4 |
Going nowhere
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. |
10 November 2020, 16:55 | #5 | |
Registered User
Join Date: Dec 2018
Location: UK
Posts: 1,716
|
Quote:
|
|
10 November 2020, 17:17 | #6 |
Registered User
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). |
10 November 2020, 17:33 | #7 |
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.
|
10 November 2020, 17:35 | #8 |
Registered User
Join Date: Oct 2012
Location: Italy
Age: 49
Posts: 2,945
|
Thanks Niklas .... wonderful explanation
|
11 November 2020, 10:16 | #9 |
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.
|
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 |
|
|