NEWS
[gelöst] Rechte verbogen?
-
Nach deiner grandiosen Hilfe hier
https://forum.iobroker.net/post/1325643
Hab ich gedacht ich schaff es diesmal alleine.Diesmal ist die Lage andersherum.
PiOS wurde auf externe SSD per Imager installiert, an den Pi geklemmt und ioBroker drauf installiert.
Die SD Karte war nicht im System, mittelslsblkaber zu sehen.
Mountpunkt /mnt/sdkarte wurde erfolgreich angelegt und erst einmal manuell mitsudo mount /dev/mmcblk0p1 /mnt/sdkartegemountet.Dann habe ich wahrscheinlich irgendwas verbaselt
/mnt/ hat mittlerweile user:group
iobroker:iobrokerNach dem mount ist und bleibt es jedoch
root:rootauch für alle Unterverzeichnisse bis zum umount.puh@Pi5SSD:/mnt/sdkarte $ ls -laH total 516 drwxr-xr-x 3 root root 262144 Sep 3 18:58 . drwxr-xr-x 3 root root 4096 Sep 3 18:27 .. drwxr-xr-x 2 root root 262144 Sep 3 18:58 privatChown wird verweigert, sudo chmod +w oder sudo chmod g+w ändert nichts
Nach mount ist dieser auch per df -h zu sehen
puh@Pi5SSD:~ $ df -h Filesystem Size Used Avail Use% Mounted on udev 3.9G 0 3.9G 0% /dev tmpfs 1.6G 13M 1.6G 1% /run /dev/sda2 459G 5.6G 435G 2% / tmpfs 4.0G 0 4.0G 0% /dev/shm tmpfs 5.0M 48K 5.0M 1% /run/lock tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-journald.service /dev/sda1 505M 67M 439M 14% /boot/firmware tmpfs 4.0G 8.8M 4.0G 1% /tmp tmpfs 1.0M 0 1.0M 0% /run/credentials/getty@tty1.service tmpfs 1.0M 0 1.0M 0% /run/credentials/serial-getty@ttyAMA10.service tmpfs 806M 32K 806M 1% /run/user/1000 /dev/mmcblk0p1 239G 768K 239G 1% /mnt/sdkarteAber mit den Rechten klappt's bei mir mal wieder nicht 😞
-
Nach deiner grandiosen Hilfe hier
https://forum.iobroker.net/post/1325643
Hab ich gedacht ich schaff es diesmal alleine.Diesmal ist die Lage andersherum.
PiOS wurde auf externe SSD per Imager installiert, an den Pi geklemmt und ioBroker drauf installiert.
Die SD Karte war nicht im System, mittelslsblkaber zu sehen.
Mountpunkt /mnt/sdkarte wurde erfolgreich angelegt und erst einmal manuell mitsudo mount /dev/mmcblk0p1 /mnt/sdkartegemountet.Dann habe ich wahrscheinlich irgendwas verbaselt
/mnt/ hat mittlerweile user:group
iobroker:iobrokerNach dem mount ist und bleibt es jedoch
root:rootauch für alle Unterverzeichnisse bis zum umount.puh@Pi5SSD:/mnt/sdkarte $ ls -laH total 516 drwxr-xr-x 3 root root 262144 Sep 3 18:58 . drwxr-xr-x 3 root root 4096 Sep 3 18:27 .. drwxr-xr-x 2 root root 262144 Sep 3 18:58 privatChown wird verweigert, sudo chmod +w oder sudo chmod g+w ändert nichts
Nach mount ist dieser auch per df -h zu sehen
puh@Pi5SSD:~ $ df -h Filesystem Size Used Avail Use% Mounted on udev 3.9G 0 3.9G 0% /dev tmpfs 1.6G 13M 1.6G 1% /run /dev/sda2 459G 5.6G 435G 2% / tmpfs 4.0G 0 4.0G 0% /dev/shm tmpfs 5.0M 48K 5.0M 1% /run/lock tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-journald.service /dev/sda1 505M 67M 439M 14% /boot/firmware tmpfs 4.0G 8.8M 4.0G 1% /tmp tmpfs 1.0M 0 1.0M 0% /run/credentials/getty@tty1.service tmpfs 1.0M 0 1.0M 0% /run/credentials/serial-getty@ttyAMA10.service tmpfs 806M 32K 806M 1% /run/user/1000 /dev/mmcblk0p1 239G 768K 239G 1% /mnt/sdkarteAber mit den Rechten klappt's bei mir mal wieder nicht 😞
In der /etc/fstab steht das Dateisystem wie drin?
-
Und das Ziel ist genau? Unter /mnt/sdkarte soll das Gerät mit so einghängt werden, dass die Besitzer übernommen werden oder auf user:usergroup geändert werden?
-
Und das Ziel ist genau? Unter /mnt/sdkarte soll das Gerät mit so einghängt werden, dass die Besitzer übernommen werden oder auf user:usergroup geändert werden?
-
Nach deiner grandiosen Hilfe hier
https://forum.iobroker.net/post/1325643
Hab ich gedacht ich schaff es diesmal alleine.Diesmal ist die Lage andersherum.
PiOS wurde auf externe SSD per Imager installiert, an den Pi geklemmt und ioBroker drauf installiert.
Die SD Karte war nicht im System, mittelslsblkaber zu sehen.
Mountpunkt /mnt/sdkarte wurde erfolgreich angelegt und erst einmal manuell mitsudo mount /dev/mmcblk0p1 /mnt/sdkartegemountet.Dann habe ich wahrscheinlich irgendwas verbaselt
/mnt/ hat mittlerweile user:group
iobroker:iobrokerNach dem mount ist und bleibt es jedoch
root:rootauch für alle Unterverzeichnisse bis zum umount.puh@Pi5SSD:/mnt/sdkarte $ ls -laH total 516 drwxr-xr-x 3 root root 262144 Sep 3 18:58 . drwxr-xr-x 3 root root 4096 Sep 3 18:27 .. drwxr-xr-x 2 root root 262144 Sep 3 18:58 privatChown wird verweigert, sudo chmod +w oder sudo chmod g+w ändert nichts
Nach mount ist dieser auch per df -h zu sehen
puh@Pi5SSD:~ $ df -h Filesystem Size Used Avail Use% Mounted on udev 3.9G 0 3.9G 0% /dev tmpfs 1.6G 13M 1.6G 1% /run /dev/sda2 459G 5.6G 435G 2% / tmpfs 4.0G 0 4.0G 0% /dev/shm tmpfs 5.0M 48K 5.0M 1% /run/lock tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-journald.service /dev/sda1 505M 67M 439M 14% /boot/firmware tmpfs 4.0G 8.8M 4.0G 1% /tmp tmpfs 1.0M 0 1.0M 0% /run/credentials/getty@tty1.service tmpfs 1.0M 0 1.0M 0% /run/credentials/serial-getty@ttyAMA10.service tmpfs 806M 32K 806M 1% /run/user/1000 /dev/mmcblk0p1 239G 768K 239G 1% /mnt/sdkarteAber mit den Rechten klappt's bei mir mal wieder nicht 😞
/mnt/ hat mittlerweile user:group iobroker:iobroker
/mnt gehört aber root:root
Bei mir:
[thomas@roamer ~]$ ls -la / insgesamt 20 dr-xr-xr-x 1 root root 128 28. Mär 03:48 . dr-xr-xr-x 1 root root 128 28. Mär 03:48 .. lrwxrwxrwx 1 root root 7 12. Okt 2025 bin -> usr/bin drwxr-xr-x 1 root root 30 13. Aug 01:00 boot drwxr-xr-x 22 root root 4760 3. Sep 18:32 dev drwxr-x--- 6 root root 4096 1. Jan 1970 efi drwxr-xr-x 1 root root 4776 3. Sep 19:21 etc drwxr-xr-x 1 root root 12 28. Mär 03:49 home lrwxrwxrwx 1 root root 7 12. Okt 2025 lib -> usr/lib lrwxrwxrwx 1 root root 7 12. Okt 2025 lib64 -> usr/lib drwxr-xr-x 1 root root 0 12. Okt 2025 mnt drwxr-xr-x 1 root root 76 4. Mai 23:49 opt dr-xr-xr-x 332 root root 0 3. Sep 18:28 proc drwxr-x--- 1 root root 152 30. Apr 22:41 root drwxr-xr-x 41 root root 880 3. Sep 18:32 run lrwxrwxrwx 1 root root 7 12. Okt 2025 sbin -> usr/bin drwxr-xr-x 1 root root 14 28. Mär 03:48 srv dr-xr-xr-x 13 root root 0 3. Sep 18:28 sys drwxrwxrwt 16 root root 420 3. Sep 19:21 tmp drwxr-xr-x 1 root root 80 3. Sep 18:16 usr drwxr-xr-x 1 root root 126 3. Sep 18:28 var [thomas@roamer ~]$ -
/mnt/ hat mittlerweile user:group iobroker:iobroker
/mnt gehört aber root:root
Bei mir:
[thomas@roamer ~]$ ls -la / insgesamt 20 dr-xr-xr-x 1 root root 128 28. Mär 03:48 . dr-xr-xr-x 1 root root 128 28. Mär 03:48 .. lrwxrwxrwx 1 root root 7 12. Okt 2025 bin -> usr/bin drwxr-xr-x 1 root root 30 13. Aug 01:00 boot drwxr-xr-x 22 root root 4760 3. Sep 18:32 dev drwxr-x--- 6 root root 4096 1. Jan 1970 efi drwxr-xr-x 1 root root 4776 3. Sep 19:21 etc drwxr-xr-x 1 root root 12 28. Mär 03:49 home lrwxrwxrwx 1 root root 7 12. Okt 2025 lib -> usr/lib lrwxrwxrwx 1 root root 7 12. Okt 2025 lib64 -> usr/lib drwxr-xr-x 1 root root 0 12. Okt 2025 mnt drwxr-xr-x 1 root root 76 4. Mai 23:49 opt dr-xr-xr-x 332 root root 0 3. Sep 18:28 proc drwxr-x--- 1 root root 152 30. Apr 22:41 root drwxr-xr-x 41 root root 880 3. Sep 18:32 run lrwxrwxrwx 1 root root 7 12. Okt 2025 sbin -> usr/bin drwxr-xr-x 1 root root 14 28. Mär 03:48 srv dr-xr-xr-x 13 root root 0 3. Sep 18:28 sys drwxrwxrwt 16 root root 420 3. Sep 19:21 tmp drwxr-xr-x 1 root root 80 3. Sep 18:16 usr drwxr-xr-x 1 root root 126 3. Sep 18:28 var [thomas@roamer ~]$@Thomas-Braun hier auch
puh@Pi5SSD:/ $ ls -la total 64 drwxr-xr-x 18 root root 4096 Jun 18 02:20 . drwxr-xr-x 18 root root 4096 Jun 18 02:20 .. lrwxrwxrwx 1 root root 7 May 8 18:10 bin -> usr/bin drwxr-xr-x 3 root root 4096 Sep 1 17:25 boot drwxr-xr-x 17 root root 4380 Sep 1 17:37 dev drwxr-xr-x 97 root root 4096 Sep 1 17:38 etc drwxr-xr-x 4 root root 4096 Sep 1 17:29 home lrwxrwxrwx 1 root root 7 May 8 18:10 lib -> usr/lib drwx------ 2 root root 16384 Jun 18 02:26 lost+found drwxr-xr-x 2 root root 4096 Jun 18 02:18 media drwxr-xr-x 3 root root 4096 Sep 3 18:27 mnt drwxr-xr-x 3 root root 4096 Sep 1 17:29 opt dr-xr-xr-x 210 root root 0 Sep 1 17:37 proc drwx------ 4 root root 4096 Sep 1 17:30 root drwxr-xr-x 26 root root 740 Sep 3 18:26 run lrwxrwxrwx 1 root root 8 May 8 18:10 sbin -> usr/sbin drwxr-xr-x 2 root root 4096 Jun 18 02:18 srv dr-xr-xr-x 12 root root 0 Sep 1 17:37 sys drwxrwxrwt 9 root root 180 Sep 3 17:38 tmp drwxr-xr-x 11 root root 4096 Jun 18 02:18 usr drwxr-xr-x 11 root root 4096 Jun 18 02:27 varAber ohne mount
puh@Pi5SSD:/ $ ls -la /mnt total 12 drwxr-xr-x 3 root root 4096 Sep 3 18:27 . drwxr-xr-x 18 root root 4096 Jun 18 02:20 .. drwxr-xr-x 2 iobroker iobroker 4096 Sep 3 18:27 sdkarteUnd nach mount
puh@Pi5SSD:/ $ ls -la /mnt total 264 drwxr-xr-x 3 root root 4096 Sep 3 18:27 . drwxr-xr-x 18 root root 4096 Jun 18 02:20 .. drwxr-xr-x 3 root root 262144 Sep 3 19:33 sdkarte -
@Thomas-Braun hier auch
puh@Pi5SSD:/ $ ls -la total 64 drwxr-xr-x 18 root root 4096 Jun 18 02:20 . drwxr-xr-x 18 root root 4096 Jun 18 02:20 .. lrwxrwxrwx 1 root root 7 May 8 18:10 bin -> usr/bin drwxr-xr-x 3 root root 4096 Sep 1 17:25 boot drwxr-xr-x 17 root root 4380 Sep 1 17:37 dev drwxr-xr-x 97 root root 4096 Sep 1 17:38 etc drwxr-xr-x 4 root root 4096 Sep 1 17:29 home lrwxrwxrwx 1 root root 7 May 8 18:10 lib -> usr/lib drwx------ 2 root root 16384 Jun 18 02:26 lost+found drwxr-xr-x 2 root root 4096 Jun 18 02:18 media drwxr-xr-x 3 root root 4096 Sep 3 18:27 mnt drwxr-xr-x 3 root root 4096 Sep 1 17:29 opt dr-xr-xr-x 210 root root 0 Sep 1 17:37 proc drwx------ 4 root root 4096 Sep 1 17:30 root drwxr-xr-x 26 root root 740 Sep 3 18:26 run lrwxrwxrwx 1 root root 8 May 8 18:10 sbin -> usr/sbin drwxr-xr-x 2 root root 4096 Jun 18 02:18 srv dr-xr-xr-x 12 root root 0 Sep 1 17:37 sys drwxrwxrwt 9 root root 180 Sep 3 17:38 tmp drwxr-xr-x 11 root root 4096 Jun 18 02:18 usr drwxr-xr-x 11 root root 4096 Jun 18 02:27 varAber ohne mount
puh@Pi5SSD:/ $ ls -la /mnt total 12 drwxr-xr-x 3 root root 4096 Sep 3 18:27 . drwxr-xr-x 18 root root 4096 Jun 18 02:20 .. drwxr-xr-x 2 iobroker iobroker 4096 Sep 3 18:27 sdkarteUnd nach mount
puh@Pi5SSD:/ $ ls -la /mnt total 264 drwxr-xr-x 3 root root 4096 Sep 3 18:27 . drwxr-xr-x 18 root root 4096 Jun 18 02:20 .. drwxr-xr-x 3 root root 262144 Sep 3 19:33 sdkarte -
puh@Pi5SSD:/ $ blkid /dev/mmcblk0p1: UUID="6536-6431" BLOCK_SIZE="512" TYPE="exfat" /dev/sda2: LABEL="rootfs" UUID="15f4c6be-1102-4331-9904-f78e78afd1fd" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="20b8a487-02" /dev/sda1: LABEL_FATBOOT="bootfs" LABEL="bootfs" UUID="B2F0-82D2" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="20b8a487-01" /dev/loop0: LABEL="origin:rpi-swap" TYPE="swap" /dev/zram0: LABEL="zram0" UUID="7703ab91-842c-4e5b-a125-aab6b4b6c58a" TYPE="swap" -
Aber warum geht das nicht mit manuellem mount?
Hatte ich vorher mit dem OS auf Karte und mount der usb-ssd ohne problemeGNU nano 8.4 /etc/fstab proc /proc proc defaults 0 0 PARTUUID=20b8a487-01 /boot/firmware vfat defaults 0 2 PARTUUID=20b8a487-02 / ext4 defaults,noatime 0 1 -
Aber warum geht das nicht mit manuellem mount?
Hatte ich vorher mit dem OS auf Karte und mount der usb-ssd ohne problemeGNU nano 8.4 /etc/fstab proc /proc proc defaults 0 0 PARTUUID=20b8a487-01 /boot/firmware vfat defaults 0 2 PARTUUID=20b8a487-02 / ext4 defaults,noatime 0 1Ist die Karte jetzt leer? Die würde ich nämlich zuerst mit einem Linux-Dateisystem versehen (wenn die nicht auch in z. B. gelesen werden muss jedenfalls).
exfat kennt keine Unix-Rechte. -
Ist die Karte jetzt leer? Die würde ich nämlich zuerst mit einem Linux-Dateisystem versehen (wenn die nicht auch in z. B. gelesen werden muss jedenfalls).
exfat kennt keine Unix-Rechte.Ist die Karte jetzt leer?
Flammneu!
wenn die nicht auch in z. B. gelesen werden mus
Wäre ein nice-to-have, kein Muss
-
Ist die Karte jetzt leer? Die würde ich nämlich zuerst mit einem Linux-Dateisystem versehen (wenn die nicht auch in z. B. gelesen werden muss jedenfalls).
exfat kennt keine Unix-Rechte. -
exfat kennt keine Unix-Rechte.
Ahh!
Ich würde also die Karte mit ext4 formatiern und dann in der fstab mit passenden Optionen anlegen. Kann man z. B. nur bei Bedarf einhängen oder beim Bootvorgang dann permanent.
Hab ich z. B. bei meiner USB-Festplatte so gemacht.
Die wird nur von Backitup kurz vor dem Backup eingehängt, das Backup erfolgt auf dem eingehängten Dateisystem und danach wird die auch wieder aus dem System genommen.Also in deinem Fall:
sudo mkfs.ext4 /dev/mmcblk0p1Und in die fstab trag das erstmal so ein:
UUID=6536-6431 /mnt/sdkarte ext4 defaults,noatime 0 2 -
Ich würde also die Karte mit ext4 formatiern und dann in der fstab mit passenden Optionen anlegen. Kann man z. B. nur bei Bedarf einhängen oder beim Bootvorgang dann permanent.
Hab ich z. B. bei meiner USB-Festplatte so gemacht.
Die wird nur von Backitup kurz vor dem Backup eingehängt, das Backup erfolgt auf dem eingehängten Dateisystem und danach wird die auch wieder aus dem System genommen.Also in deinem Fall:
sudo mkfs.ext4 /dev/mmcblk0p1Und in die fstab trag das erstmal so ein:
UUID=6536-6431 /mnt/sdkarte ext4 defaults,noatime 0 2Dann mal per
sudo mount -aprobieren, ob es grundsätzlich funktioniert. Um die Optionen kann man sich dann ggfls. danach kümmern.
-
Ich würde also die Karte mit ext4 formatiern und dann in der fstab mit passenden Optionen anlegen. Kann man z. B. nur bei Bedarf einhängen oder beim Bootvorgang dann permanent.
Hab ich z. B. bei meiner USB-Festplatte so gemacht.
Die wird nur von Backitup kurz vor dem Backup eingehängt, das Backup erfolgt auf dem eingehängten Dateisystem und danach wird die auch wieder aus dem System genommen.Also in deinem Fall:
sudo mkfs.ext4 /dev/mmcblk0p1Und in die fstab trag das erstmal so ein:
UUID=6536-6431 /mnt/sdkarte ext4 defaults,noatime 0 2 -
Also in deinem Fall:
puh@Pi5SSD:/ $ sudo mkfs.ext4 /dev/mmcblk0p1 [sudo] password for puh: mke2fs 1.47.2 (1-Jan-2025) /dev/mmcblk0p1 is mounted; will not make a filesystem here!Unmounten?
Findet der pi sie dann trotzdem? -
puh@Pi5SSD:/ $ sudo umount /mnt/sdkarte puh@Pi5SSD:/ $ sudo mkfs.ext4 /dev/mmcblk0p1 mke2fs 1.47.2 (1-Jan-2025) /dev/mmcblk0p1 contains a exfat file system Proceed anyway? (y,N) y Discarding device blocks: done Creating filesystem with 62492672 4k blocks and 15630336 inodes Filesystem UUID: de357a95-cd0b-4b5c-85d2-52d962a0b6bd Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872 Allocating group tables: done Writing inode tables: done Creating journal (262144 blocks): done Writing superblocks and filesystem accounting information: done puh@Pi5SSD:/ $Fstab ist geschrieben....
-
puh@Pi5SSD:/ $ sudo mount -a mount: /mnt/sdkarte: can't find UUID=6536-6431. mount: (hint) your fstab has been modified, but systemd still uses the old version; use 'systemctl daemon-reload' to reload. puh@Pi5SSD:/ $ puh@Pi5SSD:/ $ blkid /dev/mmcblk0p1: UUID="de357a95-cd0b-4b5c-85d2-52d962a0b6bd" BLOCK_SIZE="4096" TYPE="ext4" /dev/sda2: LABEL="rootfs" UUID="15f4c6be-1102-4331-9904-f78e78afd1fd" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="20b8a487-02" /dev/sda1: LABEL_FATBOOT="bootfs" LABEL="bootfs" UUID="B2F0-82D2" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="20b8a487-01" /dev/loop0: LABEL="origin:rpi-swap" TYPE="swap" /dev/zram0: LABEL="zram0" UUID="7703ab91-842c-4e5b-a125-aab6b4b6c58a" TYPE="swap" puh@Pi5SSD:/ $Muss ich wohl die uuid in der fstab ändern
-
puh@Pi5SSD:/ $ sudo mount -a mount: /mnt/sdkarte: can't find UUID=6536-6431. mount: (hint) your fstab has been modified, but systemd still uses the old version; use 'systemctl daemon-reload' to reload. puh@Pi5SSD:/ $ puh@Pi5SSD:/ $ blkid /dev/mmcblk0p1: UUID="de357a95-cd0b-4b5c-85d2-52d962a0b6bd" BLOCK_SIZE="4096" TYPE="ext4" /dev/sda2: LABEL="rootfs" UUID="15f4c6be-1102-4331-9904-f78e78afd1fd" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="20b8a487-02" /dev/sda1: LABEL_FATBOOT="bootfs" LABEL="bootfs" UUID="B2F0-82D2" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="20b8a487-01" /dev/loop0: LABEL="origin:rpi-swap" TYPE="swap" /dev/zram0: LABEL="zram0" UUID="7703ab91-842c-4e5b-a125-aab6b4b6c58a" TYPE="swap" puh@Pi5SSD:/ $Muss ich wohl die uuid in der fstab ändern
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden