about summary refs log tree commit diff stats
path: root/src/config/toml.nim
Commit message (Expand)AuthorAgeFilesLines
* config: improve input systembptato2024-03-261-0/+3
* config, toml: rename enumsbptato2024-03-261-54/+54
* config: clean up/simplifybptato2024-03-171-1/+1
* loader: rework process modelbptato2024-03-111-0/+1
* toml: misc refactoringsbptato2024-01-301-71/+40
* toml: allow EOF in values with laxnamesbptato2024-01-301-0/+2
* Use std/* imports everywherebptato2024-01-071-5/+5
* config/toml: fix consumeComment overriding nodesbptato2023-12-151-1/+2
* config: better path handling; fix array parsing bugbptato2023-12-101-0/+1
* toml: fix dquote escapingbptato2023-10-261-1/+1
* Use twtstr.join everywherebptato2023-10-011-2/+2
* toml: fix bug in multiline string parsingbptato2023-09-251-0/+5
* Accept bare strings in -o, fix -o with missing newlinebptato2023-09-201-6/+64
* move around more modulesbptato2023-09-141-1/+1
* toml: fix underscore number separatorbptato2023-09-131-1/+1
* fix compile errorbptato2023-09-131-1/+1
* toml: simplifybptato2023-09-131-4/+2
* toml: fix bugs in parseNumberbptato2023-09-131-12/+15
* toml: do not stream inputbptato2023-09-131-4/+1
* toml: add support for hex/octal numbersbptato2023-09-131-9/+45
* toml: complain more on unexpected EOFbptato2023-09-071-2/+3
* toml: remove unused importbptato2023-09-071-1/+0
* toml: fix newline counting in multiline stringsbptato2023-09-071-2/+4
* config: fix overriding default headersbptato2023-08-261-0/+2
* toml: various fixesbptato2023-08-261-8/+11
* toml: fix quotation chars in multiline stringsbptato2023-08-191-7/+9
* Fixes & workarounds to compile on Nim 2.0.0bptato2023-08-011-1/+1
* Use utils/opt in toml parserbptato2023-06-181-135/+138
* Add support for canvas and multipartbptato2023-06-051-1/+3
* Refactor config, add charset optsbptato2023-05-161-21/+25
* Update config and config docsbptato2022-12-131-2/+55
* Add all sorts of config options and cookiesbptato2022-12-131-0/+1
* Add siteconf, fix lineedit bugsbptato2022-11-291-9/+52
* Improve status messages, fix regressions, etcbptato2022-11-251-1/+0
* Fix user style regression, add minimum-contrastbptato2022-11-251-3/+4
* More configuration optionsbptato2021-12-191-3/+5
* Change configuration format to tomlbptato2021-12-051-0/+406
ture. Possible values are between 1 and 255, low values mean more aggressive power management and higher values mean better performance. Values from 1 to 127 permit spin-down, whereas values from 128 to 254 do not. A value of 255 completely disables the feature.</dd> <dt>-S</dt> <dd>Set the standby (spindown) timeout for the drive. The timeout specifies how long to wait in idle (with no disk activity) before turning off the motor to save power. The value of 0 disables spindown, the values from 1 to 240 specify multiples of 5 seconds and values from 241 to 251 specify multiples of 30 minutes.</dd> <dt>-M</dt> <dd>Set the Automatic Acoustic Management feature. Most modern hard disk drives have the ability to speed down the head movements to reduce their noise output. The possible value depends on the disk, some disks may not support this feature.</dd> </dl> <pre> # hdparm -S 0 /dev/sda # hdparm -B 255 /dev/sda </pre> <p>Set persistent values using udev, edit /etc/udev/rules.d/69-hdparm.rules;</p> <pre> ACTION=="add", SUBSYSTEM=="block", KERNEL=="sda", RUN=="/usr/bin/hdparm -B 255 -S 0 /dev/sda" </pre> <p>Search for bad blocks using <a href="https://wiki.archlinux.org/index.php/Badblocks">non destructive test;</a></p> <pre> # badblocks -nsv /dev/sdb1 </pre> <h2 id="mv">2. Moving data</h2> <p>Temp partition with 20M-50M;</p> <pre> (parted) mkpart primary ext4 4000MiB 4050MiB </pre> <p>Ports partition with 120G allows to host sources, package backups and ports;</p> <pre> (parted) mkpart primary ext4 192000MiB 312000MiB </pre> <p>Reboot into single-user mode where services aren't started and networking is offline.<p> <pre> # init 1 </pre> <p>Copy the data:</p> <pre> # cp -apx /srv/* /mnt/srv </pre> <p>Rename directory, for later backup;</p> <pre> # mv /srv /srv.old # mkdir /srv </pre> <p>Edit the <a href="../conf/etc/fstab">/etc/fstab</a>file:</p> <pre> # Temporary Data /tmp UUID=50bf6e55-6461-4dd4-b315-65b53cac0995 /tmp ext4 defaults,nodev,nosuid,noexec 0 0 # Server Data /srv UUID=6fadcb98-e442-4af7-a5f2-1ddb6100a8c4 /srv ext4 defaults 0 2 # Ports Data /usr/ports UUID=d1df6743-d3cb-4d5a-badb-96cef3181095 /usr/ports ext4 defaults,nodev,nosuid,noexec 0 0 </pre> <p>Reboot in normal mode.</p> <h2 id="resize">2. Resize filesystem</h2> <p>If partition is using lvm read <a href="lvm.html#resize">lvm resize</a>, if you are using qemu images read <a href="qemu.html#resize">resize images</a></p> <pre> # e2fsck /dev/sda3 # resize2fs /dev/sda3 </pre> <a href="index.html">Tools Index</a> <p> This is part of the LeetIO System Documentation. Copyright (C) 2021 LeetIO Team. See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> for copying conditions.</p> </body> </html>