Read-only after upgrade [solved]

  • I've upgraded to a latest version after my vacations and noticed that I cannot copy my script anymore as I did it before:

    [2.0-RC3][root@gw.lan]/root(4): cp /cf/conf/ /usr/local/etc/rc.d/                                                                                              
    cp: /usr/local/etc/rc.d/ Read-only file system

    Something changed?

  • Rebel Alliance Developer Netgate

    Are you on NanoBSD? If so, it's supposed to be read only at all times, but some bugs were keeping it from getting there.

  • Yes, I'm on NanoBSD. So, it was a bug before but not anymore, right?

    Is the following sequence ok?

    [2.0-RC3][root@gw.lan]/root(2): /etc/rc.conf_mount_rw
    [2.0-RC3][root@gw.lan]/root(3): cp /cf/conf/ /usr/local/etc/rc.d/
    [2.0-RC3][root@gw.lan]/root(4): /etc/rc.conf_mount_ro                                                                                                                        


  • In the Web GUI, go to Diagnostics/Command and enter the following command:

    mount -uw /

    Make your changes and go back to Command and make it read only again.

    mount -ur /

  • Rebel Alliance Developer Netgate

    Using /etc/rc.conf_mount_rw and ro is the right method.

Log in to reply