2021年3月25日星期四

挂载含2 个以上分区镜像

 

losetup -f

查看哪个 loop 设置可用


losetup -P /dev/loop4 raspberry.img

挂载 img 文件到 loop4


mount /dev/loop4p1 /mnt/boot

mount /dev/loop4p2 /mnt/data








查看 dd 的进度

  dd if=/agc.img of=/dev/sdd bs=16M



sudo watch -n 5 pkill -USR1 ^dd$

5秒刷新一次进度




查看 cp 的复制情况,勉强算是看进度


watch lsof -p1234
1234为 pid


watch lsof -p`pgrep -x cp`




2021年3月1日星期一

ubuntu 安装 batocera


On Debian/Ubuntu: All of this be easily installed with apt-get:

sudo apt-get install libsdl2-dev libsdl2-mixer-dev libfreeimage-dev libfreetype6-dev \
  libcurl4-openssl-dev rapidjson-dev libasound2-dev libgl1-mesa-dev build-essential \
  libboost-all-dev cmake fonts-droid-fallback libvlc-dev libvlccore-dev vlc-bin

Note this Repository uses a git submodule - to checkout the source and all submodules, use

git clone --recursive https://github.com/RetroPie/EmulationStation.git

or

git clone https://github.com/RetroPie/EmulationStation.git
cd EmulationStation
git submodule update --init

Then, generate and build the Makefile with CMake:

cd YourEmulationStationDirectory
cmake .
make






 

在PVE使用虚拟 USB 存储设备 + ARPL 引导 DSM

  部分内容来自: https://blog.myds.cloud/archives/synoboot-usb-image-in-pve-virtual-machine.html 虚拟机建好之后,打开配置文件 nano /etc/pve/qemu-server/100.conf ...