
[HOW TO] get free space on root with r2891++ for optware
Those of you who use optware from @frater (
viewtopic.php?f=41&t=2819&start=0) or @buzzkaido's PlugOnDevice (
viewtopic.php?f=41&t=2491&start=0) and suffer, like me, from the frequent hangs and HDD corruption related with r2388 and older firmwares, surely have been disappointed with the latest betas and releases, based on the new SDK3.
This is because, despite the fact that these releases (r2510, r2891 and so on) solve a lot of issues, they don't let you install either @frater's or @buzzkaido's solutions, since there's no space available on the root filesystem:
Code:
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 75008 75008 0 100% /
/dev/mtdblock/2 8192 1424 6768 17% /usr/local/etc
/dev/rd/0 40 40 0 100% /mnt/rd
Well,
If you're willing to test and tweak, here goes nothing:
Conditions:
- Use at your own risk!
- Tested with r2891 beta and @frater's optware. Required a few tweaks to get everything working.
- Reports came in that it also works with PlugOnDevice
- Many thanks to @vonck for the discovery and update for the latest ones with YAMJ
How:
a) Get the firmware
b) unzip it
c) the install.img file is a tar file. I'm using Linux, so:
Code:
# mkdir tmp
# cd tmp
# tar xvf ../install.img
d) edit the configuration.xml file, to include a line like
Code:
<sizeBytesMin>0x5000000</sizeBytesMin>
after the line that specifies the yaffs2 image to be mounted on root:
Code:
<mountPoint>/</mountPoint>
-----UPDATE---------
vonck wrote:
On the YAMJ trail firmwares kawakinho's original trick doesn't work anymore.
My solution: take some space from /usr/local/etc and move it to /:
XML fragment:
<image type="yaffs2">
<fileName>package2/yaffs2_1.img</fileName>
<mountPoint>/</mountPoint>
<sizeBytesMin>0x5500000</sizeBytesMin>
</image>
<image type="yaffs2">
<fileName>package2/usr.local.etc.tar.bz2</fileName>
<mountPoint>/usr/local/etc</mountPoint>
<sizeBytesMin>0x400000</sizeBytesMin>
</image>
Result of "df" on r3286:
Code:
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 84480 77252 7228 91% /
/dev/mtdblock/2 4096 1336 2760 33% /usr/local/etc
------END UPDATE--------
f) pack the file again:
Code:
# tar cvf install.img *
g) copy this new file into a usb pen and flash the firmware
Note:
The @frater script for installing optware failed to create the usual dirs on the internal HDD:
Code:
mkdir: Cannot create directory `/mnt/C/': No such file or directory
So, after the install and a reboot, I recreated the /mnt/C link to point to the correct place:
Code:
[root@playa /]# mount -o remount,rw /
[root@playa /]# rm /mnt/C
[root@playa /]# ln -s /tmp/hdd/volumes/HDD1 /mnt/C
This could probably have been done beforehand...
----UPDATE-----
I believe @frater has changed the script and this has been solved. Please confirm
----END UPDATE-----
After this, you can create the dirs, or, if you're like me, disable the watchdog and reconfigure transmission's dirs in settings.json (my downloads are going to a fourth partition on the disk, 50GB in size, ext3 filesystem)
Enjoy!
Edit: If you're too chicken to do this yourself, or if you're not getting anywhere, you can download the image I used from here:
http://www.plugondevice.com/downloads/r2891hacked.zipThanks to @buzzkaido for hosting the file!