<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Complitly debricking guide (draft)</title>
		<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft</link>
		<description>Posts in the discussion thread &quot;Complitly debricking guide (draft)&quot; - Debricking, hdd upgrade, fw recovery</description>
				<copyright></copyright>
		<lastBuildDate>Sun, 14 Jun 2026 12:45:39 +0000</lastBuildDate>
		
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1935427</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1935427</link>
				<description></description>
				<pubDate>Tue, 14 Jan 2014 02:46:21 +0000</pubDate>
				<wikidot:authorName>Cocolio</wikidot:authorName>				<wikidot:authorUserId>1669503</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>actually i have debricked this dev, but now my main problem is that, as the guide states, when i have to extend the data partition, when Gparted opens the disc, it has only one unrecognized partition and the wordt of all, i have red light indicating that the SMART value are bad.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1934962</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1934962</link>
				<description></description>
				<pubDate>Mon, 13 Jan 2014 17:04:09 +0000</pubDate>
				<wikidot:authorName>gunt76</wikidot:authorName>				<wikidot:authorUserId>437156</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>do it again. I did a debrick process 5 times before i finally got it right. There are a lot of little things that can go wrong. Read through the comments of other users and see if there are any things they did differently to get it to work for them.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1934468</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1934468</link>
				<description></description>
				<pubDate>Mon, 13 Jan 2014 02:01:14 +0000</pubDate>
				<wikidot:authorName>Cocolio</wikidot:authorName>				<wikidot:authorUserId>1669503</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I have done that procedure too, what else can i do?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1934109</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1934109</link>
				<description></description>
				<pubDate>Sun, 12 Jan 2014 14:53:22 +0000</pubDate>
				<wikidot:authorName>gunt76</wikidot:authorName>				<wikidot:authorUserId>437156</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>It was not necessary to wipe your drive. That actually caused you more problems.<br /> Here is a guide for debricking you should use. Pay very close attention to the instructions<br /> <a href="http://community.wd.com/t5/My-Book-Live/GUIDE-Debrick-MyBookLive-v2-0/td-p/567582">http://community.wd.com/t5/My-Book-Live/GUIDE-Debrick-MyBookLive-v2-0/td-p/567582</a></p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1933696</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1933696</link>
				<description></description>
				<pubDate>Sun, 12 Jan 2014 00:05:05 +0000</pubDate>
				<wikidot:authorName>Cocolio</wikidot:authorName>				<wikidot:authorUserId>1669503</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hi guys, i have a MyBook Live since June 2012 and started malfunctioning after a upgrade i did from version 1.8 (i guess) to 2.4 the last one at that time.</p> <p>The issues where that it started to restart repeatedly, sending me email messages, so i pressed the reset button but it was worse, it just deleted my password but not the entire config and since then i cannot administrate the NAS, so i took out the drive to wipe it out and start all over again, and i have used several ways to unbrick the device, but none have gave me a good result.</p> <p>This is the output when i use your script.</p> <div class="code"> <pre><code>cocolio@cocolio-desktop ~ $ sudo ./fresh-install.sh Partition Disk: /dev/sdb... 32+0 records in 32+0 records out 33554432 bytes (34 MB) copied, 1.11171 s, 30.2 MB/s 32+0 records in 32+0 records out 33554432 bytes (34 MB) copied, 1.10258 s, 30.4 MB/s 32+0 records in 32+0 records out 33554432 bytes (34 MB) copied, 1.17959 s, 28.4 MB/s 32+0 records in 32+0 records out 33554432 bytes (34 MB) copied, 1.20595 s, 27.8 MB/s Testing with pattern 0xe5: done Reading and comparing: done GNU Parted 2.3 Using /dev/sdb Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) mklabel gpt (parted) mkpart primary 528M 2576M (parted) mkpart primary 2576M 4624M (parted) mkpart primary 16M 528M (parted) mkpart primary 4624M -1M (parted) set 1 raid on (parted) set 2 raid on (parted) quit Information: You may need to update /etc/fstab. Model: WDC WD20 EURS-63S48Y0 (scsi) Disk /dev/sdb: 2000GB Sector size (logical/physical): 4096B/4096B Partition Table: gpt Number Start End Size File system Name Flags 3 15.7MB 528MB 513MB primary 1 528MB 2576MB 2048MB primary raid 2 2576MB 4624MB 2048MB primary raid 4 4624MB 2000GB 1996GB primary mdadm: Unrecognised md component device - /dev/sdb1 mdadm: Unrecognised md component device - /dev/sdb2 mdadm: size set to 1999808K mdadm: array /dev/md0 started. Setting up swapspace version 1, size = 500732 KiB no label, UUID=939d3649-2902-4438-9c64-86123a076b19 mke2fs 1.42.5 (29-Jul-2012) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 125184 inodes, 499952 blocks 24997 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=515899392 16 block groups 32768 blocks per group, 32768 fragments per group 7824 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912 Checking for bad blocks (read-only test): 0.00% done, 0:00 elapsed. (0/0/0 errdone Allocating group tables: done Writing inode tables: done Creating journal (8192 blocks): done Writing superblocks and filesystem accounting information: done Warning: blocksize 65536 not usable on most systems. mke2fs 1.42.5 (29-Jul-2012) mkfs.ext4: 65536-byte blocks too big for system (max 4096) Proceed anyway? (y,n) y Warning: 65536-byte blocks too big for system (max 4096), forced to continue Filesystem label= OS type: Linux Block size=65536 (log=6) Fragment size=65536 (log=6) Stride=0 blocks, Stripe width=0 blocks 30355200 inodes, 30453104 blocks 0 blocks (0.00%) reserved for the super user First data block=0 Maximum filesystem blocks=4428644352 465 block groups 65528 blocks per group, 65528 fragments per group 65280 inodes per group Superblock backups stored on blocks: 65528, 196584, 327640, 458696, 589752, 1638200, 1769256, 3210872, 5307768, 8191000, 15923304, 22476104 Allocating group tables: done Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done mdadm: added /dev/sdb2 Please wait for raid RE-SYNC to complete.. /dev/md0: Version : 0.90 Creation Time : Sat Jan 11 13:56:20 2014 Raid Level : raid1 Array Size : 1999808 (1953.27 MiB 2047.80 MB) Used Dev Size : 1999808 (1953.27 MiB 2047.80 MB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 0 Persistence : Superblock is persistent Update Time : Sat Jan 11 14:01:25 2014 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 UUID : 7d2dfdd5:a6dc2e8e:ddaa0558:13ad377b (local to host cocolio-desktop) Events : 0.24 Number Major Minor RaidDevice State 0 8 17 0 active sync /dev/sdb1 1 8 18 1 active sync /dev/sdb2 Done. cocolio@cocolio-desktop ~ $ dd if=rootfs.img of=/dev/md0 bs=1M dd: opening `/dev/md0': Permission denied cocolio@cocolio-desktop ~ $ sudo dd if=rootfs.img of=/dev/md0 bs=1M 1952+1 records in 1952+1 records out 2047803392 bytes (2.0 GB) copied, 266.141 s, 7.7 MB/s cocolio@cocolio-desktop ~ $ sudo mkdir /mnt/rootfs mkdir: cannot create directory `/mnt/rootfs': File exists cocolio@cocolio-desktop ~ $ sudo mount /dev/md0 /mnt/rootfs cocolio@cocolio-desktop ~ $ cp /mnt/rootfs/usr/local/share/bootmd0.scr /mnt/rootfs/boot/boot.scr cp: cannot create regular file `/mnt/rootfs/boot/boot.scr': Permission denied cocolio@cocolio-desktop ~ $ sudo cp /mnt/rootfs/usr/local/share/bootmd0.scr /mnt/rootfs/boot/boot.scr cocolio@cocolio-desktop ~ $ echo &quot;enabled&quot; &gt; /mnt/rootfs/etc/nas/service_startup/ssh bash: /mnt/rootfs/etc/nas/service_startup/ssh: Permission denied cocolio@cocolio-desktop ~ $ sudo echo &quot;enabled&quot; &gt; /mnt/rootfs/etc/nas/service_startup/ssh bash: /mnt/rootfs/etc/nas/service_startup/ssh: Permission denied cocolio@cocolio-desktop ~ $ sync cocolio@cocolio-desktop ~ $ sudo umount /mnt/rootfs cocolio@cocolio-desktop ~ $ gcc swap.c -o swap cocolio@cocolio-desktop ~ $ mdadm -S /dev/md0 mdadm: must be super-user to perform this action cocolio@cocolio-desktop ~ $ sudo mdadm -S /dev/md0 [sudo] password for cocolio: mdadm: stopped /dev/md0 cocolio@cocolio-desktop ~ $ ./swap /dev/sdb1 /dev/sdb1: Permission denied cocolio@cocolio-desktop ~ $ sudo ./swap /dev/sdb1 cocolio@cocolio-desktop ~ $ sudo ./swap /dev/sdb2</code></pre></div> <p>The distro i have used is Linux Mint 14, please can you give me more feedback? Im bored with this drive im about to use it as another drive on my PC, thanks.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1784625</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1784625</link>
				<description></description>
				<pubDate>Tue, 28 May 2013 03:50:48 +0000</pubDate>
				<wikidot:authorName>afreisinger</wikidot:authorName>				<wikidot:authorUserId>1319436</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Thanks to this great guide ! I have a little problem.</p> <p>11. When dd is done, mount your filesystem<br /> mkdir /mnt/rootfs<br /> mount /dev/md0 /mnt/rootfs</p> <p>the output say</p> <p>Aspire-3810TZ:~/bash$ sudo mount /dev/md0 /mnt/rootfs<br /> mount: tipo fs incorrecto, opción incorrecta, superbloque incorrecto en /dev/md0,<br /> falta página de código o programa ayudante, u otro error<br /> En algunos casos se encuentra información en syslog, pruebe<br /> dmesg | tail o algo parecido</p> <p>can you help me, i speak a little english. thanks</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1766599</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1766599</link>
				<description></description>
				<pubDate>Sat, 04 May 2013 19:52:15 +0000</pubDate>
				<wikidot:authorName>Dickie_UK</wikidot:authorName>				<wikidot:authorUserId>1620619</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>All - just wanted to say a huge thanks to everyone on this thread. Not only has it saved the MBL, but its given it a second chance at life with a new drive.<br /> Kudos to all involved.</p> <p>Casual question - would it work with a 4TB drive or would it fail due to no 4TB MBL's existing? (it is an idle question, right now I dont plan to go beyond 3TB)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1739376</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1739376</link>
				<description></description>
				<pubDate>Wed, 27 Mar 2013 15:18:57 +0000</pubDate>
				<wikidot:authorName>nfodiz</wikidot:authorName>				<wikidot:authorUserId>1396693</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Your first problem is that you used a MBL debrick script on a MBLDUO</p> <p>The MBLDUO uses a RAID swap. If you used the MBL script with the destroy flag, you have created a non raid swap partition on your disk a</p> <p>SSH in and issue</p> <div class="code"> <pre><code>parted /dev/sda p</code></pre></div> <br /> partition 3 should be marked primary raid <p>You may be able to flag it as raid if it isn't in use</p> <div class="code"> <pre><code>parted /dev/sda set 3 raid on reboot</code></pre></div> <p>Hopefully after a reboot the DUO will then create the swap array on its own which would be /dev/md2</p> <p>I don't own the DUO, just the single drive so I can't say this will work or not</p> <p>Check my guide here as well<br /> community.wdc.com /t5/ My-Book-Live-Duo/ GUIDE-Debrick-a-MyBookLive-DUO/td-p/544860</p> <p>Take out the spaces because I can't post links</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1739295</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1739295</link>
				<description></description>
				<pubDate>Wed, 27 Mar 2013 12:45:13 +0000</pubDate>
				<wikidot:authorName>frost-expert</wikidot:authorName>				<wikidot:authorUserId>1586317</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I've got MBLD with two disks.<br /> and comand &quot;mkswap /dev/md2&quot; shows me /dev/md2: &quot;No such file or directory&quot;</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1739293</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1739293</link>
				<description></description>
				<pubDate>Wed, 27 Mar 2013 12:43:25 +0000</pubDate>
				<wikidot:authorName>frost-expert</wikidot:authorName>				<wikidot:authorUserId>1586317</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <div class="code"> <pre><code>MyBookLiveDuo:~# mkswap /dev/md2 /dev/md2: No such file or directory</code></pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1739287</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1739287</link>
				<description></description>
				<pubDate>Wed, 27 Mar 2013 12:31:59 +0000</pubDate>
				<wikidot:authorName>nfodiz</wikidot:authorName>				<wikidot:authorUserId>1396693</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>For the single drive MBL the command would be</p> <div class="code"> <pre><code>mkswap /dev/sda3 reboot</code></pre></div> <br /> These commands only need to be run from SSH if you have used the debricking scripts with the destroy flag as it messes up swap when it recreates your partitions.
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1739274</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1739274</link>
				<description></description>
				<pubDate>Wed, 27 Mar 2013 11:54:26 +0000</pubDate>
				<wikidot:authorName>nfodiz</wikidot:authorName>				<wikidot:authorUserId>1396693</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>That is the raid swap partition</p> <p>On a factory MBLDUO if you run</p> <div class="code"> <pre><code>swapon -s</code></pre></div> <br /> You get <div class="code"> <pre><code>Filename Type Size Used Priority /dev/md2 partition 500544 896 -1</code></pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1739258</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1739258</link>
				<description></description>
				<pubDate>Wed, 27 Mar 2013 11:21:20 +0000</pubDate>
				<wikidot:authorName>frost-expert</wikidot:authorName>				<wikidot:authorUserId>1586317</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>thx but why exactly /dev/md2 ?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1739097</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1739097</link>
				<description></description>
				<pubDate>Wed, 27 Mar 2013 03:21:59 +0000</pubDate>
				<wikidot:authorName>nfodiz</wikidot:authorName>				<wikidot:authorUserId>1396693</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>SSH into the MBL DUO and issue</p> <div class="code"> <pre><code>mkswap /dev/md2 reboot</code></pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1738528</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1738528</link>
				<description></description>
				<pubDate>Tue, 26 Mar 2013 11:53:44 +0000</pubDate>
				<wikidot:authorName>frost-expert</wikidot:authorName>				<wikidot:authorUserId>1586317</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>hi. i've just debricked my book live duo.<br /> but swap doesn't works<br /> MyBookLiveDuo:~# free<br /> total used free shared buffers cached<br /> Mem: 253632&#160;237120&#160;16512&#160;0&#160;9536&#160;63552<br /> -/+ buffers/cache: 164032&#160;89600<br /> Swap: 0&#160;0&#160;0</p> <p>what should i do?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1333515</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1333515</link>
				<description></description>
				<pubDate>Thu, 22 Dec 2011 19:19:06 +0000</pubDate>
				<wikidot:authorName>eugge</wikidot:authorName>				<wikidot:authorUserId>1226517</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Can anybody make a copy of MBR of My Book Live 1&#160;Tb (1 disk)?<br /> And I can get working my dead device.<br /> Please.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1333495</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1333495</link>
				<description></description>
				<pubDate>Thu, 22 Dec 2011 18:56:17 +0000</pubDate>
				<wikidot:authorName>eugge</wikidot:authorName>				<wikidot:authorUserId>1226517</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I see a lot of suggestions&#8230;<br /> At the moment I have an idea regarding my problem.<br /> During my trys to restore the device I tryed many things, inclusive &quot;zero&quot;-ing first 3000&#160;Mb of the disk.<br /> If I understood right, in MBR(or in unlocated 15Mb space) is kept MAC address and some other information.<br /> Does it mean that after complete debricking my MBL has no MAC address?<br /> And probably to get it working I need to setup/restore it.<br /> How to to it? Any ideas?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1332667</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1332667</link>
				<description></description>
				<pubDate>Wed, 21 Dec 2011 14:47:24 +0000</pubDate>
				<wikidot:authorName>eugge</wikidot:authorName>				<wikidot:authorUserId>1226517</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello everybody!<br /> I need some help with my book live.<br /> Struggling around one week with this nice device (as mostly of people here I'm a begginer and took a while to understand what every command does), it seems that I'm very close to get it working&#8230; every partition is created and *.img copied to /dev/md0,&#8230; and so on.<br /> But still at start of MBL I see blue light for some seconds and later orange one. That's all. No any connection to device.</p> <p>2 questions:</p> <p>- can anybody give me a contents of &quot;fstab&quot; file, because I have a feeling that mine is not full:<br /> proc /proc proc defaults 0&#160;0<br /> sysfs /sys sysfs defaults 0&#160;0<br /> tmpfs /tmp tmpfs rw,size=50M 0&#160;0</p> <p>- there is any sys log file to check where MBL OS gets stuck?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1298604</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1298604</link>
				<description></description>
				<pubDate>Sun, 06 Nov 2011 01:45:31 +0000</pubDate>
				<wikidot:authorName>taemta3</wikidot:authorName>				<wikidot:authorUserId>1235598</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello I have tried to get the debugfs but it will not even recognize that anything is there. It tells me<br /> /dev/sda4: No such file or directory while opening filesystem</p> <p>what am I doing wrong?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1295846</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1295846</link>
				<description></description>
				<pubDate>Wed, 02 Nov 2011 06:38:28 +0000</pubDate>
				<wikidot:authorName>usefree</wikidot:authorName>				<wikidot:authorUserId>1232821</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>1. Create the three .sh that are in the GP, as well as swap.c .<br /> - what it mean? When i start the script in the first line i have to see &quot;Partition Disk: /dev/sdb&quot;, but i see only &quot;Partition Disk:&quot; and all next instructions are going wrong.<br /> I changed '${disk}' to my actual name '/dev/sdb' everywhere and now have one slice /dev/sdb in my disk utility instead of four, as before, I lost all my data and just want debrick my device, but have no success(</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1286057</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1286057</link>
				<description></description>
				<pubDate>Thu, 20 Oct 2011 19:13:38 +0000</pubDate>
				<wikidot:authorName>alnamer</wikidot:authorName>				<wikidot:authorUserId>1214468</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I need help please I'm getting this error</p> <p>error: expecting a partition type</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1286055</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1286055</link>
				<description></description>
				<pubDate>Thu, 20 Oct 2011 19:11:29 +0000</pubDate>
				<wikidot:authorName>alnamer</wikidot:authorName>				<wikidot:authorUserId>1214468</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I need help please I'm getting this error</p> <p>error: expecting a partition type</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1276036</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1276036</link>
				<description></description>
				<pubDate>Fri, 07 Oct 2011 16:52:39 +0000</pubDate>
				<wikidot:authorName>munozdj</wikidot:authorName>				<wikidot:authorUserId>1168044</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>First off, let me thank EVERYONE who's helped in this forum, it's been a <strong>huge</strong> help to me.<br /> While I was playing with my shiny new MBL, I partially bricked it and decided to do a full factory restore (I had already backed up my data). While I was in the UI I got desperate and unplugged my MBL believing it was done, but I was fooled: the red LED isn't working, so I couldn't see the white light! Needless to say, the device was now fully bricked.</p> <p>It's been a long and torturous week, but I've finally managed to debrick it, and it's all been possible thanks to this thread.</p> <p>I can say that it does work, but with a few modifications. I'll explain them here, in hope that somebody new to this won't spend so much time fixing their MBL as I did.<br /> Before this (and while you do it too, if you want to), you have to download a firmware from WD. Just google it (Firmware My Book Live), and it should appear there.<br /> All of this was done with the hard drive plugged into a PC running Ubuntu 11.04:</p> <p>1. Create the three .sh that are in the GP, as well as swap.c .</p> <p>2. Change the sh files to executable:</p> <div class="code"> <pre><code> chmod +x freshInstall.sh chmod +x partitionDisk.sh chmod +x disk-param.sh</code></pre></div> <br /> 3. Find out the name of your disk as it was detected by Ubuntu (in my case, it was /dev/sdb). <p>4. Modify partitionDisk.sh:<br /> change the path of /path/to/disk-param.sh to its actual path (i.e. /home/_your-user-name/). If it's in the same folder as freshInstall.sh and disk-param.sh, you can just leave it as ./disk-param.sh</p> <p>5. Modify disk-param.sh:<br /> change the name of your disk (if needed) to the one in your system (the one you found in step 3)</p> <p>6. Modify freshInstall.sh:<br /> a. change the path of disk-param.sh again, just as you did in step 4 for partitionDisk.sh<br /> b. change the line:</p> <div class="code"> <pre><code>mdadm --create ${rootfsDevice} --verbose --raid-devices=2 --level=raid1 --run ${rootfsDisk1} missing</code></pre></div> <br /> to: <div class="code"> <pre><code>mdadm --create ${rootfsDevice} --verbose --metadata=0.9 --raid-devices=2 --level=raid1 --run ${rootfsDisk1} missing</code></pre></div> <br /> (thank you, seeARMS!)<br /> NOTE: this step is only necessary in some distros. I had to do it because mdadm in ubuntu 11.04 had the problem described by seeARMS. <p>c. Run freshInstall.sh:</p> <div class="code"> <pre><code>./freshInstall.sh</code></pre></div> <br /> d. If the script prompts you to accept something (I don't remember well, but it was something about the block size of partition 4 being too large), just say yes. <p>7. After the script stops, extract the firmware file you downloaded from WD:</p> <div class="code"> <pre><code>ar x apnc-010303-20110119.deb</code></pre></div> <p>8. extract the file in which the image comes</p> <div class="code"> <pre><code>tar --lzma -xvf data.tar.lzma</code></pre></div> <p>9. navigate to the folder in which rootfs.img is located</p> <p>10. Copy the image to your hard drive</p> <div class="code"> <pre><code>dd if=rootfs.img of=/dev/md0 bs=1M</code></pre></div> <br /> 11. When dd is done, mount your filesystem <div class="code"> <pre><code>mkdir /mnt/rootfs mount /dev/md0 /mnt/rootfs</code></pre></div> <p>12. Copy the boot file to its folder</p> <div class="code"> <pre><code>cp /mnt/rootfs/usr/local/share/bootmd0.scr /mnt/rootfs/boot/boot.scr</code></pre></div> <p>13. Enable ssh</p> <div class="code"> <pre><code>echo &quot;enabled&quot; &gt; /mnt/rootfs/etc/nas/service_startup/ssh</code></pre></div> <p>14. Sync and unmount:</p> <div class="code"> <pre><code>sync umount /mnt/rootfs</code></pre></div> <p>15. Compile swap.c</p> <div class="code"> <pre><code>gcc swap.c -o swap</code></pre></div> <p>16. Modify the endianness of the boot partitions</p> <div class="code"> <pre><code>mdadm —stop /dev/md0 ./swap /dev/sdb1 ./swap /dev/sdb2</code></pre></div> <p>And it's done! unplug your hard drive from your PC and plug it into your MBL. Device is fully debricked by now.</p> <p>I want to make very clear that I've only done a compilation of all the steps I needed to take with my particular recovery, hoping that it helps the unexperienced (as me) get the job done in less time.<br /> I'm very grateful to everybody who made my recovery possible (megadoz, tomas123, bourgeoa, seeARMS) and who are actually responsible for my successful experience.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1250865</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1250865</link>
				<description></description>
				<pubDate>Mon, 05 Sep 2011 13:48:07 +0000</pubDate>
				<wikidot:authorName>realbase</wikidot:authorName>				<wikidot:authorUserId>990577</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I was able to open it by entering:</p> <p>sudo debugfs<br /> open -b 65536 /dev/sdb4</p> <p>No idea yet on how to recover my data&#8230;</p> <p>EDIT:</p> <p>Yeah i found it, using de rdump command, i was able to recursively dump a directory to the &quot;native&quot; filesystem</p> <p>this is what i did:</p> <p>sudo debugfs<br /> open -b 65536 /dev/sdb4<br /> (use ls to check if you are in the correct system)</p> <p>cd /shares/Public</p> <p>ls<br /> // look in the listing for the dir you want to backup (i wanted my music back so i chose: Shared Music)<br /> // Press Q to exit the listing</p> <p>rdump &quot;Shared Music&quot; /home/realbase/Desktop/musicbackup</p> <p>WHEAHAH!</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1226077</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1226077</link>
				<description></description>
				<pubDate>Wed, 10 Aug 2011 23:49:11 +0000</pubDate>
				<wikidot:authorName>ZaPHoN</wikidot:authorName>				<wikidot:authorUserId>1065013</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I'm having some problems with this script trying to use sda when the drive I point it too is sdb.</p> <p>Can someone assist please.</p> <p>PS. The drive has been wiped clean and is unallocated (no partitions and no format). dev/sdb</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1213799</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1213799</link>
				<description></description>
				<pubDate>Thu, 28 Jul 2011 00:57:14 +0000</pubDate>
				<wikidot:authorName>botsog29</wikidot:authorName>				<wikidot:authorUserId>1072658</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hi, can you please elaborate more on how you were able to mount your drive using debugfs because I am dying to mount mine to recover the data I have there. Thanks in advance.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1205439</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1205439</link>
				<description></description>
				<pubDate>Tue, 19 Jul 2011 18:26:39 +0000</pubDate>
				<wikidot:authorName>DgaDM</wikidot:authorName>				<wikidot:authorUserId>1034532</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Yeeehhaaw! Thanks to this great guide, i successfully de-bricked my 2TB &quot;My Book&quot; without losing a single bit of my files. THANK YOU ALL!</p> <p>My device suddenly died after a short power outage, i waited for hours and even days but the LED at the front stays yellow and doesn't become green.</p> <p>Having a software-raid on a device without a defined shutdown procedure (even without a power switch) is a bad idea, IMHO. Linux md-raids often have problems when they are not properly stopped. I think that was the problem in my case.</p> <p>I also found out that you cannot mount the ext4-Partition directly (because of the 64k block size) to recover data, but debugfs can! Before i followed the instructions above, i made a complete backup of the DataVolume-Directory, using debugfs and the rdump command on a Ubuntu-Box. I connected the hard-disk with a simple USB-to-SATA adapter.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1198073</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1198073</link>
				<description></description>
				<pubDate>Sun, 10 Jul 2011 09:18:54 +0000</pubDate>
				<wikidot:authorName>dan kvelstad</wikidot:authorName>				<wikidot:authorUserId>994888</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>there is a reset button on the back of mybook live.</p> <p>push this for a couple of seconds (till the light changes color)</p> <p>this resets the password to:<br /> root<br /> welc0me</p> <p>see page 111:<br /> <a href="http://www.wdc.com/wdproducts/library/UM/ENG/4779-705042.pdf">http://www.wdc.com/wdproducts/library/UM/ENG/4779-705042.pdf</a></p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1197525</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1197525</link>
				<description></description>
				<pubDate>Sat, 09 Jul 2011 11:27:22 +0000</pubDate>
				<wikidot:authorName>bigx_jazz</wikidot:authorName>				<wikidot:authorUserId>1006479</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I lost my SSH Login, how can i send any commands to my book live?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1184678</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1184678</link>
				<description></description>
				<pubDate>Wed, 22 Jun 2011 20:03:39 +0000</pubDate>
				<wikidot:authorName>dan kvelstad</wikidot:authorName>				<wikidot:authorUserId>994888</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I created a script based on these ones. it does not erase the data unless you want to and works for me.</p> <p><a href="http://mybookworld.wikidot.com/forum/t-368098/debricking-script-that-can-keep-data">http://mybookworld.wikidot.com/forum/t-368098/debricking-script-that-can-keep-data</a></p> <p>I started a new thread to keep it from being mixed together.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1184675</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1184675</link>
				<description></description>
				<pubDate>Wed, 22 Jun 2011 20:01:30 +0000</pubDate>
				<wikidot:authorName>dan kvelstad</wikidot:authorName>				<wikidot:authorUserId>994888</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>In my opinion you should be able to. I don't promise it, but yea. should.</p> <p>get a 2tb instead :)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1184383</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1184383</link>
				<description></description>
				<pubDate>Wed, 22 Jun 2011 15:17:57 +0000</pubDate>
				<wikidot:authorName>seeARMS</wikidot:authorName>				<wikidot:authorUserId>938083</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>If I purchased a new 1TB Caviar Green hard drive, would following this guide allow it to work fine with the Mybook Live enclosure?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1171775</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1171775</link>
				<description></description>
				<pubDate>Tue, 07 Jun 2011 15:06:23 +0000</pubDate>
				<wikidot:authorName>Gratstein</wikidot:authorName>				<wikidot:authorUserId>703378</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Nice, can't wait to have a clear howto to do the same on mine.</p> <p>Thank you for your contribution</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1169855</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1169855</link>
				<description></description>
				<pubDate>Sat, 04 Jun 2011 20:39:03 +0000</pubDate>
				<wikidot:authorName>kaminari</wikidot:authorName>				<wikidot:authorUserId>957330</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>As I wanted to recover my data that I explicitly made sure that I did not format /dev/sda4 nor zero fill /dev/sda4</p> <div class="code"> <pre><code># format the data volume file system #mkfs.ext4 -b 65536 -m 0 ${disk}4 #if [ -e &quot;${disk}4&quot; ]; then # dd if=/dev/zero of=${disk}4 bs=1M count=32 #fi</code></pre></div> <p>I also made sure I used the following due to version conflicts as it is not suitable for a boot device:</p> <div class="code"> <pre><code>mdadm --create ${rootfsDevice} --verbose --metadata=0.9 --raid-devices=2 --level=raid1 --run ${rootfsDisk1} missing</code></pre></div> <p>Up and running - with my data intact! Thank you all!</p> <p>When I get time I will go through my notes in which I had to modify the above scripts and upload the one script.<br /> You need to understand what is happening on each line of the script. For debugging I copied and pasted each line<br /> into a root super user terminal.</p> <p>I would be best to have the individual scripts converted into one big script as it would be easy to maintain.<br /> Where setting up of the shell variables in disk-param.sh are defined and documented verbosely.</p> <p>It was kind of difficult to get the case open to connect the 2TB WD drive to my Ubuntu desktop.</p> <p>You have to take care to remove a lot of the screws that hold the My Book Live together so as not to short anything in<br /> your desktop!!!</p> <p>Kaminari</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1163163</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1163163</link>
				<description></description>
				<pubDate>Fri, 27 May 2011 01:43:51 +0000</pubDate>
				<wikidot:authorName>seeARMS</wikidot:authorName>				<wikidot:authorUserId>938083</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>It worked - thanks a lot! :D<br /> Basically, if anyone's getting the following error:</p> <div class="code"> <pre><code>mdadm: Note: this array has metadata at the start and may not be suitable as a boot device. If you plan to store '/boot' on this device please ensure that your boot-loader understands md/v1.x metadata, or use --metadata=0.90</code></pre></div> <p>Then change the following line in &quot;freshInstall.sh&quot;:<br /> mdadm &#8212;create ${rootfsDevice} &#8212;verbose &#8212;raid-devices=2 &#8212;level=raid1 &#8212;run ${rootfsDisk1} missing</p> <p>to</p> <p>mdadm &#8212;create ${rootfsDevice} &#8212;verbose &#8212;metadata=0.9 &#8212;raid-devices=2 &#8212;level=raid1 &#8212;run ${rootfsDisk1} missing</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1162596</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1162596</link>
				<description></description>
				<pubDate>Thu, 26 May 2011 12:55:06 +0000</pubDate>
				<wikidot:authorName>bourgeoa</wikidot:authorName>				<wikidot:authorUserId>455079</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Looking at your logfile there seem to be a Pb with metadata level in mdadm create</p> <p>May be this link and the related forum could be of help :<br /> [<a href="http://mybookworld.wikidot.com/forum/t-273769#post-1042634">http://mybookworld.wikidot.com/forum/t-273769#post-1042634</a> ]</p> <p>If it works, please make a return</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1162359</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1162359</link>
				<description></description>
				<pubDate>Thu, 26 May 2011 03:23:51 +0000</pubDate>
				<wikidot:authorName>seeARMS</wikidot:authorName>				<wikidot:authorUserId>938083</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hey,<br /> I've followed this tutorial exactly maybe three separate times, and every time I haven't encountered any errors, however I'm still unable to get my Mybook Live 1TB to work&#8230;<br /> It doesn't get detected by my router at all - it doesn't show up under Devices so I'm not even able to try to ping it, etc.</p> <p>Any help would be greatly appreciated - I've been at this for quite a while and I'm beginning to get frustrated.<br /> My logfile is here (I excluded the ending steps with unmounting + fixing the bytesize): <a href="http://pastebin.com/7ruQLKFm">http://pastebin.com/7ruQLKFm</a></p> <p>Thanks.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1151107</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1151107</link>
				<description></description>
				<pubDate>Sat, 14 May 2011 02:20:06 +0000</pubDate>
				<wikidot:authorName>H0w1tz3r</wikidot:authorName>				<wikidot:authorUserId>887182</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello there, firstly thank you for your help and work on this. I am completely new to Linux (as I am installing it now).</p> <p>As someone who is completely new to Ubuntu, are you entering the commands into the terminal? Sorry for being so lost and asking so Many questions.</p> <p>Thank you<br /> Marty.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1138446</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1138446</link>
				<description></description>
				<pubDate>Thu, 28 Apr 2011 11:33:33 +0000</pubDate>
				<wikidot:authorName>miguelsvieira</wikidot:authorName>				<wikidot:authorUserId>154134</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Just for the reference: I fumbled with my MyBookLive's SSH settings, and was completely locked out from it. (I used both <tt>AllowGroups</tt> and <tt>AllowUsers</tt> in <tt>/etc/sshd_config</tt>; thought that it would work as a logical &quot;OR&quot;, but it works like an &quot;AND&quot;: the allowed users only have access if they're also from the allowed groups.)</p> <p>I still had web UI access, but I simply don't use it &#8212; I'm under GNU/Linux, so I'm using ssh / sftp even for accessing shared files. I tried both types of factory restore, but it didn't help; I was starting to think that it'd be necessary to physically open it up (and change the messed-up file manually, or, if that didn't work, follow this procedure for completely bricked units).</p> <p>Eventually, I found out that a firmware upgrade did the trick. I downloaded the current firmware from WDC's website (the same one I had installed!), and updated it from file through the web UI; upon reboot, SSH settings were back to default.</p> <p>I'm kind of glad that I had not disabled the web UI. If I had disabled it, I would have no option but opening the unit and completely debricking. (I know it can be done, but I'm *sure* I'll break all those clips. :-)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1129539</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1129539</link>
				<description></description>
				<pubDate>Mon, 18 Apr 2011 19:18:53 +0000</pubDate>
				<wikidot:authorName>bourgeoa</wikidot:authorName>				<wikidot:authorUserId>455079</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Thank you for for the precision</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1129498</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1129498</link>
				<description></description>
				<pubDate>Mon, 18 Apr 2011 18:36:47 +0000</pubDate>
				<wikidot:authorName>gianseo</wikidot:authorName>				<wikidot:authorUserId>847807</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I DID comment zeroing the the partition and it didn't work out, sorry I didn't write correctly the previous post :-)<br /> In the first attempt I commented both, maybe something went wrong there and made the second attempt useless&#8230;.hopefully the next person will try to do as @megadoz said right away.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1129356</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1129356</link>
				<description></description>
				<pubDate>Mon, 18 Apr 2011 16:17:50 +0000</pubDate>
				<wikidot:authorName>bourgeoa</wikidot:authorName>				<wikidot:authorUserId>455079</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I think you made the wrong choice :</p> <div class="code"> <pre><code>Zeroing means deleting all you datas, and replace them by zeros. You should have commented this line. ##zeroing in partitionDisk.sh : #dd if=/dev/zero of=${disk}4 bs=1M count=32 and keep the following one which reconstruct the filesystem ##makefilesystem in freshInstall.sh : mkfs.ext4 -b 65536 -m 0 ${disk}4</code></pre></div> <p>So no-one tried the @megadoz solution to keep data's</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1129242</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1129242</link>
				<description></description>
				<pubDate>Mon, 18 Apr 2011 13:16:10 +0000</pubDate>
				<wikidot:authorName>gianseo</wikidot:authorName>				<wikidot:authorUserId>847807</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Yes, I tried.<br /> At first I commented out both</p> <p>##makefilesystem in freshInstall.sh :<br /> mkfs.ext4 -b 65536 -m 0 ${disk}4</p> <p>##zeroing in partitionDisk.sh :<br /> dd if=/dev/zero of=${disk}4 bs=1M count=32</p> <p>then tried only with zeroing in partitionDisk.sh . In both cases the debrick didn't work. Only executing the original scripts made it come back.</p> <p>One note: after debricking using the latest fw, I tried to run a &quot;Fake&quot; update and it failed; I had to execute a complete factory reset from the WD UI to gain back the update feature.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1128367</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1128367</link>
				<description></description>
				<pubDate>Sun, 17 Apr 2011 13:38:45 +0000</pubDate>
				<wikidot:authorName>bourgeoa</wikidot:authorName>				<wikidot:authorUserId>455079</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Did you try to keep the data on :<br /> <a href="http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1027553">http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1027553</a></p> <p>We need to have a return on that to help improve the &quot;How to&quot;.<br /> It seems that nobody tried it.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1128305</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1128305</link>
				<description></description>
				<pubDate>Sun, 17 Apr 2011 10:50:29 +0000</pubDate>
				<wikidot:authorName>gianseo</wikidot:authorName>				<wikidot:authorUserId>847807</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Thanks, it worked!!<br /> My MBL is back to life&#8230;lost all the files on it, but it's back!!!<br /> thanks</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1107485</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1107485</link>
				<description></description>
				<pubDate>Mon, 04 Apr 2011 01:22:29 +0000</pubDate>
				<wikidot:authorName>bogie</wikidot:authorName>				<wikidot:authorUserId>691044</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Sorry - I wish I could remember. It was getting late at night and at one point I stopped taking notes.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1104695</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1104695</link>
				<description></description>
				<pubDate>Sat, 02 Apr 2011 19:41:11 +0000</pubDate>
				<wikidot:authorName>rrodas64</wikidot:authorName>				<wikidot:authorUserId>816697</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hi Guys.</p> <p>I do not speak much English but I have the same problem that some of this forum: My MBK 2TB stopped working. (probably because it suddenly disconnected.)</p> <p>The fact is that I have removed the HD and I connected to my PC running Ubuntu.</p> <p>The point is that as I know very little about Linux, I almost lost. Could someone give me give me a guide a little more detail of the commands that I have to write, and how and where to write the scripts.</p> <p>Thanks and have been lucky to find this forum.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1071857</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1071857</link>
				<description></description>
				<pubDate>Mon, 21 Mar 2011 15:06:41 +0000</pubDate>
				<wikidot:authorName>bourgeoa</wikidot:authorName>				<wikidot:authorUserId>455079</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>@jonj678 : In that case you could have made a backup-up of the firmware file installed in your MyBook Live at :</p> <div class="code"> <pre><code>/CacheVolume/updateFirmware.deb</code></pre></div> <p>that's what I did.</p> <p>PS : <strong>there is a specific MyBook Live page section <a href="http://mybookworld.wikidot.com/mybook-live">mybook-live</a> for Hacks and Tutos</strong></p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1071581</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1071581</link>
				<description></description>
				<pubDate>Mon, 21 Mar 2011 12:46:16 +0000</pubDate>
				<wikidot:authorName>jonj678</wikidot:authorName>				<wikidot:authorUserId>691269</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Thank you for the link, it's good of you to upload it. Downloading now<br /> My device isn't bricked yet, but every day it gets a little closer. It's worth planning ahead I think.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1071437</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1071437</link>
				<description></description>
				<pubDate>Mon, 21 Mar 2011 11:06:30 +0000</pubDate>
				<wikidot:authorName>bourgeoa</wikidot:authorName>				<wikidot:authorUserId>455079</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Which line did you comment out to try to preserve your data on sda4 ?<br /> (megadoz said we could skip zeroing sda4 partition not the mkfs.ext4)</p> <div class="code"> <pre><code>##makefilesystem in freshInstall.sh : mkfs.ext4 -b 65536 -m 0 ${disk}4 ##or zeroing in partitionDisk.sh : dd if=/dev/zero of=${disk}4 bs=1M count=32</code></pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1071398</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1071398</link>
				<description></description>
				<pubDate>Mon, 21 Mar 2011 10:32:57 +0000</pubDate>
				<wikidot:authorName>bourgeoa</wikidot:authorName>				<wikidot:authorUserId>455079</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I don't know were you can find the old firmware.<br /> The above link gives only the latest one &quot;010303&quot;.</p> <p>You can find my copy here <a href="http://dl.free.fr/kP4k6WR1T">http://dl.free.fr/kP4k6WR1T</a>. Hope it works</p> <p>ps : There is a special page section Hacks &amp; Tutos for MyBook Live <a href="http://mybookworld.wikidot.com/mybook-live">mybook-live</a></p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1070567</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1070567</link>
				<description></description>
				<pubDate>Mon, 21 Mar 2011 04:00:40 +0000</pubDate>
				<wikidot:authorName>jonj678</wikidot:authorName>				<wikidot:authorUserId>691269</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>What would be the equivalent to wget <a href="http://download.wdc.com/nas/apnc-010303-20110119.deb">http://download.wdc.com/nas/apnc-010303-20110119.deb</a> for the 010203 firmware? I don't know what the release date was so editing the url by guesswork hasn't gone well.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1070300</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1070300</link>
				<description></description>
				<pubDate>Mon, 21 Mar 2011 01:42:15 +0000</pubDate>
				<wikidot:authorName>bogie</wikidot:authorName>				<wikidot:authorUserId>691044</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Some feedback:</p> <p>I used this thread tonight to rebuild a 2Tb MBL from scratch after I bricked it by unplugging from the mains without shutting down. I can confirm that everything works and I have a factory fresh install working again. Thank you megadoz and others&#8230;</p> <p>I used Ubuntu 10. I concatenated all the shell files together into a single shell executable because for some reason the variables from disk-param were not getting shared with the other shell programs. Happy to post it here if it helps someone but I don't want to confuse this thread so I won't unless asked (it does not contain any new information).</p> <p>I had some problems&#8230;<br /> At first I commented out the formatting of sda4 to try to preserve my data partition but this had the side effect of not writing a disk label to the raid volume /dev/md0. Things started to go wrong until I cleaned my system, So I had to stop the volume, remove it, and then delete the superblocks from the two partitions that make the volume (in my case /dev/sdb1 and /dev/sdb2). I used these commands:<br /> mdadm &#8212;stop /dev/md0<br /> mdadm &#8212;remove /dev/md0<br /> mdadm &#8212;zero-superblock &#8212;force &#8212;verbose /dev/sdb1<br /> mdadm &#8212;zero-superblock &#8212;force &#8212;verbose /dev/sdb2</p> <p>I found that these two lines in freshinstall.sh result in errors when it is run, maybe because the individual partitions are not visible and are already combined in a raid device by this time?<br /> mdadm &#8212;zero-superblock &#8212;force &#8212;verbose ${rootfsDisk1} &gt; /dev/null<br /> mdadm &#8212;zero-superblock &#8212;force &#8212;verbose ${rootfsDisk2} &gt; /dev/null<br /> When I ran these commands manually, followed by the script, everything worked fine.</p> <p>Good luck.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1027553</guid>
				<title>Re: Completly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1027553</link>
				<description></description>
				<pubDate>Sat, 05 Mar 2011 03:36:24 +0000</pubDate>
				<wikidot:authorName>megadoz</wikidot:authorName>				<wikidot:authorUserId>735058</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>You may repartition disk as you need, and you may skip zeroing sda4 partition.<br /> MAIN thing - you MUST fix byteorder on md superblock using swap.c after any manipulations with disk on your Linux PC (x86 and x86_64 in your PC is LittleEndian architecture, but PPC in your MyBookLive is BigEndian)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1026050</guid>
				<title>Re: Completly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1026050</link>
				<description></description>
				<pubDate>Fri, 04 Mar 2011 16:41:54 +0000</pubDate>
				<wikidot:authorName>bourgeoa</wikidot:authorName>				<wikidot:authorUserId>455079</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>good job but why did you suppress in 'freshInstall.sh' ?</p> <div class="code"> <pre><code>createDataVolume.sh # which creates all needed directories.</code></pre></div> <br /> Basicaly what you are doing is a 'Quick Factory Restore' for a full bricked device with no access at all to the MyBook Live.<br /> If you have access to SSH and not to WebUI then you can do (so you don't have to take out your drive) : <div class="code"> <pre><code># usr/local/sbin/factoryRestore.sh # reboot</code></pre></div> <p>What would be of interest should be <strong>to have a debricking guide keeping /DataVolume in place</strong>. Clearing only partition 1 to 3 keeping 4 untouched.<br /> If someone could help to modify 'partitionDisk.sh' and 'freshInstall.sh' then we have everything to write a full debricking guide.</p> <p>createDataVolume.sh</p> <div class="code"> <pre><code>#!/bin/sh ########################################## # � 2010 Western Digital Technologies, Inc. All rights reserved. # # createDataVolume - create default data volume directories ########################################## PATH=/sbin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin . /usr/local/sbin/disk-param.sh echo &quot;&lt;===== Create Data Volume =====&gt;&quot; logger -p local0.info &quot;createDataVolume: mount data volume&quot; mkdir -p /DataVolume mount -t ext4 -o noatime,nodelalloc $dataVolumeDevice /DataVolume mkdir -p /DataVolume/cache mkdir -p &quot;/DataVolume/shares/Public/Shared Music&quot; mkdir -p &quot;/DataVolume/shares/Public/Shared Videos&quot; mkdir -p &quot;/DataVolume/shares/Public/Shared Pictures&quot; mkdir -p &quot;/DataVolume/shares/Public/Software&quot; chmod -R 755 /DataVolume/shares chmod -R 775 /DataVolume/shares/Public chgrp -R share /DataVolume/shares # create hidden backup shares mkdir -p /DataVolume/backup/SmartWare mkdir -p /DataVolume/backup/TimeMachine chmod 755 /DataVolume/backup chmod 775 /DataVolume/backup/SmartWare chmod 775 /DataVolume/backup/TimeMachine chgrp -R share /DataVolume/backup</code></pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1025981</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1025981</link>
				<description></description>
				<pubDate>Fri, 04 Mar 2011 16:18:53 +0000</pubDate>
				<wikidot:authorName>tomas123</wikidot:authorName>				<wikidot:authorUserId>319652</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>you forgot the path to apnc-010303-20110119.deb:</p> <div class="code"> <pre><code># wget http://download.wdc.com/nas/apnc-010303-20110119.deb # dpkg -c /CacheVolume/apnc-010303-20110119.deb drwxr-xr-x root/root 0 2011-01-19 16:16 ./ drwxr-xr-x root/root 0 2011-01-19 16:16 ./CacheVolume/ drwxr-xr-x root/root 0 2011-01-19 16:22 ./CacheVolume/upgrade/ -rw-r--r-- root/root 36 2011-01-19 16:23 ./CacheVolume/upgrade/rootfs.md5 -rw-r--r-- root/root 2047803392 2011-01-19 16:18 ./CacheVolume/upgrade/rootfs.img</code></pre></div> <p>nice tutorial, I will test it</p> <hr /> <p>I simple copied my original mybook live hdd with dd on my whitebook (with usb sata adapter)<br /> I don't know the exact sector adresses of GPT table - I took a little bit more ;-)</p> <div class="code"> <pre><code># /opt/sbin/parted /dev/sdb GNU Parted 1.7.1 Using /dev/sdb Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print Disk /dev/sdb: 1000GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 3 15.7MB 528MB 513MB primary 1 528MB 2576MB 2048MB ext3 primary raid 2 2576MB 4624MB 2048MB ext3 primary raid 4 4624MB 1000GB 996GB ext3 primary ## ‘M’ mebibyte: 2^20 = 1,048,576. ## copy original WDC WD10EADS to image # dd if=/dev/sdb of=/DataVolume/Download/4GBImage bs=1M count=4700 # /etc/rc.reboot ## copy image to new disk WDC WD15EADS #dd if=/DataVolume/Download/4GBImage of=/dev/sdb bs=1M</code></pre></div> <p>this works fine.<br /> After reboot of mybook live with the new disk go to the web interface and make a factory reset for formating sda4.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1025162</guid>
				<title>Re: Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1025162</link>
				<description></description>
				<pubDate>Fri, 04 Mar 2011 07:35:02 +0000</pubDate>
				<wikidot:authorName>Cromwell221</wikidot:authorName>				<wikidot:authorUserId>735493</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Thank you very much! Hope I' ll not have to use your instruction =)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-317579#post-1025024</guid>
				<title>Complitly debricking guide (draft)</title>
				<link>http://mybookworld.wikidot.com/forum/t-317579/complitly-debricking-guide-draft#post-1025024</link>
				<description></description>
				<pubDate>Fri, 04 Mar 2011 05:37:46 +0000</pubDate>
				<wikidot:authorName>megadoz</wikidot:authorName>				<wikidot:authorUserId>735058</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>First of all, english is not my native language, so i am sorry fo poor english</p> <p>recovery procedure based on WD scripts, found on original firmware<br /> requirements:<br /> Linux PC (Ubuntu 10.10 for me) with installed parted, mdadm and gcc</p> <p>WD HDD plugged on your PC (for me - /dev/sdf)</p> <p>disk-param.sh</p> <div class="code"> <pre><code>#!/bin/sh ########################################### # � 2010 Western Digital Technologies, Inc. All rights reserved. # # definition list for a 1NC product ########################################### factoryRestoreSettings=/etc/.factory_restore_settings reformatDataVolume=/etc/.reformat_data_volume diskWarningThresholdReached=/etc/.freespace_failed disk=/dev/sdf dataVolumeDevice=&quot;${disk}4&quot; swapDevice=&quot;${disk}3&quot; rootfsDevice=&quot;/dev/md0&quot; rootfsDisk1=&quot;${disk}1&quot; rootfsDisk2=&quot;${disk}2&quot; blockSize=64k blockCount=31247 # The fill pattern needs to be verified for every release to manufacturing backgroundPattern=0xE5</code></pre></div> <p>freshInstall.sh</p> <div class="code"> <pre><code>#!/bin/sh # # � 2010 Western Digital Technologies, Inc. All rights reserved. # # freshInstall.sh # PATH=/sbin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin . /path/to/parted/disk-param.sh # create the new disk partitions ./partitionDisk.sh # clear out any old md superblock data mdadm --zero-superblock --force --verbose ${rootfsDisk1} &gt; /dev/null mdadm --zero-superblock --force --verbose ${rootfsDisk2} &gt; /dev/null sync mdadm --create ${rootfsDevice} --verbose --raid-devices=2 --level=raid1 --run ${rootfsDisk1} missing mdadm --wait ${rootfsDevice} sleep 1 # create the swap partition mkswap ${disk}3 # format the rootfs raid mirror file system mkfs.ext3 -c -b 4096 ${rootfsDevice} # format the data volume file system mkfs.ext4 -b 65536 -m 0 ${disk}4 #mkfs.xfs -f -b size=65536 ${disk}4 sync sleep 2 # mount and configure the data volume # add the second partition to the raid mirror mdadm ${rootfsDevice} --add --verbose ${rootfsDisk2} sleep 1 echo echo &quot;Please wait for raid RE-SYNC to complete..&quot; sleep 1 mdadm --wait ${rootfsDevice} mdadm --detail ${rootfsDevice} echo &quot;Done.&quot; sync # a reboot is performed by the caller</code></pre></div> <p>partitionDisk.sh</p> <div class="code"> <pre><code>#!/bin/sh # # � 2010 Western Digital Technologies, Inc. All rights reserved. # # partitionDisk.sh # PATH=/sbin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin . /path/to/disk-param.sh # Apollo 3G parition layout: # # /dev/md0 -RFS # /dev/${disk}1 - RFS (main) # /dev/${disk}2 - RFS (backup) #/dev/${disk}3 - swap #/dev/${disk}4 - /DataVolume (includes /var) # echo &quot;Partition Disk: ${disk}...&quot; backgroundPattern=&quot;${backgroundPattern:-0}&quot; # # this script assumes that all preparatory steps have already been taken! # # clear any old partitioning data, etc. if [ -e &quot;${disk}1&quot; ]; then dd if=/dev/zero of=${disk}1 bs=1M count=32 fi if [ -e &quot;${disk}2&quot; ]; then dd if=/dev/zero of=${disk}2 bs=1M count=32 fi if [ -e &quot;${disk}3&quot; ]; then dd if=/dev/zero of=${disk}3 bs=1M count=32 fi if [ -e &quot;${disk}4&quot; ]; then dd if=/dev/zero of=${disk}4 bs=1M count=32 fi if [ -e &quot;${disk}&quot; ]; then # use badblocks here to preseve any background pattern badblocks -swf -b 1048576 -t ${backgroundPattern} ${disk} 16 0 fi sync sleep 2 #parted $disk mklabel msdos # use a 'here document' to allow parted to understand the -1M parted $disk --align optimal &lt;&lt;EOP mklabel gpt mkpart primary 528M 2576M mkpart primary 2576M 4624M mkpart primary 16M 528M mkpart primary 4624M -1M set 1 raid on set 2 raid on quit EOP #parted $disk --align optimal &lt;&lt;EOP #mklabel gpt #mkpart primary 16M 2064M #mkpart primary 2064M 4112M #mkpart primary 4112M 4624M #mkpart primary 4624M -1M #set 1 raid on #set 2 raid on #quit #EOP # 2064 - 16 = 2048 # 4112 - 2064 = 2048 # 4624 - 4112 = 512 # sync sleep 1 parted $disk print</code></pre></div> <p>so..<br /> partition new disk and create md-raid on it:</p> <p>exec freshInstall.sh</p> <p>from apnc-010303-20110119.deb extract rootfs.img and dd it on new raid:<br /> dd if=rootfs.img of=/dev/md0</p> <p>mount new rootfs and edit some settings:</p> <p>mkdir /mnt/rootfs<br /> mount /dev/md0 /mnt/rootfs</p> <p>cp /mnt/rootfs/usr/local/share/bootmd0.scr /mnt/rootfs/boot/boot.scr<br /> enable ssh<br /> echo &quot;enabled&quot; &gt; /mnt/rootfs/etc/nas/service_startup/ssh<br /> sync<br /> sync<br /> sync<br /> umount /mnt/rootfs</p> <p>some black-magic for byteorder fixing (PPC BE vs x86 LE)</p> <p>swap.c</p> <div class="code"> <pre><code>#include &lt;unistd.h&gt; #include &lt;stdlib.h&gt; #include &lt;fcntl.h&gt; #include &lt;stdio.h&gt; #include &lt;sys/mount.h&gt; #define MD_RESERVED_BYTES (64 * 1024) #define MD_RESERVED_SECTORS (MD_RESERVED_BYTES / 512) #define MD_NEW_SIZE_SECTORS(x) ((x &amp; ~(MD_RESERVED_SECTORS - 1)) - MD_RESERVED_SECTORS) main(int argc, char *argv[]) { int fd, i; unsigned long size; unsigned long long offset; char super[4096]; if (argc != 2) { fprintf(stderr, &quot;Usage: swap_super device\n&quot;); exit(1); } fd = open(argv[1], O_RDWR); if (fd&lt;0) { perror(argv[1]); exit(1); } if (ioctl(fd, BLKGETSIZE, &amp;size)) { perror(&quot;BLKGETSIZE&quot;); exit(1); } offset = MD_NEW_SIZE_SECTORS(size) * 512LL; if (lseek64(fd, offset, 0) &lt; 0LL) { perror(&quot;lseek64&quot;); exit(1); } if (read(fd, super, 4096) != 4096) { perror(&quot;read&quot;); exit(1); } for (i=0; i &lt; 4096 ; i+=4) { char t = super[i]; super[i] = super[i+3]; super[i+3] = t; t=super[i+1]; super[i+1]=super[i+2]; super[i+2]=t; } /* swap the u64 events counters */ for (i=0; i&lt;4; i++) { /* events_hi and events_lo */ char t=super[32*4+7*4 +i]; super[32*4+7*4 +i] = super[32*4+8*4 +i]; super[32*4+8*4 +i] = t; /* cp_events_hi and cp_events_lo */ t=super[32*4+9*4 +i]; super[32*4+9*4 +i] = super[32*4+10*4 +i]; super[32*4+10*4 +i] = t; } if (lseek64(fd, offset, 0) &lt; 0LL) { perror(&quot;lseek64&quot;); exit(1); } if (write(fd, super, 4096) != 4096) { perror(&quot;write&quot;); exit(1); } exit(0); }</code></pre></div> <p>gcc swap.c -o swap</p> <p>mdadm &#8212;stop /dev/md0<br /> ./swap /dev/sdf1<br /> ./swap /dev/sdf2</p> <p>unplug HDD this from PC, connect it with WD MyBookLive and boot<br /> Firmware restored. Device unbricked.</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>