Reply To: unplugdrive.sh (bug?)

#82033
Robin
Member

    Unplugdrive version 0.90 does spin down externaly plugged spinning devices fine in case these are present on a system. (Be aware many flash devices wrongly report to the system, pretending to be rotational!) Unplugdrive will automatically spin down the devices in case they have identified itself as rotational to the system. Devices reporting not to be rotational will not be spun down by the script. No need to enter different command line options normally, it is all done by the script logic, and will only fail in case the device lies to the linux system kernel about its true nature. Only in this case you can use the command line options available as a workaround for these specific devices. But you don’t need to, since the commands used by the script will not do any harm to wrongly reporting flash devices, it will simply have to wait for a 30sec. timeout in some cases on these lying devices.

    This is the last Version available for antiX 19. It comes with mostly the same functionality, command line options and user interface as the recent antiX 21 Version (0.93b), even when having a different code base. The 0.90 Version is tested extensively to work reliable and stable on antiX 19. (Don’t use 0.93b on antiX 19, there is an important dependency missing, which causes it to fail unnoticed!)

    The command to type in on console for this latest unplugdrive Version for antiX 19 should be sudo unplugdrive.sh, in case you have not setup the alias as described above.

    Try unplugdrive.sh –help for more information (no sudo needed to get this informational output only).

    In order to see and understand, what unplugdrive actually does while running, check the output of sudo unplugdrive -g in a terminal window. It will give you some idea what the variables and arreys are used for at runtime. If you want to follow the script code, please read carefully all the comments you find within the script, they will give you an idea how it is structured and how it works. Make sure to use 0.90 version for this on antiX 19, it has a cleaner internal structure than the patched an mended versions before. Once you understood what’s going on, you could look also into the new code base used by version 0.93b in antiX 21, it was ported to the more modern scripting style by Xecure, he did great work.

    Windows is like a submarine. Open a window and serious problems will start.