DSM 6.x und darunter DSM "repariert" sich und löscht ipkg ?

Alle DSM Version von DSM 6.x und älter
Status
Für weitere Antworten geschlossen.

marss73

Benutzer
Mitglied seit
10. Okt 2012
Beiträge
7
Punkte für Reaktionen
0
Punkte
0
Hallo,

Ich habe meine DS111 kürzlich von DSM 3.2 auf 4.1-2636 aktualisiert.
Schon mit DSM 3.1 und 3.2 hatte ich mir rsnapshot installiert. Also
- über console / ssh als root einloggen
- das für meine DS111 geeignete syno-mvkw-bootstrap_1.2-7_arm.xsh installieren, danach ipkg, mc (vi ist ein Sch...) und rsnapshot
- rsnapshot und cron so konfigurieren, daß es automatisch drei mal am Tag ein inkrementelles Backup der für mich wichtigen Daten auf eine externe USB-Platte schreibt, darunter auch Remote über WLAN Daten meines Ubuntu-Laptops (über ssh über ausgetausche Schlüssel).

Problem:
Seit Update 3.2 -> 4.1 (4.0 hatte ich übersprungen) wird ziemlich bald, wohl bereits beim nächsten Systemstart (meine DS111 fährt nachts runter) alles wieder entfernt. rsnaphot weg, ipkg weg, mc weg.
Gibt es eine Funktion im DSM zur "Selbstreparatur"? Ich habe nichts gefunden, aber so wirkt es.

Hoffe auf Hilfe
Gruß Martin
 

goetz

Super-Moderator
Teammitglied
Sehr erfahren
Mitglied seit
18. Mrz 2009
Beiträge
13.999
Punkte für Reaktionen
264
Punkte
373
Hallo,
ab 4.0 bedarf es kleiner Änderungen an der /root/.profile, siehe Wiki Punkt 5.

Gruß Götz
 

marss73

Benutzer
Mitglied seit
10. Okt 2012
Beiträge
7
Punkte für Reaktionen
0
Punkte
0
Hallo,

ja, Danke.
Aber da ich die Anleitung selbst beim Installieren durchgegangen war, ist das bei mir so. .profile sieht am Anfang so aus:

Rich (BBCode):
umask 022

# PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin
# export PATH

#This fixes the backspace when telnetting in.
#if [ "$TERM" != "linux" ]; then

Gruß
Martin
 

goetz

Super-Moderator
Teammitglied
Sehr erfahren
Mitglied seit
18. Mrz 2009
Beiträge
13.999
Punkte für Reaktionen
264
Punkte
373
Hallo,
gib mal die Ausgaben von
Rich (BBCode):
mount
echo $PATH
ls -la /

Gruß Götz
 

marss73

Benutzer
Mitglied seit
10. Okt 2012
Beiträge
7
Punkte für Reaktionen
0
Punkte
0
Hi,

Hallo,
gib mal die Ausgaben von
Rich (BBCode):
mount
echo $PATH
ls -la /

Rich (BBCode):
DS111> mount
/dev/root on / type ext4 (rw,relatime,barrier=0,journal_checksum,data=ordered)
/tmp on /tmp type tmpfs (0)
none on /dev/pts type devpts (gid=4,mode=620)
/sys on /sys type sysfs (0)
/proc/bus/usb on /proc/bus/usb type usbfs (0)
/dev/sda3 on /volume1 type ext4 (usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,synoacl)
/dev/sdq1 on /volumeUSB2/usbshare type ext4 (nodelalloc,synoacl)
none on /proc/fs/nfsd type nfsd (0)
/volume1/@optware on /opt type bind (bind)

DS111> echo $PATH
/opt/bin:/opt/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/syno/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/syno/bin:/usr/syno/sbin:/usr/local/bin:/usr/local/sbin

