|
Post by schanulleke on Feb 2, 2021 15:59:38 GMT
When I insert a memory stick into a USB port it becomes accessible from the file manager. The insertion also drops a station icon onto the desktop. Right-clicking this icon, and clicking Eject unmounts the external storage. Mine also contains a big status LED that won't go off when I do this, meaning that the stick is still receiving power. In Microsoft Windows it always goes off - powers down - when I eject the memory stick in a similar manner. Can I remove the stick safely this way in Linux? Is it possible to configure the system somewhere so that this status LED also goes off? I found that it can be done manually from Terminology, but this is too cumbersome :
sudo udisksctl unmount -b /dev/sdb1 && sudo udisksctl power-off -b /dev/sdb
|
|
|
Post by Hippytaff on Feb 2, 2021 17:22:00 GMT
You could add that line to your bashrc file as an alias. Open a terminal and do: Scroll to where is says "more aliases" (it dosn't have to go here, but it keeps things tidy) and add: save and exit. Restart terminology and enter: unmount. and it should do as prescribed. Hope that helps some. Edit - I always put my aliases below #more aliases and call them #my aliases for neatness sake. and they're easy to find to add more with a quick search for "my aliases".
|
|
|
Post by thewaiter on Feb 2, 2021 18:02:31 GMT
I think you are refering to Enlightenment File manager again. In Bodhi Linux 6 I changed the media to automountable. It means, SD cards and USB devices will be usable without extra manual mounting. This is my screen cast illustrating the setup and SD Card unmounting and ejecting: www.dropbox.com/s/ctjk96v5mio7y6a/Kazam_screencast_00004.webm?dl=0Stefan
|
|
|
Post by schanulleke on Feb 3, 2021 12:53:26 GMT
You could add that line to your bashrc file as an alias. Open a terminal and do: Scroll to where is says "more aliases" (it dosn't have to go here, but it keeps things tidy) and add: save and exit. Restart terminology and enter: unmount. and it should do as prescribed. Hope that helps some.
This means I would have to create such an alias for each and every removable external mass storage, calling them unmount1, unmount2, etc. instead, remembering which unmount applies to which storage medium... Even crazier is the fact that for some ridiculous reason /etc/sdb1 can turn into /etc/sdc1 for the SAME memory stick.
Too messy and user-unfriendly I'm afraid. The only useful tip I learned from this is the ability to combine a series of commands into an alias.
|
|
|
Post by schanulleke on Feb 3, 2021 12:55:42 GMT
I think you are refering to Enlightenment File manager again. In Bodhi Linux 6 I changed the media to automountable. It means, SD cards and USB devices will be usable without extra manual mounting. This is my screen cast illustrating the setup and SD Card unmounting and ejecting: www.dropbox.com/s/ctjk96v5mio7y6a/Kazam_screencast_00004.webm?dl=0Stefan I'm using Bodhi Linux 5.1. When I follow your instructions, and finally right-click the icon to unmount and eject the stick... it doesn't work; the option 'Unmount' is missing in the context menu, only 'Mount' and 'Eject' are shown! Furthermore, clicking Eject doesn't work either now. When I restart the laptop, Unmount does appear but neither Unmount nor Eject work...
It doesn't work because, for some ridiculous reason, the same memory stick has changed from /etc/sdb1 to /etc/sdc1...
If this is another serious issue with 5.1, how do I upgrade to 6.0 without completely reinstalling the system (out of the question), and how can I be sure that the upgrade doesn't result in a cascade of more problems with already installed applications?
|
|
|
Post by thewaiter on Feb 3, 2021 13:38:20 GMT
The easiest way is installing BL 6 on another machine if available or installing in Virtual machine for your testings.
Stefan
PS: as I said several times, we can not quarantee the EFM quality level. Since E17 we did not do any significant fixes to this code part except the tendences for removing it because as you can see it is sorta buggy. Use Pcmanfm as default bodhi filemanager instead.
|
|
|
Post by schanulleke on Feb 3, 2021 14:27:59 GMT
The easiest way is installing BL 6 on another machine if available or installing in Virtual machine... Stefan The only way to correctly unmount, eject (power down) attached storage media is via Terminology (the File Manager only unmounts it but doesn't power it down): 1) Enumerate the names and mount points of the attached media:
lsblk
2) If the one to be removed is called "/dev/sdc1", then:
sudo udisksctl unmount -b /dev/sdc1 && sudo udisksctl power-off -b /dev/sdc
And no, the last pathname must NOT be called "/dev/sdc1" but "/dev/sdc".
My nephew can just about manage this by himself. Consider the problem solved by this archaic (non-GUI) workaround.
If I install another Linux as a VM it won't be Bodhi Linux...
|
|
|
Post by thewaiter on Feb 3, 2021 16:50:59 GMT
As I show you on my video it is working fine here.
Bodhi is apparently not for you. No problem, this happens. Fortunately linux world is full of diversity...
S
|
|
|
Post by schanulleke on Feb 3, 2021 17:16:55 GMT
I call this "chaos", or simply "a mess".
|
|
|
Post by thewaiter on Feb 3, 2021 17:19:45 GMT
As you wish
|
|
|
Post by Hippytaff on Feb 3, 2021 18:16:04 GMT
You could add that line to your bashrc file as an alias. Open a terminal and do: Scroll to where is says "more aliases" (it dosn't have to go here, but it keeps things tidy) and add: save and exit. Restart terminology and enter: unmount. and it should do as prescribed. Hope that helps some. This means I would have to create such an alias for each and every removable external mass storage, calling them unmount1, unmount2, etc. instead, remembering which unmount applies to which storage medium... Even crazier is the fact that for some ridiculous reason /etc/sdb1 can turn into /etc/sdc1 for the SAME memory stick.
Too messy and user-unfriendly I'm afraid. The only useful tip I learned from this is the ability to combine a series of commands into an alias.
You could instead write a bash script, like we did back in the day to automate things.
|
|