NEWS
Argon Neo v5 mit NVME Erweiterung
-
Reboot oder manuell mal mounten:
sudo mount /mnt/usbplatteUnd dann würde ich da mal eine Testdatei ablegen
sudo touch /mnt/usbplatte/ich_bin_eine-testdateiMüsste dann zu sehen sein:
ls -lA /mnt/usbplatte/Und nach einem
sudo umount /mnt/usbplatte ls -lA /mnt/usbplatte/sollte die Datei verschwunden sein.
@Thomas-Braun sagte in Argon Neo v5 mit NVME Erweiterung:
Reboot oder manuell mal mounten:
sieht gut aus!
uh@BrokerRaspi:~ $ sudo mount /mnt/usbplatte mount: (hint) your fstab has been modified, but systemd still uses the old version; use 'systemctl daemon-reload' to reload. puh@BrokerRaspi:~ $ systemctl daemon-reload ==== AUTHENTICATING FOR org.freedesktop.systemd1.reload-daemon ==== Authentication is required to reload the systemd state. Authenticating as: puh Password: ==== AUTHENTICATION COMPLETE ==== puh@BrokerRaspi:~ $ df -h Filesystem Size Used Avail Use% Mounted on udev 3.9G 0 3.9G 0% /dev tmpfs 1.6G 14M 1.6G 1% /run /dev/mmcblk0p2 235G 5.3G 220G 3% / 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 tmpfs 4.0G 9.6M 4.0G 1% /tmp /dev/mmcblk0p1 510M 67M 444M 13% /boot/firmware 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 807M 32K 807M 1% /run/user/1000 /dev/nvme0n1p1 234G 2.1M 222G 1% /mnt/usbplatte puh@BrokerRaspi:~ $touch mach ich jetzt
-
uh@BrokerRaspi:~ $ sudo touch /mnt/usbplatte/ich_bin_eine-testdatei puh@BrokerRaspi:~ $ cd /mnt/usbplatte puh@BrokerRaspi:/mnt/usbplatte $ dir ich_bin_eine-testdatei lost+found puh@BrokerRaspi:/mnt/usbplatte $VIELEN, VIELEN DANK!
-
Reboot oder manuell mal mounten:
sudo mount /mnt/usbplatteUnd dann würde ich da mal eine Testdatei ablegen
sudo touch /mnt/usbplatte/ich_bin_eine-testdateiMüsste dann zu sehen sein:
ls -lA /mnt/usbplatte/Und nach einem
sudo umount /mnt/usbplatte ls -lA /mnt/usbplatte/sollte die Datei verschwunden sein.
@Thomas-Braun du alter Editeur 😀
ich hab's halt anders gemacht, umount und reboot teste ich noch
-
uh@BrokerRaspi:~ $ sudo touch /mnt/usbplatte/ich_bin_eine-testdatei puh@BrokerRaspi:~ $ cd /mnt/usbplatte puh@BrokerRaspi:/mnt/usbplatte $ dir ich_bin_eine-testdatei lost+found puh@BrokerRaspi:/mnt/usbplatte $VIELEN, VIELEN DANK!
du alter Editeur
Sorry...
Wenn das grundsätzlich dann funktioniert musst du mal schauen wie es sich verhält, wenn einfache user drauf zugreifen wollen. Ggfls. müssen da noch Rechte dazu vergeben werden.
-
du alter Editeur
Sorry...
Wenn das grundsätzlich dann funktioniert musst du mal schauen wie es sich verhält, wenn einfache user drauf zugreifen wollen. Ggfls. müssen da noch Rechte dazu vergeben werden.
@Thomas-Braun sagte in Argon Neo v5 mit NVME Erweiterung:
wie es sich verhält, wenn einfache user drauf zugreifen wollen. Ggfls. müssen da noch Rechte dazu vergeben werden.
guter Punkt, zumindet die Testdatei gehörte root, was zu etwas Durcheinander bei mir führte
puh@BrokerRaspi:~ $ ls -lA /mnt/usbplatte/ total 16 -rw-r--r-- 1 root root 0 Feb 13 20:32 ich_bin_eine-testdatei drwx------ 2 root root 16384 Feb 13 20:12 lost+found puh@BrokerRaspi:~ $ cd /mnt/usbplatte puh@BrokerRaspi:/mnt/usbplatte $ dir ich_bin_eine-testdatei lost+found puh@BrokerRaspi:/mnt/usbplatte $ rm ich_bin_eine-testdatei rm: remove write-protected regular empty file 'ich_bin_eine-testdatei'? puh@BrokerRaspi:/mnt/usbplatte $ dir ich_bin_eine-testdatei lost+found puh@BrokerRaspi:/mnt/usbplatte $ rm ich_bin_eine-testdatei rm: remove write-protected regular empty file 'ich_bin_eine-testdatei'? y rm: cannot remove 'ich_bin_eine-testdatei': Permission denied puh@BrokerRaspi:/mnt/usbplatte $ sudo rm ich_bin_eine-testdatei puh@BrokerRaspi:/mnt/usbplatte $ dir lost+found puh@BrokerRaspi:/mnt/usbplatte $ -
joa, es klemmt
uh@BrokerRaspi:/mnt/usbplatte $ mkdir testordner mkdir: cannot create directory ‘testordner’: Permission denied puh@BrokerRaspi:/mnt/usbplatte $iob und puh sollten da schon schreiben dürfen
-
@Thomas-Braun sagte in Argon Neo v5 mit NVME Erweiterung:
wie es sich verhält, wenn einfache user drauf zugreifen wollen. Ggfls. müssen da noch Rechte dazu vergeben werden.
guter Punkt, zumindet die Testdatei gehörte root, was zu etwas Durcheinander bei mir führte
puh@BrokerRaspi:~ $ ls -lA /mnt/usbplatte/ total 16 -rw-r--r-- 1 root root 0 Feb 13 20:32 ich_bin_eine-testdatei drwx------ 2 root root 16384 Feb 13 20:12 lost+found puh@BrokerRaspi:~ $ cd /mnt/usbplatte puh@BrokerRaspi:/mnt/usbplatte $ dir ich_bin_eine-testdatei lost+found puh@BrokerRaspi:/mnt/usbplatte $ rm ich_bin_eine-testdatei rm: remove write-protected regular empty file 'ich_bin_eine-testdatei'? puh@BrokerRaspi:/mnt/usbplatte $ dir ich_bin_eine-testdatei lost+found puh@BrokerRaspi:/mnt/usbplatte $ rm ich_bin_eine-testdatei rm: remove write-protected regular empty file 'ich_bin_eine-testdatei'? y rm: cannot remove 'ich_bin_eine-testdatei': Permission denied puh@BrokerRaspi:/mnt/usbplatte $ sudo rm ich_bin_eine-testdatei puh@BrokerRaspi:/mnt/usbplatte $ dir lost+found puh@BrokerRaspi:/mnt/usbplatte $Klar, der root hat die ja auch angelegt/berührt:
sudo touch /mnt/usbplatte/ich_bin_eine-testdateiUnd da der root ja immer alles darf testet man die grundsätzliche Funktion des mounts damit und dann im Nachgang rückt man mit den Rechten von Standardusern an. Als 'puh' mal versuchen:
touch /mnt/usbplatte/ich_bin_eine_datei_von_puh ls -lAh /mnt/usbplatte -
Klar, der root hat die ja auch angelegt/berührt:
sudo touch /mnt/usbplatte/ich_bin_eine-testdateiUnd da der root ja immer alles darf testet man die grundsätzliche Funktion des mounts damit und dann im Nachgang rückt man mit den Rechten von Standardusern an. Als 'puh' mal versuchen:
touch /mnt/usbplatte/ich_bin_eine_datei_von_puh ls -lAh /mnt/usbplatte@Thomas-Braun seufz
puh@BrokerRaspi:/mnt/usbplatte $ ls -la /mnt/usbplatte total 24 drwxr-xr-x 3 root root 4096 Feb 13 20:40 . drwxr-xr-x 3 root root 4096 Feb 13 20:14 .. drwx------ 2 root root 16384 Feb 13 20:12 lost+found puh@BrokerRaspi:/mnt/usbplatte $ cd / puh@BrokerRaspi:/ $ touch /mnt/usbplatte/ich_bin_eine_datei_von_puh touch: cannot touch '/mnt/usbplatte/ich_bin_eine_datei_von_puh': Permission denied puh@BrokerRaspi:/ $ ls -lAh /mnt/usbplatte -
@Thomas-Braun seufz
puh@BrokerRaspi:/mnt/usbplatte $ ls -la /mnt/usbplatte total 24 drwxr-xr-x 3 root root 4096 Feb 13 20:40 . drwxr-xr-x 3 root root 4096 Feb 13 20:14 .. drwx------ 2 root root 16384 Feb 13 20:12 lost+found puh@BrokerRaspi:/mnt/usbplatte $ cd / puh@BrokerRaspi:/ $ touch /mnt/usbplatte/ich_bin_eine_datei_von_puh touch: cannot touch '/mnt/usbplatte/ich_bin_eine_datei_von_puh': Permission denied puh@BrokerRaspi:/ $ ls -lAh /mnt/usbplatte -
@Thomas-Braun sagte in Argon Neo v5 mit NVME Erweiterung:
mount | sortsagt?
puh@BrokerRaspi:/ $ mount | sort binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime) bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700) cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot) configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime) debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime) /dev/mmcblk0p1 on /boot/firmware type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro) /dev/mmcblk0p2 on / type ext4 (rw,noatime) /dev/nvme0n1p1 on /mnt/usbplatte type ext4 (rw,relatime,stripe=32) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=600,ptmxmode=000) fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime) mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime) proc on /proc type proc (rw,relatime) pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime) securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime) sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=37,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=4764) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) tmpfs on /run/credentials/getty@tty1.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,noswap) tmpfs on /run/credentials/serial-getty@ttyAMA10.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,noswap) tmpfs on /run/credentials/systemd-journald.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,noswap) tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k) tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1651296k,mode=755) tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=825632k,nr_inodes=206408,mode=700,uid=1000,gid=1000) tmpfs on /tmp type tmpfs (rw,nosuid,nodev,nr_inodes=1048576) tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime) udev on /dev type devtmpfs (rw,nosuid,relatime,size=4088256k,nr_inodes=255516,mode=755) puh@BrokerRaspi:/ $ -
@Thomas-Braun sagte in Argon Neo v5 mit NVME Erweiterung:
mount | sortsagt?
puh@BrokerRaspi:/ $ mount | sort binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime) bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700) cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot) configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime) debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime) /dev/mmcblk0p1 on /boot/firmware type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro) /dev/mmcblk0p2 on / type ext4 (rw,noatime) /dev/nvme0n1p1 on /mnt/usbplatte type ext4 (rw,relatime,stripe=32) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=600,ptmxmode=000) fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime) mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime) proc on /proc type proc (rw,relatime) pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime) securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime) sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=37,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=4764) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) tmpfs on /run/credentials/getty@tty1.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,noswap) tmpfs on /run/credentials/serial-getty@ttyAMA10.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,noswap) tmpfs on /run/credentials/systemd-journald.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,noswap) tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k) tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1651296k,mode=755) tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=825632k,nr_inodes=206408,mode=700,uid=1000,gid=1000) tmpfs on /tmp type tmpfs (rw,nosuid,nodev,nr_inodes=1048576) tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime) udev on /dev type devtmpfs (rw,nosuid,relatime,size=4088256k,nr_inodes=255516,mode=755) puh@BrokerRaspi:/ $@Homoran sagte in Argon Neo v5 mit NVME Erweiterung:
sudo chown puh:plugdev /mnt/usbplatte ls -lAh /mnt/usbplatte -
@Homoran sagte in Argon Neo v5 mit NVME Erweiterung:
sudo chown puh:plugdev /mnt/usbplatte ls -lAh /mnt/usbplatte -
puh@BrokerRaspi:/ $ sudo chown puh:plugdev /mnt/usbplatte puh@BrokerRaspi:/ $ ls -lAh /mnt/usbplatte total 16K drwx------ 2 root root 16K Feb 13 20:12 lost+foundedit folgt
-
puh@BrokerRaspi:/ $ ls -lAh /mnt/ total 4.0K drwxr-xr-x 3 puh plugdev 4.0K Feb 13 20:40 usbplatte puh@BrokerRaspi:/ $ -
puh@BrokerRaspi:/ $ ls -lAh /mnt/ total 4.0K drwxr-xr-x 3 puh plugdev 4.0K Feb 13 20:40 usbplatte puh@BrokerRaspi:/ $Jezt müsste eigentlich der puh in dem Order volle Rechte (schreiben/lesen/ausführen) haben und der user 'iobroker' darf nicht schreiben (über die Gruppe plugdev). Wenn die Gruppe 'plugdev' da auch schreiben können soll, dann
sudo chmod g+w /mnt/usbplatte -
Jezt müsste eigentlich der puh in dem Order volle Rechte (schreiben/lesen/ausführen) haben und der user 'iobroker' darf nicht schreiben (über die Gruppe plugdev). Wenn die Gruppe 'plugdev' da auch schreiben können soll, dann
sudo chmod g+w /mnt/usbplatteCheck:
sudo -u iobroker touch /mnt/usbplatte/ich_bin_vom_iobroker_geschrieben -
Jezt müsste eigentlich der puh in dem Order volle Rechte (schreiben/lesen/ausführen) haben und der user 'iobroker' darf nicht schreiben (über die Gruppe plugdev). Wenn die Gruppe 'plugdev' da auch schreiben können soll, dann
sudo chmod g+w /mnt/usbplatte@Thomas-Braun sagte in Argon Neo v5 mit NVME Erweiterung:
Jezt müsste eigentlich der puh in dem Order volle Rechte (schreiben/lesen/ausführen)
hab ein wenig gespielt
puh@BrokerRaspi:/ $ cd /mnt/usbplatte puh@BrokerRaspi:/mnt/usbplatte $ mkdir testordner puh@BrokerRaspi:/mnt/usbplatte $ dir lost+found testordner puh@BrokerRaspi:/mnt/usbplatte $ rm testordner rm: cannot remove 'testordner': Is a directory puh@BrokerRaspi:/mnt/usbplatte $ cd testordner puh@BrokerRaspi:/mnt/usbplatte/testordner $ cd .. puh@BrokerRaspi:/mnt/usbplatte $ mkdir backups puh@BrokerRaspi:/mnt/usbplatte $ rmdir testordner puh@BrokerRaspi:/mnt/usbplatte $ dir backups lost+found@Thomas-Braun sagte in Argon Neo v5 mit NVME Erweiterung:
und der user 'iobroker' darf nicht schreiben
muss ja für backitup
rest folgt
-
@Thomas-Braun sagte in Argon Neo v5 mit NVME Erweiterung:
Jezt müsste eigentlich der puh in dem Order volle Rechte (schreiben/lesen/ausführen)
hab ein wenig gespielt
puh@BrokerRaspi:/ $ cd /mnt/usbplatte puh@BrokerRaspi:/mnt/usbplatte $ mkdir testordner puh@BrokerRaspi:/mnt/usbplatte $ dir lost+found testordner puh@BrokerRaspi:/mnt/usbplatte $ rm testordner rm: cannot remove 'testordner': Is a directory puh@BrokerRaspi:/mnt/usbplatte $ cd testordner puh@BrokerRaspi:/mnt/usbplatte/testordner $ cd .. puh@BrokerRaspi:/mnt/usbplatte $ mkdir backups puh@BrokerRaspi:/mnt/usbplatte $ rmdir testordner puh@BrokerRaspi:/mnt/usbplatte $ dir backups lost+found@Thomas-Braun sagte in Argon Neo v5 mit NVME Erweiterung:
und der user 'iobroker' darf nicht schreiben
muss ja für backitup
rest folgt
@Homoran sagte in Argon Neo v5 mit NVME Erweiterung:
rm: cannot remove 'testordner': Is a directory
rm kann ohne weiteres keine Verzeichnisse löschen. Das muss dann mit -r gemacht werden:
rm -r /pfad/zum/verzeichnisEdit: Kommando korrigiert. Verzeichnisse müssen mit -r rekursiv gelöscht werden, falls da noch Dateien drinliegen muss zusätzlich mit -f das Löschen erzwungen werden.
-
puh@BrokerRaspi:/ $ sudo chmod g+w /mnt/usbplatte puh@BrokerRaspi:/ $ sudo -u iobroker touch /mnt/usbplatte/ich_bin_vom_iobroker_geschrieben puh@BrokerRaspi:/ $ cd /mnt/usbplatte puh@BrokerRaspi:/mnt/usbplatte $ ls -lah total 28K drwxrwxr-x 4 puh plugdev 4.0K Feb 13 21:14 . drwxr-xr-x 3 root root 4.0K Feb 13 20:14 .. drwxrwxr-x 2 puh puh 4.0K Feb 13 21:09 backups -rw-rw-r-- 1 iobroker iobroker 0 Feb 13 21:14 ich_bin_vom_iobroker_geschrieben drwx------ 2 root root 16K Feb 13 20:12 lost+found puh@BrokerRaspi:/mnt/usbplatte $ sudo rm ich_bin_vom_iobroker_geschrieben puh@BrokerRaspi:/mnt/usbplatte $ ls -lah total 28K drwxrwxr-x 4 puh plugdev 4.0K Feb 13 21:15 . drwxr-xr-x 3 root root 4.0K Feb 13 20:14 .. drwxrwxr-x 2 puh puh 4.0K Feb 13 21:09 backups drwx------ 2 root root 16K Feb 13 20:12 lost+found puh@BrokerRaspi:/mnt/usbplatte $scheint alles zu klappen!!
darf deriobrokerjetzt in die backups?
oder muss ich das auch mitsudo -u iobroker mkdir backupsanlegen?Danke!
aber ist das der "normale" Weg?
wer ausser dir kann das? -
@Homoran sagte in Argon Neo v5 mit NVME Erweiterung:
rm: cannot remove 'testordner': Is a directory
rm kann ohne weiteres keine Verzeichnisse löschen. Das muss dann mit -r gemacht werden:
rm -r /pfad/zum/verzeichnisEdit: Kommando korrigiert. Verzeichnisse müssen mit -r rekursiv gelöscht werden, falls da noch Dateien drinliegen muss zusätzlich mit -f das Löschen erzwungen werden.
@Thomas-Braun sagte in Argon Neo v5 mit NVME Erweiterung:
Das muss dann mit -f gemacht werden:
force?
ja, da war was!hatte dan auf gut Glück
rmdirversucht. hat geklappt