How to enter Single-user mode on Jetson nano?

Background
I wrote an application named ‘app1’, and put it in /usr/local/bin, then edit the /etc/rc.local. The contents as follows:

#!/bin/bash
app1

Because I forgot to add symbol ‘&’ at the end such as ‘app &’.After AC on, the linux call my app and couldn’t exit infinite loop.I want to enter signal-user mode to modify the rc.local file, but I’m fail.

Question
Q1.I know my linux server has GNU GRUB page, but nano doenn’t. How to open the function?
Q2.How can I enter Single-user mode to edit the file /etc/rc.local on the nano board? I found I could press E key to enter signal-user mode on my ubuntu server, but the same operation didn’t work on the nano board.
Q3.Is there any other way the solve this issue?

Hi AnthonyYao,

I can’t answer this question, may other developers help to share experiences as your reference.

Thanks

Hi AnthonyYao,

Please find answers for your questions below,

Q1) I know my linux server has GNU GRUB page, but nano doenn’t. How to open the function?

Jetson Nano has its own version of bootloaders which is different from GRUB.

Q2) How can I enter Single-user mode to edit the file /etc/rc.local on the nano board? I found I could press E key to enter signal-user mode on my ubuntu server, but the same operation didn’t work on the nano board.

To edit the /etc/rc.local file on jetson nano itself,use ctrl+alt+F3 shortcut to switch to tty3 terminal. Login to tty3 terminal, You will find application launch fails because of not providing proper display args . From tty3 terminal edit /etc/rc.local file to launch your applcation at background and then reboot the device. In the next boot, firstly your application will be launched , then ubuntu main UI screen will be displayed as usual.

Q3) Is there any other way the solve this issue?

Another way is , since jetson nano boot from microSD card . Power off the Jetson Nano board and eject the bootable microSD card from device. Insert microSD card on your ubuntu PC and edit the rc.local file in the mounted microSD Card. Once you’re done with the changes , don’t forget to unmount the microSD Card.