Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
docs:guide-user:additional-software:extroot_configuration [2023/12/14 07:05] – fix variable names and instruction order vgaeteradocs:guide-user:additional-software:extroot_configuration [2024/03/07 09:46] – kmod-usb-storage often is required as well. zpe
Line 14: Line 14:
 This way OpenWrt fits even in tiny amounts of internal storage (as low as 4 MiB), but still allows to write settings and install some packages in the writable partition without changing all Linux programs used. This way OpenWrt fits even in tiny amounts of internal storage (as low as 4 MiB), but still allows to write settings and install some packages in the writable partition without changing all Linux programs used.
 Extroot works by setting another overlay partition in the external storage device, and during boot this new overlay partition will be mounted over the internal storage's overlay partition. Extroot works by setting another overlay partition in the external storage device, and during boot this new overlay partition will be mounted over the internal storage's overlay partition.
-This approach allows easy fallback in case the external storage device is removed, as your device will still have its own overlay partition and thus will load all configuration from there.+This approach also allows easy fallback in case the external storage device is removed, as your device will still have its own overlay partition and thus will load all configuration from there.
 Which means that it will behave exactly the same as just before you set up extroot. Which means that it will behave exactly the same as just before you set up extroot.
  
Line 28: Line 28:
 Devices with 8 MiB flash or more should have enough space to install the required packages, otherwise create a [[docs:guide-user:additional-software:extroot_configuration#custom_image|custom image]]. Devices with 8 MiB flash or more should have enough space to install the required packages, otherwise create a [[docs:guide-user:additional-software:extroot_configuration#custom_image|custom image]].
 Remove all packages you have installed to add secondary functionality, as they are only wasting space now. Remove all packages you have installed to add secondary functionality, as they are only wasting space now.
 +(If you do not have a record of what these are, try removing 'ntfs' as that may free up enough space.)
 Leave only those needed to access the internet and needed to access the extroot filesystem. Leave only those needed to access the internet and needed to access the extroot filesystem.
 After you make the extroot you will have all the space you need to install secondary packages. After you make the extroot you will have all the space you need to install secondary packages.
 +
 +You may not need to make a custom image: try the OEM image first (OpenWRT GL.inet for a GL.inet mango).
  
 The extroot can be anything that ''block'' can mount. The extroot can be anything that ''block'' can mount.
Line 37: Line 40:
 However, it could also be on an SD-Card or a SATA drive connected via e-sata or even a network block device (assuming its set up early enough). However, it could also be on an SD-Card or a SATA drive connected via e-sata or even a network block device (assuming its set up early enough).
 If you're using a USB connected device follow the [[docs:guide-user:storage:usb-installing| USB installation guide]] to set up USB storage in OpenWrt. If you're using a USB connected device follow the [[docs:guide-user:storage:usb-installing| USB installation guide]] to set up USB storage in OpenWrt.
 +
 The following assumes that you will be creating your extroot as an EXT4 filesystem on your OpenWRT device with a connected USB flash drive. The following assumes that you will be creating your extroot as an EXT4 filesystem on your OpenWRT device with a connected USB flash drive.
 The process is similar for other kinds of devices. The process is similar for other kinds of devices.
Line 49: Line 53:
 <code bash> <code bash>
 opkg update opkg update
-opkg install block-mount kmod-fs-ext4 e2fsprogs parted+opkg install block-mount kmod-fs-ext4 e2fsprogs parted kmod-usb-storage
 </code> </code>
  
Line 103: Line 107:
 </code> </code>
  
-This will allow you to access the ''rootfs_data'' / ''ubifs'' partition and customize or the extroot configuration ''/rwm/upper/etc/config/fstab''.+This will allow you to access the ''rootfs_data'' / ''ubifs'' partition and customize the extroot configuration ''/rwm/upper/etc/config/fstab''.
  
 ==== 6. Apply changes ==== ==== 6. Apply changes ====
  • Last modified: 2024/06/28 04:31
  • by whoisroot