General NAS-Central Forums

Welcome to the NAS community
It is currently Sat Aug 19, 2017 12:55 pm

All times are UTC




Post new topic Reply to topic  [ 52 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
PostPosted: Sat Aug 06, 2011 5:55 pm 
Offline

Joined: Sun Jul 31, 2011 9:32 am
Posts: 7
Hi experts,

FACT: I've bricked my NAS. With honor.

I've tried to unbrick it by deleting it all and reinstall with some low-level commands, using the appropriated wiki page: Installing firmware_on_a_new_disk_(Network_space_2).
I did it all, by using either 1.2.6 files or 1.0.2 ones.
The NAS didn't care ; when powered on, its blue light blinks after a few seconds.

And I'm actually thinking that, after my NAS is back on track again (I sincerely think it will, with your help huh!), I will need to do some nasty stuff in it (activate root ssh, newsgroups client, etc, etc).

SO: Would there be anyone here with enough courage/love/compassion for him to share with me its gzipped NAS partitions so that I can use them as source for rewriting mine?
Ideally, these gzipped NAS partitions would match a SSH-enabled NAS so that I won't have to hack/brink it again? :-)

Thanks for the courage/love/compassion,
A NAS lover

_________________
Unbrick a Bricked Lacie Network Space 2


Top
 Profile  
 
PostPosted: Sun Aug 07, 2011 11:37 am 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6022
How did you brick it? What happens when you follow the Wiki directions using the 1.0.2 images? (not the 1.2.6 ones, they are stored differently, and should be restored accordingly)
  • Does the disk spin up
  • Does it request an IP address? (logfiles router)
  • Can you ping the box
  • What does a portscan say


Top
 Profile  
 
PostPosted: Sun Aug 07, 2011 2:26 pm 
Offline

Joined: Sun Jul 31, 2011 9:32 am
Posts: 7
What I did:

  1. I first tried to SSH it, couldn't, installed a telnet deamon, could connect using telnet, restarted the NAS, then could neither telnet it nor access its web admin console ;
  2. So I repartitioned it entirely with fdisk using this tutorial ;
  3. I filled the partitions with the gzipped files (1.2.6 files or 1.0.2 ones) ;
  4. But once the NAS reassembled, both the network and power cables connected, it doesn't want to start as it did before.

Some answers:

  • Does the disk spin up yes it does
  • Does it request an IP address? (logfiles router) can't access, my rooter is from my ISP - don't have access to its logs
  • Can you ping the box no
  • What does a portscan say didn't try since can't ping
  • What does the LED do? after 10s, the blue LED blinks up and down every 1s

Some more details:

Code:
ubuntu:~# cat /proc/partitions

major minor  #blocks  name

   7        0    4857856 loop0
   8        0  976762584 sda
   8        1          1 sda1
   8        2  974751907 sda2
   8        5     255984 sda5
   8        6       7008 sda6
   8        7       7008 sda7
   8        8     850421 sda8
   8        9     874518 sda9
   8       10       7008 sda10
   8       16  120627360 sdb
   ...


Code:
ubuntu:~# fdisk /dev/sda
Command (m for help): p

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         250     2008093+   5  Extended
/dev/sda2             251      121601   974751907+  83  Linux
/dev/sda5               1          32      255984+  82  Linux swap / Solaris
/dev/sda6              33          33        7008+  83  Linux
/dev/sda7              34          34        7008+  83  Linux
/dev/sda8              35         140      850421   83  Linux
/dev/sda9             141         249      874518+  83  Linux
/dev/sda10            250         250        7008+  83  Linux


Thanks Mijzelf, your help is very appreciated!

_________________
Unbrick a Bricked Lacie Network Space 2


Top
 Profile  
 
PostPosted: Sun Aug 07, 2011 3:47 pm 
Offline

Joined: Sun Jul 31, 2011 9:32 am
Posts: 7
Well, I restarted the whole procedure so that I'm sure that I didn't miss or mixed anything up.
I created an automated bash script that reformats the whole Lacie NS2 for me. You will find it just below.
I also attached my associated logs.

Automated Lacie NS2 reformatting bash script:
Code:
./reformat_ns2 /dev/sda    # WARNING: use the correct partition here!

Code:
#!/bin/bash

echo "Installing mbr"
echo "--------------"
dd if=mbr of=$1
echo " -> DONE"

echo "Formatting HD (1/2)"
echo "-------------------"
fdisk $1 >/dev/null <<EOF
d
10
d
9
d
8
d
7
d
6
d
5
d
2
w
EOF
echo " -> DONE"

echo "Formatting HD (2/2)"
echo "-------------------"
fdisk $1 >/dev/null <<EOF
n
p
2


n
l

32
t
5
82
n
l

33
n
l

34
n
l

140
n
l

249
n
l


w
EOF
echo " -> DONE"

echo "HD formatted!"
echo "-------------"
fdisk $1 <<EOF
p
q
EOF

echo "Downloading partition images"
echo "----------------------------"
wget "http://downloads.lacie.nas-central.org/Users/Mijzelf/Networkspace2/1.0.2/sda6.gz"
wget "http://downloads.lacie.nas-central.org/Users/Mijzelf/Networkspace2/1.0.2/sda7.gz"
wget "http://downloads.lacie.nas-central.org/Users/Mijzelf/Networkspace2/1.0.2/sda8.gz"
wget "http://downloads.lacie.nas-central.org/Users/Mijzelf/Networkspace2/1.0.2/sda9.gz"
wget "http://downloads.lacie.nas-central.org/Users/Mijzelf/Networkspace2/1.0.2/sda10.gz"
echo " -> DONE"

echo "Installing partition images"
echo "---------------------------"
gzip -dc sda6.gz | dd of=${1}6
gzip -dc sda7.gz | dd of=${1}7
gzip -dc sda8.gz | dd of=${1}8
gzip -dc sda9.gz | dd of=${1}9
gzip -dc sda10.gz | dd of=${1}10
echo " -> DONE"

echo "Make swap partition"
echo "-------------------"
mkswap ${1}5
echo " -> DONE"

echo "Format partition 2"
echo "------------------"
apt-get install xfsprogs
mkfs.xfs ${1}2
echo " -> DONE"


My own associated log file:

Code:
Installing mbr
--------------
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.00050981 s, 1.0 MB/s
 -> DONE
Formatting HD (1/2)
-------------------

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
         switch off the mode (command 'c') and change display units to
         sectors (command 'u').
 -> DONE
Formatting HD (2/2)
-------------------

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
         switch off the mode (command 'c') and change display units to
         sectors (command 'u').
 -> DONE
HD formatted!
-------------

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
         switch off the mode (command 'c') and change display units to
         sectors (command 'u').

Command (m for help):
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         250     2008093+   5  Extended
/dev/sda2             251      121601   974751907+  83  Linux
/dev/sda5               1          32      256977   82  Linux swap / Solaris
/dev/sda6              33          33        8001   83  Linux
/dev/sda7              34          34        8001   83  Linux
/dev/sda8              35         140      851413+  83  Linux
/dev/sda9             141         249      875511   83  Linux
/dev/sda10            250         250        8001   83  Linux

Command (m for help):
Downloading partition images
----------------------------
--2011-08-07 17:11:10--  http://downloads.lacie.nas-central.org/Users/Mijzelf/Networkspace2/1.0.2/sda6.gz
Resolving downloads.lacie.nas-central.org... 140.211.169.172
Connecting to downloads.lacie.nas-central.org|140.211.169.172|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1900733 (1.8M) [application/octet-stream]
Saving to: `sda6.gz.1'

100%[===========================================================================>] 1,900,733    484K/s   in 4.5s   

2011-08-07 17:11:15 (414 KB/s) - `sda6.gz.1' saved [1900733/1900733]

--2011-08-07 17:11:15--  http://downloads.lacie.nas-central.org/Users/Mijzelf/Networkspace2/1.0.2/sda7.gz
Resolving downloads.lacie.nas-central.org... 140.211.169.172
Connecting to downloads.lacie.nas-central.org|140.211.169.172|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2241981 (2.1M) [application/octet-stream]
Saving to: `sda7.gz.1'

100%[===========================================================================>] 2,241,981    482K/s   in 5.5s   

2011-08-07 17:11:21 (397 KB/s) - `sda7.gz.1' saved [2241981/2241981]

--2011-08-07 17:11:21--  http://downloads.lacie.nas-central.org/Users/Mijzelf/Networkspace2/1.0.2/sda8.gz
Resolving downloads.lacie.nas-central.org... 140.211.169.172
Connecting to downloads.lacie.nas-central.org|140.211.169.172|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 75268409 (72M) [application/octet-stream]
Saving to: `sda8.gz.1'

100%[===========================================================================>] 75,268,409   511K/s   in 2m 32s 

2011-08-07 17:13:54 (484 KB/s) - `sda8.gz.1' saved [75268409/75268409]

--2011-08-07 17:13:54--  http://downloads.lacie.nas-central.org/Users/Mijzelf/Networkspace2/1.0.2/sda9.gz
Resolving downloads.lacie.nas-central.org... 140.211.169.172
Connecting to downloads.lacie.nas-central.org|140.211.169.172|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3308955 (3.2M) [application/octet-stream]
Saving to: `sda9.gz.1'

100%[===========================================================================>] 3,308,955    508K/s   in 7.6s   

2011-08-07 17:14:02 (423 KB/s) - `sda9.gz.1' saved [3308955/3308955]

--2011-08-07 17:14:02--  http://downloads.lacie.nas-central.org/Users/Mijzelf/Networkspace2/1.0.2/sda10.gz
Resolving downloads.lacie.nas-central.org... 140.211.169.172
Connecting to downloads.lacie.nas-central.org|140.211.169.172|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8010 (7.8K) [application/octet-stream]
Saving to: `sda10.gz.1'

100%[===========================================================================>] 8,010       42.3K/s   in 0.2s   

2011-08-07 17:14:02 (42.3 KB/s) - `sda10.gz.1' saved [8010/8010]

 -> DONE
Installing partition images
---------------------------
16002+0 records in
16002+0 records out
8193024 bytes (8.2 MB) copied, 0.999153 s, 8.2 MB/s
16002+0 records in
16002+0 records out
8193024 bytes (8.2 MB) copied, 1.02319 s, 8.0 MB/s
1702827+0 records in
1702827+0 records out
871847424 bytes (872 MB) copied, 10.3762 s, 84.0 MB/s
1751022+0 records in
1751022+0 records out
896523264 bytes (897 MB) copied, 126.025 s, 7.1 MB/s
16002+0 records in
16002+0 records out
8193024 bytes (8.2 MB) copied, 1.09518 s, 7.5 MB/s
 -> DONE
Make swap partition
-------------------
Setting up swapspace version 1, size = 256972 KiB
no label, UUID=96cfd7cc-88c6-4add-8eca-287a90a8b244
 -> DONE
Format partition 2
------------------
meta-data=/dev/sda2              isize=256    agcount=4, agsize=60921994 blks
         =                       sectsz=512   attr=2, projid32bit=0
data     =                       bsize=4096   blocks=243687976, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0
log      =internal log           bsize=4096   blocks=118988, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
 -> DONE


Result:

Code:
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         250     2008093+   5  Extended
/dev/sda2             251      121601   974751907+  83  Linux
/dev/sda5               1          32      256977   82  Linux swap / Solaris
/dev/sda6              33          33        8001   83  Linux
/dev/sda7              34          34        8001   83  Linux
/dev/sda8              35         140      851413+  83  Linux
/dev/sda9             141         249      875511   83  Linux
/dev/sda10            250         250        8001   83  Linux


I will now retest my NAS ; I let you know of the outcome :|

_________________
Unbrick a Bricked Lacie Network Space 2


Top
 Profile  
 
PostPosted: Sun Aug 07, 2011 4:06 pm 
Offline

Joined: Sun Jul 31, 2011 9:32 am
Posts: 7
Well, seems better now!

It starts, can be pinged. Its admin web interface can be accessed and I see the first-time setup web page.

However, the "Disk configuration" area tells me that it found 0 B of Network Storage. Same thing for the USB Storage.
Thus, I can't use the slider at all, and the setup doesn't go farer.

Seems to me that my /dev/sda2 partition is KO?

Any idea?

Image

_________________
Unbrick a Bricked Lacie Network Space 2


Top
 Profile  
 
PostPosted: Sun Aug 07, 2011 4:44 pm 
Offline

Joined: Sun Jul 31, 2011 9:32 am
Posts: 7
And the solution to this latter problem was in the wiki: http://lacie.nas-central.org/wiki/Insta ... rk_space_2)

Quote:
When you put this disk in your Network Space 2, it should work.
It is possible that the filesystem on /dev/sda2 is not accepted by the NAS. In that case the shares are not visible/accessible, and you can't login on the webinterface (Please wait while loading ...). It seems that mkfs.xfs from modern distro's can generate an incompatible filesystem. The remedy: get shell access, login on the box, and create the filesystem here, and force unicorn to update:
Code:
mkfs.xfs /dev/sda2 -f
rm /etc/unicorn.db
reboot



Mijzelf, thanks mate!

_________________
Unbrick a Bricked Lacie Network Space 2


Top
 Profile  
 
PostPosted: Sun Aug 07, 2011 5:35 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6022
Great that you sorted it. I suppose we'll never know why it didn't work the first time you tried.

BTW, in your script, you don't need to delete all partitions first, just execute a -from the top of my head- 'o' "Create a new, empty Intel partition table".


Top
 Profile  
 
PostPosted: Mon Aug 29, 2011 8:32 pm 
Offline

Joined: Mon Aug 29, 2011 8:28 pm
Posts: 4
Hello, I have a problem. The tutorial does not work with my hard drive of 2 TB. I can not create the partition. Could you help me? thank you


Top
 Profile  
 
PostPosted: Tue Aug 30, 2011 2:52 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6022
Whet is the error message?


Top
 Profile  
 
PostPosted: Tue Aug 30, 2011 5:22 pm 
Offline

Joined: Mon Aug 29, 2011 8:28 pm
Posts: 4
I copy the downloaded mbr on the hard disk. Then I type the command "fdisk / dev / sdb". Then the message appears WARNING. And when I try to create the partitions it does not


WARNING: Data surperflues ignored in the partition table 7
ignored empty partition (8)

The device has a logical sector size over
smaller than the physical sector size. Adjust the limit
size to the physical sector (or optimal in terms of I / O)
is recommended, otherwise the performance may be affected.

thank you


Top
 Profile  
 
PostPosted: Tue Aug 30, 2011 5:39 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6022
I suppose that's an 'advanced format' disk? And I also suppose you're using an fdisk version which is aware of this, and denies to create misaligned partitions.
In that case you can switch off that denial (try fdisk --help), but that can have a serious performance penalty. The other option is to skip the MBR, and create the needed partition table manually. Make sure the partitions 6, 7 and 8 and 10 are at least the prescribed size. Bigger is no problem.


Top
 Profile  
 
PostPosted: Tue Aug 30, 2011 6:54 pm 
Offline

Joined: Mon Aug 29, 2011 8:28 pm
Posts: 4
when I try to create partitions without having to copy the mbr. I can not created a logical partition using fdisk


Top
 Profile  
 
PostPosted: Tue Aug 30, 2011 6:58 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6022
First make an extended partition (sda1), big enough to contain sda5-sda10, then create the logical partitions (which are inside the extended partition), and finally a primary partition (sda2).


Top
 Profile  
 
PostPosted: Tue Aug 30, 2011 7:52 pm 
Offline

Joined: Mon Aug 29, 2011 8:28 pm
Posts: 4
No one has a procedure for a hard disk 2 Tb?


Top
 Profile  
 
PostPosted: Thu Sep 08, 2011 5:56 pm 
Offline

Joined: Wed Apr 20, 2011 6:42 am
Posts: 14
I had the same issues with kouyio.

My NS2 boot procedure was stuck in the beginning with the blue led blinking every second.

I dismount the disk (my files OK) I formatted the disk, and follow the procedure described above.
I did 4 times very carefully but the result was always the same: FAIL The NS2 kept blinking for ever during startup and nothing else.

I was thinking that it was something wrong with the BIOS, or the M/B, or the ROM, so my last chance was to store the disk (for using it with another machine with SATA connectors) and wait to find another working M/B from someone who had NS2 without disk (the opposite problem) or to find someone to repair the M/B (Lacie repair service? I dont think so)

So...
Just before leave it RIP, I thought I give it a last try with a different firmware. I noticed this post and I decided to give it a shot (without big hopes)...

...and guess what:

IT WORKED LIKE CHARM :lol:

It is not as user friendly as Lacie's, but it's fast, reliable and you can do whatever you want with this


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 52 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group