Once again, thank you for detailed suggestion. I will definitely use it, perhaps with addition of a shorter timeout for low power mode of the HDD. I consider the problem solved. I am happy I was able to discuss my problem with one of the core developers of the EFL and Enlightenment. Currently I am moving to Enlightenment and some things are quite new, but it is truly a breath of fresh air after years of KDE and Gnome.
po 7. 8. 2023 v 10:40 odesÃlatel Carsten Haitzler <ras...@rasterman.com> napsal: > On Sat, 5 Aug 2023 23:42:51 +0200 comantelix36 <comanteli...@gmail.com> > said: > > > Thank you very much Carsten. Firstly, I am sorry for posting into wrong > > thread (I somehow missed the subject while checking grammar), this is the > > first time I am using a mailing list. Secondly, I poorly explained my > > intention. I am trying to make EFM work with HDD the same way the KDE > does, > > i.e. mount (and unmount) the HDD only when I explicitly request it via > file > > manager GUI, rather than create an fstab entry to automatically mount the > > drive or mount it via command line. My reason not to use the fstab and > > mount/unmount manually is to make manually sure the disk is not used and > > safely stopped before I move the laptop. That is, I thought that I could > > use EFM as a GUI to mount and unmount the HDD with UDISKS2 if I set the > HDD > > properties accordingly for it to be recognised as a removable device and > I > > understand that EFM is not meant to do that. > > efm will not do it. it's not a removable drive. since it's fixed there is > no > value in trying to have it unmounted - if you don't modify the content it's > going to be safe. it'll get unmounted like rootfs (/) on shutdown or reboot > etc. - so it'll be just as safe as your rootfs. > > > so 5. 8. 2023 v 21:33 odesÃlatel Carsten Haitzler <ras...@rasterman.com> > > napsal: > > > > > On Sat, 5 Aug 2023 17:59:03 +0200 comantelix36 <comanteli...@gmail.com > > > > > said: > > > > > > > Hello, > > > > I am using Enlightenment 0.25.4 and I am trying to get Enlightenment > to > > > > display secondary HDD as an mountable HDD in file manager. > Previously I > > > > used the HDD this way under KDE. > > > > The computer in question is a dual Sata disk laptop with > installation on > > > > NixOS on SSD at /dev/sdb and a secondary data HDD at /dev/sda. The > HDD is > > > > not displayed by the enlightenment file manager (EFM), while any > other > > > USB > > > > flashdrive or USB HDD I tried worked flawlessly. The HDD contains one > > > Ext4 > > > > partition labeled "Data" and is omitted from the the fstab, so that > it is > > > > not mounted by the system automatically. The EFM is set to UDISKS2 > mode. > > > > I suspected the EFM considers the HDD a "system drive" (as in udev > > > > HintSystem) and hides it. Before my intervention the HDD was > reported by > > > > udiskctl (# udisksctl info -b /dev/sda) "HintSystem: true". Adding > > > > appropriate udev rule I changed this to false (both for /dev/sda and > the > > > > /dev/sda1 partition). This did not help. I have inspected the source > code > > > > concerning UDISKS2 from EFM (src/bin/e_fm/e_fm_main_udisks2.c) where > I > > > > found check for "HintSystem" applied to block devices. There is also > a > > > > check applied to storage devices: non-removable, non-hotswappable, > > > > non-ejectable storage device is considered system. It seems to me > that > > > this > > > > check is not be applied to block devices. Finally I also removed the > > > "~/.e" > > > > directory, which did not help as well. > > > > Thanks in advance for any help. > > > > > > efm is meant to show icons for removable devices - the kind that can be > > > unplugged/ejected/removed etc. everything else is a system drive and > > > should be > > > handled by fstab as its not a removable device. > > > > > > -- > > > ------------- Codito, ergo sum - "I code, therefore I am" > -------------- > > > Carsten Haitzler - ras...@rasterman.com > > > > > > > > > > _______________________________________________ > > enlightenment-users mailing list > > enlightenment-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/enlightenment-users > > > -- > ------------- Codito, ergo sum - "I code, therefore I am" -------------- > Carsten Haitzler - ras...@rasterman.com > > _______________________________________________ enlightenment-users mailing list enlightenment-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-users