How to swap Internal Flash to External Flash

Posted by: Toysoft

How to swap Internal Flash to External Flash - 12/06/15 09:55 AM

How to swap Internal Flash to External Flash, to gain space in your box Flash Memory (using an external USB Flash Stick).

Install : enigma2-plugin-extensions-expand-memory_3.0_all.ipk

Tested with OpenATV 5.0 on DM800HDse,

TS

Code:
#!/bin/sh
# DM800se
# eB
# Expand-Extensions-share-python2.7-local
echo "Wait a minute, please!"
echo "flash memory is swapped"
echo "dreambox will reboot soon"

sleep 3
init 5
mkdir /media/usb/Expand
cp -r /usr/lib/enigma2 /media/usb/Expand/enigma2
cp -r /usr/share /media/usb/Expand/share
cp -r /usr/lib/python2.7 /media/usb/Expand/python2.7
cp -r /usr/local /media/usb/Expand/local
sleep 2
rm -r /usr/lib/enigma2
rm -r /usr/share
rm -r /usr/lib/python2.7
rm -r /usr/local
sleep 2
ln -sfn /media/usb/Expand/enigma2 /usr/lib/enigma2
ln -sfn /media/usb/Expand/share /usr/share
ln -sfn /media/usb/Expand/python2.7 /usr/lib/python2.7
ln -sfn /media/usb/Expand/local /usr/local
sleep 2
rm -rf /usr/lib/enigma2/python/Plugins/Extensions/Expand-memory
sleep 2
init 6
Posted by: d800se

Re: How to swap Internal Flash to External Flash - 12/06/15 09:29 PM

Used until now this routine (giving 17MB free).

Code:
init 4
mv /usr/lib/enigma2/python/Plugins/Extensions /media/usb
mv /usr/lib/python2.7/site-packages /media/usb
ln -sfn /media/usb/Extensions /usr/lib/enigma2/python/Plugins/Extensions
ln -sfn /media/usb/site-packages /usr/lib/python2.7/site-packages 
init 3


This one give more (21MB) moving more. Nice.
Tested with OpenPLi 4.0 on DM800HD SE.
Thanks
Posted by: Admin

Re: How to swap Internal Flash to External Flash - 12/06/15 10:48 PM

Thank you !!! Very welcomed and Thank you for sharing, a lot of members here will love it.

Admin
Posted by: peco

Re: How to swap Internal Flash to External Flash - 11/26/19 12:53 PM

Hi,
What doing this command, and why, please:
Code:
rm -rf /usr/lib/enigma2/python/Plugins/Extensions/Expand-memory

Thank you.
Posted by: Admin

Re: How to swap Internal Flash to External Flash - 11/26/19 01:38 PM

It removes a plugin (the folder that has all software/files) that should be called "Expand-memory".

Admin
Posted by: peco

Re: How to swap Internal Flash to External Flash - 11/26/19 03:11 PM

Oh, OK.
I had no idea how he appeared there. The directory "Expand-memory" was created after installing the ipk.
Can I run script expand-usb.sh instead of installing an ipk?
Posted by: Admin

Re: How to swap Internal Flash to External Flash - 11/26/19 04:42 PM

I don't know, try and give us feedback,

Admin
Posted by: peco

Re: How to swap Internal Flash to External Flash - 11/27/19 01:36 PM

Just ran the script and the flash is expanded.
Posted by: Admin

Re: How to swap Internal Flash to External Flash - 11/27/19 11:05 PM

Thank you for your feedback !

Admin

Originally Posted By: peco
Just ran the script and the flash is expanded.