NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

wdolson's avatar
wdolson
Guide
Nov 17, 2023
Solved

SSH mdadm no found

I wrote last week about my RN628X converting from a Raid 5 to Raid 6 when I put in a 7th drive.  Sandshark had information on how to convert it back using mdadm.

I tried it and got a message that mdadm wasn't found.  I used

apt-get install mdadm brtfs-progs

 

to try and install it, but for the message that the lock file could not be open with permission denied and asked it I was root.

From what I read setting up the connection with puTTy should have logged me in as root (I am logged in with the admin account).  What am I doing wrong?


  • wdolson wrote:

    I wrote last week about my RN628X converting from a Raid 5 to Raid 6 when I put in a 7th drive.  Sandshark had information on how to convert it back using mdadm.

    I tried it and got a message that mdadm wasn't found.  I used

    apt-get install mdadm brtfs-progs

     


    No need to install either mdadm or btrfs, and best not to try. 

     

    Likely you couldn't find it because you didn't log in as root.

     

    When you use ssh, you need to log in as root, using the NAS admin password.  

3 Replies

  • Hard to say, certainly no need to install anything.

     

    The (default) path is

     

    root@RN628X:~# set | grep PATH
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

     

    root@RN628X:~# find / -name mdadm
    /etc/mdadm
    /etc/default/mdadm
    /etc/logcheck/violations.d/mdadm
    /etc/logcheck/ignore.d.server/mdadm
    /run/mdadm
    /sbin/mdadm
    /usr/share/lintian/overrides/mdadm
    /usr/share/mdadm
    /var/lib/mdadm

     

    root@RN628X:~# which mdadm
    /sbin/mdadm

     

     


  • wdolson wrote:

    I wrote last week about my RN628X converting from a Raid 5 to Raid 6 when I put in a 7th drive.  Sandshark had information on how to convert it back using mdadm.

    I tried it and got a message that mdadm wasn't found.  I used

    apt-get install mdadm brtfs-progs

     


    No need to install either mdadm or btrfs, and best not to try. 

     

    Likely you couldn't find it because you didn't log in as root.

     

    When you use ssh, you need to log in as root, using the NAS admin password.  

    • wdolson's avatar
      wdolson
      Guide

      You're right.  I was logged in as admin, not root.  I closed the SSH session and reopened using root and it worked.

       

      Thanks

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More