If he could get the drive eject button to unmount the SD card, this would actually be more functional that current tech. It bugs me that unmounting SD cards / USB drives and physically removing it are two seperate actions. It's a regression in usability after floppies and CD-ROMs.
On Windows, they're mounted sync by default , so you can just remove them. Of course, if you do so while it's writing, you'll have a problem - though this was the same with floppies. Windows used to require you to 'eject' but doesn't any more, which I think is due to the above. Please correct me if I'm wrong.
Hacked Together 118 GB Floppy Disk
41–50 of 102 posts
Re: Hacked Together 118 GB Floppy Disk
#42Earlier quoted context omitted.
On Windows, they're mounted sync by default , so you can just remove them. Of course, if you do so while it's writing, you'll have a problem - though this was the same with floppies. Windows used to require you to 'eject' but doesn't any more, which I think is due to the above. Please correct me if I'm wrong.
It is only required if you enabled write-caching for removable media. As far as I know this has never been enabled by default.
Re: Hacked Together 118 GB Floppy Disk
#43Cute. Does anyone remember the superfloppies of the late 90s https://en.wikipedia.org/wiki/Floppy_disk_variants#Superflop... ?
This was magnet-optical based though, thus it involved having a laser heating the media before the magnetic arm could flip the bit.
Re: Hacked Together 118 GB Floppy Disk
#44Earlier quoted context omitted.
It is only required if you enabled write-caching for removable media. As far as I know this has never been enabled by default.
By windows. I'm not sure what parted/gparted defaults to.
I recall some distros tried to mount USB drives with the sync option back in the early days of USB media.
Problem was that this, in combo with FAT, would basically kill cheap drives lacking wear leveling.
This because every write action was accompanies with a allocation table update. And thus whatever flash cells housed that table would see a massive amount of writes.
Actually i think the mount man file still have a warning about this in the sync option entry.
Re: Hacked Together 118 GB Floppy Disk
#45Earlier quoted context omitted.
What a great point. I am so paranoid now about removing USB drives after I accidentally removed one while it was still writing to the drive (which I had no idea because there was no LED on the drive) and it bricked the entire device. I generally wait until my computer has shutdown completely now before removing any important drives, just to be sure.
Generally if I'm worried about completing a write, I'll just open a Terminal and type `sync` (with a `&& sudo purge` on OSX), and then, as soon as that returns, yank the drive. I don't even bother to unmount it; what would unmounting add , if the OS can recognize that the device is gone and clean up its mount tables? Is there some filesystem that waits until unmount to recalculate indexes or something? (Okay, sure, t…
Also, unmounting helps you to be confident that nothing's started doing more IO since you ran sync.
Re: Hacked Together 118 GB Floppy Disk
#46Re: Hacked Together 118 GB Floppy Disk
#47Earlier quoted context omitted.
By windows. I'm not sure what parted/gparted defaults to.
I think they go with a write cache. I recall some distros tried to mount USB drives with the sync option back in the early days of USB media. Problem was that this, in combo with FAT, would basically kill cheap drives lacking wear leveling. This because every write action was accompanies with a allocation table update. And thus whatever flash cells housed that table would see a massive amount of writes. Actually i th…
Re: Hacked Together 118 GB Floppy Disk
#48Cute. Does anyone remember the superfloppies of the late 90s https://en.wikipedia.org/wiki/Floppy_disk_variants#Superflop... ?
You also had Sony's Minidisc that in the end could store 1GB in a physical format very similar to a floppy. This was magnet-optical based though, thus it involved having a laser heating the media before the magnetic arm could flip the bit.
Re: Hacked Together 118 GB Floppy Disk
#49Re: Hacked Together 118 GB Floppy Disk
#50Earlier quoted context omitted.
I think they go with a write cache. I recall some distros tried to mount USB drives with the sync option back in the early days of USB media. Problem was that this, in combo with FAT, would basically kill cheap drives lacking wear leveling. This because every write action was accompanies with a allocation table update. And thus whatever flash cells housed that table would see a massive amount of writes. Actually i th…
So this implies that even in windows one needs to safely unmount external media that were originally formatted using parted/gparted?