From eeda759be41f72d20fc49d251579591b97cdf033 Mon Sep 17 00:00:00 2001 From: Jet Hughes Date: Mon, 13 Mar 2023 11:08:50 +1300 Subject: [PATCH] vault backup: 2023-03-13 11:08:50 --- content/notes/05-filesystems.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/content/notes/05-filesystems.md b/content/notes/05-filesystems.md index 2b0accdd9..81924e4b8 100644 --- a/content/notes/05-filesystems.md +++ b/content/notes/05-filesystems.md @@ -34,7 +34,10 @@ structure of directory soft vs hard links - hard link must always point to data - to delete a file with hard links you must also delete all the hard links + - link to _actual inode_ - soft links can point to a non-existing file + - link to file _name_ + - can link incompatible file systems e.g., windows, xerox. i.e. fs's that dont use inodes advanced file attrs @@ -44,5 +47,17 @@ journaling - logs changes to journal before writing - impact on performance requires data be written twice - **question** why not just write a description of the change + - all or nothing operations: ensure consistency + - + +creating FS demo +- `# dd if=/dev/zero of=loopbackfile.img bs=100M count=10 ` +- `# du -sh loopbackfile.img ` +- `# losetup -fP loopbackfile.img ` +- `# losetup –a ` +- `# mkfs.ext4 /root/loopbackfile.img ` +- `# mkdir /loopfs ` +- `# df -hP /loopfs/ ` +- `# mount -o loop /dev/loop0 /loop` +- `# mount | grep loop` -creating FS demo \ No newline at end of file