공부중

[Jetson Nano] 젝슨 나노 ssd 부팅 (성공 버전) 본문

인공지능...?/Jetson Nano

[Jetson Nano] 젝슨 나노 ssd 부팅 (성공 버전)

복습 2025. 2. 4. 23:59
728x90

또 실패했다. 

https://brush-up.tistory.com/380

 

[Jetson Nano] 젝슨 나노 ssd 부팅 (성공 버전)

여기서 1차 시도 실패 했었다. https://brush-up.tistory.com/376 [Jetson Nano] 젝슨 나노 ssd 부팅아르곤 밑 부분만 재사용해서 ssd 부팅을 해보자.  1. 초기화 우선 노트북과 연결해서 ssd를 포맷하자. 이거

brush-up.tistory.com

 

슬슬 자신감이 없어지는데 ..

 

다이소에서 샌디스크 sd 카드를 사왔다. 

다시 구워보자.. 

 

다시 포맷.. 

왠지 포맷 방법이 문제였을거 같은 느낌이 든다.. 

https://medium.com/@ahsaanraazaa/jetson-nano-boot-from-usb-ssd-guid-37e497ace0cc

 

Jetson Nano Boot From USB/SSD Guid

If you are using any edge device like NVIDIA’s Jetson or raspberry pi you will Notice that, your device use SD Card as primary storage and…

medium.com

여기 내용을 따라서 진행해보자. 

 

1. ssd 포맷 다시 하기 

$ sudo mkfs.ext4 /dev/sda

 

2. 마운트 

$ sudo mount /dev/sda /mnt

 

 

3. 깃 클론 

$ git clone https://github.com/JetsonHacksNano/rootOnUSB
$ cd rootOnUSB
./copyRootToUSB.sh -p /dev/sda

 

mount /dev/sda/mnt

 

4. /boot/extlinux/extlinux.conf

sudo vi /boot/extlinux/extlinux.conf

 

아래처럼 수정했다. 

이 과정이 제일 어려웠다. 

 

TIMEOUT 100
DEFAULT ssd_boot

MENU TITLE L4T boot options

LABEL primary
      MENU LABEL primary kernel
      LINUX /boot/Image
      INITRD /boot/initrd
      APPEND ${cbootargs} quiet root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 

LABEL ssd_boot
    MENU LABEL Boot from SSD
    LINUX /boot/Image
    INITRD /boot/initrd
    APPEND ${cbootargs} quiet root=/dev/sda rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0

# When testing a custom kernel, it is recommended that you create a backup of
# the original kernel and add a new entry to this file so that the device can
# fallback to the original kernel. To do this:
#
# 1, Make a backup of the original kernel
#      sudo cp /boot/Image /boot/Image.backup
#
# 2, Copy your custom kernel into /boot/Image
#
# 3, Uncomment below menu setting lines for the original kernel
#
# 4, Reboot

# LABEL backup
#    MENU LABEL backup kernel
#    LINUX /boot/Image.backup
#    INITRD /boot/initrd
#    APPEND ${cbootargs}

 

주요 변경사항을 설명하면 LABEL ssd_boot을 만들고 

DEFAULT 부분에서 기본 설정을 ssd(sda)로 변경했다. 

더보기

원래 파일 

TIMEOUT 30
DEFAULT primary

MENU TITLE L4T boot options

LABEL primary
      MENU LABEL primary kernel
      LINUX /boot/Image
      INITRD /boot/initrd
      APPEND ${cbootargs} quiet root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 

# When testing a custom kernel, it is recommended that you create a backup of
# the original kernel and add a new entry to this file so that the device can
# fallback to the original kernel. To do this:
#
# 1, Make a backup of the original kernel
#      sudo cp /boot/Image /boot/Image.backup
#
# 2, Copy your custom kernel into /boot/Image
#
# 3, Uncomment below menu setting lines for the original kernel
#
# 4, Reboot

# LABEL backup
#    MENU LABEL backup kernel
#    LINUX /boot/Image.backup
#    INITRD /boot/initrd
#    APPEND ${cbootargs}

 

 

 

5. 재부팅 

sudo reboot

 

 

 

6. 성공

df -h

 


주요 원인은 포맷이랑  /boot/extlinux/extlinux.conf이거 수정하는 부분에서 문제가 있었을 듯 하다. 

sda1 같이 해야 되는데 sda로 해서 문제가 있긴한데.. 지금 당장 문제는 없으니까.. 

 

혹시 다음에 하게 된다면 본다면 sda1으로 하면 좋을 듯

 


과연 sd 카드를 뺴도 동작을 할까?

-> 안된다. 

물론 안되는 이유는 내가 /boot/extlinux/extlinux.conf  이거를 잘못 작성해서 그럴수도 있다. 

 

아무튼 ssd 부팅 성공 !!

728x90