DS111> ls -la /
total 148
drwxr-xr-x  24 root root  4096 Oct 10 21:22 .
drwxr-xr-x  24 root root  4096 Oct 10 21:22 ..
drwxr-xr-x   3 root root  4096 Sep 21 19:06 .old_patch_info
-rw-------   1 root root  1024 Feb  1  2012 .rnd
drwxrwxrwx   3 root root  4096 Sep 21 19:04 .syno
drwxr-xr-x   2 root root  4096 Feb  1  2012 .system_info
drwxr-xr-x   2 root root  4096 Sep 21 19:06 bin
drwxr-xr-x   7 root root 45056 Oct 10 15:00 dev
drwxr-xr-x  16 root root  4096 Oct 10 21:23 etc
drwxr-xr-x  14 root root  4096 Oct 10 15:00 etc.defaults
drwxr-xr-x   2 root root  4096 Aug 30 11:46 initrd
drwxr-xr-x  17 root root 20480 Sep 21 19:40 lib
lrwxrwxrwx   1 root root    11 Sep 21 19:06 linuxrc -> bin/busybox
drwx------   2 root root  4096 Aug 30 11:16 lost+found
drwxr-xr-x   2 root root  4096 Aug 30 11:16 mnt
drwxr-xr-x  12 root root  4096 Oct 10 21:25 opt
dr-xr-xr-x 113 root root     0 Jan  1  1970 proc
drwxr-xr-x   4 root root  4096 Sep 21 21:13 root
drwxr-xr-x   2 root root  4096 Sep 21 19:06 sbin
drwxr-xr-x  11 root root     0 Jan  1  1970 sys
drwxrwxrwt  11 root root  1320 Oct 10 22:08 tmp
drwxr-xr-x   8 root root  4096 Sep 21 19:06 usr
drwxr-xr-x  13 root root  4096 Oct 10 15:00 var
drwxr-xr-x  11 root root  4096 Sep 21 19:06 var.defaults
drwxrwxrwx  21 root root  4096 Oct 10 21:22 volume1
drwxr-xr-x   3 root root  4096 Oct 10 15:01 volumeUSB2

Gruß
Martin
 

goetz

Super-Moderator
Teammitglied
Sehr erfahren
Mitglied seit
18. Mrz 2009
Beiträge
13.999
Punkte für Reaktionen
264
Punkte
373
Hallo,
sieht alles gut aus, was geht denn jetzt nicht?

Gruß Götz
 

marss73

Benutzer
Mitglied seit
10. Okt 2012
Beiträge
7
Punkte für Reaktionen
0
Punkte
0
Hallo,
sieht alles gut aus, was geht denn jetzt nicht?
Ein reboot, und ipkg ist verschwunden. Und auch rsnapshot, wenn installiert.

Rich (BBCode):
DS111> reboot
Connection to <gelöscht> closed by remote host.
Connection to <gelöscht> closed.
martin@Sternberg2:~$ ssh -l root <gelöscht>
root@<gelöscht>'s password: 


BusyBox v1.16.1 (2012-08-30 00:05:10 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

DS111> ipkg
-ash: ipkg: not found
DS111>

Gruß
Martin
 

goetz

Super-Moderator
Teammitglied
Sehr erfahren
Mitglied seit
18. Mrz 2009
Beiträge
13.999
Punkte für Reaktionen
264
Punkte
373
Hallo,
dann mach die 3 Befehle jetzt noch einmal, wenn alles läuft sind die Ausgaben ja vorhersehbar:)

Gruß Götz
 

marss73

Benutzer
Mitglied seit
10. Okt 2012
Beiträge
7
Punkte für Reaktionen
0
Punkte
0
Hi,

die hier?

Rich (BBCode):
DS111> mount
/dev/root on / type ext4 (rw,relatime,barrier=0,journal_checksum,data=ordered)
/tmp on /tmp type tmpfs (0)
none on /dev/pts type devpts (gid=4,mode=620)
/sys on /sys type sysfs (0)
/proc/bus/usb on /proc/bus/usb type usbfs (0)
/dev/sda3 on /volume1 type ext4 (usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,synoacl)
/dev/sdq1 on /volumeUSB2/usbshare type ext4 (nodelalloc,synoacl)
none on /proc/fs/nfsd type nfsd (0)

