Änderungsdatum anpassen, bzw. fixieren

Status
Für weitere Antworten geschlossen.

xjsv12

Benutzer
Mitglied seit
23. Mrz 2009
Beiträge
55
Punkte für Reaktionen
2
Punkte
8
Hallo

ich habe von der SONY-Cam M2ts-Dateien auf der Diskstation gespeichert, die sich prima auf dem TV (SONY KDL-HX900) abspielen lassen. Die Dateien heissen z.B. 201000404110828, was bedeutet, am 04. April 2010 um 11:08 Uhr und 23 sec aufgenommen worden zu sein. Doch leider zeigt der TV sehr präsent z.B. Samstag, 2. April 2011 23:31 Uhr an, nämlich das Datum, wo die Datei auf die Diskstation geladen wurde. (Siehe Anhänge) Nicht nur beim Scrollen und Suchen, sondern auch beim Abspielen auf dem TV ist dies sehr verwirrend und unpraktisch.

Kann mir jemand sagen, wie ich das Änderungsdatum auf der Diskstation ändern kann, bzw. wie bringe ich den TV dazu, den Dateinamen als Datum zu erkennen, das es anzuzeigen gilt?

Besten Dank für die Hilfe!

xjsv12
 

Anhänge

  • Datei Synology.jpg
    Datei Synology.jpg
    155,7 KB · Aufrufe: 90
  • Datei Synology II.jpg
    Datei Synology II.jpg
    58,9 KB · Aufrufe: 90

xjsv12

Benutzer
Mitglied seit
23. Mrz 2009
Beiträge
55
Punkte für Reaktionen
2
Punkte
8
Hallo trevorreznik
Hallo itari

Besten Dank für die Hilfe, ich habs mir angeschaut und muss sagen: ich hab nicht die geringste Ahnung, was ich wie machen muss! Gibt es eine Erläuterungen für absolute Anfänger wie mich? Welche Konsole, wo welches Programm oder welcher Befehl "touch"

Danke zum Voraus!!
xjsv12
 

trevorreznik

Gesperrt
Mitglied seit
24. Nov 2010
Beiträge
386
Punkte für Reaktionen
0
Punkte
0
Besten Dank für die Hilfe, ich habs mir angeschaut und muss sagen: ich hab nicht die geringste Ahnung, was ich wie machen muss! Gibt es eine Erläuterungen für absolute Anfänger wie mich? Welche Konsole, wo welches Programm oder welcher Befehl "touch"

Oha.

Mittels dem Programm "telnet" kannst du auf die DS zugreifen und bekommst eine Konsole, d.h. du kannst Textbefehle schicken und die DS schickt die Antworten zurück. Im lokalen Netzwerk kommt man mit "telnet diskstation" auf diese Konsole und kann sich dort mit dem Benutzer "root" und dem admin-Passwort anmelden. Der Benutzer "root" ist derjenige, der ALLES darf und die DS daher auch viel kaputt machen kann. Auf dieser Konsole kannst du durch die einzelnen Verzeichnisse gehen und in dem Verzeichnis mit deinen Daten kannst du mit dem Befehl "touch" dann das Dateidatum setzen.

Im Wiki findest du die grundlegenden Befehle auf der Kommandozeile. Beim ersten Mal solltest du dir das vllt. von einem Freund mal zeigen lassen.
 

rumknapser

Benutzer
Mitglied seit
02. Mai 2013
Beiträge
329
Punkte für Reaktionen
6
Punkte
24
*bump*
Hi,
ich hänge mich hier mal an den verstaubten Thread,
denn bei mir auf einer DS412+ mit DSM 4.2-3211 funktioniert touch nicht wie hier und anderswo vorgeschlagen:

Rich (BBCode):
> touch -d '08-08-2008 20:08' datei.ext
touch: invalid option -- d
BusyBox v1.16.1 (2013-04-16 20:10:16 CST) multi-call binary.

Usage: touch [-c] [-d DATE] FILE [FILE]...

Update the last-modified date on the given FILE

Options:
        -c      Don't create files
        -d DT   Date/time to use

