|
| 1 | +# configuration |
| 2 | + |
| 3 | +hardware is difficult without doubt. and that is just in the configurations of |
| 4 | +hardware. |
| 5 | + |
| 6 | +it takes tries and tries and tries to guess the right disk descriptor. |
| 7 | + |
| 8 | +## filesystems |
| 9 | + |
| 10 | +files of photos in folders and so much more. |
| 11 | + |
| 12 | +reference: https://nixos.org/manual/nixos/stable/options.html#opt-fileSystems |
| 13 | + |
| 14 | +### chores |
| 15 | + |
| 16 | +#### resising disks |
| 17 | + |
| 18 | +resizing disks is an occasional chore which requires cautious change to unique |
| 19 | +identifiers and careful partitions. |
| 20 | + |
| 21 | +backups are optional if the home directories remains intact. |
| 22 | + |
| 23 | +in abundance of ignorance i recommend reinstalling nixos altogether to configure |
| 24 | +disks during setup. enter bios with `F11` and be patient during downloads. |
| 25 | + |
| 26 | +once reinstallation completes the `configuration.nix` can be replaced with new |
| 27 | +values found in a generated `hardware-configuration.nix`. |
| 28 | + |
| 29 | +### commands |
| 30 | + |
| 31 | +inspecting the realms in which files exist is a somewhat infrequent but nuanced |
| 32 | +task that deserves good luck and these commands with `sudo` privilege: |
| 33 | + |
| 34 | +```sh |
| 35 | +$ blkid # block device attributes |
| 36 | +$ chown # change file owner and group |
| 37 | +$ chroot # run shell with special root |
| 38 | +$ df # report file system space usage |
| 39 | +$ journalctl # print logged journaled entries |
| 40 | +$ lsblk # list block devices |
| 41 | +$ lvdisplay # logical volume information |
| 42 | +$ mount # mount a filesystem |
| 43 | +$ nano # another text editor |
| 44 | +$ parted # partition manipulation |
| 45 | +$ pvdisplay # physical volume information |
| 46 | +$ resize2fs # file system resizer |
| 47 | +$ rsync # a fast file copying tool |
| 48 | +$ su # gain super user powers |
| 49 | +$ swapoff # stop paging and swapping |
| 50 | +$ swapon # start pages and swapping |
| 51 | +$ umount # unmount filesystems |
| 52 | +$ vgdisplay # volume group information |
| 53 | +``` |
| 54 | + |
| 55 | +### directories |
| 56 | + |
| 57 | +meaningful paths to inspect when dealing with disks includes both existing and |
| 58 | +uncreated directories: |
| 59 | + |
| 60 | +```sh |
| 61 | +/dev/* # device files |
| 62 | +/dev/mapper/* # logical volumes |
| 63 | +/mnt/* # mounted paths |
| 64 | +/proc/* # process info |
| 65 | +/run/* # service programs |
| 66 | +/sys/* # kernel libraries |
| 67 | +``` |
0 commit comments