DS111> echo $PATH
/opt/bin:/opt/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/syno/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/syno/bin:/usr/syno/sbin:/usr/local/bin:/usr/local/sbin

DS111> ls -la /
drwxr-xr-x   24 root     root          4096 Oct 10 22:47 .
drwxr-xr-x   24 root     root          4096 Oct 10 22:47 ..
drwxr-xr-x    3 root     root          4096 Sep 21 19:06 .old_patch_info
-rw-------    1 root     root          1024 Feb  1  2012 .rnd
drwxrwxrwx    3 root     root          4096 Sep 21 19:04 .syno
drwxr-xr-x    2 root     root          4096 Feb  1  2012 .system_info
drwxr-xr-x    2 root     root          4096 Sep 21 19:06 bin
drwxr-xr-x    7 root     root         45056 Oct 10 22:47 dev
drwxr-xr-x   16 root     root          4096 Oct 10 22:47 etc
drwxr-xr-x   14 root     root          4096 Oct 10 22:47 etc.defaults
drwxr-xr-x    2 root     root          4096 Aug 30 11:46 initrd
drwxr-xr-x   17 root     root         20480 Sep 21 19:40 lib
lrwxrwxrwx    1 root     root            11 Sep 21 19:06 linuxrc -> bin/busybox
drwx------    2 root     root          4096 Aug 30 11:16 lost+found
drwxr-xr-x    2 root     root          4096 Aug 30 11:16 mnt
drwxr-xr-x    2 root     root          4096 Sep 21 21:10 opt
dr-xr-xr-x  108 root     root             0 Jan  1  1970 proc
drwxr-xr-x    4 root     root          4096 Sep 21 21:13 root
drwxr-xr-x    2 root     root          4096 Sep 21 19:06 sbin
drwxr-xr-x   11 root     root             0 Jan  1  1970 sys
drwxrwxrwt    7 root     root          1060 Oct 10 22:48 tmp
drwxr-xr-x    8 root     root          4096 Sep 21 19:06 usr
drwxr-xr-x   13 root     root          4096 Oct 10 22:47 var
drwxr-xr-x   11 root     root          4096 Sep 21 19:06 var.defaults
drwxrwxrwx   21 root     root          4096 Oct 10 22:47 volume1
drwxr-xr-x    3 root     root          4096 Oct 10 22:48 volumeUSB2
DS111> ipkg
-ash: ipkg: not found

Der mount Eintrag
Rich (BBCode):
/volume1/@optware on /opt type bind (bind)
ist weg, das Verzeichnis /opt ist leer.
Aber /volume1/@optware ist noch da, also funktioniert der Link nicht mehr.

Habe jetzt
Rich (BBCode):
ln -s /volume1/@optware/ /opt
gesetzt (richtig?) und reboot...
.nee tut noch nicht.

Gruß
Martin
 

goetz

Super-Moderator
Teammitglied
Sehr erfahren
Mitglied seit
18. Mrz 2009
Beiträge
13.999
Punkte für Reaktionen
264
Punkte
373
Hallo,
was ergibt jetzt
ls -la /
ls -la /etc/rc.*

Gruß Götz
 

marss73

Benutzer
Mitglied seit
10. Okt 2012
Beiträge
7
Punkte für Reaktionen
0
Punkte
0
Hallo Götz,

jetzt tuts. Der Link
Rich (BBCode):
ln -s /volume1/@optware/ /opt
war falsch, korrekt ist
Rich (BBCode):
ln -s /volume1/@optware /opt
Jetzt kommt bei ls -la / auch korrekt
Rich (BBCode):
lrwxrwxrwx   1 root root    17 Oct 10 23:07 opt -> /volume1/@optware
mit dem Link-Verweis dahinter und es scheint zu funktionieren.

Ich sag in ein paar Tagen Bescheid, ob es stabil läuft, aber bis dahin schon mal Vielen Dank, Götz.

Gruß
Martin
 

marss73

Benutzer
Mitglied seit
10. Okt 2012
Beiträge
7
Punkte für Reaktionen
0
Punkte
0
Alles super, Problem erledigt. Danke nochmal.

Gruß
Martin
 
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