Compare commits
6 Commits
85283bd6a5
...
fcc7666a7c
| Author | SHA1 | Date | |
|---|---|---|---|
| fcc7666a7c | |||
| d8c22e8c1f | |||
| d42696cb31 | |||
| 0a21005713 | |||
| 0a5c778f3a | |||
| 1ea9c94808 |
Vendored
+21
-7
@@ -146,9 +146,23 @@
|
||||
"icon": "lucide-file",
|
||||
"title": "2026-05-15 0719 on docker compose, volumes, and bind mounts"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "e69ab0bcda1898c4",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "_Inbox/Linux CLI Config and Commands.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
},
|
||||
"icon": "lucide-file",
|
||||
"title": "Linux CLI Config and Commands"
|
||||
}
|
||||
}
|
||||
],
|
||||
"currentTab": 9
|
||||
"currentTab": 4
|
||||
}
|
||||
],
|
||||
"direction": "vertical"
|
||||
@@ -222,7 +236,7 @@
|
||||
"state": {
|
||||
"type": "backlink",
|
||||
"state": {
|
||||
"file": "_Inbox/2026-05-15 0719 on docker compose, volumes, and bind mounts.md",
|
||||
"file": "_Inbox/OpenZFS.md",
|
||||
"collapseAll": true,
|
||||
"extraContext": false,
|
||||
"sortOrder": "byCreatedTime",
|
||||
@@ -232,7 +246,7 @@
|
||||
"unlinkedCollapsed": true
|
||||
},
|
||||
"icon": "links-coming-in",
|
||||
"title": "Backlinks for 2026-05-15 0719 on docker compose, volumes, and bind mounts"
|
||||
"title": "Backlinks for OpenZFS"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -355,11 +369,13 @@
|
||||
"obsidian-git:Open Git source control": false
|
||||
}
|
||||
},
|
||||
"active": "ac09197d72c8a3b5",
|
||||
"active": "eac10c8aff866288",
|
||||
"lastOpenFiles": [
|
||||
"_Inbox/Sanoid and Syncoid Setup.md",
|
||||
"_Inbox/Linux CLI Config and Commands.md",
|
||||
"Daily Notes/2026-05-15.md",
|
||||
"_Inbox/2026-05-15 0719 on docker compose, volumes, and bind mounts.md",
|
||||
"_Inbox/OpenZFS.md",
|
||||
"_Inbox/Sanoid and Syncoid Setup.md",
|
||||
"_Inbox/2026-03-31 1416 powering off the hyper-v machine for the last time.md",
|
||||
"References/Toshiba 3TB HDD High-Performance P300.md",
|
||||
"_Inbox/2026-05-15 0538 failing drive testing.md",
|
||||
@@ -384,8 +400,6 @@
|
||||
"References/Western Digital 2.0 TB HDD WD20EARX 863.md",
|
||||
"References/Western Digital 2.0 TB HDD WD20EZRZ.md",
|
||||
"References/Toshiba 2TB HDD DT01ACA200.md",
|
||||
"References/Margret Dianne Hodgetts.md",
|
||||
"Daily Notes/2025-12-25.md",
|
||||
"Attachments/ThinkCentre_M720_Tiny_Spec.pdf",
|
||||
"Attachments/PXL_20260512_135458828.jpg",
|
||||
"Attachments/PXL_20260512_130415266.jpg",
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
---
|
||||
date: 2026-05-15
|
||||
created: 2026-05-15T10:22:57
|
||||
category:
|
||||
- "[[Daily Notes]]"
|
||||
---
|
||||
# Friday 15th May 2026
|
||||
[[Home]] | [[PARA|PARA Board]] | [[2026-05-14|< Back]] | [[2026-05-16|Forward >]]
|
||||
## today's activity
|
||||
![[Daily note today.base]]
|
||||
|
||||
## in focus
|
||||
![[PARA.base]]
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
---
|
||||
created: 2026-05-15T10:23:05
|
||||
category:
|
||||
- "[[Note]]"
|
||||
title: Linux CLI Commands
|
||||
tags:
|
||||
---
|
||||
### Network config
|
||||
|
||||
network config file is located (usually `01-netcfg.yaml` or `50-cloud-init.yaml`)
|
||||
```
|
||||
nano /etc/netplan/50-cloud-init.yaml
|
||||
```
|
||||
|
||||
typical config
|
||||
```
|
||||
network:
|
||||
version: 2
|
||||
renderer: networkd
|
||||
ethernets:
|
||||
enp0s3:
|
||||
dhcp4: false
|
||||
addresses:
|
||||
- 192.168.1.100/24
|
||||
routes:
|
||||
- to: default
|
||||
via: 192.168.1.1
|
||||
```
|
||||
|
||||
then try
|
||||
```
|
||||
sudo netplan try
|
||||
```
|
||||
|
||||
or apply
|
||||
```
|
||||
sudo netplan apply
|
||||
```
|
||||
|
||||
## drive partitions
|
||||
|
||||
create gpt partition table (for new drives without any partitions)
|
||||
```
|
||||
sudo parted /dev/sdx mklabel gpt
|
||||
```
|
||||
|
||||
create new partition
|
||||
```
|
||||
sudo parted -a optimal /dev/sdx mkpart primary ext4 0% 100%
|
||||
```
|
||||
|
||||
format the partition
|
||||
```
|
||||
sudo mkfs.ext4 /dev/sdxn
|
||||
```
|
||||
|
||||
mount a drive
|
||||
```
|
||||
sudo mount /dev/sdxn /mnt/storage
|
||||
```
|
||||
|
||||
add drive/partition to fstab, get disk UUID first
|
||||
```
|
||||
sudo blkid /dev/sdxx
|
||||
```
|
||||
Then add this to `/etc/fstab`
|
||||
```
|
||||
/dev/disk/by-uuid/your-uuid-here /var/lib/docker ext4 defaults 0 2
|
||||
```
|
||||
@@ -14,3 +14,17 @@ list dataset snapshots
|
||||
zfs list -t snapshot pool-name/dataset-name
|
||||
```
|
||||
|
||||
list holds on snapshots
|
||||
```
|
||||
zfs holds <pool/dataset>@<snapshot>
|
||||
```
|
||||
|
||||
release hold on snapshot
|
||||
```
|
||||
zfs release <tag> <pool/dataset>@<snapshot>
|
||||
```
|
||||
|
||||
delete snapshot
|
||||
```
|
||||
zfs destroy <pool/dataset>@<snapshot>
|
||||
```
|
||||
Reference in New Issue
Block a user