(Inspired by https://unix.stackexchange.com/a/254254/320598)
In Linux ram disks like /dev/ram0 created by the brd driver aren't removable according to /sys/block/ram0/removable, and I wonder: Why?
One reason I could think of is: If you remove a "normal" removable disk, the data is still there, and it can be re-inserted/re-connected, but when ejecting a ram disk, the data is lost.
A related problem may be how to create ram disks one-by-one, and remove those one-by-one again.
Using blockdev --flushbufs to de-allocate a ram disk had been discussed as bad design already (usually flushing disk buffers does not remove the data from the disk).
See also: