$ git clone https://github.com/JetsonHacksNano/rootOnUSB
Cloning into 'rootOnUSB'...
remote: Enumerating objects: 87, done.
remote: Total 87 (delta 0), reused 0 (delta 0), pack-reused 87
Unpacking objects: 100% (87/87), done.
$ cd rootOnUSB/
$ ls
LICENSE addUSBToInitramfs.sh data sample-extlinux.conf
README.md copyRootToUSB.sh diskUUID.sh scripts
USB接続HDD/SSDにデータコピー
ブートシーケンスにUSB接続を追加するツールを実行します。
~/rootOnUSB$ ./addUSBToInitramfs.sh
Adding USB to initramfs
[sudo] password :
Warning: couldn't identify filesystem type for fsck hook, ignoring.
I: The initramfs will attempt to resume from /dev/zram3
I: (UUID=bfeedab2-3ada-4cb1-924c-bf1df42d9e3e)
I: Set the RESUME variable to override this.
/sbin/ldconfig.real: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf.d/aarch64-linux-gnu_EGL.conf: No such file or directory
/sbin/ldconfig.real: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf.d/aarch64-linux-gnu_GL.conf: No such file or directory
usage: ./copyRootToUSB.sh [OPTIONS]
-d | --directory Directory path to parent of kernel
-v | --volume_label Label of Volume to lookup
-p | --path Device Path to USB drive (e.g. /dev/sda1)
-h | --help This message