I use shell_exec('wmic DISKDRIVE GET SerialNumber 2>&1');
to get serial number of disk drive on window and it's working well.
Now i'm test that on ubuntu and i use echo shell_exec("hdparm -I /dev/sda");
it's empty, nothing shown. How to get serial number in linux
thanks
Edit
i fogot 2>&1
but it say /dev/sda: Permission denied
?