#1
Posted 12 November 2011 - 15:39
I realize that every USB mass storage device (HDD or FlashDisk) inserted after E2 is up and running are mounted RW (ReadWrite).
I've made a simple E2 extension (I've called SimpleUmount) to provide a simple way to umount one device simple pressing remote control blue button and select SimpleUmount from extensions list.
- Download the file attached here
- Put it in STB / directory
- cd /
- tar xvzf SimpleUmount-x.xx.tgz
- restart Enigma2
Press on remote control the BLUE key and select SimpleUmount
Feedback and bug report are welcome.
If it will work fine, I will add multilanguage support.
In this new version 0.03 I've added confirm message, warning message if device cannot be umounted (because "busy") and auto reload device list after umount.
Mass storage: internal SATA-II HDD 1TB WD10EACS GreenPower 5400rpm
Mass storage: external USB pen drive 2GB
Firmware: OpenPLi kernel 3.x.x
Tuner A: AVL2108 (DVB-S2) HotBird 13E
Tuner B: AVL2108 (DVB-S2) HotBird 13E
Tuner C: AverMedia A867 (DVB-T HD) (AF9035 + MXL5007T)
TV: plasma PANASONIC GT30 fullHD
Audio: PCM through HDMI (no Dolby decoder)
Re: SimpleUmount extension plugin #2
Posted 12 November 2011 - 17:14
Added multilanguage support.
Addes English and Italian translation
Next step create IPK archive
Mass storage: internal SATA-II HDD 1TB WD10EACS GreenPower 5400rpm
Mass storage: external USB pen drive 2GB
Firmware: OpenPLi kernel 3.x.x
Tuner A: AVL2108 (DVB-S2) HotBird 13E
Tuner B: AVL2108 (DVB-S2) HotBird 13E
Tuner C: AverMedia A867 (DVB-T HD) (AF9035 + MXL5007T)
TV: plasma PANASONIC GT30 fullHD
Audio: PCM through HDMI (no Dolby decoder)
Re: SimpleUmount extension plugin #3
Posted 12 November 2011 - 18:16
The only drawback I see is that an inexperienced user may get confused if the internal drive is shown in the list together with the external ones. If you find a way to detect if a drive is internal or external, then you could add a setting like "hide internal drive" active by default. In this way experienced users could still umount their internal drive if they wish, while inexperienced users will have an easier life
Edited by Gennar1, 12 November 2011 - 18:19.
Re: SimpleUmount extension plugin #4
Re: SimpleUmount extension plugin #5
Posted 12 November 2011 - 19:31
@pieterg: /sys/block/sd?/removable Great ! Tomorrow I add your suggestion in my code.
Mass storage: internal SATA-II HDD 1TB WD10EACS GreenPower 5400rpm
Mass storage: external USB pen drive 2GB
Firmware: OpenPLi kernel 3.x.x
Tuner A: AVL2108 (DVB-S2) HotBird 13E
Tuner B: AVL2108 (DVB-S2) HotBird 13E
Tuner C: AverMedia A867 (DVB-T HD) (AF9035 + MXL5007T)
TV: plasma PANASONIC GT30 fullHD
Audio: PCM through HDMI (no Dolby decoder)
Re: SimpleUmount extension plugin #6
Posted 13 November 2011 - 07:49
This is my GitHub repo: https://github.com/a...in-SimpleUmount
Mass storage: internal SATA-II HDD 1TB WD10EACS GreenPower 5400rpm
Mass storage: external USB pen drive 2GB
Firmware: OpenPLi kernel 3.x.x
Tuner A: AVL2108 (DVB-S2) HotBird 13E
Tuner B: AVL2108 (DVB-S2) HotBird 13E
Tuner C: AverMedia A867 (DVB-T HD) (AF9035 + MXL5007T)
TV: plasma PANASONIC GT30 fullHD
Audio: PCM through HDMI (no Dolby decoder)
Re: SimpleUmount extension plugin #7
Posted 13 November 2011 - 08:07
Mass storage: internal SATA-II HDD 1TB WD10EACS GreenPower 5400rpm
Mass storage: external USB pen drive 2GB
Firmware: OpenPLi kernel 3.x.x
Tuner A: AVL2108 (DVB-S2) HotBird 13E
Tuner B: AVL2108 (DVB-S2) HotBird 13E
Tuner C: AverMedia A867 (DVB-T HD) (AF9035 + MXL5007T)
TV: plasma PANASONIC GT30 fullHD
Audio: PCM through HDMI (no Dolby decoder)
Re: SimpleUmount extension plugin #8
Posted 13 November 2011 - 08:19
https://github.com/a...in-SimpleUmount
Enjoy
If someone has translation, let me know please: I will add in package
Mass storage: internal SATA-II HDD 1TB WD10EACS GreenPower 5400rpm
Mass storage: external USB pen drive 2GB
Firmware: OpenPLi kernel 3.x.x
Tuner A: AVL2108 (DVB-S2) HotBird 13E
Tuner B: AVL2108 (DVB-S2) HotBird 13E
Tuner C: AverMedia A867 (DVB-T HD) (AF9035 + MXL5007T)
TV: plasma PANASONIC GT30 fullHD
Audio: PCM through HDMI (no Dolby decoder)
Re: SimpleUmount extension plugin #9
Re: SimpleUmount extension plugin #10
Posted 13 November 2011 - 09:44
maybe umount procedure is just a tiny bit of a more complex Devicemanager Plugin as seen in here:
http://www.newnigma2...65606#post65606
Just my two cents on this
Re: SimpleUmount extension plugin #11
Re: SimpleUmount extension plugin #12
Posted 13 November 2011 - 11:44
This is the updated version with RU and DE languages
Mass storage: internal SATA-II HDD 1TB WD10EACS GreenPower 5400rpm
Mass storage: external USB pen drive 2GB
Firmware: OpenPLi kernel 3.x.x
Tuner A: AVL2108 (DVB-S2) HotBird 13E
Tuner B: AVL2108 (DVB-S2) HotBird 13E
Tuner C: AverMedia A867 (DVB-T HD) (AF9035 + MXL5007T)
TV: plasma PANASONIC GT30 fullHD
Audio: PCM through HDMI (no Dolby decoder)
Re: SimpleUmount extension plugin #13
Posted 13 November 2011 - 11:46
Hi,
maybe umount procedure is just a tiny bit of a more complex Devicemanager Plugin as seen in here:
http://www.newnigma2...65606#post65606
Just my two cents on this
Yes. In many images there is something like you suggest.
But I've not found something similar as above in OpenPLI
So I've start to code my plugin. I believe it's simple and fast.
But if anyone what use a more complete DeviceManager ... yes he can !
Edited by ambrosa, 13 November 2011 - 11:47.
Mass storage: internal SATA-II HDD 1TB WD10EACS GreenPower 5400rpm
Mass storage: external USB pen drive 2GB
Firmware: OpenPLi kernel 3.x.x
Tuner A: AVL2108 (DVB-S2) HotBird 13E
Tuner B: AVL2108 (DVB-S2) HotBird 13E
Tuner C: AverMedia A867 (DVB-T HD) (AF9035 + MXL5007T)
TV: plasma PANASONIC GT30 fullHD
Audio: PCM through HDMI (no Dolby decoder)
Re: SimpleUmount extension plugin #14
Re: SimpleUmount extension plugin #15
Posted 13 November 2011 - 20:52
The hiding of removable devices works fine, but my USB 2TB Verbatim drive is marked as "not removable" so it is still shown together with the internal drive:
root@et9x00:~# cat /sys/block/sdb/removable 0
Any idea?
Mmhhhhh which type of filesystem ?
I've tried with:
- USB stick ext2
- USB stick vfat
- USB HDD 2.5" NTFS
all these are marked as 'removable' (= 1)
My internal SATA ext4 is marked (obviously) as not removable (= 0)
Your HDD is externally powered (I think 2TB USB HDD 2.5" doesn't exist .....) ? This can make difference ?
Too big ?
Mass storage: internal SATA-II HDD 1TB WD10EACS GreenPower 5400rpm
Mass storage: external USB pen drive 2GB
Firmware: OpenPLi kernel 3.x.x
Tuner A: AVL2108 (DVB-S2) HotBird 13E
Tuner B: AVL2108 (DVB-S2) HotBird 13E
Tuner C: AverMedia A867 (DVB-T HD) (AF9035 + MXL5007T)
TV: plasma PANASONIC GT30 fullHD
Audio: PCM through HDMI (no Dolby decoder)
Re: SimpleUmount extension plugin #16
Re: SimpleUmount extension plugin #17
Posted 14 November 2011 - 14:32
/sys/block/sdb/removable
I think that there will be no differences with CT9x00 but test this can be a nice idea. Just to compare different architectures.
Mass storage: internal SATA-II HDD 1TB WD10EACS GreenPower 5400rpm
Mass storage: external USB pen drive 2GB
Firmware: OpenPLi kernel 3.x.x
Tuner A: AVL2108 (DVB-S2) HotBird 13E
Tuner B: AVL2108 (DVB-S2) HotBird 13E
Tuner C: AverMedia A867 (DVB-T HD) (AF9035 + MXL5007T)
TV: plasma PANASONIC GT30 fullHD
Audio: PCM through HDMI (no Dolby decoder)
Re: SimpleUmount extension plugin #18
Posted 14 November 2011 - 15:57
Probably the problem is that those big external drives are just normal 3.5" SATA desktop disks into an USB enclosure, so they are probably detected by the kernel as not removable drives.
No big deal anyway, your plugin works fine.
Re: SimpleUmount extension plugin #19
Re: SimpleUmount extension plugin #20
Posted 14 November 2011 - 18:43
- completely rewritten mount point parsing code. A user (MiLo) report me crash.
Now I don't use anymore unrealiable 'os.popen' but much safer Console.ePopen() and read /proc/mounts file
- added Polish translation (Thanks Graffy)
GitHub : https://github.com/a...in-SimpleUmount
Attached Files
Mass storage: internal SATA-II HDD 1TB WD10EACS GreenPower 5400rpm
Mass storage: external USB pen drive 2GB
Firmware: OpenPLi kernel 3.x.x
Tuner A: AVL2108 (DVB-S2) HotBird 13E
Tuner B: AVL2108 (DVB-S2) HotBird 13E
Tuner C: AverMedia A867 (DVB-T HD) (AF9035 + MXL5007T)
TV: plasma PANASONIC GT30 fullHD
Audio: PCM through HDMI (no Dolby decoder)
Also tagged with one or more of these keywords: ENIGMA2
IPTV
M3U playlist handling pluginStarted by DimitarCC, 22 Aug 2024 IPTV, M3U, Enigma2 |
|
|||
m3u/xml?Started by MatthijsNL, 18 Dec 2020 ENIGMA2 |
|
|||
Looking for a good explanation of calculate, calibrate and allocate in positioner setup menuStarted by jeandubois, 19 Nov 2019 enigma2 |
|
|||
Bestand beschermen tegen overschrijven bij software updateStarted by mimisiku, 23 Feb 2019 Enigma2 |
|
|||
plugin extensions epgimport rytec not visibleStarted by arkovda, 19 Aug 2018 enigma2, plugin extension and 2 more... |
|
3 user(s) are reading this topic
0 members, 3 guests, 0 anonymous users