ESP32-S3 Linux partition table

The existent partition table is made for 8MB flash, and I am trying to add a new R/W partition that will make use of the remaining 8MB, but I have no idea how to edit the partition table or the fstab file. this post has some information but it is not clear enough for me https://github.com/jcmvbkbc/esp32-linux-build/issues/16#issuecomment-2364978673 these are the original contents of the files in question fstab
# <file system> <mount pt> <type> <options> <dump> <pass>
/dev/root / ext2 rw,noauto 0 1
proc /proc proc defaults 0 0
devpts /dev/pts devpts defaults,gid=5,mode=620,ptmxmode=0666 0 0
tmpfs /dev/shm tmpfs mode=0777 0 0
tmpfs /tmp tmpfs mode=1777 0 0
tmpfs /run tmpfs mode=0755,nosuid,nodev 0 0
sysfs /sys sysfs defaults 0 0
mtd:etc /etc jffs2 nofail 0 0
# <file system> <mount pt> <type> <options> <dump> <pass>
/dev/root / ext2 rw,noauto 0 1
proc /proc proc defaults 0 0
devpts /dev/pts devpts defaults,gid=5,mode=620,ptmxmode=0666 0 0
tmpfs /dev/shm tmpfs mode=0777 0 0
tmpfs /tmp tmpfs mode=1777 0 0
tmpfs /run tmpfs mode=0755,nosuid,nodev 0 0
sysfs /sys sysfs defaults 0 0
mtd:etc /etc jffs2 nofail 0 0
partition_table.esp32s3
## Label type ST Offset Length
nvs, data, nvs, 0x0000a000, 0x00005000
phy_init, data, phy, 0x0000f000, 0x00001000
factory, app, factory, 0x00010000, 0x000a0000
etc, 0x40, 0x1, 0x000b0000, 0x00070000
linux, 0x40, 0x0, 0x00120000, 0x00360000
rootfs, 0x40, 0x1, 0x00480000, 0x00380000
## Label type ST Offset Length
nvs, data, nvs, 0x0000a000, 0x00005000
phy_init, data, phy, 0x0000f000, 0x00001000
factory, app, factory, 0x00010000, 0x000a0000
etc, 0x40, 0x1, 0x000b0000, 0x00070000
linux, 0x40, 0x0, 0x00120000, 0x00360000
rootfs, 0x40, 0x1, 0x00480000, 0x00380000
3 Replies
bsdinis
bsdinisOP2w ago
but it's still super confusing, what FS do I use to add a R/W partition, and what do I have to edit in the fstab after that? and in the first example they show offset and size as hexadecimal and in the other examples it's shown as K(B) / M(B) I added this line to the end of the partition table, not sure if it's correct spiffs, data, spiffs, 0x00800000, 0x00800000 but if it is, what do I have to edit in the fstab now?
Maverick
Maverick2w ago
I don't think you can use spiffs. The offset should probably be 0x008600000. In fstab it should probably be like etc, ie: mtd:myfs /myfs jffs2 nofail 0 0 You could probably also just increase the size of the rootfs like the github user did.

Did you find this page helpful?