Opened 3 years ago

Last modified 18 months ago

#20168 new defect

CC - firstboot is broken

Reported by: anonymous Owned by: developers
Priority: highest Milestone: Chaos Calmer 15.05
Component: base system Version: Trunk
Keywords: Cc:


Command firstboot in failsafe mode is broken - do nothing, hangs console, not showing any information (question).

CC 15.05rc3, ar71xx, several devices.

Attachments (0)

Change History (8)

comment:1 Changed 2 years ago by tim@…

Hi, same report with Chaos Calmer 15.05 final release on ar71xx device (TP-LINK TL-WR1043ND). The firstboot command normally reports "Unlocking rootfs_data … Erasing rootfs_data …" but on 15.05 the command does not display any output and appears to hang.

Doing another failsafe boot and mounting the root partition shows the original configuration files still in place and not reset to defaults.

-Tim Miller Dyck

comment:2 Changed 2 years ago by anonymous

The following works in 15.05 to reset to factory defaults from safe mode.

  1. boot in safe mode and login using telnet to
  1. run the following command:
mtd -r erase rootfs_data

The expected output is:

Unlocking rootfs_data ...
Erasing rootfs_data ...
Rebooting ...

The device should reboot and be back in a factory default condition.

LuCI works also to reset the device assuming LuCI is working, but LuCI is not available in safe boot mode.

-Tim Miller Dyck

comment:3 Changed 2 years ago by j.tuvix@…

So is there any plan to fix the firstboot command?

comment:4 Changed 22 months ago by Stilez

Confirming this bug, which I came here to report if not already logged.

failsafe mode -> telnet -> [optional: mount_root] -> firstboot, just hangs and does nothing. Left for 30 mins, still hung.

Also the other command shown (mtd -r erase rootfs_data) didn't do anything or fix anything either. In the end I had to manually delete/rename the incorrect file in /etc/config and in the overlay file system /overlay/upper, to get back my firstboot settings.

Also related bug, if you do need to mount_root first to use firstboot, the failsafe mode info doesn't say so. That said, it didn't help.

comment:7 Changed 18 months ago by anonymous

Still an issue on buffalo 300ag ar71xx device with 15.05.1

comment:8 Changed 18 months ago by paucoma

Model TP-Link TL-WA730RE v2
Firmware Version OpenWrt Chaos Calmer 15.05.1 / LuCI 15.05-149-g0d8bbd2 Release (git-15.363.78009-956be55)
Kernel Version 3.18.23

Confirming firstboot hangs.

failsafe mode -> telnet ->

root@(none):/# mount_root
root@(none):/# firstboot

  • nothing happens

without rebooting, just opened another telnet session to the device and performed:

root@(none):/# mount_root
root@(none):/# mtd -r erase rootfs_data
Unlocking rootfs_data ...
Erasing rootfs_data ...
Rebooting ...
  • device reboots with "factory defaults" as expected

Add Comment

Modify Ticket

as new .

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.