OK guys, I finally gave up on trying to make this work on my 2Big Network 2 without error on OS X, so I deleted all my previous posts.
I downloaded Ubuntu 12.04LTS and am running it in a Fusion 6 VM on the Mac.
After making script with sudo, script output:
chris@ubuntu:~/Working$ sudo ./create_capsule.sh
[sudo] password for chris:
-------------------------------------------------
Custom Capsule Creator Script v7
-------------------------------------------------
Analysing your system:
- directory exists ..........no
Do you want to create '/home/chris/Working/lacie' directory? [y/n]: y
OK (done)
- lzma installed ..........yes (/usr/bin/lzma)
- wget installed ..........yes (/usr/bin/wget)
- sha1sum installed ..........yes (/usr/bin/sha1sum)
- tar installed ..........yes (/bin/tar)
- curl installed ..........yes (/usr/bin/curl)
- LaCie hardware: ..........not found
- LaCie firmware version: ..........not found
Choose what to customize:
- Choose LaCie hardware you want to customize:
1. Network Space 2
2. Network Space MAX
3. d2 Network 2
4. 2big Network 2
5. 5big Network 2
Choose one option: 4
- Choose original capsule version to download and customize:
1. Version 1.2.6
2. Version 1.3.3
3. Version 1.3.6
4. Version 2.0.5
5. Version 2.0.6
6. Version 2.1.3
7. Version 2.2.3
8. Version 2.2.7
9. Version 2.2.8
10. Version 2.2.8.3
11. Version 2.2.9.1
12. Version 2.2.9.2
13. Version 2.2.9.3
Choose one option: 13
- Do you want to have root access? [y/n]: y
- Do you want to access TwonkyMedia server web configuration and browse? [y/n]: n
- Do you want to access Transmission Web Interface? [y/n]: n
- Do you want to secure access from a external network? [y/n]: n
Downloading original capsule:
- Downloading 2big Network 2 2.2.9.3 capsule
OK (already downloaded)
Extracting capsule:
- Extracting original (2.2.9.3) capsule ..........OK (done)
- Unpacking original (2.2.9.3) capsule tarball ..........OK (done)
- Unpacking original (2.2.9.3) rootfs tarball (can take up to 5 minutes) ..........OK (done)
Duplicating capsule:
- Duplicating to custom (2.2.9.3.1) capsule folder ..........OK (done)
- Duplicating to custom (2.2.9.3.1) rootfs folder (can take up to 3 minutes) ..........OK (done)
Customizing capsule:
- Enabling root access:
- Enabling sshd in default.runlevel .......... OK (done)
- Downloading custom 'sshd.i'
--2014-03-05 10:30:20--
http://downloads.lacie.nas-central.org/ ... sshd.i.txt
Resolving downloads.lacie.nas-central.org (downloads.lacie.nas-central.org)... 140.211.169.172
Connecting to downloads.lacie.nas-central.org (downloads.lacie.nas-central.org)|140.211.169.172|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2077 (2.0K) [text/plain]
Saving to: `rootfs_2bignetwork2_2.2.9.3.1/etc/initng/sshd.i'
100%[===================================================================================================================================================================>] 2,077 --.-K/s in 0.004s
2014-03-05 10:30:23 (481 KB/s) - `rootfs_2bignetwork2_2.2.9.3.1/etc/initng/sshd.i' saved [2077/2077]
OK (done)
Packing capsule:
- Packing custom (2.2.9.3.1) rootfs tarball (can take up to 30 minutes, depending on compression level) ..........OK (done)
- Changing custom capsule description:
- Original 'rootfs.tar.lzma' sha1sum: 74c58ad79f8572e8837984feeb98525cb480a56c
- New 'rootfs.tar.lzma' sha1sum: ef98f53e0e574c1ca826f084052fe56be339754b
- Replacing sha1sum in 'description.xml'
- Replacing capsule version with new capsule version in 'description.xml' ..........OK (done)
- Adding 2.2.9.3 version to upgradeble versions ..........OK (done)
- Updating 'description.sha1' ..........OK (done)
- Rebuilding capsule file ..........OK (done)
---------------------------------------------
New capsule built: '/home/chris/Working/lacie/2bignetwork2_2.2.9.3.1.capsule'
After upgrading you can:
- use SSH/SFTP with root privileges with your Lacie NAS with login 'root' (login: root | password: [same as admin password] | Port: 2222)
chris@ubuntu:~/Working$
Did factory reset (to 1.2.5), factory updates using LNA to 2.2.8 then 2.2.9.3. Using “Share/Update” folder to upgrade to 2.2.9.3.1, this is the info from unicorn_core.log:
Mar 5 10:51:07 NetRAID [INFO update.check_for_capsule@70] capsule found: /media/internal_1/shares/1/Update/2bignetwork2_2.2.9.3.1.capsule
Mar 5 10:51:07 NetRAID [DEBUG capsule.extract@254] extract files from /media/internal_1/shares/1/Update/2bignetwork2_2.2.9.3.1.capsule
Mar 5 10:51:17 NetRAID [DEBUG capsule.check@161] check SHA-1 hash of /capsule/description.xml
Mar 5 10:51:17 NetRAID [DEBUG capsule.parse@186] parse XML
Mar 5 10:51:18 NetRAID [DEBUG capsule.check@161] check SHA-1 hash of /capsule/repository/bootfs.tar.lzma
Mar 5 10:51:18 NetRAID [DEBUG capsule.check@161] check SHA-1 hash of /capsule/uImage
Mar 5 10:51:18 NetRAID [DEBUG capsule.check@161] check SHA-1 hash of /capsule/exec/pre_exec/checkLogSize.sh
Mar 5 10:51:18 NetRAID [DEBUG capsule.check@161] check SHA-1 hash of /capsule/exec/pre_exec/updateBootfsLib.sh
Mar 5 10:51:18 NetRAID [DEBUG capsule.check@161] check SHA-1 hash of /capsule/exec/post_exec/cleanupLegacyFiles.sh
Mar 5 10:51:18 NetRAID [DEBUG capsule.check@161] check SHA-1 hash of /capsule/repository/uImage
Mar 5 10:51:19 NetRAID [DEBUG capsule.check@161] check SHA-1 hash of /capsule/exec/pre_exec/removeOldFiles.sh
Mar 5 10:51:19 NetRAID [DEBUG capsule.check@161] check SHA-1 hash of /capsule/repository/rootfs.tar.lzma
Mar 5 10:51:25 NetRAID [DEBUG capsule.check@170] original hash = ef98f53e0e574c1ca826f084052fe56be339754b
Mar 5 10:51:25 NetRAID [DEBUG capsule.check@171] computed hash = e262e5ed227a8569d188c8609754626c552ce0cc
Mar 5 10:51:25 NetRAID [ERROR update.decapsule@101] an error occured when decapsuling
Mar 5 10:51:25 NetRAID Traceback (most recent call last):
Mar 5 10:51:25 NetRAID File "/usr/lib/python2.6/site-packages/unicorn/system/update.py", line 97, in decapsule
Mar 5 10:51:25 NetRAID capsule.extract()
Mar 5 10:51:25 NetRAID File "/usr/lib/python2.6/site-packages/unicorn/system/capsule.py", line 261, in extract
Mar 5 10:51:25 NetRAID self.__check_files()
Mar 5 10:51:25 NetRAID File "/usr/lib/python2.6/site-packages/unicorn/system/capsule.py", line 332, in __check_files
Mar 5 10:51:25 NetRAID CapsuleFile(os.path.join(self.directory, filename)).check(hash_val)
Mar 5 10:51:25 NetRAID File "/usr/lib/python2.6/site-packages/unicorn/system/capsule.py", line 172, in check
Mar 5 10:51:25 NetRAID raise CapsuleHashException('file %s has a bad hash' % self.filename)
Mar 5 10:51:25 NetRAID CapsuleHashException: file /capsule/repository/rootfs.tar.lzma has a bad hash
Mar 5 10:51:25 NetRAID [DEBUG module.stop_modules@397] Stopping unicorn.jobs
Using LNA to upgrade: No detection in log of update capsule, no update performed, it said "could not update" (obviously)
Factory reset to 1.2.5, factory update using LNA to 1.3.7, using “Share/Update” folder to upgrade to 2.2.9.3.1, output from unicorn.log (no unicorn_core.log on 1.3.7):
Mar 5 01:47:24 LaCie-2big [INFO update.scan@79] capsule found: /media/internal_1/shares/1/Update/2bignetwork2_2.2.9.3.1.capsule
Mar 5 01:47:24 LaCie-2big [DEBUG capsule.extract@262] extract files from /media/internal_1/shares/1/Update/2bignetwork2_2.2.9.3.1.capsule
Mar 5 01:47:46 LaCie-2big [DEBUG capsule.check@170] check SHA-1 hash of /capsule/description.xml
Mar 5 01:47:46 LaCie-2big [DEBUG capsule.parse@194] parse XML
Mar 5 01:47:46 LaCie-2big [DEBUG capsule.check@170] check SHA-1 hash of /capsule/repository/bootfs.tar.lzma
Mar 5 01:47:46 LaCie-2big [DEBUG capsule.check@170] check SHA-1 hash of /capsule/uImage
Mar 5 01:47:46 LaCie-2big [DEBUG capsule.check@170] check SHA-1 hash of /capsule/exec/pre_exec/checkLogSize.sh
Mar 5 01:47:46 LaCie-2big [DEBUG capsule.check@170] check SHA-1 hash of /capsule/exec/pre_exec/updateBootfsLib.sh
Mar 5 01:47:46 LaCie-2big [DEBUG capsule.check@170] check SHA-1 hash of /capsule/exec/post_exec/cleanupLegacyFiles.sh
Mar 5 01:47:46 LaCie-2big [DEBUG capsule.check@170] check SHA-1 hash of /capsule/repository/uImage
Mar 5 01:47:46 LaCie-2big [DEBUG capsule.check@170] check SHA-1 hash of /capsule/exec/pre_exec/removeOldFiles.sh
Mar 5 01:47:46 LaCie-2big [DEBUG capsule.check@170] check SHA-1 hash of /capsule/repository/rootfs.tar.lzma
Mar 5 01:47:56 LaCie-2big [DEBUG capsule.check@178] original hash = ef98f53e0e574c1ca826f084052fe56be339754b
Mar 5 01:47:56 LaCie-2big [DEBUG capsule.check@179] computed hash = e262e5ed227a8569d188c8609754626c552ce0cc
Mar 5 01:47:57 LaCie-2big [ERROR update.decapsule@91] an error occured when decapsuling
Mar 5 01:47:57 LaCie-2big Traceback (most recent call last):
Mar 5 01:47:57 LaCie-2big File "/usr/lib/python2.6/site-packages/unicorn/system/update.py", line 87, in decapsule
Mar 5 01:47:57 LaCie-2big capsule.extract()
Mar 5 01:47:57 LaCie-2big File "/usr/lib/python2.6/site-packages/unicorn/system/capsule.py", line 268, in extract
Mar 5 01:47:57 LaCie-2big self.__check_files ()
Mar 5 01:47:57 LaCie-2big File "/usr/lib/python2.6/site-packages/unicorn/system/capsule.py", line 332, in __check_files
Mar 5 01:47:57 LaCie-2big CapsuleFile (os.path.join (self.directory, filename)).check (hash)
Mar 5 01:47:57 LaCie-2big File "/usr/lib/python2.6/site-packages/unicorn/system/capsule.py", line 180, in check
Mar 5 01:47:57 LaCie-2big raise CapsuleHashException ('file %s has a bad hash' % self.filename)
Mar 5 01:47:57 LaCie-2big CapsuleHashException: file /capsule/repository/rootfs.tar.lzma has a bad hash
In both cases the same hash issue occurs; I was thinking it may be a difference in tar, lama or sha1sum from 2.2.8 to 1.3.7 but this proves not.
So, are the tar, lzma or sha1sum not right on Ubuntu 12.04LTS? How can I get the right ones if the OS doesn't have the right ones? Please help!
P.S. I know I said earlier that I did get root access, but I have 2 x 2Big Netowrk 2's and this is the result on both so I have no idea how I got root before really.