Reply
Regular Visitor
ArrowP
Posts: 4
Registered: ‎02-16-2011
0

Re: Install Debian GNU/Linux 5.0.7 (Lenny) on the Blackarmor 220 NAS - Solution

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,ecryptfs_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

Gigabyte
CyberMaxX
Posts: 193
Registered: ‎04-06-2010
0

Re: Install Debian GNU/Linux 5.0.7 (Lenny) on the Blackarmor 220 NAS - Solution

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.

 

:smileyhappy: 

Kilobyte
Hajo
Posts: 54
Registered: ‎08-13-2010
0

Re: Install Debian GNU/Linux 5.0.7 (Lenny) on the Blackarmor 220 NAS - Solution

 

ArrowP,

 

I'm quite sure that they use LUKS. But prove me wrong :smileyhappy:

 

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

 


+++ Please do not Private Message me with questions that can equally well be posted in the forums, and may also help others. A forum search will very often produce an answer for your question +++
Kilobyte
taka_ozo
Posts: 26
Registered: ‎03-19-2010
0

Re: Install Debian GNU/Linux 5.0.7 (Lenny) on the Blackarmor 220 NAS - Solution

[ Edited ]

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 !!

 

Regular Visitor
ArrowP
Posts: 4
Registered: ‎02-16-2011
0

Re: Install Debian GNU/Linux 5.0.7 (Lenny) on the Blackarmor 220 NAS - Solution

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.

Byte
tibanu
Posts: 4
Registered: ‎02-18-2011
0

Re: Install Debian GNU/Linux 5.0.7 (Lenny) on the Blackarmor 220 NAS - Solution

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.

Kilobyte
Hajo
Posts: 54
Registered: ‎08-13-2010
0

Re: Install Debian GNU/Linux 5.0.7 (Lenny) on the Blackarmor 220 NAS - Solution

[ Edited ]

 

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:smileytongue:art


+++ Please do not Private Message me with questions that can equally well be posted in the forums, and may also help others. A forum search will very often produce an answer for your question +++
Byte
tibanu
Posts: 4
Registered: ‎02-18-2011
0

Re: Install Debian GNU/Linux 5.0.7 (Lenny) on the Blackarmor 220 NAS - Solution

[ Edited ]

 

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 !!

 

Kilobyte
Hajo
Posts: 54
Registered: ‎08-13-2010
0

Re: Install Debian GNU/Linux 5.0.7 (Lenny) on the Blackarmor 220 NAS - Solution

 

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

 


+++ Please do not Private Message me with questions that can equally well be posted in the forums, and may also help others. A forum search will very often produce an answer for your question +++
Byte
tibanu
Posts: 4
Registered: ‎02-18-2011
0

Re: Install Debian GNU/Linux 5.0.7 (Lenny) on the Blackarmor 220 NAS - Solution

[ Edited ]

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

shows this:
 
debian-armel:~# parted -l
 
Model: Seagate ST3250310AS (scsi)
 
Disk /dev/sda: 250GB
 
Sector size (logical/physical): 512B/512B
 
Partition 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
Model: Unknown (unknown)
Disk /dev/md1: 1070MB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Number  Start  End     Size    File system  Flags
 1      0.00B  1070MB  1070MB  linux-swap
Model: Unknown (unknown)
Disk /dev/md2: 534MB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Number  Start  End    Size   File system  Flags
 1      0.00B  534MB  534MB  ext3
Model: Unknown (unknown)
Disk /dev/md0: 1069MB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Number  Start  End     Size    File system  Flags
 1      0.00B  1069MB  1069MB  ext3
Error: /dev/mtdblock6: unrecognised disk label
Error: /dev/mtdblock5: unrecognised disk label
Error: /dev/mtdblock4: unrecognised disk label
Error: /dev/mtdblock3: unrecognised disk label
Error: /dev/mtdblock2: unrecognised disk label
Error: /dev/mtdblock1: unrecognised disk label
Error: /dev/mtdblock0: unrecognised disk label


And parted /dev/sda print shows:

 

debian-armel:~# parted /dev/sda print
Model: Seagate ST3250310AS (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition 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

 

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 !!