#19564: after reboot - reset to defaults / firstboot by accident
------------------------+------------------------
  Reporter:  bittorf@…  |      Owner:  developers
      Type:  defect     |     Status:  closed
  Priority:  highest    |  Milestone:
 Component:  packages   |    Version:  Trunk
Resolution:  fixed      |   Keywords:
------------------------+------------------------

Comment (by ufo@…):

 why the flash is mounted read-only? if its full, its should stay
 read/write, so anyone would be able to delete some stuff, to get some free
 space.

 without reboot i can do that this way:

 {{{
 Signature check passed.
 root@234-48:/# df
 Filesystem           1K-blocks      Used Available Use% Mounted on
 rootfs                     448       240       208  54% /
 /dev/root                 2304      2304         0 100% /rom
 tmpfs                    14260       712     13548   5% /tmp
 /dev/mtdblock3             448       240       208  54% /overlay
 overlayfs:/overlay         448       240       208  54% /
 tmpfs                      512         0       512   0% /dev
 root@234-48:/# opkg install alfred
 Installing alfred (2015.0-0) to root...
 Downloading
 
http://firmware.leipzig.freifunk.net:8006/firmware/buildroots/ar71xx_generic_20150602/packages/routing/alfred_2015.0-0_ar71xx.ipk.
 Installing librt (0.9.33.2-1) to root...
 Downloading
 
http://firmware.leipzig.freifunk.net:8006/firmware/buildroots/ar71xx_generic_20150602/packages/base/librt_0.9.33.2-1_ar71xx.ipk.
 Configuring librt.
 Configuring alfred.
 root@234-48:/# df
 Filesystem           1K-blocks      Used Available Use% Mounted on
 rootfs                     448       272       176  61% /
 /dev/root                 2304      2304         0 100% /rom
 tmpfs                    14260       712     13548   5% /tmp
 /dev/mtdblock3             448       272       176  61% /overlay
 overlayfs:/overlay         448       272       176  61% /
 tmpfs                      512         0       512   0% /dev
 root@234-48:/# opkg install tcpdump-mini
 Installing tcpdump-mini (4.5.1-4) to root...
 Downloading
 
http://firmware.leipzig.freifunk.net:8006/firmware/buildroots/ar71xx_generic_20150602/packages/base
 /tcpdump-mini_4.5.1-4_ar71xx.ipk.
 Installing libpcap (1.5.3-1) to root...
 Downloading
 
http://firmware.leipzig.freifunk.net:8006/firmware/buildroots/ar71xx_generic_20150602/packages/base/libpcap_1.5.3-1_ar71xx.ipk.
 Configuring libpcap.
 Collected errors:
  * pkg_write_filelist: Failed to open //usr/lib/opkg/info/tcpdump-
 mini.list: No space left on device.
  * opkg_install_pkg: Failed to extract data files for tcpdump-mini.
 Package debris may remain!
  * opkg_install_cmd: Cannot install package tcpdump-mini.
  * opkg_conf_write_status_files: Can't open status file
 //usr/lib/opkg/status: No space left on device.
 root@234-48:/# df
 Filesystem           1K-blocks      Used Available Use% Mounted on
 rootfs                     448       388        60  87% /
 /dev/root                 2304      2304         0 100% /rom
 tmpfs                    14260       712     13548   5% /tmp
 /dev/mtdblock3             448       388        60  87% /overlay
 overlayfs:/overlay         448       388        60  87% /
 tmpfs                      512         0       512   0% /dev
 root@234-48:/# opkg remove alfred
 Removing package alfred from root...
 sed: can't create temp file '/etc/crontabs/rootRrZbCH': No space left on
 device
 Not deleting modified conffile /etc/config/alfred.
 root@234-48:/# df
 Filesystem           1K-blocks      Used Available Use% Mounted on
 rootfs                     448       352        96  79% /
 /dev/root                 2304      2304         0 100% /rom
 tmpfs                    14260       712     13548   5% /tmp
 /dev/mtdblock3             448       352        96  79% /overlay
 overlayfs:/overlay         448       352        96  79% /
 tmpfs                      512         0       512   0% /dev
 root@234-48:/# rm /etc/config/alfred
 root@234-48:/# opkg remove librt
 Refusing to remove essential package librt.
         Removing an essential package may lead to an unusable system, but
 if
         you enjoy that kind of pain, you can force opkg to proceed against
         its will with the option: --force-removal-of-essential-packages
 No packages removed.
 root@234-48:/# opkg remove librt --force-removal-of-essential-packages
 Removing essential package librt under your coercion.
         If your system breaks, you get to keep both pieces
 Removing package librt from root...
 root@234-48:/# df
 Filesystem           1K-blocks      Used Available Use% Mounted on
 rootfs                     448       348       100  78% /
 /dev/root                 2304      2304         0 100% /rom
 tmpfs                    14260       712     13548   5% /tmp
 /dev/mtdblock3             448       348       100  78% /overlay
 overlayfs:/overlay         448       348       100  78% /
 tmpfs                      512         0       512   0% /dev
 root@234-48:/#
 }}}

--
Ticket URL: <https://dev.openwrt.org/ticket/19564#comment:44>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to