New Member
Posts: 7
Registered: ‎10-05-2015
Kudos: 1
Accepted Solution

EdgeMax Firmware Upgrade - Not enough disk space for root file system

Hi all,

I'm trying to install the v1.8 upgrade, but it's failing due to an apparent lack of disk space.

Hoping for a bit of help tracking down where and why please

 

 

administrator@router:/$ add system image http://dl.ubnt.com/firmwares/edgemax/v1.8.0/ER-e50.v1.8.0.4853089.tar

Version [v1.6.6.4749363.150224.1217] is about to be replaced
Are you sure you want to replace old version? (Yes/No) [Yes]: y

Trying to get upgrade file from http://dl.ubnt.com/firmwares/edgemax/v1.8.0/ER-e50.v1.8.0.4853089.tar
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 73.4M  100 73.4M    0     0  2554k      0  0:00:29  0:00:29 --:--:-- 3809k

Download suceeded Checking upgrade image...Done Preparing to upgrade...Done Copying upgrade image...Not enough disk space for root file system administrator@router:/$ df -h Filesystem Size Used Available Use% Mounted on ubi0_0 214.9M 196.1M 14.1M 93% /root.dev aufs 214.9M 196.1M 14.1M 93% / devtmpfs 124.4M 0 124.4M 0% /dev tmpfs 124.5M 132.0K 124.4M 0% /run tmpfs 124.5M 132.0K 124.4M 0% /run tmpfs 124.5M 104.0K 124.4M 0% /var/log tmpfs 124.5M 4.0K 124.5M 0% /tmp none 124.5M 496.0K 124.1M 0% /opt/vyatta/config unionfs 124.5M 4.0K 124.5M 0% /opt/vyatta/config/tmp/new_config_oif2tfs8vjg0bblt44gmhj7jsqs2dbb0 administrator@router:/$

All help appreciated.

Tim

 


Accepted Solutions
Senior Member
Posts: 3,635
Registered: ‎11-26-2013
Kudos: 2019
Solutions: 110

Re: EdgeMax Firmware Upgrade - Not enough disk space for root file system


@TimU wrote:

Hi all,

I'm trying to install the v1.8 upgrade, but it's failing due to an apparent lack of disk space.

Hoping for a bit of help tracking down where and why please

 

 

administrator@router:/$ add system image http://dl.ubnt.com/firmwares/edgemax/v1.8.0/ER-e50.v1.8.0.4853089.tar

Version [v1.6.6.4749363.150224.1217] is about to be replaced
Are you sure you want to replace old version? (Yes/No) [Yes]: y

Trying to get upgrade file from http://dl.ubnt.com/firmwares/edgemax/v1.8.0/ER-e50.v1.8.0.4853089.tar
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 73.4M  100 73.4M    0     0  2554k      0  0:00:29  0:00:29 --:--:-- 3809k

Download suceeded Checking upgrade image...Done Preparing to upgrade...Done Copying upgrade image...Not enough disk space for root file system administrator@router:/$ df -h Filesystem Size Used Available Use% Mounted on ubi0_0 214.9M 196.1M 14.1M 93% /root.dev aufs 214.9M 196.1M 14.1M 93% / devtmpfs 124.4M 0 124.4M 0% /dev tmpfs 124.5M 132.0K 124.4M 0% /run tmpfs 124.5M 132.0K 124.4M 0% /run tmpfs 124.5M 104.0K 124.4M 0% /var/log tmpfs 124.5M 4.0K 124.5M 0% /tmp none 124.5M 496.0K 124.1M 0% /opt/vyatta/config unionfs 124.5M 4.0K 124.5M 0% /opt/vyatta/config/tmp/new_config_oif2tfs8vjg0bblt44gmhj7jsqs2dbb0 administrator@router:/$

All help appreciated.

Tim

 


SSH in and:  

delete system image
Need Ubiquiti Config Videos? https://www.youtube.com/williehowe

View solution in original post


All Replies
New Member
Posts: 14
Registered: ‎03-23-2016
Kudos: 15

Re: EdgeMax Firmware Upgrade - Not enough disk space for root file system

The ER-X is very tight for space on the internal storage once you start trying to add additional packages. Do you have repositories configured to add extra packages? If you do it is probably the apt cache that this filling your disk (the index files are 30MB or so) which will cause the larger 1.8.0 firmware update to fail.

 

You should be able to delete the apt index/cache files after installing the required packages but keeping the packages up to date will be difficult. The ER-X really doesn't have the storage for using apt.

Senior Member
Posts: 3,635
Registered: ‎11-26-2013
Kudos: 2019
Solutions: 110

Re: EdgeMax Firmware Upgrade - Not enough disk space for root file system


@TimU wrote:

Hi all,

I'm trying to install the v1.8 upgrade, but it's failing due to an apparent lack of disk space.

Hoping for a bit of help tracking down where and why please

 

 

administrator@router:/$ add system image http://dl.ubnt.com/firmwares/edgemax/v1.8.0/ER-e50.v1.8.0.4853089.tar

Version [v1.6.6.4749363.150224.1217] is about to be replaced
Are you sure you want to replace old version? (Yes/No) [Yes]: y

Trying to get upgrade file from http://dl.ubnt.com/firmwares/edgemax/v1.8.0/ER-e50.v1.8.0.4853089.tar
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 73.4M  100 73.4M    0     0  2554k      0  0:00:29  0:00:29 --:--:-- 3809k

