My linux world » Diskstation Survival Guide

Diskstation Survival Guide


Recover data

Here are the following commands to recover your data stored in your diskstation.
IMPORTANT: You must insert all the hard disk in your linux operating system.

  1. First, install a centos. You can have a look here
  2. Run the following commands:
    # Install mdadm
    yum install mdadm
     
    # Examine disk /dev/sdb3, and create /etc/mdadm.conf
    echo DEVICE /dev/sdb3 > /etc/mdadm.conf
    mdadm --examine --scan /dev/sdb3 >> /etc/mdadm.conf
     
    # Start raid
    mdadm -A -s -R
     
    # Now mount raid:
    mkdir /mnt/diskstation
    mount /dev/md2 /mnt/diskstation
     
    # Verify that's ok:
    df -h

Troubleshooting

mdadm: /dev/md2 is already in use.
> Solution, stop the raid: mdadm –stop –scan

Install git

Installation:

export PATH=/opt/bin:$PATH
/opt/bin/ipkg update
# /opt/bin/ipkg list | grep git
/opt/bin/install git

My first repo:

mkdir -p /volume1/git/test.git
cd /volume1/git/test.git
git init --bare

Copyright © 2023 My linux world - by Marc RABAHI
Design by Marc RABAHI and encelades.

Fork me on GitHub