# Read-only FS after setting up extroot

**URL:** <https://forum.gl-inet.com/t/read-only-fs-after-setting-up-extroot/15328>\
**Category:** Router\
**Created:** [April 16, 2021, 11:08am UTC](https://forum.gl-inet.com/t/read-only-fs-after-setting-up-extroot/15328 "2021-04-16T11:08:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikolas](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/n/439d5e/32.png) [@Nikolas](https://forum.gl-inet.com/u/Nikolas)\
**Post date:** [April 16, 2021, 11:08am UTC](https://forum.gl-inet.com/t/read-only-fs-after-setting-up-extroot/15328/1 "2021-04-16T11:08:37Z")

</div>

So I set up extroot with a 64gig card on my AR750.  
extroot setup should be good:

> ```
> root@GL-AR750:~# block info
> /dev/mtdblock5: UUID="9e3223c6-92747156-b874c1c5-8a35dc7a" VERSION="4.0" MOUNT=" /rom" TYPE="squashfs"
> /dev/mtdblock6: TYPE="jffs2"
> /dev/sda1: UUID="3f7b9cbf-74e3-42b6-aeb6-5adf869dd91f" VERSION="1.0" MOUNT="/overlay" TYPE="ext4"                                                                                                                                                 
> root@GL-AR750:~# df -kh
> Filesystem Size Used Available Use% Mounted on
> /dev/root 10.5M 10.5M 0 100% /rom
> tmpfs 60.4M 956.0K 59.4M 2% /tmp
> /dev/sda1 58.4G 53.2M 55.4G 0% /overlay
> overlayfs:/overlay 58.4G 53.2M 55.4G 0% /
> tmpfs 512.0K 0 512.0K 0% /dev
> root@GL-AR750:~# cat /etc/config/fstab
> config 'global'
> option anon_swap '0'
> option anon_mount '0'
> option auto_swap '1'
> option auto_mount '1'
> option delay_root '5'
> option check_fs '0'
> 
> config 'mount'
> option target '/overlay'
> option uuid '3f7b9cbf-74e3-42b6-aeb6-5adf869dd91f'
> option enabled '0'
> 
> ```

However, when I try to install packages, either through the webinterface or via opkg it fails with _ **Read-only file system** _ error.

Also can’t create files in home directory:

> root@GL-AR750:~# touch test  
> touch: test: Read-only file system

Please advise.

---

<div class="post-metadata">

**Author:** ![Henry\_Bruns](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/h/ee59a6/32.png) [@Henry\_Bruns](https://forum.gl-inet.com/u/Henry_Bruns)\
**Post date:** [April 16, 2021, 11:22am UTC](https://forum.gl-inet.com/t/read-only-fs-after-setting-up-extroot/15328/2 "2021-04-16T11:22:46Z")

</div>

Can you describe please how to do ?

On follow you find what I tryed to find about:

- [How to expand the "disk space" of gl router by exroot?](https://forum.gl-inet.com/t/how-to-expand-the-disk-space-of-gl-router-by-exroot/14773)

---

<div class="post-metadata">

**Author:** ![Nikolas](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/n/439d5e/32.png) [@Nikolas](https://forum.gl-inet.com/u/Nikolas)\
**Post date:** [April 16, 2021, 12:37pm UTC](https://forum.gl-inet.com/t/read-only-fs-after-setting-up-extroot/15328/3 "2021-04-16T12:37:42Z")

</div>

Nevermind, I fixed it myself. Here is the proper fstab that works for me. I thought rw was the default. Apparently you have to explicitly option rw.

> root@GL-AR750:~# block info  
> /dev/mtdblock5: UUID=“9e3223c6-92747156-b874c1c5-8a35dc7a” VERSION=“4.0” MOUNT=“/rom” TYPE=“squashfs”  
> /dev/mtdblock6: MOUNT=“/overlay” TYPE=“jffs2”  
> /dev/sda1: UUID=“3f7b9cbf-74e3-42b6-aeb6-5adf869dd91f” VERSION=“1.0” MOUNT=“/mnt/sda1” TYPE=“ext4”  
> root@GL-AR750:~# cat /etc/config/fstab
> 
> config global  
> option anon\_swap ‘0’  
> option anon\_mount ‘0’  
> option auto\_swap ‘1’  
> option auto\_mount ‘0’  
> option delay\_root ‘5’  
> option check\_fs ‘0’
> 
> config mount ‘rwm’  
> option device ‘/dev/mtdblock6’  
> option target ‘/rwm’
> 
> config mount ‘overlay’  
> option uuid ‘3f7b9cbf-74e3-42b6-aeb6-5adf869dd91f’  
> option target ‘/overlay’  
> option options ‘rw,relatime,barrier=1,data=ordered’  
> option enabled ‘1’  
> option is\_rootfs ‘1’

---

<div class="post-metadata">

**Author:** ![Davis322](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/d/edb3f5/32.png) [@Davis322](https://forum.gl-inet.com/u/Davis322)\
**Post date:** [April 22, 2021, 12:05pm UTC](https://forum.gl-inet.com/t/read-only-fs-after-setting-up-extroot/15328/4 "2021-04-22T12:05:04Z")

</div>

You need to install several packages to create an ext4 filesystem on the overlay partition[!](https://www.yourtexasbenefits.biz/)

---

<div class="post-metadata">

**Author:** ![rp201rp](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@rp201rp](https://forum.gl-inet.com/u/rp201rp)\
**Post date:** [April 22, 2021, 8:25pm UTC](https://forum.gl-inet.com/t/read-only-fs-after-setting-up-extroot/15328/5 "2021-04-22T20:25:39Z")

</div>

> [@Nikolas](#):
>
> So I set up extroot with a 64gig card on my AR750.  
> extroot setup should be good:

the new 3.xxx has all the files already. (our smart devs knew the 19.x size increase was going to be a headache for everyone.

once you get good with configuring extroot I like part1 exfat and part2 ext4 and set extroot to second partiion so microsd card first part is still legible in windows. dont try this out the gate, format the whole card like it ask in the openwrt guide.

> **[Extroot configuration](https://openwrt.org/docs/guide-user/additional-software/extroot_configuration)**
>
> Extroot configuration This article relies on the following: \* Accessing web interface / command-line interface \* Managing configs / packages / services / logs Introduction This guide describes how to configure OpenWrt to use a storage device...

---

<div class="post-metadata">

**Author:** ![dsossna](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/d/cc9497/32.png) [@dsossna](https://forum.gl-inet.com/u/dsossna)\
**Post date:** [April 17, 2023, 11:48am UTC](https://forum.gl-inet.com/t/read-only-fs-after-setting-up-extroot/15328/6 "2023-04-17T11:48:47Z")

</div>

Hello,

I can not install gparted as it is required for do extroot. If I try it to mount it as overlay in luci, I can change the mount point, but zhe sd card is still mounted on /mnt/sda1

---

<div class="post-metadata">

**Author:** ![bruce](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/bruce/32/35649_2.png) [@bruce](https://forum.gl-inet.com/u/bruce)\
**Post date:** [October 29, 2025, 4:21am UTC](https://forum.gl-inet.com/t/read-only-fs-after-setting-up-extroot/15328/7 "2025-10-29T04:21:38Z")

</div>


