Quantcast
Viewing all articles
Browse latest Browse all 58

Re: Completly debricking guide (draft)

good job but why did you suppress in 'freshInstall.sh' ?

 createDataVolume.sh # which creates all needed directories. 

Basicaly what you are doing is a 'Quick Factory Restore' for a full bricked device with no access at all to the MyBook Live.
If you have access to SSH and not to WebUI then you can do (so you don't have to take out your drive) :
 # usr/local/sbin/factoryRestore.sh # reboot 

What would be of interest should be to have a debricking guide keeping /DataVolume in place. Clearing only partition 1 to 3 keeping 4 untouched.
If someone could help to modify 'partitionDisk.sh' and 'freshInstall.sh' then we have everything to write a full debricking guide.

createDataVolume.sh

 #!/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 "<===== Create Data Volume =====>" logger -p local0.info "createDataVolume: mount data volume" mkdir -p /DataVolume mount -t ext4 -o noatime,nodelalloc $dataVolumeDevice /DataVolume mkdir -p /DataVolume/cache mkdir -p "/DataVolume/shares/Public/Shared Music" mkdir -p "/DataVolume/shares/Public/Shared Videos" mkdir -p "/DataVolume/shares/Public/Shared Pictures" mkdir -p "/DataVolume/shares/Public/Software" 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 

Viewing all articles
Browse latest Browse all 58

Trending Articles