Recover Jetson sudo user

Hi,

I accidentally commented the line of %sudo ALL=(ALL:ALL) ALL, so my user cannot run any sudo commands. Is there a way to recover from this? I think Jetson does not have a GRUB menu?

Any help would be appreciated. Thank you

Hi yutong.wang,

Are you using the devkit or custom board for AGX Orin?
What’s your Jetpack version in use?

I would suggest you re-flash the board to recover.

Hi,

Im using the devkit, I ran the command cat /etc/nv_tegra_release it prints the following R35(release) REVISION: 2.1

And is there a guide of how to reflash? I’m new to Jetson so not really sure what to do.

thank you

Hi,

im trying to reflash the jetson, but it keeps reporting error that sudo -S apt-get update ... timeout, I think it is trying to use sudo on the jetson where sudo is not available, im not 100% sure if I’m doing correct, could please guide me?

Thank you

You will probably want to flash with the most recent L4T R35.x (you could go to 36.x). See:
https://developer.nvidia.com/linux-tegra

The flash software runs on the host PC, not the Jetson. The Jetson has to be in recovery mode (which turns the Jetson into a custom USB device).

If you have some really valuable content, then you could clone the rootfs, repair that, and then flash the clone back onto the Jetson. That takes a lot of time and disk space on the host PC. For that case you’d use the same L4T release flash software as that currently on the Jetson (R35.2.1).

yup I’ve reflash the Jetson and now seems working, thanks for helping