§2023-07-31
- orgpi5Jammy
$ ls /boot
boot.bmp config-5.10.110-rockchip-rk3588 Image orangepiEnv.txt uInitrd
boot.cmd dtb initrd.img-5.10.110-rockchip-rk3588 orangepi_first_run.txt.template vmlinuz-5.10.110-rockchip-rk3588
boot.scr dtb-5.10.110-rockchip-rk3588 logo.bmp System.map-5.10.110-rockchip-rk3588
$ cat orangepiEnv.txt
verbosity=1
bootlogo=false
extraargs=cma=128M
overlay_prefix=rk3588
fdtfile=rockchip/rk3588-orangepi-5-plus.dtb
rootdev=UUID=7755579e-76c3-4ebc-8ee7-17b273aec0ff <----
rootfstype=ext4 <----
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u
do not forget to edit /etc/fstab
- orgpi5Arch
$ ls /boot
dtbs extlinux grub idbloader.img Image initramfs-linux.img logo.bmp rkspi_loader.img u-boot.itb
$ blkid
/dev/nvme0n1p3: UUID="a539964e-7142-47aa-915f-8003431fd568" TYPE="swap" PARTUUID="7568cbd7-05ef-46ef-8069-695060222e9a"
/dev/nvme0n1p1: SEC_TYPE="msdos" LABEL_FATBOOT="BOOT_OPIOS" LABEL="BOOT_OPIOS" UUID="7B71-F910" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="primary" PARTUUID="da263e30-3598-4d29-86ef-8a566f978cab"
/dev/nvme0n1p4: UUID="99587533-d900-45cb-83c1-a707bd6fadd4" BLOCK_SIZE="512" TYPE="xfs" PARTUUID="82db100f-3a79-4d23-b473-453574b7e400"
/dev/nvme0n1p2: LABEL="ROOT_OPIOS" UUID="b09d67bb-c077-42c8-bb4a-4bffb96a2140" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="primary" PARTUUID="0aa270b8-8069-4729-bf1c-38f0c546e2a8"
$ cat extlinux/extlinux.conf
LABEL Orange Pi
LINUX /Image
FDT /dtbs/rockchip/rk3588-orangepi-5-plus.dtb
APPEND initrd=/initramfs-linux.img console=ttyS2,1500000 root=PARTUUID=0aa270b8-8069-4729-bf1c-38f0c546e2a8 rw rootwait audit=0 splash plymouth.ignore-serial-consoles loglevel=2 cma=128M
¶expand orgpiArch.yushei.net
- original
$ lsblk
$ lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
/var/lib/snapd/snap/snapd/19459
sda
└─sda1 xfs 941f0d89-db6d-4072-9ce0-44801959e50d 24.1G 15% /mnt <-- for moving / ext4 into
mtdblock0
zram0 [SWAP]
zram1
zram2
nvme0n1
├─nvme0n1p1 vfat FAT16 BOOT_OPIOS 7B71-F910 165.8M 22% /boot
├─nvme0n1p2 ext4 1.0 ROOT_OPIOS b09d67bb-c077-42c8-bb4a-4bffb96a2140 46G 23% /var/lib/snapd/snap
│ /
├─nvme0n1p3 swap 1 a539964e-7142-47aa-915f-8003431fd568 [SWAP]
└─nvme0n1p4 xfs 99587533-d900-45cb-83c1-a707bd6fadd4 149.8G 10% /opt/xfs
$ sudo mount /dev/sda1 /mnt
$ sudo rsync -av --progeress --exclude /mnt --exclude /opt / /mnt
After transfer into /dev/sda1 xfs partition
- modify /boot/extlinux/extlinux.conf
$ cat /boot/extlinux/extlinux.conf
LABEL Orange Pi
LINUX /Image
FDT /dtbs/rockchip/rk3588-orangepi-5-plus.dtb
APPEND initrd=/initramfs-linux.img console=ttyS2,1500000 root=PARTUUID=0aa270b8-8069-4729-bf1c-38f0c546e2a8 rw rootwait audit=0 splash plymouth.ignore-serial-consoles loglevel=2 cma=128M
uuid to 941f0d89-db6d-4072-9ce0-44801959e50d, the sda1
$ sudo blkid [sudo] password for alexlai: /dev/nvme0n1p3: UUID="a539964e-7142-47aa-915f-8003431fd568" TYPE="swap" PARTUUID="7568cbd7-05ef-46ef-8069-695060222e9a" /dev/nvme0n1p1: SEC_TYPE="msdos" LABEL_FATBOOT="BOOT_OPIOS" LABEL="BOOT_OPIOS" UUID="7B71-F910" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="primary" PARTUUID="da263e30-3598-4d29-86ef-8a566f978cab" /dev/nvme0n1p4: UUID="99587533-d900-45cb-83c1-a707bd6fadd4" BLOCK_SIZE="512" TYPE="xfs" PARTUUID="82db100f-3a79-4d23-b473-453574b7e400" /dev/nvme0n1p2: LABEL="ROOT_OPIOS" UUID="b09d67bb-c077-42c8-bb4a-4bffb96a2140" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="primary" PARTUUID="0aa270b8-8069-4729-bf1c-38f0c546e2a8" /dev/loop1: TYPE="squashfs" /dev/mtdblock0: PTUUID="a267dd49-0aae-40a3-8512-9f65341c8a27" PTTYPE="gpt" /dev/loop2: TYPE="squashfs" /dev/loop0: TYPE="squashfs" /dev/sda1: UUID="941f0d89-db6d-4072-9ce0-44801959e50d" BLOCK_SIZE="512" TYPE="xfs" PARTUUID="be54d255-9ae0-c445-abe4-9ce91dd246d6" /dev/zram0: LABEL="zram0" UUID="f2415059-250a-45af-a31b-bcbbafbdd990" TYPE="swap"
$ cat /etc/fstab
Static information about the filesystems.
See fstab(5) for details.
PARTUUID=da263e30-3598-4d29-86ef-8a566f978cab /boot vfat defaults 0 0
PARTUUID=0aa270b8-8069-4729-bf1c-38f0c546e2a8 / defaults 0 1
UUID=b09d67bb-c077-42c8-bb4a-4bffb96a2140 LABEL=ROOT_OPIOS
/dev/nvme0n1p2 / ext4 rw,relatime 0 1
UUID=7B71-F910 LABEL=BOOT_OPIOS
/dev/nvme0n1p1 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=936,iocharset=utf8,shortname=mixed,utf8,errors=remount-ro 0 2
UUID=99587533-d900-45cb-83c1-a707bd6fadd4
/dev/nvme0n1p4 /opt/xfs xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 2
UUID=a539964e-7142-47aa-915f-8003431fd568
/dev/nvme0n1p3 none swap defaults 0 0
/dev/zram0 none swap defaults,pri=100 0 0
mount munetaka.me JupyterHub smb share
//munetaka.me/JupyterHub /opt/munetakaJupyterHub cifs uid=0,credentials=/opt/xfs/home/alexlai/.smb,iocharset=utf8,noperm 0 0
mount h2nas03.yushei.com.tw smb share
//h2nas03.yushei.com.tw/ysMeetingJournal /opt/ysMeetingJournal cifs uid=0,username=alexlai,password=alex1765,iocharset=utf8,noperm 0 0
$ cat /boot/extlinux/extlinux.conf LABEL Orange Pi LINUX /Image FDT /dtbs/rockchip/rk3588-orangepi-5-plus.dtb APPEND initrd=/initramfs-linux.img console=ttyS2,1500000 root=PARTUUID=0aa270b8-8069-4729-bf1c-38f0c546e2a8 rw rootwait audit=0 splash plymouth.ignore-serial-consoles loglevel=2 cma=128M [alexlai@orpi5Arch ~]$
> PARTUUID="be54d255-9ae0-c445-abe4-9ce91dd246d6" /dev/sda1