Hab mich heute endlich mal damit beschäftigt einen backup-Ordner auf der Festplatte einzurichten.
Dazu hab ich auch extra die Festplatte neu in NTFS formatiert.
Die Rechte passen, es wird eine Backup-Datei erstellt.
Im Attribut global backupdir steht
/media/usbfestplatte/Privat/Raspberry/FHEM/Backups
Kann mir wer sagen weshalb ich, trotzdem diesen Fehler im Log bekomme:
2018.05.21 17:14:20 2: Backup with command: tar -cf - "./57_ABFALL.pm" "./\192.168.188.26FestplattePrivatRaspberryFHEMBackups" "./\\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups" "./alexa-fhem" "./backup" "./cache" "./CHANGED" "./config" "./configDB.pm" "./contrib" "./CSV-FHEM" "./demolog" "./docs" "./FHEM" "./fhem.cfg" "./fhem.cfg.demo" "./fhem.pl" "./ircmd.sh" "./ircmdFR.sh" "./log" "./MAINTAINER.txt" "./package" "./README_DEMO.txt" "./restoreDir" "./SonosSpeak" "./unused" "./www" |gzip > /media/usbfestplatte/Privat/Raspberry/FHEM/Backups/FHEM-20180521_171420.tar.gz tar: ./\00192.168.188.26FestplattePrivatRaspberryFHEMBackups: Funktion stat fehlgeschlagen: Datei oder Verzeichnis nicht gefunden tar: ./\00192.168.188.26\\Festplatte\\Privat\\Raspberry\\FHEM\\Backups: Funktion stat fehlgeschlagen: Datei oder Verzeichnis nicht gefunden
Gruß
Thomas
Was hast Du im attr backupcmd?
Nichts ?
Sorry ... aber warum NTFS??
Du lässt es doch auf einem Pi mit Linux (Debian oder Derivat) laufen??
Zitat./\00192.168.188.26\\Festplatte\\Privat\\Raspberry\\FHEM\\Backups
Irgendwie wird der Pfad komisch angezeigt. Bist Du Dir sicher?
Und bitte ... gebe das Log etwas Lesbarer aus ...
Weil ich mir nach langer Zeit (https://forum.fhem.de/index.php/topic,66482.msg580017.html#msg580017) ;D dachte das dies die richtige Wahl ist ? Und ich noch mit dem PC auf die Festplatte zugreifen möchte, sry schlauer bin ich seit dem auch nicht.
ZitatIrgendwie wird der Pfad komisch angezeigt. Bist Du Dir sicher?
Ich kann doch nix dafür, das steht im Log nachdem ich update in die Befehlszeile eingebe.
Internals:
DEF no definition
NAME global
NR 1
STATE no definition
TYPE Global
currentlogfile ./log/fhem-2018-05.log
logfile ./log/fhem-%Y-%m.log
Attributes:
autoload_undefined_devices 1
autosave 0
backup_before_update 1
backupdir /media/usbfestplatte/Privat/Raspberry/FHEM/Backups
configfile fhem.cfg
language DE
latitude 49.4384
logfile ./log/fhem-%Y-%m.log
longitude 8.3594
modpath .
motd SecurityCheck:
WEB is not password protected
WEBphone is not password protected
WEBtablet is not password protected
telnetPort is not password protected
Protect this FHEM installation by defining an allowed device with define allowed allowed
You can disable this message with attr global motd none
sendStatistics onUpdate
statefile ./log/fhem.save
updateInBackground 1
userattr alexaName alexaRoom buffer cmdIcon devStateIcon devStateStyle fhem_widget_command fhem_widget_command_2 fp_Grundriss genericDeviceType:ignore,switch,outlet,light,blind,thermometer,thermostat,garage,window,lock homebridgeMapping:textField-long icon siriName sortby webCmd webCmdLabel:textField-long widgetOverride
verbose 3
version fhem.pl:16609/2018-04-13ffer cmdIcon devStateIcon devStateStyle fhem_widget_command fhem_widget_command_2 fp_Grundriss genericDeviceType:ignore,switch,outlet,light,blind,thermometer,thermostat,garage,window,lock homebridgeMapping:textField-long icon siriName sortby webCmd webCmdLabel:textField-long widgetOverride verbose 3 version fhem.pl:16609/2018-04-13
Mach bitte ein ls -la /opt/fhem
insgesamt 964
drwxr-xr-x 23 fhem dialout 4096 Mai 21 00:12 .
drwxr-xr-x 7 root root 4096 Mai 5 2016 ..
drwxr-xr-x 2 fhem dialout 4096 Mai 21 00:11 \192.168.188.26FestplattePrivatRaspberryFHEMBackups
drwxr-xr-x 2 fhem dialout 4096 Mai 21 00:12 \\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backu
ps
-rw-rw-rw- 1 pi pi 13324 Jun 5 2016 57_ABFALL.pm
drwxr-xr-x 5 pi pi 4096 Dez 28 18:33 alexa-fhem
drwxrwxrwx 2 fhem dialout 4096 Apr 25 18:30 backup
-rw------- 1 fhem dialout 877 Mai 21 14:09 .bash_history
drwxr-xr-x 2 fhem dialout 4096 Mai 20 21:14 cache
-rw-rw-rw- 1 fhem dialout 246699 Apr 25 18:31 CHANGED
-rw-rw-rw- 1 fhem dialout 84173 Mär 31 2017 config
drwx------ 3 fhem dialout 4096 Dez 12 23:07 .config
-rw-rw-rw- 1 fhem dialout 41123 Apr 3 00:42 configDB.pm
drwxrwxrwx 40 fhem root 4096 Aug 25 2016 contrib
drwxr-xr-x 2 fhem dialout 4096 Dez 4 01:04 CSV-FHEM
drwx------ 2 fhem dialout 4096 Apr 8 22:59 .cups
drwxrwxrwx 3 fhem root 4096 Aug 12 2015 demolog
drwxrwxrwx 4 fhem root 4096 Jul 25 2017 docs
drwxrwxrwx 6 fhem root 24576 Mai 17 22:40 FHEM
-rw-rw-rw- 1 fhem root 184869 Mai 21 18:07 fhem.cfg
-rw-rw-rw- 1 fhem dialout 15848 Jan 28 22:10 fhem.cfg.demo
-rw-rw-rw- 1 fhem dialout 145950 Apr 25 18:31 fhem.pl
drwxr-xr-x 4 fhem dialout 4096 Mär 4 21:51 .forever
drwxrwxrwx 4 fhem dialout 4096 Mai 5 2016 .homebridge
-rwxr-xr-x 1 root root 296 Nov 7 2017 ircmdFR.sh
-rwxrwxrwx 1 pi dialout 5602 Nov 7 2017 ircmd.sh
drwxrwxrwx 2 fhem root 20480 Mai 17 22:42 log
-rw-r--r-- 1 fhem dialout 36969 Apr 25 18:31 MAINTAINER.txt
drwxr-xr-x 3 fhem dialout 4096 Mär 7 22:56 .npm
drwxr-xr-x 4 fhem dialout 4096 Dez 26 23:44 package
-rw-rw-rw- 1 fhem root 761 Nov 9 2014 README_DEMO.txt
drwxrwxrwx 7 fhem dialout 4096 Apr 25 18:31 restoreDir
drwxrwxrwx 2 pi pi 36864 Mai 15 18:32 SonosSpeak
drwxrwxrwx 2 fhem dialout 4096 Aug 20 2015 unused
drwxrwxrwx 10 fhem root 4096 Mär 19 23:32 www
Brauchst Du diese beide "Dateien"?
drwxr-xr-x 2 fhem dialout 4096 Mai 21 00:11 \192.168.188.26FestplattePrivatRaspberryFHEMBackups
drwxr-xr-x 2 fhem dialout 4096 Mai 21 00:12 \\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups
Wenn nicht, lösche die bitte. Die sind wahrscheinlich die Ursache deines Problems
drwxr-xr-x 2 fhem dialout 4096 Mai 21 00:11 \192.168.188.26FestplattePrivatRaspberryFHEMBackups
drwxr-xr-x 2 fhem dialout 4096 Mai 21 00:12 \\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups
Alles klar. Unter der Dusche hab ich mich gefragt was die zwei Ordner da sollen 8), die wurden gestern von Fhem erzeugt als ich das noch mit FAT32 versucht hab hinzubekommen.
\192.168.188.26FestplattePrivatRaspberryFHEMBackups
hab ich jetzt gelöscht (ging aber erst nach einem umbenennen), taucht natürlich dann auch nicht mehr bei einem backup im Log als Fehler auf
Mit
\\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups
hab ich Probleme beim umbenennen
pi@raspberrypi:/opt/fhem $ mv \\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups gut
mv: der Aufruf von stat für ,,\\192.168.188.26FestplattePrivatRaspberryFHEMBackups" ist nicht möglich: Datei oder Verzeichnis nicht gefunden
oder auch löschen
pi@raspberrypi:/opt/fhem $ rm \\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups
rm: das Entfernen von ,,\\192.168.188.26FestplattePrivatRaspberryFHEMBackups" ist nicht möglich: Datei oder Verzeichnis nicht gefunden
Versuch mal mit quotes: rm "\\192.usw"
Mal ein Ausschnitt was ich alles schon probiert habe, das net alles :P :
pi@raspberrypi:/opt/fhem $ mv \\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups gut
mv: der Aufruf von stat für ,,\\192.168.188.26FestplattePrivatRaspberryFHEMBackups" ist nicht mög
lich: Datei oder Verzeichnis nicht gefunden
pi@raspberrypi:/opt/fhem $ rm \\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups
rm: das Entfernen von ,,\\192.168.188.26FestplattePrivatRaspberryFHEMBackups" ist nicht möglich:
Datei oder Verzeichnis nicht gefunden
pi@raspberrypi:/opt/fhem $
pi@raspberrypi:/opt/fhem $ rm \\192.168.188.26\\Festplatte\\Privat\\Raspberry\\FHEM\\Backups
rm: das Entfernen von ,,\\192.168.188.26\\Festplatte\\Privat\\Raspberry\\FHEM\\Backups" ist nicht
möglich: Datei oder Verzeichnis
nicht gefunden
pi@raspberrypi:/opt/fhem $ rm \\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups
rm: das Entfernen von ,,\\192.168.188.26FestplattePrivatRaspberryFHEMBackups" ist nicht möglich:
Datei oder Verzeichnis nicht gef
unden
pi@raspberrypi:/opt/fhem $ rm ./\./\192.168.188.26./\Festplatte./\Privat./\Raspberry./\FHEM./\Ba
ckups
rm: das Entfernen von ,,././192.168.188.26./Festplatte./Privat./Raspberry./FHEM./Backups" ist nic
ht möglich: Datei oder Verzeichn
is nicht gefunden
pi@raspberrypi:/opt/fhem $ rm .\./\192.168.188.26./\Festplatte./\Privat./\Raspberry./\FHEM./\Bac
kups
rm: das Entfernen von ,,../192.168.188.26./Festplatte./Privat./Raspberry./FHEM./Backups" ist nich
t möglich: Datei oder Verzeichni
s nicht gefunden
pi@raspberrypi:/opt/fhem $ rm .\\./\192.168.188.26./\Festplatte./\Privat./\Raspberry./\FHEM./\Ba
ckups
rm: das Entfernen von ,,.\\./192.168.188.26./Festplatte./Privat./Raspberry./FHEM./Backups" ist ni
cht möglich: Datei oder Verzeich
nis nicht gefunden
pi@raspberrypi:/opt/fhem $ rm .\\.\\192.168.188.26.\\Festplatte.\\Privat.\\Raspberry.\\FHEM.\\Ba
ckups
rm: das Entfernen von ,,.\\.\\192.168.188.26.\\Festplatte.\\Privat.\\Raspberry.\\FHEM.\\Backups"
ist nicht möglich: Datei oder Ve
rzeichnis nicht gefunden
pi@raspberrypi:/opt/fhem $ rm .\\.\\192.168.188.26\\Festplatte\\Privat\\Raspberry\\FHEM\\Backups
rm: das Entfernen von ,,.\\.\\192.168.188.26\\Festplatte\\Privat\\Raspberry\\FHEM\\Backups" ist n
icht möglich: Datei oder Verzeic
hnis nicht gefunden
pi@raspberrypi:/opt/fhem $ rm .\\192.168.188.26\\Festplatte\\Privat\\Raspberry\\FHEM\\Backups
rm: das Entfernen von ,,.\\192.168.188.26\\Festplatte\\Privat\\Raspberry\\FHEM\\Backups" ist nich
t möglich: Datei oder Verzeichni
s nicht gefunden
pi@raspberrypi:/opt/fhem $ rm \\192.168.188.26\\Festplatte\\Privat\\Raspberry\\FHEM\\Backups
rm: das Entfernen von ,,\\192.168.188.26\\Festplatte\\Privat\\Raspberry\\FHEM\\Backups" ist nicht
möglich: Datei oder Verzeichnis
nicht gefunden
pi@raspberrypi:/opt/fhem $ rm \\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups
rm: das Entfernen von ,,\\192.168.188.26FestplattePrivatRaspberryFHEMBackups" ist nicht möglich:
Datei oder Verzeichnis nicht gef
unden
pi@raspberrypi:/opt/fhem $ rm \\192.168.188.26.\Festplatte.\Privat.\Raspberry.\FHEM.\Backups
rm: das Entfernen von ,,\\192.168.188.26.Festplatte.Privat.Raspberry.FHEM.Backups" ist nicht mögl
ich: Datei oder Verzeichnis nich
t gefunden
pi@raspberrypi:/opt/fhem $ rm \\192.168.188.26.\\Festplatte.\Privat.\Raspberry.\FHEM.\Backups
rm: das Entfernen von ,,\\192.168.188.26.\\Festplatte.Privat.Raspberry.FHEM.Backups" ist nicht mö
glich: Datei oder Verzeichnis ni
cht gefunden
pi@raspberrypi:/opt/fhem $ rm \\192.168.188.26./\Festplatte.\Privat.\Raspberry.\FHEM.\Backups
rm: das Entfernen von ,,\\192.168.188.26./Festplatte.Privat.Raspberry.FHEM.Backups" ist nicht mög
lich: Datei oder Verzeichnis nic
ht gefunden
pi@raspberrypi:/opt/fhem $ rm \\192.168.188.26/\Festplatte.\Privat.\Raspberry.\FHEM.\Backups
rm: das Entfernen von ,,\\192.168.188.26/Festplatte.Privat.Raspberry.FHEM.Backups" ist nicht mögl
ich: Datei oder Verzeichnis nich
t gefunden
pi@raspberrypi:/opt/fhem $ rm \\192.168.188.26\/Festplatte.\Privat.\Raspberry.\FHEM.\Backups
rm: das Entfernen von ,,\\192.168.188.26/Festplatte.Privat.Raspberry.FHEM.Backups" ist nicht mögl
ich: Datei oder Verzeichnis nich
t gefunden
pi@raspberrypi:/opt/fhem $ rm \\192.168.188.26//Festplatte.\Privat.\Raspberry.\FHEM.\Backups
rm: das Entfernen von ,,\\192.168.188.26//Festplatte.Privat.Raspberry.FHEM.Backups" ist nicht mög
lich: Datei oder Verzeichnis nic
ht gefunden
pi@raspberrypi:/opt/fhem $ rm \\192.168.188.26\\Festplatte.\Privat.\Raspberry.\FHEM.\Backups
rm: das Entfernen von ,,\\192.168.188.26\\Festplatte.Privat.Raspberry.FHEM.Backups" ist nicht mög
lich: Datei oder Verzeichnis nic
ht gefunden
pi@raspberrypi:/opt/fhem $ rm \\192.168.188.26\\Festplatte.\Privat.\Raspberry.\FHEM.\Backups
rm: das Entfernen von ,,\\192.168.188.26\\Festplatte.Privat.Raspberry.FHEM.Backups" ist nicht mög
lich: Datei oder Verzeichnis nic
ht gefunden
pi@raspberrypi:/opt/fhem $ rm \\192.168.188.26.\\Festplatte.\Privat.\Raspberry.\FHEM.\Backups
rm: das Entfernen von ,,\\192.168.188.26.\\Festplatte.Privat.Raspberry.FHEM.Backups" ist nicht mö
glich: Datei oder Verzeichnis ni
cht gefunden
pi@raspberrypi:/opt/fhem $ rm \\192.168.188.26\Festplatte.\Privat.\Raspberry.\FHEM.\Backups
rm: das Entfernen von ,,\\192.168.188.26Festplatte.Privat.Raspberry.FHEM.Backups" ist nicht mögli
ch: Datei oder Verzeichnis nicht
gefunden
pi@raspberrypi:/opt/fhem $ rm "\\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups"
rm: das Entfernen von ,,\\192.168.188.26\\Festplatte\\Privat\\Raspberry\\FHEM\\Backups" ist nicht
möglich: Datei oder Verzeichnis
nicht gefunden
pi@raspberrypi:/opt/fhem $ rm "\\192.168.188.26.\Festplatte\Privat\Raspberry\FHEM\Backups"
rm: das Entfernen von ,,\\192.168.188.26.\\Festplatte\\Privat\\Raspberry\\FHEM\\Backups" ist nich
t möglich: Datei oder Verzeichni
s nicht gefunden
pi@raspberrypi:/opt/fhem $ rm "\\192.168.188.26/\Festplatte\Privat\Raspberry\FHEM\Backups"
rm: das Entfernen von ,,\\192.168.188.26/\\Festplatte\\Privat\\Raspberry\\FHEM\\Backups" ist nich
t möglich: Datei oder Verzeichni
s nicht gefunden
pi@raspberrypi:/opt/fhem $ rm \\192.168.188.26/\Festplatte\Privat\Raspberry\FHEM\Backups
rm: das Entfernen von ,,\\192.168.188.26/FestplattePrivatRaspberryFHEMBackups" ist nicht möglich:
Datei oder Verzeichnis nicht ge
funden
pi@raspberrypi:/opt/fhem $ rm \\192.168.188.26\/Festplatte\Privat\Raspberry\FHEM\Backups
rm: das Entfernen von ,,\\192.168.188.26/FestplattePrivatRaspberryFHEMBackups" ist nicht möglich:
Datei oder Verzeichnis nicht ge
funden
pi@raspberrypi:/opt/fhem $ rm \\192.168.188.26\./Festplatte\Privat\Raspberry\FHEM\Backups
rm: das Entfernen von ,,\\192.168.188.26./FestplattePrivatRaspberryFHEMBackups" ist nicht möglich
: Datei oder Verzeichnis nicht g
efunden
pi@raspberrypi:/opt/fhem $ rm \\192.168.188.26.\/Festplatte\Privat\Raspberry\FHEM\Backups
rm: das Entfernen von ,,\\192.168.188.26./FestplattePrivatRaspberryFHEMBackups" ist nicht möglich
: Datei oder Verzeichnis nicht g
efunden
pi@raspberrypi:/opt/fhem $ rm "\\192.168.188.26\\Festplatte\Privat\Raspberry\FHEM\Backups"
rm: das Entfernen von ,,\\192.168.188.26\\Festplatte\\Privat\\Raspberry\\FHEM\\Backups" ist nicht
möglich: Datei oder Verzeichnis
nicht gefunden
pi@raspberrypi:/opt/fhem $ rm "\\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups"
rm: das Entfernen von ,,\\192.168.188.26\\Festplatte\\Privat\\Raspberry\\FHEM\\Backups" ist nicht
möglich: Datei oder Verzeichnis
nicht gefunden
pi@raspberrypi:/opt/fhem $ rm "\\192.168.188.26/\Festplatte\Privat\Raspberry\FHEM\Backups"
rm: das Entfernen von ,,\\192.168.188.26/\\Festplatte\\Privat\\Raspberry\\FHEM\\Backups" ist nich
t möglich: Datei oder Verzeichni
s nicht gefunden
pi@raspberrypi:/opt/fhem $ rm "\\192.168.188.26\/Festplatte\Privat\Raspberry\FHEM\Backups"
rm: das Entfernen von ,,\\192.168.188.26\\/Festplatte\\Privat\\Raspberry\\FHEM\\Backups" ist nich
t möglich: Datei oder Verzeichni
s nicht gefunden
pi@raspberrypi:/opt/fhem $ rm \\192.168.188.26\\Festplatte\Privat\Raspberry\FHEM\Backups
rm: das Entfernen von ,,\\192.168.188.26\\FestplattePrivatRaspberryFHEMBackups" ist nicht möglich
: Datei oder Verzeichnis nicht g
efunden
pi@raspberrypi:/opt/fhem $ rm \\192.168.188.26.\\Festplatte\Privat\Raspberry\FHEM\Backups
rm: das Entfernen von ,,\\192.168.188.26.\\FestplattePrivatRaspberryFHEMBackups" ist nicht möglic
h: Datei oder Verzeichnis nicht
gefunden
pi@raspberrypi:/opt/fhem $ rm \\192.168.188.26/\Festplatte\Privat\Raspberry\FHEM\Backups
rm: das Entfernen von ,,\\192.168.188.26/FestplattePrivatRaspberryFHEMBackups" ist nicht möglich:
Datei oder Verzeichnis nicht ge
funden
pi@raspberrypi:/opt/fhem $ rm \\192.168.188.26//\Festplatte\Privat\Raspberry\FHEM\Backups
rm: das Entfernen von ,,\\192.168.188.26//FestplattePrivatRaspberryFHEMBackups" ist nicht möglich
: Datei oder Verzeichnis nicht g
efunden
pi@raspberrypi:/opt/fhem $ rm \\192.168.188.26/\\Festplatte\Privat\Raspberry\FHEM\Backups
rm: das Entfernen von ,,\\192.168.188.26/\\FestplattePrivatRaspberryFHEMBackups" ist nicht möglic
h: Datei oder Verzeichnis nicht
gefunden
pi@raspberrypi:/opt/fhem $ rm \\192.168.188.26/\Festplatte\Privat\Raspberry\FHEM\Backups
rm: das Entfernen von ,,\\192.168.188.26/FestplattePrivatRaspberryFHEMBackups" ist nicht möglich:
Datei oder Verzeichnis nicht ge
funden
pi@raspberrypi:/opt/fhem $ rm \\192.168.188.26/.\\Festplatte\Privat\Raspberry\FHEM\Backups
rm: das Entfernen von ,,\\192.168.188.26/.\\FestplattePrivatRaspberryFHEMBackups" ist nicht mögli
ch: Datei oder Verzeichnis nicht
gefunden
pi@raspberrypi:/opt/fhem $ rm \\192.168.188.26.\\Festplatte\Privat\Raspberry\FHEM\Backups
rm: das Entfernen von ,,\\192.168.188.26.\\FestplattePrivatRaspberryFHEMBackups" ist nicht möglic
h: Datei oder Verzeichnis nicht
gefunden
pi@raspberrypi:/opt/fhem $ rm \\192.168.188.26.\Festplatte\Privat\Raspberry\FHEM\Backups
rm: das Entfernen von ,,\\192.168.188.26.FestplattePrivatRaspberryFHEMBackups" ist nicht möglich:
Datei oder Verzeichnis nicht ge
funden
pi@raspberrypi:/opt/fhem $ rm \\192.168.188.26.\\Festplatte\Privat\Raspberry\FHEM\Backups
rm: das Entfernen von ,,\\192.168.188.26.\\FestplattePrivatRaspberryFHEMBackups" ist nicht möglic
h: Datei oder Verzeichnis nicht
gefunden
Zur Sicherheit
pi@raspberrypi:/opt/fhem $ rm "\\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups"
rm: das Entfernen von ,,\\192.168.188.26\\Festplatte\\Privat\\Raspberry\\FHEM\\Backups" ist nicht möglich: Datei oder Verzeichnis
nicht gefunden
Zitat
pi@raspberrypi:/opt/fhem $ rm -rf \\192.168.188.26* :P
pi@raspberrypi:/opt/fhem $ ls -l
insgesamt 912
drwxr-xr-x 2 fhem dialout 4096 Mai 21 00:12 \\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups :'(
drwxr-xr-x 5 pi pi 4096 Dez 28 18:33 alexa-fhem
drwxrwxrwx 2 fhem dialout 4096 Apr 25 18:30 backup
drwxr-xr-x 2 fhem dialout 4096 Mai 20 21:14 cache
-rw-rw-rw- 1 fhem dialout 248937 Mai 21 22:09 CHANGED
-rw-rw-rw- 1 fhem dialout 84173 Mär 31 2017 config
-rw-rw-rw- 1 fhem dialout 41123 Apr 3 00:42 configDB.pm
drwxrwxrwx 40 fhem root 4096 Aug 25 2016 contrib
drwxr-xr-x 2 fhem dialout 4096 Mai 21 23:40 CSV-FHEM
drwxrwxrwx 3 fhem root 4096 Aug 12 2015 demolog
drwxrwxrwx 4 fhem root 4096 Jul 25 2017 docs
drwxrwxrwx 6 fhem root 24576 Mai 21 22:09 FHEM
-rw-rw-rw- 1 fhem root 184869 Mai 21 18:07 fhem.cfg
-rw-rw-rw- 1 fhem dialout 15848 Jan 28 22:10 fhem.cfg.demo
-rw-rw-rw- 1 fhem dialout 146208 Mai 21 22:09 fhem.pl
-rwxr-xr-x 1 root root 296 Nov 7 2017 ircmdFR.sh
-rwxrwxrwx 1 pi dialout 5602 Nov 7 2017 ircmd.sh
drwxrwxrwx 2 fhem root 20480 Mai 17 22:42 log
-rw-r--r-- 1 fhem dialout 37253 Mai 21 22:09 MAINTAINER.txt
drwxr-xr-x 4 fhem dialout 4096 Dez 26 23:44 package
-rw-rw-rw- 1 fhem root 761 Nov 9 2014 README_DEMO.txt
drwxrwxrwx 7 fhem dialout 4096 Apr 25 18:31 restoreDir
drwxrwxrwx 2 pi pi 36864 Mai 15 18:32 SonosSpeak
drwxrwxrwx 2 fhem dialout 4096 Aug 20 2015 unused
drwxrwxrwx 10 fhem root 4096 Mär 19 23:32 www
rm \\\\192.168.188.26\\Festplatte\\Privat\\Raspberry\\FHEM\\Backups
Kann es aber sein, dass es ein Zeilenumbruch im Dateinam gibt? Laut deinem ls, sieht es so aus. In dem Fall, finde den inode davon und lösche so:
ls -i *Festplatte*
Da kommt ne nummer 123456 (inode) neben deinem Dateiname
find . -inum 123456
nur um sicher zu stellen, dass die richtige Datei gewählt wird, und nur die.
find . -inum 123456 -delete
Gelöscht
ZitatLaut deinem ls, sieht es so aus.
Nein, verbinde mich am Tablet per ssh, da war der Bildschirm hinein/herausgezoomt?
Sieht dann wie hier aus:
pi@raspberrypi:/opt/fhem $ rm \\\\192.168.188.26\\Festplatte\\Privat\\Raspberry\\FHEM\\Backups
rm: das Entfernen von ,,\\\\192.168.188.26\\Festplatte\\Privat\\Raspberry\\FHEM\\Backups" ist nicht mög
lich: Ist ein Verzeichnis
Zur Sicherheit:
pi@raspberrypi:/opt/fhem $ ls -l
insgesamt 912
drwxr-xr-x 2 fhem dialout 4096 Mai 21 00:12 \\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups
drwxr-xr-x 5 pi pi 4096 Dez 28 18:33 alexa-fhem
drwxrwxrwx 2 fhem dialout 4096 Apr 25 18:30 backup
drwxr-xr-x 2 fhem dialout 4096 Mai 20 21:14 cache
-rw-rw-rw- 1 fhem dialout 248937 Mai 21 22:09 CHANGED
-rw-rw-rw- 1 fhem dialout 84173 Mär 31 2017 config
-rw-rw-rw- 1 fhem dialout 41123 Apr 3 00:42 configDB.pm
drwxrwxrwx 40 fhem root 4096 Aug 25 2016 contrib
drwxr-xr-x 2 fhem dialout 4096 Mai 21 23:40 CSV-FHEM
drwxrwxrwx 3 fhem root 4096 Aug 12 2015 demolog
drwxrwxrwx 4 fhem root 4096 Jul 25 2017 docs
drwxrwxrwx 6 fhem root 24576 Mai 21 22:09 FHEM
-rw-rw-rw- 1 fhem root 184869 Mai 21 18:07 fhem.cfg
-rw-rw-rw- 1 fhem dialout 15848 Jan 28 22:10 fhem.cfg.demo
-rw-rw-rw- 1 fhem dialout 146208 Mai 21 22:09 fhem.pl
-rwxr-xr-x 1 root root 296 Nov 7 2017 ircmdFR.sh
-rwxrwxrwx 1 pi dialout 5602 Nov 7 2017 ircmd.sh
drwxrwxrwx 2 fhem root 20480 Mai 17 22:42 log
-rw-r--r-- 1 fhem dialout 37253 Mai 21 22:09 MAINTAINER.txt
drwxr-xr-x 4 fhem dialout 4096 Dez 26 23:44 package
-rw-rw-rw- 1 fhem root 761 Nov 9 2014 README_DEMO.txt
drwxrwxrwx 7 fhem dialout 4096 Apr 25 18:31 restoreDir
drwxrwxrwx 2 pi pi 36864 Mai 15 18:32 SonosSpeak
drwxrwxrwx 2 fhem dialout 4096 Aug 20 2015 unused
drwxrwxrwx 10 fhem root 4096 Mär 19 23:32 www
Irgendwas passt da doch net:
pi@raspberrypi:/opt/fhem $ ls -i *Festplatte*
271249 FHEM-20180521_001227.tar.gz
Zitatpi@raspberrypi:/opt/fhem $ ls -i
267971 \\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups 261048 demolog 279923 MAINTAINER.txt
258837 alexa-fhem 261068 docs 276682 package
263138 backup 260596 FHEM 261133 README_DEMO.txt
276578 cache 261066 fhem.cfg 268005 restoreDir
263139 CHANGED 261046 fhem.cfg.demo 276411 SonosSpeak
276977 config 261132 fhem.pl 268205 unused
261047 configDB.pm 278238 ircmdFR.sh 261134 www
262725 contrib 258595 ircmd.sh
258810 CSV-FHEM 261067 log
pi@raspberrypi:/opt/fhem $ find . -inum 267971
./\\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups
find: "./.config": Keine Berechtigung
find: "./.cups": Keine Berechtigung
Kann ich jetzt ein
find . -inum 267971 -delete
ausführen oder besser sein lassen ?
Das ganze mit sudo sieht verdächtig gut aus:
pi@raspberrypi:/opt/fhem $ sudo find . -inum 267971
./\\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups
Hab heute morgen den Raspi heruntergefahren, SD-Karte in den PC und mit Paragon ExtFS versucht die Datei umzubenennen bzw. zu löschen.
Natürlich klappt das unter Windows erst recht nicht.
Meinst du ich kann problemlos ein
find . -inum 267971 -delete
ausführen ?
rm '\\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups'
pi@raspberrypi:/opt/fhem $ rm '\\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups'
rm: das Entfernen von ,,\\\\192.168.188.26\\Festplatte\\Privat\\Raspberry\\FHEM\\Backups" ist nicht möglich: Ist ein Verzeichnis
rm -f '\\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups'
Naja dann halt ein -f damit das Verzeichnis gelöscht wird
Ist in der Tat ein Verzeichnis
drwxr-xr-x 2 fhem dialout 4096 Mai 21 00:12 \\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups
pi@raspberrypi:/opt/fhem $ rm -f '\\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups'
rm: das Entfernen von ,,\\\\192.168.188.26\\Festplatte\\Privat\\Raspberry\\FHEM\\Backups" ist nicht möglich: Ist ein Verzeichnis
Trotzdem gleiche Fehlermeldung und die Backslashes werden doch noch verdoppelt.
vor dem Löschen würde ich noch ein Image Backup unter Windows machen ...
es klingt ein wenig nach einer defekten SD Karte
normalerweise kann man mit tab completion in der Shell eigentlich alles löschen
Ok jetzt aber . Habe es selbst hier getestet
rm -rf '\\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups'
Zitat... die zwei Ordner da sollen , die wurden gestern von Fhem erzeugt als ich das ...
Möcht ich nicht ausschliessen, aber ich denke es liegt einfach nur daran.
Und das ist nur passiert weil ich alles mögliche in backupdir eingetragen hatte.
Haste gedacht:
pi@raspberrypi:/opt/fhem $ rm -rf '\\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups'
rm: das Entfernen von ,,\\\\192.168.188.26\\Festplatte\\Privat\\Raspberry\\FHEM\\Backups/FHEM-20180521_001227.tar.
gz" ist nicht möglich: Keine Berechtigung
Was mir jetzt gerade kommt, es gibt tatsächlich eine Samba-Freigabe die Festplatte heißt.
Es wäre hilfreicher wenn Du das ganze als root oder wenigstens mit sudo machen würdest.
In dem Ordner ist noch eine Datei drin.
Es wäre hilfreicher wenn Du das ganze als root oder wenigstens mit sudo machen würdest.
In dem Ordner ist noch eine Datei drin.
Das ist ja das kuriose, da ist nichts drin. Mit bsw. dem ES-Datei Explorer hab ich auch per root Zugriff, der Ordner ist leer.
Eher zu bezweifeln aber die Samba-Freigabe hab ich jetzt auch mal auskommentiert und neu gestartet.
Dann nochmal
rm -rf '\\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups'
ausgeführt, ändert nichts.
tadaaaaa :D
pi@raspberrypi:/opt/fhem $ sudo rm -rf '\\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups'
pi@raspberrypi:/opt/fhem $ ls -l
insgesamt 908
drwxr-xr-x 5 pi pi 4096 Dez 28 18:33 alexa-fhem
drwxrwxrwx 2 fhem dialout 4096 Apr 25 18:30 backup
drwxr-xr-x 2 fhem dialout 4096 Mai 20 21:14 cache
-rw-rw-rw- 1 fhem dialout 248937 Mai 21 22:09 CHANGED
-rw-rw-rw- 1 fhem dialout 84173 Mär 31 2017 config
-rw-rw-rw- 1 fhem dialout 41123 Apr 3 00:42 configDB.pm
drwxrwxrwx 40 fhem root 4096 Aug 25 2016 contrib
drwxr-xr-x 2 fhem dialout 4096 Mai 21 23:40 CSV-FHEM
drwxrwxrwx 3 fhem root 4096 Aug 12 2015 demolog
drwxrwxrwx 4 fhem root 4096 Jul 25 2017 docs
drwxrwxrwx 6 fhem root 24576 Mai 21 22:09 FHEM
-rw-rw-rw- 1 fhem root 184869 Mai 21 18:07 fhem.cfg
-rw-rw-rw- 1 fhem dialout 15848 Jan 28 22:10 fhem.cfg.demo
-rw-rw-rw- 1 fhem dialout 146208 Mai 21 22:09 fhem.pl
-rwxr-xr-x 1 root root 296 Nov 7 2017 ircmdFR.sh
-rwxrwxrwx 1 pi dialout 5602 Nov 7 2017 ircmd.sh
drwxrwxrwx 2 fhem root 20480 Mai 17 22:42 log
-rw-r--r-- 1 fhem dialout 37253 Mai 21 22:09 MAINTAINER.txt
drwxr-xr-x 4 fhem dialout 4096 Dez 26 23:44 package
-rw-rw-rw- 1 fhem root 761 Nov 9 2014 README_DEMO.txt
drwxrwxrwx 7 fhem dialout 4096 Apr 25 18:31 restoreDir
drwxrwxrwx 2 pi pi 36864 Mai 22 07:44 SonosSpeak
drwxrwxrwx 2 fhem dialout 4096 Aug 20 2015 unused
drwxrwxrwx 10 fhem root 4096 Mär 19 23:32 www
Dickes Danke an die Helfenden