How to apply fsck for /dev/mmcblk0p1

Accroding to the log, my ORIN sometimes finds and tells file error like;

EXT4-fs error (device mmcblk1p1): ext4_lookup:1706: inode #3046669: comm pool: iget: checksum invalid

How can I apply fsck to /dev/mmcblk0p1 where boot system is on?

Hi,
If the device cannot be flashed/booted, please refer to the page to get uart log from the device:
Jetson/General debug - eLinux.org
And get logs of host PC and Jetson device for reference. If you are using custom board, you can compare uart log of developer kit and custom board to get more information.
Also please check FAQs:
Jetson AGX Orin FAQ
If possible, we would suggest follow quick start in developer guide to re-flash the system:
Quick Start — NVIDIA Jetson Linux Developer Guide 1 documentation
And see if the issue still persists on a clean-flashed system.
Thanks!

1 Like

Thanks,

However the system is still running and (if possible) I do not want to re-install the system.

In the case of the normal Linux based PC, I use ‘rescue USB media’.
Boot it instead of the PC’s root and use fsck to the storage to fixthe file system up.

Is there any methods like this for ORIN?

hello Hirofumi.Tamori,

please try e2fsck or fsck .
however, you should umount partition first, for instance, $ e2fsck -a -y <partition>

OK, I’ll try in these steps.

  1. Copy / (/dev/mmcblk0p1) to the SD card (will be /dev/mmcblk1p1)
  2. Change /boot/extlinux/extlinux.conf from
LABEL primary
      MENU LABEL primary kernel
      LINUX /boot/Image
      FDT /boot/dtb/kernel_tegra234-p3701-0005-p3737-0000.dtb
      INITRD /boot/initrd
      APPEND ${cbootargs} quiet root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyTCU0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 rootfstype=ext4

to

LABEL primary
      MENU LABEL primary kernel
      LINUX /boot/Image
      FDT /boot/dtb/kernel_tegra234-p3701-0005-p3737-0000.dtb
      INITRD /boot/initrd
      APPEND ${cbootargs} quiet root=/dev/mmcblk1p1 rw rootwait rootfstype=ext4 console=ttyTCU0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 rootfstype=ext4
  1. Reboot. If my recognition is correct, ORIN will start from the SD card(/dev/mmcblk1p1)
  2. sudo fsck -t ext4 -a /dev/mmcblk0p1 to fix the file system.
  3. Restore extlinux.conf
  4. Reboot.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.