皮皮鲁

皮皮鲁

采用区块链技术建立的个人博客

JD Cloud AX1800 PRO Arthur OpenWrt Play First Shot: Expanding Software Space and Installing Alist Cloud Drive Artifact

After flashing iStoreOS OpenWrt on JD Cloud AX1800 Pro Arthur, you will find that the remaining space for installing software is too small and it is basically impossible to install third-party software.

image

There are two methods to solve this problem. The first method is to flash a larger partition table, which is equivalent to increasing the space of the C drive on the computer, so that there is space to install software. The second method is to not change the partition size and find a way to install the software on a larger D drive or E drive. The first method seems to be a permanent solution, but it has the following drawbacks: first, there is a high risk, improper operation may result in bricking the device; second, switching to different firmware requires changing the partition table back and forth or manually adjusting the partition. For example, if you flash a larger partition and want to flash back to JD Cloud official firmware, you need to change the partition back before flashing. Therefore, it is recommended for novice users to use the second method, which has less risk and is easier to switch firmware. Now let's introduce the steps to install software on a larger partition by expanding the overlay partition.

I. Expand the overlay partition

  1. Login to the ttyd terminal

Enter the root account and the default password "password" to log in. You can enter "df -h" to confirm the current size of the overlay.

image

  1. Command line operation

Enter the following command in the terminal and press Enter to unmount the p27 partition:

umount /dev/mmcblk0p27

Enter the following command in the terminal and press Enter to format the p27 partition. Formatting may take some time due to the large capacity of the eMMC. Please wait patiently for the execution to complete:

mkfs.ext4 -F /dev/mmcblk0p27

Enter the following command in the terminal and press Enter to manually mount p27:

mount /dev/mmcblk0p27 /mnt/mmcblk0p27

Enter the following command in the terminal and press Enter to copy the overlay partition files to the p27 partition:

cp -r /overlay/* /mnt/mmcblk0p27

Enter the following command in the terminal and press Enter to check if the copy was successful. If you see the "lost+found", "upper", and "work" folders, it means the copy was successful:

ls /mnt/mmcblk0p27

Then enter the following command to generate the mount file:

block detect > /etc/config/fstab

Enter the following command to mount p27 partition to overlay:

sed -i s#/mnt/mmcblk0p27#/overlay# /etc/config/fstab

Finally, enter the following command to unmount the original overlay (please note that this step is missing in the image, but it needs to be executed in reality):

sed -i '12s/1/0/g' /etc/config/fstab

Finally, after entering "reboot" and pressing Enter, the device will restart.

  1. Confirm the restart

Just like before, login to the ttyd terminal and enter "df -h" to check the mount status. We can see that the mount was successful.

image

II. Install software

  1. Install Alist

After expanding the space, we can freely install third-party software. We can use the standard OpenWrt command "opkg install XXX" in the terminal to install the third-party software you want, or you can directly install software from the iStore plugin store.

Let's take the installation of Alist, a tool for mounting network drives, as an example.

Click on iStore and find Alist network drive, click "Install" to install it.

image

After the installation is complete, click "Open".

image

  1. Start Alist network drive

Click "Enable" and then click "Save and Apply".

image

  1. Login to Alist management interface

After the startup is complete, click "Open web page".

image

Enter the default account "admin" and password "admin" to log in to Alist.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.