|
Post by brenner on Jan 30, 2008 16:38:26 GMT 7
1.) I´d like to see a simple function that I can connect a USB/eSata HDD and must just click on a button in the Webfrontend so that I can copy or synchroniezed the data on the N5200 to a external HDD.
2.) Next good thing, that I can format a external HDD over the WebFrontEnd with ext3.
3.) Make nsync compatibel to external HDD, not only to FTP or other N5200.
4.) Implementing TrueCrypt.
|
|
|
Post by omega on Jan 30, 2008 16:49:25 GMT 7
Hi brenner, I've almost finished a new module called CRYPTO, which does some of your items - but only from the command line.... BTW, it was you who inspired me to create that module With cryptool, the new script, you can format a partition as an encrypted ext3 filesystem, mount it and unmount it. The command to create a encrypted ext3 partition is quite simple: cryptool create /dev/sdf1 To mount it: cryptool mount /dev/sdf1 /your/mount/point To unmount it: cryptool umount /your/mount/point For syncing data from the hard disk to USB disk, just use rsync (the module already exists). The command would be something like this: rsync -a /raid/data/folder_to_be_saved /your/mount/point
There are several options for rsync you should consider, e.g. a option which controls if files not available in the source directory should be deleteed in the destination directory (which you would take if you want to do exact synchronisation). Thie option is "--delete". But read the manuals.... BTW, the rsync program copies only data which has changed so it is very efficient... Are you still interested? Andreas
|
|
|
Post by brenner on Jan 30, 2008 19:19:39 GMT 7
Hello Andreas,
I love your wonderfull answers ;D
How strong is the encryption? How can I set up a password and is it readable or mountable ob a other LinuxPC?
Thanks for the rsync description.
|
|
|
Post by omega on Jan 30, 2008 20:17:16 GMT 7
Hi brenner, I'm using dm-crpt which should be installed by default on every "standard" Linux distribution or at least can be installed on demand. So of course the partition can be mounted on every other Linux machine. In order to ease the handling of mounting and unmounting the partitions you should use cryptool on the other Linux machines as well although it is not required as you can do that manually using cryptsetup too. One thing worth to be noted: my script is also able to work with so called "container" files. This means, you don't need to crypt a partition, you just create a plain file (let's say with 2 GB) and this file acts like a partition. The file will be then formatted as an encrypted ext3 filesystem and you loop mount that file. My script works with raw partitions AND with this container files. So it could be more advantagerous to have one or several container files on an unencrypted partition and you can use your USB device for unencrypted and encrypted data. The encryption is very secure, please read more in the documentation of dm-crypt. There is one drawback: performance. The N5200 is not too strong and I made a small performance test. IÄ've connected an USB stick with 4 GB to my N5200 and one time I've created an unencrpted ext3 partition and the other time an encrypted ext3 partition. Here are the results: unencrypted: write a 1 GB file in 167 sec = 6.1 MiB/sec encrypted: write a 1 GB file in 248 sec = 4.1 MiB/sec Take into account that the absolute throughput values are not too important as the USB stick is much slower as USB hard disks. But from that numbers I assume that the throughput will decrease by about 30%. Andreas
|
|
|
Post by brenner on Jan 31, 2008 16:34:03 GMT 7
Hello Andreas, tomorrow I will get two new 1TB external HDDs with USB & eSata. Hope the will work. I will test it with and without encryption and so we can see how "slow" it really is With esata copy the N5200 was on 100% CPU, so it is logical that the speed must go down with encryption. We will see.... edit: Where can I get your new moduls?
|
|
|
Post by omega on Feb 1, 2008 15:45:57 GMT 7
The new module is called CRYPTO and is available at the Thecus Wiki. Check it out, have fun and please report your experiences.... Andreas
|
|
|
Post by brenner on Feb 1, 2008 16:18:36 GMT 7
I will test it soon, my new external storage is here and in the moment I test the nativ performance with usb and esata.
|
|
|
Post by brenner on Feb 1, 2008 17:10:19 GMT 7
|
|
|
Post by omega on Feb 1, 2008 17:11:55 GMT 7
it works for me, just tried.... Try again? Andreas
|
|
|
Post by brenner on Feb 1, 2008 17:44:08 GMT 7
root@127.0.0.1:~# cryptool create /raid0/data/usbhdd/usb/sdf5/container 8000
--------------------------------------------------------------------------- Creating filesystem container file '/raid0/data/usbhdd/usb/sdf5/container' with size 8000 MB ---------------------------------------------------------------------------
--------------------------------------------------------------------------- Crypto format /dev/loop0 ---------------------------------------------------------------------------
WARNING! ======== This will overwrite data on /dev/loop0 irrevocably.
What he wants from me?
|
|
|
Post by omega on Feb 1, 2008 18:00:17 GMT 7
The program wants that you type: YES (btw. you forgot to quote the question ). So here is an example log when I do what you're trying to do: root@127.0.0.1:~# cryptool create /raid/data/xyz.crypto 50
--------------------------------------------------------------------------- Creating filesystem container file '/raid/data/xyz.crypto' with size 50 MB ---------------------------------------------------------------------------
--------------------------------------------------------------------------- Crypto format /dev/loop0 ---------------------------------------------------------------------------
WARNING! ======== This will overwrite data on /dev/loop0 irrevocably.
Are you sure? (Type uppercase yes): YES Enter LUKS passphrase: Verify passphrase: Command successful.
--------------------------------------------------------------------------- Crypto open /dev/loop0 --------------------------------------------------------------------------- Enter LUKS passphrase: key slot 0 unlocked. Command successful.
--------------------------------------------------------------------------- Creating filesystem on crypto device /dev/loop0 --------------------------------------------------------------------------- mke2fs 1.40.2 (12-Jul-2007) Filesystem label= OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) 12544 inodes, 50172 blocks 0 blocks (0.00%) reserved for the super user First data block=1 Maximum filesystem blocks=51380224 7 block groups 8192 blocks per group, 8192 fragments per group 1792 inodes per group Superblock backups stored on blocks: 8193, 24577, 40961
Writing inode tables: done Creating journal (4096 blocks): done Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 20 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override.
--------------------------------------------------------------------------- Closing /dev/loop0 ---------------------------------------------------------------------------
SUCCESS: created crypted filesystem on /dev/loop0 root@127.0.0.1:~#
You need to input this: 1) Answer first question with YES 2) You're asked three times for the password - please enter three times the same password. Andreas
|
|
|
Post by brenner on Feb 1, 2008 19:12:54 GMT 7
Now I can say something about the performance with: -Thecus N5200BR Pro -Western Digital My Book Office Edition 1000GB (WDH1B10000E) -Crypto Modul v.2.00.00 I take files of different size, summary 5491MB. The Thecus runs with 5x500GB in Raid6. USB without Crypto:N5200 -> USB = 23,0 MB/s USB -> N5200 = 20,5 MB/s USB with Crypto:N5200 -> USB = 15,25 MB/s USB -> N5200 = 14,22 MB/s eSata without Crypto:N5200 -> eSata = 22,05 MB/s eSata -> N5200 = 29,52 MB/s eSata with Crypto:N5200 -> eSata = 21,96 MB/s eSata -> N5200 = 22,41 MB/s The two data I must test later, now I must go to work. Update an complex taxprogramm edit: SMB Network Copy without Crypto: N5200 Raid6 -> GigaBit XP= 12,62 MB/s GigaBit XP-> N5200 Raid6 = 13,90 MB/s
|
|
|
Post by gideon007 on Feb 1, 2008 19:30:44 GMT 7
There is something missing here
|
|
|
Post by brenner on Feb 1, 2008 23:40:10 GMT 7
Just read the last post intensiv (at the end)
|
|
|
Post by brenner on Feb 2, 2008 0:05:27 GMT 7
Sooo, there are the USB values. It seems much more slower than esata. Now I make two full backups of my data tonight and then I will change my Raid6 in Raid5 with HotSpare Drive and test the performance again. edit: First I will update the data above with Network Copy data edit2: Nice blinking ;D de.youtube.com/watch?v=tvWGxkofNyw
|
|