From 464232e27b576aaadff2a0cd01af8e2745086301 Mon Sep 17 00:00:00 2001 From: piccihud Date: Sun, 19 Mar 2023 14:07:46 +0100 Subject: [PATCH] rename mount.md to formatfs.md and add uuid.md --- mount.md => formatfs.md | 2 ++ uuid.md | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) rename mount.md => formatfs.md (98%) create mode 100644 uuid.md diff --git a/mount.md b/formatfs.md similarity index 98% rename from mount.md rename to formatfs.md index 66b4898..e3e6641 100644 --- a/mount.md +++ b/formatfs.md @@ -40,6 +40,8 @@ tmpfs 1426032 164 1425868 1% /run/user/1000 ``` La chiavetta USB è identificata in questo caso come `/dev/sda` (/dev/sda1 e /dev/sda2 sono le due partizioni). +Per il comando `blkid` e sull'uuid vedere [qui](./uuid.md) + ## Formattazione della periferica Smontare la chiavetta USB: diff --git a/uuid.md b/uuid.md new file mode 100644 index 0000000..7246394 --- /dev/null +++ b/uuid.md @@ -0,0 +1,39 @@ +# UUID + +L' UUID è un identificatore univoco universale (Universally Unique IDentifier), consistente in una sequenza di 128 bit, espressi usualmente in forma esadecimale. + +Gli UUID sono utilizzati comunemente per identificare le partizioni di un supporto di memoria di massa. + +## Ottenere l'uuid + +Esistono diversi modi: + +```bash +ls -l /dev/disk/by-uuid/ + +totale 0 +lrwxrwxrwx 1 root root 15 19 mar 12.16 44d72477-5d0f-4d0d-a54b-f721a7e5a320 -> ../../nvme0n1p2 +lrwxrwxrwx 1 root root 15 19 mar 12.16 487ce502-4541-488c-b07f-ea2ac4e91b9f -> ../../nvme0n1p1 +lrwxrwxrwx 1 root root 10 19 mar 12.16 cd370d97-dd7c-41d1-9b53-1504c89f64fd -> ../../dm-1 +lrwxrwxrwx 1 root root 10 19 mar 12.16 ce884a78-4404-4ea9-b6e7-d543bfb38a41 -> ../../dm-0 +``` + +Oppure tramite il comando `blkid`. + +Infine tramite `lsblk` con l'opzione `-f` è possibile visualizzare l'uuid e altre informazioni: + +```bash +lsblk -f + +NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS +nvme0n1 +├─nvme0n1p1 crypto_LUKS 1 487ce502-4541-488c-b07f-ea2ac4e91b9f +│ └─luks-487ce502-4541-488c-b07f-ea2ac4e91b9f ext4 1.0 ce884a78-4404-4ea9-b6e7-d543bfb38a41 295,6G 25% / +└─nvme0n1p2 crypto_LUKS 1 44d72477-5d0f-4d0d-a54b-f721a7e5a320 + └─luks-44d72477-5d0f-4d0d-a54b-f721a7e5a320 swap 1 cd370d97-dd7c-41d1-9b53-1504c89f64fd [SWAP] +``` + +## Collegamenti + +- [https://guide.debianizzati.org/index.php/UUID](https://guide.debianizzati.org/index.php/UUID) +- [https://linuxhandbook.com/get-uuid-disk/](https://linuxhandbook.com/get-uuid-disk/)