Dienstag, 19. Mai 2015

The value 'stable' is invalid for APT::Default-Release as such a release is not available in the sources

openmediavault NAS:

apt-get kann nicht mehr ausgeführt werden
folgende Fehlemeldung erscheint:


The value 'stable' is invalid for APT::Default-Release as such a release is not available in the sources


Der Wert »stable« ist für APT::Default-Release ungültig, da solch eine Veröffentlichung in den Paketquellen nicht verfügbar ist.

Lösung:

As root:
mv /etc/apt/apt.conf.d/99openmediavault-release /root/
apt-get update

If no errors, delete the file:
rm /root/99openmediavault-release

Achtung!
Bei meiner Installation funktionierte anschliessend rewrite für webseiten nicht mehr.
(still pending)


the full story:
http://forums.openmediavault.org/index.php/Thread/8404-OMV-1-18-CRON-APT-Error-The-value-stable-is-invalid-for-APT-Default-Release-as-s/



Samstag, 11. April 2015

Mount USB-HDD at NAS and perform complete sync of NAS data

Create folder for mountpoint:

sudo mkdir /media/usbhdd


Look for harddisks and partitions:

fdisk -l


Check all existing mountpoints:

cat /etc/fstab


mount USB-HDD:

mount -t ntfs-3g -o rw /dev/sdd2 /media/usbhddbackup

(package ntfs-3g needs to be installed!! Otherwise the partition will be indicated as "windows basic data" and will be mounted as read-only!!)


sync data fron NAS to USB-HDD:

rsync -avzP --log-file=/tmp/rsync-status.txt /mnt/data/ /media/usbhdd/


check sync progress live:

tail -f /tmp/rsync-status.txt