README-P2

This commit is contained in:
2025-11-24 02:40:55 -08:00
parent 5ed940bb3b
commit 1f8048f18b

View File

@@ -1,13 +1,6 @@
OpenWrt 24.x Extroot on XE300
# OpenWRT 24.10.0 Extroot on XE-300
Goal: Use a microSD card as the router's writable storage (overlay),
single ext4 partition, no data copied from internal flash.
Device: GL-iNet XE300, OpenWRT 24.10.4, 512 Gb SD Card
Detected as: /dev/sda with one partition /dev/sda1
1. Insert card & install required packages
## 1. Insert card & install required packages
opkg update
opkg install block-mount kmod-fs-ext4 kmod-usb-storage e2fsprogs
@@ -17,7 +10,7 @@ kmod-fs-ext4 - kernel driver for ext4 filesystem
kmod-usb-storage - makes the SD slot show up as /dev/sda
e2fsprogs - provides mkfs.ext4
2. Confirm the SD card is /dev/sda and /dev/sda1
## 2. Confirm the SD card is /dev/sda and /dev/sda1
Check dmesg:
@@ -30,12 +23,12 @@ sda: sda1
sd 0:0:0:0: [sda] Attached SCSI removable disk
3. Format /dev/sda1 as ext4 for extroot
## 3. Format /dev/sda1 as ext4 for extroot
mkfs.ext4 -L extroot /dev/sda1
You should see output ending with success and a UUID.
4. Grab the UUID and create the extroot fstab entry
## 4. Grab the UUID and create the extroot fstab entry
UUID=$(block info | awk -F\" '/sda1/ {print $2}')
echo $UUID
@@ -73,13 +66,13 @@ config mount 'extroot'
option enabled '1'
5. Reboot into extroot
## 5. Reboot into extroot
reboot
Wait for the router to come back up, then SSH in again.
6. Verify that the SD card is now your root overlay
## 6. Verify that the SD card is now your root overlay
df -h