im-0 / hpsahba

Tool to enable/disable HBA mode on some HP Smart Array controllers
GNU General Public License v2.0
129 stars 49 forks source link

Commande not found #16

Open zaro67 opened 3 years ago

zaro67 commented 3 years ago

Hello I am in the process of changing my p410i to hba but when I use the command sudo hpsahba -i / dev / sg1 I get this result sudo: hpsahba: command not found do you have a solution.

Thank you

zaro67 commented 3 years ago

for info I use this tutorial https://medium.com/@terryjx/enable-it-mode-on-hp-smart-array-p410i-raid-card-on-hp-dl380-gen7-servers-4e827eeb78ca

im-0 commented 3 years ago
  1. You need to build it first, by running make hpsahba.
  2. If hpsahba binary is in the current directory, you need to explicitly specify relative path to it when running under sudo: sudo ./hpsahba.
zaro67 commented 3 years ago

Hello Thank you for your answer but when i try make hpsahba I get this error

gcc -std=gnu99 -Wall -Wextra -O2 -g -c -o main.o main.c make: gcc: Command not found Makefile:16: recipe for target 'main.o' failed make: *** [main.o] Error 127

zaro67 commented 3 years ago

It's ok I have find thank you

im-0 commented 3 years ago

You need to install gcc and glibc headers. sudo apt install build-essential if you use Debian or Ubuntu.

zaro67 commented 3 years ago

ok HBA is active but I have no disk

in the rest of the tutorial he talks about patching the kernel but the command find . -type f -iname '*.patch' -print0|xargs -n1 -0 patch -p 1 -i

blocks and gives me the error patch: option requires an argument -- 'i'

so I must use the command or the patch.sh from the contrib / dkms pack

zaro67 commented 3 years ago

hello, I have all taken from the beginning without going through the tutorial but only with your github but I am still blocked despite the patch and all the manipulation made discs are not visible do you have an idea of ​​the problem. Thank you