@ kaju : No problem, do whatever you likekaju : ...would it be okay to make copy on my blog-site?
@ belder: That´s right - it´s kept in the flash configuration - if you want to reset it - copy the passwd-file from /etc to /etc/config and it will be the initial state.belder : Regarding this password problem,
after deinstallation and reinstalling the new ftpd,
it was not necessary to go again through the password installation process.
------------------------------------------------------------------------------------------------------------
And here comes the description how to add an external USB-disk:
------------------------------------------------------------------------------------------------------------
Attached is the software to add a usb-disk (or stick) to your HomeMatic - I tested it with a check 1GB-noName Stick, a 8GB IOMega MicroDrive and a FreeCom USB-Disk - but there is of course no guarantee for all possible USB-Devices.
Therefore we will first check (in this description), whether your device is recognized. If yes you can install the necessary software permanently.
The testing will be done working on the RAM-device - everything will be gone at reboot - so I see no possibility of blocking your homematic by wrong functionality.
But nevertheless this is experimental - so use at your own risk !!!
Let´s start: (you can copy and paste the commands - so you needn´t to enter everything by hand.)
The new device needs to be UNPLUGGED !
Change to our working-directory in the ram-disk:
Code: Alles auswählen
cd /var/tmp
Code: Alles auswählen
wget -O diskutils.tar.gz http://homematic-forum.de/forum/download/file.php?id=69
Code: Alles auswählen
tar -xzf diskutils.tar.gz
Code: Alles auswählen
export LD_LIBRARY_PATH=/var/tmp
OK - now we are prepared to check wether your usb-device is recognized:
for debugging purposes start the kernel-log daemon which will protocol some interesting infos to the log file:
Code: Alles auswählen
klogd
Code: Alles auswählen
tail -f /var/log/messages
you should see something similar (lot od SCSI-infos) like that in the second telnet-session:
Feb 11 17:40:49 (none) user.info kernel: usb 1-2: new full speed USB device using at91_ohci and address 4
Feb 11 17:40:50 (none) user.info kernel: usb 1-2: configuration #1 chosen from 1 choice
Feb 11 17:40:50 (none) user.info kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Feb 11 17:40:50 (none) user.debug kernel: usb-storage: device found at 4
Feb 11 17:40:50 (none) user.debug kernel: usb-storage: waiting for device to settle before scanning
Feb 11 17:40:55 (none) user.notice kernel: scsi 2:0:0:0: Direct-Access ST68022C F 0000 PQ: 0 ANSI: 0
Feb 11 17:40:55 (none) user.notice kernel: SCSI device sda: 15625008 512-byte hdwr sectors (8000 MB)
Feb 11 17:40:55 (none) user.notice kernel: sda: Write Protect is off
Feb 11 17:40:55 (none) user.debug kernel: sda: Mode Sense: 27 00 00 00
Feb 11 17:40:55 (none) user.err kernel: sda: assuming drive cache: write through
Feb 11 17:40:55 (none) user.notice kernel: SCSI device sda: 15625008 512-byte hdwr sectors (8000 MB)
Feb 11 17:40:55 (none) user.notice kernel: sda: Write Protect is off
Feb 11 17:40:55 (none) user.debug kernel: sda: Mode Sense: 27 00 00 00
Feb 11 17:40:55 (none) user.err kernel: sda: assuming drive cache: write through
Feb 11 17:40:55 (none) user.info kernel: sda1 sda2 sda3
Feb 11 17:40:55 (none) user.notice kernel: sd 2:0:0:0: Attached scsi removable disk sda
Feb 11 17:40:55 (none) user.debug kernel: usb-storage: device scan complete
change to the first telnet session and enter:
Code: Alles auswählen
ls -la /dev/sd*
brw-rw---- 1 root root 8, 0 Feb 11 17:40 /dev/sda
brw-rw---- 1 root root 8, 1 Feb 11 17:40 /dev/sda1
brw-rw---- 1 root root 8, 2 Feb 11 17:40 /dev/sda2
brw-rw---- 1 root root 8, 3 Feb 11 17:40 /dev/sda3
the device /dev/sda is your disk and sda1-3 the recognized partitions (which you will have to delete)
next we have to load to external kernel modules to be able to use the linux ext2-filesystem:
Code: Alles auswählen
insmod mbcache.ko
insmod ext2.ko
if there are error messages - please change to your second telnet session and copy the appearing error-messages (they can help us to analyze the problem (post it in the forum)
now we have to prepare the disk by creating linux-partitions, enter:
Code: Alles auswählen
./fdisk /dev/sda
enter 'p' - this will show the already existing partitions - to be on the save side delete all of then be entering 'd' and the number of the partition
when all partitions are delete create one or more new partition by entering 'n'- the number of the new partition the starting cylinder (take the default;-) and the size e.g. +1024M one giga.
so if your are ready - check the partitions with 'p' and write the table to the disk with 'w'.
the next step is to format the partitions by:
Code: Alles auswählen
./mke2fs /dev/sda1
check the access to the partitions:
Code: Alles auswählen
mkdir /var/disk1
mount /dev/sda1 /var/disk1
Till now, most of the work is done - the disk is prepared and accessible - but when we reboot everything (but not the disk is gone - so we have to install the kernel-modules at bootup.
This can be done by the second tar-file disk_install.tar.gz it´s nearly the same solution like the ftp-daemon (copy the software to /etc/config/asoft and install a startscript in rc.d) so just install it from the HomeMatic UI "Zusatzsoftware".
(the install - routine is written for one disk with one partition - it can bes easily extended - if you are not sure how - just ask.
To install this script let´s reboot by entering
Code: Alles auswählen
reboot
After installation - you will find your disk in /var/disk1 - that´s it ...
Enjoy
Alex