> which touch
/bin/touch
Ich habe nun knapp 2 Stunden das Netz abgegrast, da ich dachte, das ich ein falsches Datumsformat benutzt habe, aber alle möglichen Datumsversionen zeigen den selben Fehler, der, wie mir gerade auffiel, besagt, das die Option -d nicht unterstützt wird/ist.

Ich hatte vorher versucht, das Dateidatum einer Datei via stat zu ändern, da das Netz dies auch noch im Petto hatte, doch leider gibt es auf der Syno hier den Befehl stat ausschliesslich OHNE die Option -c, welche es möglich macht, so das Netz, das Datum zu setzen.
Rich (BBCode):
> stat
BusyBox v1.16.1 (2013-04-16 20:10:16 CST) multi-call binary.

Usage: stat [OPTIONS] FILE...

Display file (default) or filesystem status

Options:
        -f      Display filesystem status
        -L      Follow links
        -t      Display info in terse form

>which stat
/bin/stat
Dann versuchte ich, via IPKG etwa andere Versionen dieser beiden Programme zu finden, aber ich fand keine passenden Pakete oder Hinweise via ipkg list|grep touch oder stat

Weis jemand hier eine Möglichkeit, in der Shell oder via Shellscript, die Daten bestimmter Dateien zu manipulieren?
Mit Boardmitteln scheint es nicht zu klappen, oder?
 
Zuletzt bearbeitet:

goetz

Super-Moderator
Teammitglied
Sehr erfahren
Mitglied seit
18. Mrz 2009
Beiträge
14.042
Punkte für Reaktionen
299
Punkte
393
Hallo,
touch und stat sind im ipkg Paket coreutils enthalten.

Gruß Götz
 

rumknapser

Benutzer
Mitglied seit
02. Mai 2013
Beiträge
329
Punkte für Reaktionen
6
Punkte
24
Es funktioniert nicht, da die coreutil Programmversionen scheinbar identisch sind

touch und stat sind im ipkg Paket coreutils enthalten.
Danke Götz,
das Installieren hat nun mit ipkg install coreutils augenscheinlich soweit funktioniert,
die neu installierten tools stat und touch werden auch brav aufgerufen,
Rich (BBCode):
> which stat
/opt/bin/stat
> which touch
/opt/bin/touch
doch leider haben sie dieselben wenigen und nicht hilfreichen Optionen wie ihre Vorgänger, die syno-eigenen Versionen dieser Programme.

