Files
da-HomeNetDocumentation/PI5/Konfiguration/laufwerke-und-speicher.md
T
2026-06-19 23:18:04 +02:00

115 lines
4.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Laufwerke und Speicher
**Zusammenfassung**: Der Raspberry PI5 hat drei physische Laufwerke (USB-Key, 931-GB-SSD auf sdb, 1,8-TB-SSD auf sdc) mit zwei LUKS2-verschlüsselten Datenpartitionen. Beide Partitionen enthalten identische Daten vermutlich eine 1:1-Kopie.
**Quellen**: 🖥️ `raw/Systemdaten Raspberry PI5.md`, 🔌 SSH
**Zuletzt aktualisiert**: 2026-06-17
---
## Laufwerke (lsblk)
```
NAME SIZE TYPE FSTYPE FSVER LABEL MOUNTPOINT
sda 966M disk
└─sda1 964M part ext4 1.0 LUKS_KEY /mnt/usb_key
sdb 931.5G disk
├─sdb1 512M part vfat FAT32 bootfs /media/piadmin/bootfs
├─sdb2 237.8G part ext4 1.0 rootfs /media/piadmin/rootfs
└─sdb3 693.2G part crypto_LUKS 2
└─encrypt_sdc3 693.2G crypt ext4 1.0 /media/piadmin/data
sdc 1.8T disk
├─sdc1 512M part vfat FAT32 bootfs /boot/firmware
├─sdc2 306.8G part ext4 1.0 rootfs /
└─sdc3 1.5T part crypto_LUKS 2
└─encrypt_data 1.5T crypt ext4 1.0 /mnt/data
zram0 2G disk swap 1 zram0 [SWAP]
loop0 2G loop swap 1
```
## Speicherbelegung (df -h)
| Mountpunkt | Größe | Belegt | Verfügbar | Belegt % |
|---|---|---|---|---|
| `/` (sdc2) | 302 GB | 200 GB | 90 GB | **70 %** |
| `/boot/firmware` (sdc1) | 510 MB | 82 MB | 429 MB | 16 % |
| `/media/piadmin/bootfs` (sdb1) | 510 MB | 79 MB | 432 MB | 16 % |
| `/media/piadmin/rootfs` (sdb2) | 234 GB | 35 GB | 188 GB | 16 % |
| `/mnt/data` (encrypt_data) | 1,5 TB | 646 GB | 807 GB | 45 % |
| `/media/piadmin/data` (encrypt_sdc3) | 682 GB | 646 GB | 1,3 GB | **100 % 🔴** |
## Partitionen und IDs
| Device | PARTUUID | UUID (FS) | UUID (LUKS) | Label |
|---|---|---|---|---|
| sda1 | `74c328f0-...` | `1473da78-...` | | `LUKS_KEY` |
| sdb1 | `83910788-01` | `F737-8E10` | | `bootfs` |
| sdb2 | `83910788-02` | `d6ecfcd5-...` | | `rootfs` |
| sdb3 | `83910788-03` | | `82550dc2-...` | |
| sdc1 | `228e9390-01` | `F587-071F` | | `bootfs` |
| sdc2 | `228e9390-02` | `d6944274-...` | | `rootfs` |
| sdc3 | `228e9390-03` | | `097bccad-...` | |
## Detail: Speicherbelegung nach Verzeichnis
| Verzeichnis | Belegung |
|---|---|
| `/mnt/data/Media/` | **467 GB** |
| `/mnt/data/nextcloud/` | **92 GB** |
| `/mnt/data/immich/` | **69 GB** |
| `/mnt/data/PI2Backup/` | **18 GB** |
| `/mnt/data/paperless/` | **966 MB** |
| `/mnt/data/www/` | **722 MB** |
(Quelle: `du -sh /mnt/data/*/`)
## 🔴 Wichtige Feststellung: Zwei Partitionen, identische Daten
**`/mnt/data`** (1,5 TB, 45 % voll) und **`/media/piadmin/data`** (682 GB, 100 % voll) haben **exakt dieselbe Verzeichnisstruktur und Dateibelegung**:
| Verzeichnis | `/mnt/data` | `/media/piadmin/data` |
|---|---|---|
| Media/ | 467 GB | 467 GB |
| nextcloud/ | 92 GB | 92 GB |
| immich/ | 69 GB | 69 GB |
| PI2Backup/ | 18 GB | 18 GB |
| paperless/ | 966 MB | 966 MB |
| www/ | 722 MB | 722 MB |
Es handelt sich um **zwei separate LUKS-Partitionen** (nicht um einen Bind-Mount oder Symlink). Vermutlich wurden die Daten von der kleineren (682 GB) auf die größere (1,5 TB) Partition kopiert und die Konfiguration läuft inzwischen über die größere. Während `/mnt/data` noch 807 GB frei hat, ist `/media/piadmin/data` komplett voll.
**Die Dienste sind wie folgt konfiguriert:**
- **Immich** schreibt nach `/mnt/data/immich/` (via `.env`-Variable `UPLOAD_LOCATION`)
- **Nextcloud**, **Paperless**, **Media** liegen auf `/mnt/data/` (Bind-Mounts in den Compose-Dateien)
`/media/piadmin/data` scheint nicht mehr aktiv von Diensten genutzt zu werden, belegt aber 646 GB wertvollen SSD-Platz. Eine Bereinigung oder Deaktivierung dieser Partition wäre sinnvoll.
## Krytische Warnung
**🔴 `/media/piadmin/data` ist zu 100 % voll** (646 GB von 682 GB). Aktuell aktiv genutzte Dienste scheinen jedoch auf `/mnt/data` zu schreiben, sodass dies nur ein Platzproblem, aber kein akutes Betriebsproblem darstellt.
## LUKS-Container
| Mapper | Physisch | Schlüsseldatei | Mount |
|---|---|---|---|
| `encrypt_data` | sdc3 (1,5 TB) | `/mnt/usb_key/twotb.bin` | `/mnt/data` |
| `encrypt_sdc3` | sdb3 (693 GB) | `/mnt/usb_key/onetb.bin` | `/media/piadmin/data` |
Siehe [crypttab](./etc/crypttab.md) und [luks-verschluesselung](./luks-verschluesselung.md).
## Swap
- **zram0**: 2 GB komprimierter RAM-Swap
- **loop0**: 2 GB Datei-basierter Swap
Beide werden von systemd verwaltet, ohne fstab-Eintrag. Siehe [swap-zram](./swap-zram.md).
## Verwandte Seiten
- [fstab](./etc/fstab.md)
- [crypttab](./etc/crypttab.md)
- [luks-verschluesselung](./luks-verschluesselung.md)
- [persistente-blockgeraete](./persistente-blockgeraete.md)
- [sdx-vertauschung](./sdx-vertauschung.md)
- [swap-zram](./swap-zram.md)
- [systemuebersicht](./systemuebersicht.md)