vault backup: 2025-05-05 16:48:06
This commit is contained in:
4
.obsidian/community-plugins.json
vendored
4
.obsidian/community-plugins.json
vendored
@ -5,7 +5,6 @@
|
||||
"obsidian-icon-folder",
|
||||
"obsidian-advanced-slides",
|
||||
"obsidian-annotator",
|
||||
"obsidian-markmind",
|
||||
"obsidian-wakatime",
|
||||
"omnisearch",
|
||||
"obsidian-enhancing-export",
|
||||
@ -15,5 +14,6 @@
|
||||
"emoji-shortcodes",
|
||||
"advanced-canvas",
|
||||
"obsidian-tracker",
|
||||
"better-export-pdf"
|
||||
"better-export-pdf",
|
||||
"obsidian-mind-map"
|
||||
]
|
18
.obsidian/plugins/obsidian-markmind/data.json
vendored
18
.obsidian/plugins/obsidian-markmind/data.json
vendored
@ -1,18 +0,0 @@
|
||||
{
|
||||
"canvasSize": 8000,
|
||||
"headLevel": 2,
|
||||
"fontSize": 16,
|
||||
"background": "transparent",
|
||||
"layout": "mindmap",
|
||||
"layoutDirect": "mindmap",
|
||||
"protocol": "jump-to-pdf",
|
||||
"registerPdfEvent": true,
|
||||
"viewerTheme": 2,
|
||||
"mindmapmode": "basic",
|
||||
"parseMindMap": true,
|
||||
"annotateTop": 0,
|
||||
"annotateBottom": 0,
|
||||
"useCustomShortcut": false,
|
||||
"highlightFormat": "\nPage:{{page}}\n<span style=\"color:rgb({{color}})\">■</span>:{{highlightText}}\nComment:{{comment}}\n[📌]({{link}})\n^{{id}}\n",
|
||||
"uid": "00p01100q00t01300o01300r01300t01200o013"
|
||||
}
|
40
.obsidian/plugins/obsidian-markmind/main.js
vendored
40
.obsidian/plugins/obsidian-markmind/main.js
vendored
File diff suppressed because one or more lines are too long
@ -1,10 +0,0 @@
|
||||
{
|
||||
"id": "obsidian-markmind",
|
||||
"name": "Markmind",
|
||||
"version": "3.0.2",
|
||||
"minAppVersion": "0.9.12",
|
||||
"description": "This is a mindmap , outline tool for obsidian.",
|
||||
"author": "Mark",
|
||||
"authorUrl": "https://github.com/MarkMindCkm/obsidian-markmind",
|
||||
"isDesktopOnly": false
|
||||
}
|
2273
.obsidian/plugins/obsidian-markmind/styles.css
vendored
2273
.obsidian/plugins/obsidian-markmind/styles.css
vendored
File diff suppressed because one or more lines are too long
32631
.obsidian/plugins/obsidian-mind-map/main.js
vendored
Normal file
32631
.obsidian/plugins/obsidian-mind-map/main.js
vendored
Normal file
File diff suppressed because one or more lines are too long
8
.obsidian/plugins/obsidian-mind-map/manifest.json
vendored
Normal file
8
.obsidian/plugins/obsidian-mind-map/manifest.json
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"id": "obsidian-mind-map",
|
||||
"name": "Mind Map",
|
||||
"version": "1.1.0",
|
||||
"description": "A plugin to preview notes as Markmap mind maps",
|
||||
"isDesktopOnly": false,
|
||||
"js": "main.js"
|
||||
}
|
23
.obsidian/workspace.json
vendored
23
.obsidian/workspace.json
vendored
@ -4,11 +4,11 @@
|
||||
"type": "split",
|
||||
"children": [
|
||||
{
|
||||
"id": "1bd3c6c2ca7655f0",
|
||||
"id": "31174fbd9a68be49",
|
||||
"type": "tabs",
|
||||
"children": [
|
||||
{
|
||||
"id": "565b9e04e8704d81",
|
||||
"id": "f9fe04cad473d20c",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
@ -198,27 +198,26 @@
|
||||
"omnisearch:Omnisearch": false
|
||||
}
|
||||
},
|
||||
"active": "56bef0584922cba9",
|
||||
"active": "f9fe04cad473d20c",
|
||||
"lastOpenFiles": [
|
||||
"Operating Systems/assets/Pasted image 20250505161031.png",
|
||||
"Operating Systems/assets/Pasted image 20250505163335.png",
|
||||
"Operating Systems/Inter-Process Communication.md",
|
||||
"Operating Systems/Memory Management.md",
|
||||
"Operating Systems/Overview.md",
|
||||
"Operating Systems/Scheduling.md",
|
||||
"Operating Systems/Processes and Threads.md",
|
||||
"Operating Systems/Scheduling.md",
|
||||
"Operating Systems/Overview.md",
|
||||
"Operating Systems/File Systems Management.md",
|
||||
"Operating Systems/assets/Pasted image 20250505162331.png",
|
||||
"Operating Systems/assets/Pasted image 20250505161542.png",
|
||||
"Operating Systems/assets/Pasted image 20250505161031.png",
|
||||
"Operating Systems/Memory Management.md",
|
||||
"Operating Systems/Virtual Memory.md",
|
||||
"Operating Systems/assets/Pasted image 20250505155546.png",
|
||||
"Operating Systems/File Systems Management.md",
|
||||
"Operating Systems/assets/Pasted image 20250505160518.png",
|
||||
"Untitled.md",
|
||||
"Operating Systems/assets/Pasted image 20250505154746.png",
|
||||
"Operating Systems/assets/Pasted image 20250505144352.png",
|
||||
"Operating Systems/assets/Pasted image 20250505042548.png",
|
||||
"Operating Systems/assets/Pasted image 20250505042419.png",
|
||||
"Operating Systems/assets/Pasted image 20250204103541.png",
|
||||
"Operating Systems/assets/Pasted image 20250502183523.png",
|
||||
"Operating Systems/assets/Pasted image 20250502183221.png",
|
||||
"Operating Systems/assets/Pasted image 20250502183310.png",
|
||||
"README.md",
|
||||
"Untitled.canvas",
|
||||
"Discrete Structures/Midterm/attempt 2.md",
|
||||
|
@ -217,9 +217,15 @@ The table itself is a list of blocks where many links are created and stored. Ea
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Note the reserved blocks. They contain:
|
||||
- Boot sector (VBR)
|
||||
- Bios parameter block
|
||||
- Bootloader code
|
||||
- Sector, cluster size, FAT count, root directory location
|
||||
- FS information Sector (only for FAT32)
|
||||
- Last allocated cluster for speed
|
||||
- Backup boot sector
|
||||
- In case of corruption
|
||||
|
||||
|
||||
#### Free blocks list
|
||||
@ -231,7 +237,91 @@ Stores a value for each cluster which can indicate:
|
||||
|
||||
To find a free block we just need to search for the first available cluster. We keep the last allocated cluster, optimizing search time.
|
||||
### NTFS
|
||||
New Technologies File System
|
||||
New Technologies File System.
|
||||
|
||||
- Everything is a cluster
|
||||
- Size is a multiple of disk block size
|
||||
- Journaling
|
||||
- File data compression
|
||||
|
||||

|
||||
|
||||
|
||||
- Boot sector (VBR)
|
||||
- NTFS signature and other boot info
|
||||
- Location of Master File Table (MFT)
|
||||
- Sector 0 of partition
|
||||
- MFT
|
||||
- Stores metadata for every file and directory
|
||||
- MFT entry that stores attributes
|
||||
- name
|
||||
- size
|
||||
- timestamps
|
||||
- security
|
||||
- MFT itself is described in the MFT lmfao
|
||||
- File system metadata
|
||||
- $MFT, $Bitmap , $LogFile, $Secure, etc. store metadata
|
||||
- System files are treated like regular files
|
||||
- Data
|
||||
- Actual file content, either stored in MFT for small entries or in separate clusters (large files)
|
||||
- Uses extents[^4] and B+ trees[^5]
|
||||
- Supports encryption
|
||||
|
||||
#### MFT entry
|
||||
Each file or directory is represented by a 1KB entry:
|
||||
- File name
|
||||
- Info (timestamps, perms)
|
||||
- Data location (resident[^6] or not)
|
||||
- Index
|
||||
- Attributes
|
||||

|
||||
|
||||
|
||||
|
||||
##### `$DATA`
|
||||
- Mft Entry
|
||||
- If the file contains regular data, the `$DATA` attribute stores the file content or the location
|
||||
- For files that fit in a single MFT record (1KB usually)
|
||||
- In-place storage of data (resident)
|
||||
- For larger files, the `$DATA` attribute contains data runs, which are pointers that tell NTFS where the file's data is located on the disk. Typically a sequence of three values
|
||||
- offset/ length byte
|
||||
- Cluster count
|
||||
- Cluster offset
|
||||
|
||||
##### Bitmaps
|
||||
- Map of logical clusters in use and not. Same as FAT.
|
||||
|
||||
##### Compression
|
||||
Compresses data in 16-cluster chunks.
|
||||
Size of a compression unit (chunk) depends on cluster size:
|
||||
- 4 KB cluster size -> 64 KB compression unit (most common on modern volumes)
|
||||
- 8 KB cluster size -> 128 KB compression unit
|
||||
If a chunk is not compressible to at least 50%, NTFS stores it uncompressed.
|
||||
|
||||
Uses LZNT1, a variation of (LZ77)
|
||||
|
||||
##### Journaling
|
||||
Logs all file system changes in the `$LOGFILE` before applying them.
|
||||
- It can detect bad sectors and mark them in `$BadClus`
|
||||
- NTFS can recover a corrupted MFT using `$MFTMirr`
|
||||
- NTFS uses ACLs to manage permissions
|
||||
- Each file stores a `$SECURITY_DESCRIPTOR`
|
||||
### Security descriptors
|
||||
|
||||
|
||||
```
|
||||
Owner: S-1-5-21-3623811015-3361044348-30300820-1001 (User: Alice)
|
||||
Group: S-1-5-32-544 (Administrators)
|
||||
DACL:
|
||||
Allow: S-1-5-21-3623811015-3361044348-30300820-1001 (Alice) - Full Control
|
||||
Deny: S-1-5-21-3623811015-3361044348-30300820-1002 (Bob) - Read Access
|
||||
Allow: S-1-5-18 (Local System) - Full Control
|
||||
SACL:
|
||||
Audit: S-1-5-21-3623811015-3361044348-30300820-1003 (Eve) - Log Failed
|
||||
Access
|
||||
```
|
||||
|
||||
Where DACL = **Discretionary Access Control List** and SACL = **System Access Control List**
|
||||
|
||||
|
||||
|
||||
@ -243,3 +333,9 @@ New Technologies File System
|
||||
[^2]: Extension (.pdf, .txt) as opposed to format, which specifies the [grammar](Regular%20languages.md) of the file
|
||||
|
||||
[^3]: contains information about where to place different parts of the program in memory.
|
||||
|
||||
[^4]: contiguous area of storage reserved for a file in a file system, represented as a range of block numbers, or tracks on count key data devices
|
||||
|
||||
[^5]: Balanced based on height tree. Nodes can contain multiple keys and pointers. Leaf nodes are the data records, upper nodes only store ketys. Ordered (BST).
|
||||
|
||||
[^6]: In the MFT entry straight up.
|
||||
|
@ -132,6 +132,10 @@ It uses **condition variables** (often with wait and signal[^3]operations) to al
|
||||
|
||||

|
||||
|
||||
|
||||
## Endianness
|
||||

|
||||
|
||||
---
|
||||
|
||||
[^1]: [Context switching](Processes%20and%20Threads.md#Context%20switching)
|
||||
|
BIN
Operating Systems/assets/Pasted image 20250505161542.png
Normal file
BIN
Operating Systems/assets/Pasted image 20250505161542.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
BIN
Operating Systems/assets/Pasted image 20250505162331.png
Normal file
BIN
Operating Systems/assets/Pasted image 20250505162331.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 98 KiB |
BIN
Operating Systems/assets/Pasted image 20250505163335.png
Normal file
BIN
Operating Systems/assets/Pasted image 20250505163335.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 92 KiB |
Reference in New Issue
Block a user