02-17-2011 04:11 AM
Looks like ecryptfs instead of LUKS:
@exec("/bin/mount -n --bind -t ecryptfs /".$this -> volume_name . "/" . $this -> share_name . " " .
$this -> sys_var['share_root'] . "/" . $this -> share_name." -o ".
"key=passphrase:passwd=`cat " . $this -> sys_var['usb_key_path'] . "/" . $this -> keyFileName ." | hexdump | head -n 1 | sed 's/\ //g'`" .
",ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecrypt fs_passthrough=y,no_sig_cache >> /tmp/eCryptfs.log 2>&1 ");
My NAS right now produces laughable speeds of 2.5 MB/s (25mbit/s) in a gigabit network. I think ecryptfs is the culprit, i ran some tests and it takes up to 80% cpu when I try to FTP large files. under debian, LUKS sounds more reasonable, right?
I'll save all this stuff (php files, webroot, etc). My aim is to install debian and reproduce the UI, with some improvement, including more control over encrypted drives. I wonder if we have Seagate's blessing, hacking their NAS like this.
I ask this because I just got a love letter from Sony/hacked ps3. either way, this is another story
I'll keep you guys posted.
A.P
02-17-2011 11:41 AM
ArrowP -
Don't want to Hijack this awesome thread - but just a side note.
That Sony Love Letter about Hacked PS3's, they can only BAN you from using the PSN (Play Station Network) Because of the "Service Agreement Contract" that you signed when you accepted the terms to join the network. They can't do anything else other then Voiding your Warranty Agreement, and offering No Support to you if you are using a Hacked PS3. So If you want to play hacked games but not on their Network - you can do that.
In the Case of Seagate and the NAS line - what are they going to do, come and take away the NAS? Only thing they might do is Perhaps BAN the NAS from accessing their "Global Seagate Service" if it's in the "Service Agreement Contract" when you register an account with the service and also offer No Support and Void the Warranty. That's about it.
02-17-2011 12:14 PM
ArrowP,
I'm quite sure that they use LUKS. But prove me wrong ![]()
The SG NAS is composed of GPL software. According to the license, SG publishes the source code on the web. To install my SP, no copy protection scheme or cryptographic system needs to be compromised.
Hajo
02-18-2011 01:45 PM - edited 02-22-2011 05:48 AM
Dear Hajo,
For some stupid reason i left "Auto update ON" and now the device shows 1000.1211 as the fw running. I had moved oll the data from NAS to another disk and wiped the original drive to restore Public folder with all permissions( Public folder has been erased for some time). I even downgraded the fw from:1211 to 0361 and restored the drive to original factory config. But your custom FW will not load in any case. Could it be because the new FW 1211? If that so could you spare some time to patch?
I have also cloned the drive to have something to play with. Now I'm downloading a Linux distro to install on an old pc and mount the cloned drive. Tell me if i extract manually from your FW to HDD will it be enough?
Thank you in advance !!
02-18-2011 02:29 PM
Cybermaxx:
off topic
yes i know, but sony is pushing too far on this subject. my ps3 has been sitting idle for weeks, i never play online. the only thing i do online is hulu-plus. and i have no reason to lie, i dont have a single 'pirate' game on my ps3, i just did this jailbreak because... huh... i can. anyway, this raised too many privacy concerns on my end, so i decided to completely unplug my ps3
/offtopic
Hajo: i'm gonna load debian now, and lets see. i found mention to both luks and ecryptfs, but more of the latter.
02-18-2011 09:30 PM
Dear Hajo,
First i would like to say thanks for all your efforts in this forum.
I have a question about the Marvel SOC, did you try to boot from USB and can it be used instead of booting from NAND?
Thank you in advance.
02-20-2011 08:28 AM - edited 02-20-2011 08:30 AM
tibanu,
I think it should be possible to boot from USB. I haven't tried it, though.The NAS uses the U-Boot bootloader. I suggest to netboot the system (TFTP/NFS) if you want to try different kernels or root filesystems.
Hajo
Marvell>> help usb
usb usb stop [f] - stop USB [f]=force stop
usb tree - show USB device tree
usb info [dev] - show available USB devices
usb storage - show details of USB storage devices
usb dev [dev] - show or set current USB storage device
usb part [dev] - print partition table of one or all USB storage devices
usb read addr blk# cnt - read `cnt' blocks starting at block `blk#'
to memory address `addr'
Marvell>> help usbboot
usbboot loadAddr dev
art
02-22-2011 05:38 AM - edited 02-22-2011 05:50 AM
For some stupid reason i left "Auto update ON" and now the device shows 1000.1211 as the fw running. I had moved oll the data from NAS to another disk and wiped the original drive to restore Public folder with all permissions( Public folder has been erased for some time). I even downgraded the fw from:1211 to 0361 and restored the drive to original factory config. But your custom FW will not load in any case. Could it be because the new FW 1211? If that so could you spare some time to patch?
I have also cloned the drive to have something to play with. Now I'm downloading a Linux distro to install on an old pc and mount the cloned drive. Tell me if i extract manually from your FW to HDD will it be enough?
Thank you in advance !!
02-22-2011 07:19 AM
tibanu,
my SP will only install if the rootfs image can be found at the correct location. Try
ls -l /DataVolume/Public/custom-rootfs_full.tar.gz
ls -l /DataVolume/Public/custom-rootfs_full.tar.gz.md5
after uploading the image files. There shouldn't be an error.
If things still don't work, execute
/usr/sbin/nanddump -o -b -f /DataVolume/Public/mtd2s4000.img -s 0x4000 /dev/mtd2
and send me the file mtd2s4000.img (preroot img) via private email.
Hajo
02-24-2011 02:13 PM - edited 02-24-2011 09:17 PM
Pfff..i had some trouble to figure out what happened...but Hajo helped me.....i download the files though workplace Proxy, witch first download the files scanned them and then sent them to me..of course altered....MD5 sum weren't equal to file sum. After that all goes well. Except the HDD used for install was a 250 Gb drive. Can't figure what happened but parted -l
And parted /dev/sda print shows:
debian-armel:~# parted /dev/sda printModel: Seagate ST3250310AS (scsi)Disk /dev/sda: 250GBSector size (logical/physical): 512B/512BPartition Table: gpt
Number Start End Size File system Name Flags 1 100MB 1169MB 1069MB ext3 raid 2 1169MB 2239MB 1070MB linux-swap raid 3 2239MB 2773MB 534MB ext3 raid 4 2773MB 250GB 247GB primary raid
I cannot mount datavolume.....need help !!
©2012 Seagate Technology LLC