티스토리 뷰

728x90

출처

리눅스 스토리지 디바이스 정보 확인

orangepi@orangepi5:~$ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
mtdblock0    31:0    0    16M  0 disk 
mmcblk1     179:0    0  59.5G  0 disk 
├─mmcblk1p1 179:1    0   256M  0 part /boot
└─mmcblk1p2 179:2    0  58.6G  0 part /var/log.hdd
                                      /
zram0       254:0    0   7.7G  0 disk [SWAP]
zram1       254:1    0   200M  0 disk /var/log
nvme0n1     259:0    0 238.5G  0 disk 
├─nvme0n1p1 259:1    0    16M  0 part 
└─nvme0n1p2 259:2    0 238.5G  0 part

기존 파티션 삭제

orangepi@orangepi5:~$ sudo gdisk
GPT fdisk (gdisk) version 1.0.8
 
Type device filename, or press <Enter> to exit: /dev/nvme0n1                      
Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present
 
Found valid GPT with protective MBR; using GPT.
 
Command (? for help): p
Disk /dev/nvme0n1: 500118192 sectors, 238.5 GiB
Model: SAMSUNG MZALQ256HBJD-00BL2              
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): AF6C9907-FDCE-4BA6-AD91-5233C180686B
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 32768, last usable sector is 8945670
Partitions will be aligned on 2048-sector boundaries
Total free space is 7 sectors (3.5 KiB)
 
Number  Start (sector)    End (sector)  Size       Code  Name
   1           32768         8421375   4.0 GiB     0700  vfat
   2         8421376         8945663   256.0 MiB   8300  userdata
 
Command (? for help): d
Partition number (1-2): 2
 
Command (? for help): d
Using 1
 
Command (? for help): w  
Warning! Secondary header is placed too early on the disk! Do you want to
correct this problem? (Y/N): Y
Have moved second header and partition table to correct location.
 
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!
 
Do you want to proceed? (Y/N): Y
OK; writing new GUID partition table (GPT) to /dev/nvme0n1.
The operation has completed successfully.

Batocera.linux 업로드

orangepi@orangepi5:~$ sudo apt install lrzsz
orangepi@orangepi5:~$ rz
rz waiting to receive.
Starting zmodem transfer.  Press Ctrl+C to cancel.
Transferring batocera-rk3588-36-20230116-orig-opi5.img.gz...
  100% 1585388 KB    18222 KB/sec    00:01:27       0 Errors

NVMe에 Batocera.linux 설치

orangepi@orangepi5:~$ gzip -d batocera-rk3588-36-20230116-orig-opi5.img.gz
orangepi@orangepi5:~$ sudo dd if=./batocera-rk3588-36-20230116-orig-opi5.img of=/dev/nvme0n1 bs=4M status=progress
4538236928 bytes (4.5 GB, 4.2 GiB) copied, 66 s, 68.7 MB/s
1092+1 records in
1092+1 records out
4580200448 bytes (4.6 GB, 4.3 GiB) copied, 69.8388 s, 65.6 MB/s
orangepi@orangepi5:~$ sync

NVMe에 bootloader 설치

orangepi-config 실행

orangepi@orangepi5:~$ sudo orangepi-config

NVMe에 bootloader 설치

Batocera.linux 실행화면

댓글
300x250
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함