Eine kl. Frage nebenbei:
Ist es "normal", das bei "update-alternatives: Linking //" zwei (2) Slashes angezeigt werden?
Rich (BBCode):
> ipkg install coreutils
Installing coreutils (8.4-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/unstable/coreutils_8.4-1_i686.ipk
Configuring coreutils
update-alternatives: Linking //opt/bin/[ to coreutils-lbracket
update-alternatives: Linking //opt/bin/base64 to coreutils-base64
update-alternatives: Linking //opt/bin/basename to coreutils-basename
update-alternatives: Linking //opt/bin/cat to coreutils-cat
update-alternatives: Linking //opt/bin/chcon to coreutils-chcon
update-alternatives: Linking //opt/bin/chgrp to coreutils-chgrp
update-alternatives: Linking //opt/bin/chmod to coreutils-chmod
update-alternatives: Linking //opt/bin/chown to coreutils-chown
update-alternatives: Linking //opt/bin/chroot to coreutils-chroot
update-alternatives: Linking //opt/bin/cksum to coreutils-cksum
update-alternatives: Linking //opt/bin/comm to coreutils-comm
update-alternatives: Linking //opt/bin/cp to coreutils-cp
update-alternatives: Linking //opt/bin/csplit to coreutils-csplit
update-alternatives: Linking //opt/bin/cut to coreutils-cut
update-alternatives: Linking //opt/bin/date to coreutils-date
update-alternatives: Linking //opt/bin/dd to coreutils-dd
update-alternatives: Linking //opt/bin/df to coreutils-df
update-alternatives: Linking //opt/bin/dir to coreutils-dir
update-alternatives: Linking //opt/bin/dircolors to coreutils-dircolors
update-alternatives: Linking //opt/bin/dirname to coreutils-dirname
update-alternatives: Linking //opt/bin/du to coreutils-du
update-alternatives: Linking //opt/bin/echo to coreutils-echo
update-alternatives: Linking //opt/bin/env to coreutils-env
update-alternatives: Linking //opt/bin/expand to coreutils-expand
update-alternatives: Linking //opt/bin/expr to coreutils-expr
update-alternatives: Linking //opt/bin/factor to coreutils-factor
update-alternatives: Linking //opt/bin/false to coreutils-false
update-alternatives: Linking //opt/bin/fmt to coreutils-fmt
update-alternatives: Linking //opt/bin/fold to coreutils-fold
update-alternatives: Linking //opt/bin/groups to coreutils-groups
update-alternatives: Linking //opt/bin/head to coreutils-head
update-alternatives: Linking //opt/bin/hostid to coreutils-hostid
update-alternatives: Linking //opt/bin/id to coreutils-id
update-alternatives: Linking //opt/bin/install to coreutils-install
update-alternatives: Linking //opt/bin/join to coreutils-join
update-alternatives: Linking //opt/bin/kill to coreutils-kill
update-alternatives: Linking //opt/bin/link to coreutils-link
update-alternatives: Linking //opt/bin/ln to coreutils-ln
update-alternatives: Linking //opt/bin/logname to coreutils-logname
update-alternatives: Linking //opt/bin/ls to coreutils-ls
update-alternatives: Linking //opt/bin/md5sum to coreutils-md5sum
update-alternatives: Linking //opt/bin/mkdir to coreutils-mkdir
update-alternatives: Linking //opt/bin/mkfifo to coreutils-mkfifo
update-alternatives: Linking //opt/bin/mknod to coreutils-mknod
update-alternatives: Linking //opt/bin/mktemp to coreutils-mktemp
update-alternatives: Linking //opt/bin/mv to coreutils-mv
update-alternatives: Linking //opt/bin/nice to coreutils-nice
update-alternatives: Linking //opt/bin/nl to coreutils-nl
update-alternatives: Linking //opt/bin/nohup to coreutils-nohup
update-alternatives: Linking //opt/bin/nproc to coreutils-nproc
^[update-alternatives: Linking //opt/bin/od to coreutils-od
update-alternatives: Linking //opt/bin/paste to coreutils-paste
update-alternatives: Linking //opt/bin/pathchk to coreutils-pathchk
update-alternatives: Linking //opt/bin/pinky to coreutils-pinky
update-alternatives: Linking //opt/bin/pr to coreutils-pr
update-alternatives: Linking //opt/bin/printenv to coreutils-printenv
update-alternatives: Linking //opt/bin/printf to coreutils-printf
update-alternatives: Linking //opt/bin/ptx to coreutils-ptx
update-alternatives: Linking //opt/bin/pwd to coreutils-pwd
update-alternatives: Linking //opt/bin/readlink to coreutils-readlink
update-alternatives: Linking //opt/bin/rm to coreutils-rm
update-alternatives: Linking //opt/bin/rmdir to coreutils-rmdir
update-alternatives: Linking //opt/bin/runcon to coreutils-runcon
update-alternatives: Linking //opt/bin/seq to coreutils-seq
update-alternatives: Linking //opt/bin/sha1sum to coreutils-sha1sum
update-alternatives: Linking //opt/bin/sha224sum to coreutils-sha224sum
update-alternatives: Linking //opt/bin/sha256sum to coreutils-sha256sum
update-alternatives: Linking //opt/bin/sha384sum to coreutils-sha384sum
update-alternatives: Linking //opt/bin/sha512sum to coreutils-sha512sum
update-alternatives: Linking //opt/bin/shred to coreutils-shred
update-alternatives: Linking //opt/bin/shuf to coreutils-shuf
update-alternatives: Linking //opt/bin/sleep to coreutils-sleep
update-alternatives: Linking //opt/bin/sort to coreutils-sort
update-alternatives: Linking //opt/bin/split to coreutils-split
update-alternatives: Linking //opt/bin/stat to coreutils-stat
update-alternatives: Linking //opt/bin/stdbuf to coreutils-stdbuf
update-alternatives: Linking //opt/bin/stty to coreutils-stty
update-alternatives: Linking //opt/bin/su to coreutils-su
update-alternatives: Linking //opt/bin/sum to coreutils-sum
update-alternatives: Linking //opt/bin/sync to coreutils-sync
update-alternatives: Linking //opt/bin/tac to coreutils-tac
update-alternatives: Linking //opt/bin/tail to coreutils-tail
update-alternatives: Linking //opt/bin/tee to coreutils-tee
update-alternatives: Linking //opt/bin/test to coreutils-test
update-alternatives: Linking //opt/bin/timeout to coreutils-timeout
update-alternatives: Linking //opt/bin/touch to coreutils-touch
update-alternatives: Linking //opt/bin/tr to coreutils-tr
update-alternatives: Linking //opt/bin/true to coreutils-true
update-alternatives: Linking //opt/bin/truncate to coreutils-truncate
update-alternatives: Linking //opt/bin/tsort to coreutils-tsort
update-alternatives: Linking //opt/bin/tty to coreutils-tty
update-alternatives: Linking //opt/bin/uname to coreutils-uname
update-alternatives: Linking //opt/bin/unexpand to coreutils-unexpand
update-alternatives: Linking //opt/bin/uniq to coreutils-uniq
update-alternatives: Linking //opt/bin/unlink to coreutils-unlink
update-alternatives: Linking //opt/bin/uptime to coreutils-uptime
update-alternatives: Linking //opt/bin/users to coreutils-users
update-alternatives: Linking //opt/bin/vdir to coreutils-vdir
update-alternatives: Linking //opt/bin/wc to coreutils-wc
update-alternatives: Linking //opt/bin/who to coreutils-who
update-alternatives: Linking //opt/bin/whoami to coreutils-whoami
update-alternatives: Linking //opt/bin/yes to coreutils-yes
Successfully terminated.

Da hier am Anfang des Thread ausgesagt wurde, das es möglich sein soll(te), Dateidaten direkt auf dem NAS zu ändern, frage ich mich, was ich noch machen könnte, damit ich das Datum von bestimmten Dateien -wie oben von mir angegeben- ändern kann.
Anscheinend habe ich auf dem NAS andere Voraussetzungen, als Itari :)
Nur wie bekomm' ichs hin?
 

goetz

Super-Moderator
Teammitglied
Sehr erfahren
Mitglied seit
18. Mrz 2009
Beiträge
14.042
Punkte für Reaktionen
299
Punkte
393
Hallo,
/opt/bin/touch -t 200805101024 bla.bla
funktioniert (10.05.2008 10:24).

Gruß Götz
 

rumknapser

Benutzer
Mitglied seit
02. Mai 2013
Beiträge
329
Punkte für Reaktionen
6
Punkte
24
Hmm... Danke, plötzlich geht es hier auch ganz "normal"... weiss nicht, woran es gelegen hat. Sei bedankt!!
 
Status
Für weitere Antworten geschlossen.
 

Kaffeautomat

Wenn du das Forum hilfreich findest oder uns unterstützen möchtest, dann gib uns doch einfach einen Kaffee aus.

Als Dankeschön schalten wir deinen Account werbefrei.

:coffee:

Hier gehts zum Kaffeeautomat 

 
 
  AdBlocker gefunden!

Du bist nicht hier, um Support für Adblocker zu erhalten. Dein Adblocker funktioniert bereits ;-)

Klar machen Adblocker einen guten Job, aber sie blockieren auch nützliche Funktionen.

Das Forum wird mit hohem technischen, zeitlichen und finanziellen Aufwand kostenfrei zur Verfügung gestellt. Wir zeigen keine offensive Werbung und bemühen uns um eine dezente Integration.

Bitte unterstütze dieses Forum, in dem du deinen Adblocker für diese Seite deaktivierst.

Du kannst uns auch über unseren Kaffeautomat einen Kaffe ausgeben oder ein PUR Abo abschließen und das Forum so werbefrei nutzen.

Vielen Dank für Deine Unterstützung!