NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
wdolson
Nov 17, 2023Guide
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:/binroot@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/mdadmroot@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.
- wdolsonGuide
You're right. I was logged in as admin, not root. I closed the SSH session and reopened using root and it worked.
Thanks
Related Content
NETGEAR Academy

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