Troubleshooting; Resizing The Root Partition To Maximum Size; Fixing A Non-Booting System - Panasonic PAN9026 Quick Start Manual

Wi-fi dual band 2.4 ghz/5 ghz and bluetooth module
Hide thumbs Also See for PAN9026:
Table of Contents

Advertisement

PAN9026 Wi-Fi/Bluetooth Module

7 Troubleshooting

7.1 Resizing the 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 simply cutting off the power supply. It can lead to a filesystem
corruption which might leave the system in an un-bootable state.
If the power supply was cutting off simply, 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 file system check on the partition, containing the root filesystem:
fsck.ext4 /dev/mmcblk2p1
3. Reboot the system:
reboot
➔ Now the system starts up correctly again.
Quick Start Guide Rev. 1.2
7 Troubleshooting
Page 31 of 34

Advertisement

Table of Contents
loading

Table of Contents