User Tools

Site Tools


ccgx:root_access

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
ccgx:root_access [2024-02-09 17:06] – [4.1 Hooks to install/run own code at boot] dfaberccgx:root_access [2024-06-15 16:23] (current) – [4.4 Adding or modifying services] mvader
Line 119: Line 119:
 === 4.2.2 Read-only rootfs === === 4.2.2 Read-only rootfs ===
  
-By default, the rootfs is mounted read only. Also, by default, it only has 5% of free space.+By default, the rootfs is mounted read only. Also, by default, it only has 5% of free space, while the partition in which its installed is actually larger.
  
-The solution is to run ''/opt/victronenergy/swupdate-scripts/resize2fs.sh''.+The recommended method to **(a)** mount it as read/write, and **(b)** expand it to use all of the available space in its partition, is by running ''/opt/victronenergy/swupdate-scripts/resize2fs.sh''.
  
-Further details in the next section.+Here is a short overview of the three ways mount the rootfs as read/write: 
 + 
 +  * //temporally//: issue the command ''mount -o remount,rw /'' (which holds until the next reboot or issueing ''mount -o remount,ro /''
 +  * //semi-permanent//: issue the command ''/opt/victronenergy/swupdate-scripts/remount-rw.sh'' (which holds until the next firmware update) 
 +  * //permanent//: adding one of the above commands to ''/data/rc.local'' (which holds permanently)
  
 === 4.2.3 Always prevent running out of diskspace === === 4.2.3 Always prevent running out of diskspace ===
Line 158: Line 162:
  
 For more advanced features please check the manual page of [[https://man7.org/linux/man-pages/man1/diff.1.html|diff]] and [[https://man7.org/linux/man-pages/man1/patch.1.html|patch]]. For more advanced features please check the manual page of [[https://man7.org/linux/man-pages/man1/diff.1.html|diff]] and [[https://man7.org/linux/man-pages/man1/patch.1.html|patch]].
 +
 +In this thread, there is an example of how to make a patch file to change a certain setting in the GX, and how to apply that at boot. To make it survive a firmware update:
 +https://community.victronenergy.com/idea/201826/lets-define-a-local-ntp-server.html
  
 ==== 4.4 Adding or modifying services ==== ==== 4.4 Adding or modifying services ====
Line 168: Line 175:
 ''/service''. ''/service''.
  
-By default the root filesystem of Venus is read-only. There are three ways to change that: +Further details herehttps://github.com/victronenergy/venus/wiki/howto-add-a-driver-to-Venus#installing-a-driver-that-doesnt-depend-on-a-serial-port
- +
-  * //temporally//issue the command ''mount -o remount,rw /'' (which holds until the next reboot or issueing ''mount -o remount,ro /''+
-  * //semi-permanent//: issue the command ''/opt/victronenergy/swupdate-scripts/remount-rw.sh'' (which holds until the next firmware update) +
-  * //permanent//: adding one of the above commands to ''/data/rc.local'' (which holds permanently)+
  
 ===== 5. Hardening a GX device ===== ===== 5. Hardening a GX device =====
ccgx/root_access.txt · Last modified: 2024-06-15 16:23 by mvader

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki