Changes between Version 1 and Version 2 of Openwrtone


Ignore:
Timestamp:
07/08/25 00:43:35 (4 days ago)
Author:
krit
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Openwrtone

    v1 v2  
    22
    33Ref extend root [https://gist.github.com/p2made/4f38be302043d51fe2e08aa601a8d2e3 here]
     4
     5Install package
     6{{{
     7opkg update
     8opkg install block-mount e2fsprogs lsblk
     9}}}
     10
     11run lsblk should see
     12{{{
     13root@OpenWrt:~# lsblk
     14NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
     15mtdblock0    31:0    0   256K  0 disk
     16mtdblock1    31:1    0   768K  1 disk
     17mtdblock2    31:2    0   512K  0 disk
     18mtdblock3    31:3    0  12.5M  0 disk
     19mtdblock4    31:4    0     1M  1 disk
     20mtdblock5    31:5    0   255M  0 disk
     21ubiblock0_4 254:0    0  10.3M  0 disk
     22fit0        259:0    0   4.7M  1 disk /rom
     23nvme0n1     259:1    0 119.2G  0 disk
     24├─nvme0n1p1 259:2    0   117G  0 part /overlay
     25└─nvme0n1p2 259:3    0   2.2G  0 part [SWAP]
     26root@OpenWrt:~#
     27}}}
     28
     29Create the fstab config file based on all the block devices found...
     30{{{
     31block detect | uci import fstab
     32}}}
     33Update the fstab config file to mount all drives at startup. More...
     34{{{
     35uci set fstab.@mount[0].enabled='1'
     36uci set fstab.@global[0].anon_mount='1'
     37uci commit fstab
     38}}}
     39Mount the devices...
     40{{{
     41/etc/init.d/fstab boot
     42}}}