Assuming Openwrt is already installed in your Raspberry-Pi device (if not install from here)
Step 1. To resize storage on Raspberry Pi, internet access is required to download additional software.
- Access the OpenWrt WEB interface by opening a browser on your computer by typing http://192.168.1.1
- Click on drop down menu and select
- In Wireless Overview section beside radio0 click on . It will start wireless scan.
- Choose your network's SSID having internet access and click on
- If wireless network is encrypted, Enter your network password in and click submit.
- Click on save and apply button to connect to this wireless network.
- To check it internet is working properly. Click on drop down menu and select
- Under Network Utilities section click on
- It will give ping us back as long as we have internet connection.
The Raspberry Pi now has internet access, allowing it to download software.
To ssh your Raspberry Pi use below command (make sure Raspberry Pi is connected to your computer using RJ45 cable):
ssh root@192.168.1.1
opkg update
opkg install cfdisk resize2fs tune2fs
cfdisk /dev/mmcblk0
Now Resize the /dev/mmcblk0p2 partition (enter desired space). After this write the changes and quit.
reboot
mount -o remount,ro /
tune2fs -O^resize_inode /dev/mmcblk0p2
fsck.ext4 /dev/mmcblk0p2
(This might probably fail, doesn't seem to affect anything though)
reboot
resize2fs /dev/mmcblk0p2
df –h
This will successfully increase your storage.
Free Software, Hell Yeah!