Download suceeded Checking upgrade image...Done Preparing to upgrade...Done Copying upgrade image...Not enough disk space for root file system administrator@router:/$ df -h Filesystem Size Used Available Use% Mounted on ubi0_0 214.9M 196.1M 14.1M 93% /root.dev aufs 214.9M 196.1M 14.1M 93% / devtmpfs 124.4M 0 124.4M 0% /dev tmpfs 124.5M 132.0K 124.4M 0% /run tmpfs 124.5M 132.0K 124.4M 0% /run tmpfs 124.5M 104.0K 124.4M 0% /var/log tmpfs 124.5M 4.0K 124.5M 0% /tmp none 124.5M 496.0K 124.1M 0% /opt/vyatta/config unionfs 124.5M 4.0K 124.5M 0% /opt/vyatta/config/tmp/new_config_oif2tfs8vjg0bblt44gmhj7jsqs2dbb0 administrator@router:/$

All help appreciated.

Tim

 


SSH in and:  

delete system image
Need Ubiquiti Config Videos? https://www.youtube.com/williehowe
New Member
Posts: 7
Registered: ‎10-05-2015
Kudos: 1

Re: EdgeMax Firmware Upgrade - Not enough disk space for root file system

[ Edited ]

Thanks guys, you put me on the right track.

 

Here's a few other commands that helped me clear enough space:

 

 

delete system image
sudo apt-get autoclean
 
sudo du -hcd 2  / |more
 
sudo rm -R /var/lib/apt/lists
sudo rm -R /var/cache/apt/archives

 

Total free space before upgrade:

administrator@router:/$ df -h
Filesystem                Size      Used Available Use% Mounted on
ubi0_0                  214.9M     88.4M    121.8M  42% /root.dev
aufs                    214.9M     88.4M    121.8M  42% /

 

Total free space after upgrade:

administrator@router:/$ df -h
Filesystem                Size      Used Available Use% Mounted on
ubi0_0                  214.9M    157.9M     52.3M  75% /root.dev
aufs                    214.9M    157.9M     52.3M  75% /
Emerging Member
Posts: 67
Registered: ‎10-19-2015
Kudos: 10
Solutions: 6

Re: EdgeMax Firmware Upgrade - Not enough disk space for root file system

For me the v1.9.0 update for a fresh replacement ERX failed.

Solution: move update.tar to tmpfs:

ubnt@erx:~$ add system image ER-e50.v1.9.0.4901118.tar
Checking upgrade image...Done
Preparing to upgrade...Done
Copying upgrade image...Not enough disk space for root file system
/home/ubnt
ubnt@erx:~$ show system image storage
Image name                        Read-Only   Read-Write        Total
------------------------------ ------------ ------------ ------------
v1.7.1.4821926.151103.1114            66636        79708       146344

ubnt@erx:~$ df -h
Filesystem                Size      Used Available Use% Mounted on
ubi0_0                  214.9M    137.5M     72.7M  65% /root.dev
aufs                    214.9M    137.5M     72.7M  65% /



ubnt@erx:~$  mv -i ER* /tmp
ubnt@erx:~$ df -h
Filesystem                Size      Used Available Use% Mounted on
ubi0_0                  214.9M     64.8M    145.4M  31% /root.dev
aufs                    214.9M     64.8M    145.4M  31% /
ubnt@erx:~$ add system image /tmp/ER-e50.v1.9.0.4901118.tar
Checking upgrade image...Done
Preparing to upgrade...Done
Copying upgrade image...Done
Removing old image...Done
Checking upgrade image...Done
Copying config data...Done
Finishing upgrade...Done
Upgrade completed
ubnt@erx:~$ 

 

Emerging Member
Posts: 45
Registered: ‎10-14-2016
Kudos: 8

Re: EdgeMax Firmware Upgrade - Not enough disk space for root file system

Hi,

 

I ran into the same issue yesterday with my ER-X under EdgeMax v1.9.0:

After a commit/save on configure (adding an openvpn interface), I loose all access to the ER-X :-/ Not sure which is the issue here !!

 

A reset permit to recover the ER-X, but space was very low, like 99% used, which conduct me on this thread.

I was not aware before of very low space available on this device

 

Thanks guys for the tips, very useful ! :

 

sudo delete system image
sudo apt-get autoclean
sudo rm -R /var/lib/apt/lists
sudo rm -R /var/cache/apt/archives

 

However, after all that, around only 20% space left available on device.
I was using before the crash apt-get to install some packages like dnsutils & vnstat

 

A few investigations conduct me to /root.dev on which I discover 2 folders named "w.xxxxxxxx" where xxxxxx are hexa
These 2 folders eat up a lot of space (not noted)

 

After deleting them, I recovered lot of space, my ER-X root is around 41% used now

 

I guess that was the root cause of my issue, and these folders are sort of "backup" or ghosts of system on commit/save

 

I DO NOT delete the /root.dev/w folder which seems to be the current live system.

 

Can someone can confirm to me the following:


1- It's safe to delete /root.dev/w.xxxxxxx folders
2- /root.dev/w folder is live system
3- in /root.dev there is squashfs.img (along with corresponding md5), which is probably the system image

 

Thanks a lot !
Brouno