OpenWrt-lede 旁路由 & VPS 固件 软件包空间扩容 overlay 扩容
OpenWrt-lede 旁路由 + VPS 固件 软件包空间扩容 overlay 扩容
图文记录:https://www.wanuse.com/2023/01/openwrt- ... erlay.html
电报群:https://t.me/pcdn3(这里朋友众多,相互学习。)
B站视频:https://b23.tv/4HJpuxX
youtube视频:https://youtu.be/9AsjRENn1tE
----------------------------------------------------------------------
openwrt-wanuse4.9旁路由固件软件包空间 overlay扩容记录
opkg update
opkg install cfdisk fdisk e2fsprogs libext2fs2 libfdisk1 sfdisk
创建分区
cfdisk
查看分区 得到分区sda3
fdisk -l
格式化分区
mkfs.ext4 /dev/sda3
把分区好挂载到mount /sda3下
mount /dev/sda3 /mnt/sda3
看到有lost+found挂载成功
ls /mnt/sda3
cd /overlay
cp -r /overlay/* /mnt/sda3
下一步到openwrt挂在硬盘
----------------------下面是视频中的操作记录--------------------------------------
wanuse.com4.9 login: root Password: BusyBox v1.35.0 (2022-02-19 03:39:25 UTC) built-in shell (ash) _________ / /\ _ ___ ___ ___ / LE / \ | | | __| \| __| / DE / \ | |__| _|| |) | _| /________/ LE \ |____|___|___/|___| \ \ DE / \ LE \ / ------------------------------------------- \ DE \ / OpenWrt SNAPSHOT, r4138-9722b56a8 \________\/ ------------------------------------------- root@wanuse:~# opkg update Downloading https://mirrors.cloud.tencent.com/lede/ ... ackages.gz Updated list of available packages in /var/opkg-lists/openwrt_core Downloading https://mirrors.cloud.tencent.com/lede/ ... ckages.sig Signature check passed. Downloading https://mirrors.cloud.tencent.com/lede/ ... ackages.gz Updated list of available packages in /var/opkg-lists/openwrt_base Downloading https://mirrors.cloud.tencent.com/lede/ ... ckages.sig Signature check passed. Downloading https://mirrors.cloud.tencent.com/lede/ ... ackages.gz Updated list of available packages in /var/opkg-lists/openwrt_luci Downloading https://mirrors.cloud.tencent.com/lede/ ... ckages.sig Signature check failed. Remove wrong Signature file. Downloading https://mirrors.cloud.tencent.com/lede/ ... ackages.gz Updated list of available packages in /var/opkg-lists/openwrt_packages Downloading https://mirrors.cloud.tencent.com/lede/ ... ckages.sig Signature check passed. Downloading https://mirrors.cloud.tencent.com/lede/ ... ackages.gz Updated list of available packages in /var/opkg-lists/openwrt_routing Downloading https://mirrors.cloud.tencent.com/lede/ ... ckages.sig Signature check passed. Downloading https://mirrors.cloud.tencent.com/lede/ ... ackages.gz Updated list of available packages in /var/opkg-lists/openwrt_telephony Downloading https://mirrors.cloud.tencent.com/lede/ ... ckages.sig Signature check passed. root@wanuse:~# opkg install cfdisk fdisk e2fsprogs libext2fs2 libfdisk1 sfdisk sfdisk Multiple packages (libgcc1 and libgcc1) providing same name marked HOLD or ...sing latest. Multiple packages (libgcc1 and libgcc1) providing same name marked HOLD or ...Using latest. Multiple packages (libpthread and libpthread) providing same name marked HOLD or ... latest. Multiple packages (librt and librt) providing same name marked HOLD or PREFER. Using latest. Multiple packages (librt and librt) providing same name marked HOLD or PREFER. Using latest. Upgrading cfdisk on root from 2.37-1 to 2.38-2... Downloading https://mirrors.cloud.tencent.com/lede/ ... x86_64.ipk Installing fdisk (2.38-2) to root... Downloading https://mirrors.cloud.tencent.com/lede/ ... x86_64.ipk Upgrading e2fsprogs on root from 1.45.6-2 to 1.46.5-2... Downloading https://mirrors.cloud.tencent.com/lede/ ... x86_64.ipk Upgrading libext2fs2 on root from 1.45.6-2 to 1.46.5-2... Downloading https://mirrors.cloud.tencent.com/lede/ ... x86_64.ipk Upgrading libfdisk1 on root from 2.37-1 to 2.38-2... Downloading https://mirrors.cloud.tencent.com/lede/ ... x86_64.ipk Installing sfdisk (2.38-2) to root... Downloading https://mirrors.cloud.tencent.com/lede/ ... x86_64.ipk Package sfdisk (2.38-2) installed in root is up to date. Configuring libfdisk1. Configuring sfdisk. Configuring cfdisk. Configuring libext2fs2. Configuring e2fsprogs. Configuring fdisk. root@wanuse:~# fdisk -l Disk /dev/loop0: 100.69 MiB, 105578496 bytes, 206208 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/sda: 8 GiB, 8589934592 bytes, 16777216 sectors Disk model: VMware Virtual S Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x20d04ee2 Device Boot Start End Sectors Size Id Type /dev/sda1 * 512 33279 32768 16M 83 Linux /dev/sda2 33792 361471 327680 160M 83 Linux root@wanuse:~# cfdisk Syncing disks. root@wanuse:~# fdisk -l Disk /dev/loop0: 100.69 MiB, 105578496 bytes, 206208 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/sda: 8 GiB, 8589934592 bytes, 16777216 sectors Disk model: VMware Virtual S Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x20d04ee2 Device Boot Start End Sectors Size Id Type /dev/sda1 * 512 33279 32768 16M 83 Linux /dev/sda2 33792 361471 327680 160M 83 Linux /dev/sda3 362496 4556799 4194304 2G 83 Linux root@wanuse:~# mkfs.ext4 /dev/sda3 mke2fs 1.46.5 (30-Dec-2021) Creating filesystem with 524288 4k blocks and 131072 inodes Filesystem UUID: 7e517818-bfc8-40fa-86db-896f5204571e Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912 Allocating group tables: done Writing inode tables: done Creating journal (16384 blocks): done Writing superblocks and filesystem accounting information: done root@wanuse:~# mount /dev/sda3 /mnt/sda3 root@wanuse:~# ls /mnt/sda3 lost+found root@wanuse:~# cd /overlay root@wanuse:/overlay# ls upper work root@wanuse:/overlay# cp -r /overlay/* /mnt/sda3 root@wanuse:/overlay# ls /mnt/sda3 lost+found upper work root@wanuse:/overlay#