0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

OpenWrt 化した Buffalo WSR-3200AX4S で、追加パッケージのインストールに使える容量を拡大する

Last updated at Posted at 2025-06-15

この記事の目的

この記事では 5ch の 【無線 LAN】OpenWrt【強化ファーム】#25#26 の内容を参照し、OpenWrt 化すると追加パッケージに使用できる Flash メモリが 7MB 程度 😵 になってしまう WSR-3200AX4S で、 Tailscale がインストールできる程度に Flash メモリの使用可能領域を拡大する方法 🧙 を説明します。

この記事は、情報の整理と集約により可読性を向上させる 🧐 ことを目的としており、スクリプト作成者 をはじめとする多くの方々の知見・貢献を横取りする意図はありません。😉

👉 参考資料1: mount_vacant_space 導入手順

👉 参考資料2: OpenWrt ファームウェア更新時にデータは消えるか

実行するコード

WSR-3200AX4S に SSH で接続し、以下のスクリプトを実行します。

実行が完了したら mount_vacant_space を有効化するために reboot します。

opkg update
opkg install kmod-mtd-rw

wget -O /etc/init.d/mount_vacant_space https://pastebin.com/raw/XDja96GT
sed -i 's/\r//' /etc/init.d/mount_vacant_space
chmod 755 /etc/init.d/mount_vacant_space
/etc/init.d/mount_vacant_space enable

Storage はどのように変わるのか

以下はスクリプトの実行前後のスクリーンショットです。

画面の下の方の Storageubi1:dpi という項目が増えています。🧐

  • 領域拡大前
    /overlay 拡張前

  • 領域拡大後
    /overlay 拡張後

追加領域を活用するには --force-space オプションが必要

例えば Tailscale をインストールする場合、opkg install tailscale ではなく opkg --force-space install tailscale を実行します。

普通に opkg install tailscale を実行してしまうと、以下のように領域不足のエラーが表示され、インストールに失敗します。😵

root@OpenWrt:~# opkg install tailscale
Installing tailscale (1.80.3-r1) to root...
Collected errors:
 * verify_pkg_installable: Only have 6788kb available on filesystem /overlay, pkg tailscale needs 22730
 * opkg_install_cmd: Cannot install package tailscale.
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?