How to be sure, that buffered data is written to USB drive/stick?
Made that way with NTFS drive. Answering cancel causes system freeze.
Correct way to dismount usb drives ?
Correct way to dismount usb drives ?
- Attachments
-
- usb_disconnect.jpg (30.42 KiB) Viewed 4896 times
Re: Correct way to dismount usb drives ?
"Dismount USB0:" or via the massstorage commodity (ctrl+alt+m)
Personally I just wait until the light stops flashing and then yank it out - AmigaOS doesn't usually do write caching.
It might be useful to have dismount added to the disk context menu.
Personally I just wait until the light stops flashing and then yank it out - AmigaOS doesn't usually do write caching.
It might be useful to have dismount added to the disk context menu.
Re: Correct way to dismount usb drives ?
@chrish
Missed contextual menuentry allso.
Seems to work, if I dismount it as "assign amigantfs: dismount" rather than usb0:
Using usb0: causes requester and freeze.
I can dismount my 8gb memorystick without freeze, but 300 gt disk not.
Still good, that accessing ntfs is here
Missed contextual menuentry allso.
Seems to work, if I dismount it as "assign amigantfs: dismount" rather than usb0:
Using usb0: causes requester and freeze.
I can dismount my 8gb memorystick without freeze, but 300 gt disk not.
Still good, that accessing ntfs is here
- salass00
- AmigaOS Core Developer
- Posts: 530
- Joined: Sat Jun 18, 2011 3:12 pm
- Location: Finland
- Contact:
Re: Correct way to dismount usb drives ?
@mlehto
As chris already said you should use the c:dismount command and not "c:assign dismount". The latter only removes the doslist entry and doesn't actually send an ACTION_SHUTDOWN packet to the filesystem or cause it to flush any buffers for that matter.
As chris already said you should use the c:dismount command and not "c:assign dismount". The latter only removes the doslist entry and doesn't actually send an ACTION_SHUTDOWN packet to the filesystem or cause it to flush any buffers for that matter.
Re: Correct way to dismount usb drives ?
Ok, point taken. Old habits...
Re: Correct way to dismount usb drives ?
@salass00
Dismount works flawless, yes.
Dismount works flawless, yes.
- salass00
- AmigaOS Core Developer
- Posts: 530
- Joined: Sat Jun 18, 2011 3:12 pm
- Location: Finland
- Contact:
Re: Correct way to dismount usb drives ?
NTFS3G on AmigaOS does have a write cache that is flushed to disk after either 10 or 0.5 seconds depending on if there is continuous write activity or not. If there has been 0.5 seconds without any additional writes all cached writes are flushed to disk immediately at that point. If there are continuous writes then it may take up to 10 seconds before they are flushed to disk.chris wrote: Personally I just wait until the light stops flashing and then yank it out - AmigaOS doesn't usually do write caching.
It might be useful to have dismount added to the disk context menu.
These are the default filesysbox.library values for active and inactive update timeouts. Other filesystem implementations may override them if necessary for speed/usability reasons and in the new dos.library there is also a way to get and set them on a per device basis using IDOS->FileSystemAttrs() which filesysbox.library also supports.