Reapportioning the filesystem at boot

KingBeetle
 
Posts: 10
Joined: Mon Dec 05, 2016 6:42 pm

Reapportioning the filesystem at boot

Wed Oct 18, 2017 6:00 am

After a fresh firmware flash and perhaps a little tinkering, my VoCore2 Lite filesystem looks something like this:
Code: Select all
root@OpenWrt:~# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    1.1M    680.0K    472.0K  59% /
/dev/root                 5.5M      5.5M         0 100% /rom
tmpfs                    30.0M     88.0K     29.9M   0% /tmp
/dev/mtdblock6            1.1M    680.0K    472.0K  59% /overlay
overlayfs:/overlay        1.1M    680.0K    472.0K  59% /
tmpfs                   512.0K         0    512.0K   0% /dev


Is there any way I can configure the system to apportion say 5MB more to /overlay and 5MB less to /tmp, so it looks more like this?:
Code: Select all
root@OpenWrt:~# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    6.1M    680.0K      5.4M  10% /
/dev/root                 5.5M      5.5M         0 100% /rom
tmpfs                    25.0M     88.0K     24.9M   0% /tmp
/dev/mtdblock6            6.1M    680.0K      5.4M  10% /overlay
overlayfs:/overlay        6.1M    680.0K      5.4M  10% /
tmpfs                   512.0K         0    512.0K   0% /dev


Are the filesizes fixed or limited by hardware, or is there some flexibility? I REALLY could use that 5MB of space in /overlay for installing apps and giving the system a little "elbow room".

Vonger
 
Posts: 896
Joined: Sun Oct 19, 2014 6:00 am

Re: Reapportioning the filesystem at boot

Thu Oct 19, 2017 2:30 pm

actually, tmpfs is your memory, not a real space, all data will lost after you reboot. tmpfs is map to /tmp.

KingBeetle
 
Posts: 10
Joined: Mon Dec 05, 2016 6:42 pm

Re: Reapportioning the filesystem at boot

Thu Oct 19, 2017 5:39 pm

Ahh, OK. Well obviously THAT idea isn't going to work then.

Looks like I am going to have to set up some sort of external root using a flash drive like the link below describes.

https://samhobbs.co.uk/2013/11/more-space-for-packages-with-extroot-on-your-openwrt-router

KingBeetle
 
Posts: 10
Joined: Mon Dec 05, 2016 6:42 pm

Re: Reapportioning the filesystem at boot

Wed Dec 27, 2017 6:47 am

I recently attached a female Type A USB connector to my VoCore2-Lite and was able to successfully move the root filesystem to a 16GB USB flash drive, using the link in the post above. My results:

First boot after fresh flash of VoCore2-Lite firmware and before modification:
Code: Select all
root@OpenWrt:~# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    1.1M    236.0K    916.0K  20% /
/dev/root                 5.5M      5.5M         0 100% /rom
tmpfs                    30.0M    260.0K     29.8M   1% /tmp
/dev/mtdblock6            1.1M    236.0K    916.0K  20% /overlay
overlayfs:/overlay        1.1M    236.0K    916.0K  20% /
tmpfs                   512.0K         0    512.0K   0% /dev

And after copying the VoCore2-Lite's root filesystem onto a 16GB USB flash drive and modifying /etc/fstab :
Code: Select all
root@OpenWrt:~# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                   14.1G     57.9M     13.3G   0% /
/dev/root                 5.5M      5.5M         0 100% /rom
tmpfs                    30.0M    260.0K     29.8M   1% /tmp
/dev/sda1                14.1G     57.9M     13.3G   0% /
tmpfs                   512.0K         0    512.0K   0% /dev


What a difference! Now I have 13GB of space on the filesystem for packages and files, instead of 916K.

Return to VoCore2/Lite/Ultimate

Who is online

Users browsing this forum: No registered users and 53 guests