PAN9028 Wi-Fi/Bluetooth Module
7 Troubleshooting
Quick Start Guide Rev. 1.0
Page 31 of 34
7
Troubleshooting
7.1 Resizing Root Partition to Maximum Size
The original SD card image is about 1.5
GB in size. Even if it is written to a bigger SD card, the
system will not use the remaining space automatically.
Execute the following steps as root user to resize the filesystem to occupy all the remaining
space on the SD card.
1. Open a Terminal Window and become the root user:
sudo su -
2. Modify the existing partition table to occupy all the remaining space on the SD card:
echo ", +" | sfdisk --no-reread -N 1 /dev/mmcblk2
3. Make sure the Linux kernel gets to know the new partition size:
partprobe /dev/mmcblk2
4. Resize the existing filesystem on that partition:
resize2fs /dev/mmcblk2p1
5. Reboot the system for a clean start:
reboot
7.2 Fixing a Non-Booting System
The full setup contains a fully running Ubuntu system, which needs to be properly powered
down before the system can be shut off.
Do not cut off the power supply before the PAN9028-IMX was properly shut
down. It can lead to a filesystem corruption which might leave the system in an
unbootable state.
If a corruption of the filesystem occurred because the power supply was cut off, the following
message will be shown on the serial console while booting:
Welcome to emergency mode!
Press Enter for maintenance
(or press Control-D to continue).
1. Remount the root filesystem:
mount -r -o remount /
2. Execute a filesystem check on the partition, containing the root filesystem:
fsck.ext4 /dev/mmcblk2p1
3. Reboot the system:
reboot
➔
Now the system starts up correctly again.