losetup -f
查看哪个 loop 设置可用
losetup -P /dev/loop4 raspberry.img
挂载 img 文件到 loop4
mount /dev/loop4p1 /mnt/boot
mount /dev/loop4p2 /mnt/data
losetup -f
查看哪个 loop 设置可用
losetup -P /dev/loop4 raspberry.img
挂载 img 文件到 loop4
mount /dev/loop4p1 /mnt/boot
mount /dev/loop4p2 /mnt/data
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
.执行 parted /dev/sdq 输入 print 找到要扩容的盘,应该是/dev/sdq3,检查大小 resizepart 3 100% quit 再检查大小 退出parted 更新物理卷的大小,当然这里前提是使用了LVM pvresize /dev/sda3 lvdis...