Clean OS (Debian), OpenMediaVault and other "firmwares"

Hello

there is a guide on how to do it under macbook? which program you should take in order to extract the files and install!
I took unarchiver and VSSH lite to install and get the following error:
WDMyCloud: ~ # cd / Data Volume / shares / Public
WDMyCloud: / Data Volume / shares / Public # chmod + x install.sh
WDMyCloud: / Data Volume / shares / Public # ./install.sh
-bash: ./install.sh: / bin / bash ^ M: bad interpreter: No such file or directory
WDMyCloud: / Data Volume / shares / Public #

use dos2unix

Hi Evostar!

I have followed your tutorial and have access to the DSM webgui. Unfortunately I get the message ’ no hard disk found’ … What am I doing wrong? Is it because the HDD is still labeled as ‘gpt’?

Thanx!

newkey

Hi Fox,

is it possible to add sfdisk to your Recovery Image with fdisk
this will make it possible to Move to to DSM without losing the data as we can change the partion table

we can change the Data Partion Number to be sda3 instead of sda4 and create the new partions as per the rest of your tutorials

this is an Example on how it can be done with sfdisk

# sfdisk -d /dev/sdb > sdb.bkp
leave a copy for safety

# cp sdb.bkp sdb.new 
now edit sdb.new changing ONLY the lines order and partition numbers, as in my case:

from

# partition table of /dev/sdb
unit: sectors

/dev/sdb1 : start=  1026048, size=975747120, Id=83
/dev/sdb2 : start=     2048, size=   204800, Id=83
/dev/sdb3 : start=   206848, size=   819200, Id= b
/dev/sdb4 : start=        0, size=        0, Id= 0
to

# partition table of /dev/sdb
unit: sectors

/dev/sdb1 : start=     2048, size=   204800, Id=83
/dev/sdb2 : start=   206848, size=   819200, Id= b
/dev/sdb3 : start=  1026048, size=975747120, Id=83
/dev/sdb4 : start=        0, size=        0, Id= 0
then throw it back to the disk partition table?

# sfdisk /dev/sdb < sdb.new
My numbering sequence was mangled after I shrank&shifted right the only partition (sdb1) to add two smaller partitions at the start of the disk using gparted.

If the last command does not work, as in my case, change it for:

# sfdisk --no-reread -f /dev/sdb < sdb.new

You can save all data: Just dont format sda3 (Data volume).
But need align data partitions like in original.
Something like this:
mkpart primary 1M 2048M mkpart primary 2048M 3072M mkpart primary 4828M -1M mkpart primary 3072M 3106M mkpart primary 3106M 3134M mkpart primary 3134M 3136M mkpart primary 3136M 3138M mkpart primary 3138M 4828M
And don’t run this:
mkfs.ext3 /dev/sda3
maybe need check data volume…

1 Like

Thank you Fox_exe and Evostar , I managed to settle here dsm.
Probleme this one a no serial number, and then I indicate this number?

is that possiple
you mean that i should do:
parted /dev/sda rm 1 rm 2 rm 3 rm 4 rm 5 rm 6 rm 7 rm 8
then

`mkpart primary 1M 2048M
mkpart primary 2048M 3072M
mkpart primary 4828M -1M
mkpart primary 3072M 3106M
mkpart primary 3106M 3134M
mkpart primary 3134M 3136M
mkpart primary 3136M 3138M
mkpart primary 3138M 4828M’

q
mkswap /dev/sda2
mkfs.ext3 /dev/sda1

And don’t run this:
'mkfs.ext3 /dev/sda3`

and all my Data will remain untouched ??
are positive of that :slightly_smiling:

Yep.
Not tested, but should work (Maybe need align in sectors, but i thinks this can work in MB)

Hey Fox_exe and all,

there is still the ‘no hdd found’ problem. Is there any chance someone can give me a hint?

Thx

Try mount -a
And check if /dev/sda3 exist and mount correctly:
mount | grep /dev/sda3

Hi Fox_exe,

just registered to tell you how glad i am that you share your work here. I received my WD My Cloud today and immediately installed Debian Jessie on it - works like charm. Is there a possiblity to donate a few bucks to you?

Unfortunately the network speed is very poor (especially FTP which gives me 3,9mb/s, SCP does 7,9mb/s), but i guess that is a hardware issue.

Best regards and keep up your great work,

Miles

hi i’ve been using your omv firmware since last year without any problem.
but today i tried to add Google DNS adresses in webgui and something went wrong. since then i couldn’t reach the nas anymore. can you help me please?

i tried with your recovery packet on windows 10 but dhcp gives me this output
Listening On: 192.168.0.1
Network changed, re-detecting Static Interfaces…
Accept Failed, WSAError 10038
Warning: Section [LISTEN_ON], Interface 192.168.0.1 is not Static, ignored
No Static Interface ready, Waiting…
Network changed, re-detecting Static Interfaces…
Lease Status URL: http://127.0.0.1:6789
Listening On: 192.168.0.1
Network changed, re-detecting Static Interfaces…
Accept Failed, WSAError 10038
Warning: Section [LISTEN_ON], Interface 192.168.0.1 is not Static, ignored
No Static Interface ready, Waiting…
Network changed, re-detecting Static Interfaces…
Lease Status URL: http://127.0.0.1:6789
Listening On: 192.168.0.1``

Tried your advice and it works until the next reboot. Have to put the hdd back to my linux machine and run it all over… Why is that? Thanks for help

Since you have the knowledge of using the recovery packet. What do you think about the
ability to use the recovery packet to upload a special version of Linux that would capture the log files to the users PC. This would be a great help in determining why a device won’t boot.

RAC

Use “recovery” package for that, then just mount rootfs and see what you need.

Thanks. I tried to search for recovery package. Only found one link and it got 404 error.
Could you please provide link to the recovery package?

RAC

All files available in Google drive folder and my site. See in header of this thread.

Just to be sure. I can use this procedure up to the point of telnet. Once I telnet in I can run my commands. When I’m done I can reboot the My Cloud and it will be back to normal. I don’t want to over write anything on the My Cloud.

Thanks
RAC

FOX you are my man :smile:
it worked perfectly, I moved to DSM and all my data are in place and and all the services i had before are up and running in the new DSM ( transmission , Wordpress )
Overall rating 10/10
DSM is much more flexible and Most of my previously made scripts to automate my tasks are already built in with no effort
My WD cloud now is officially a station full of potential not just a dummy SAMBA box

Quick note for who ever would Migrate you might need to install the bootstrap after the DSM installation which will allow you to run and install additional linux commands ( it’s like jailbreak for the DSM ) just search for Easy Bootstrap Installer for synology DS414j
It is not much of effort but other than that I can not complain

2 Likes