This stuff is much easier under Fedora
I've got Ubuntu 10.04 NBR installed on my netbook. I've not really delved under the hood of Ubuntu, so I've got myself stuck pretty rapidly. I'm running all this as root through "sudo su - root" if it helps...
I'm trying to monitor my drive (/dev/sda) and have edited the following information into /etc/default/smartmontools: -
/dev/sda -m root@localhost -M exec /usr/share/smartmontools/smartd-runner
This was following the documentation from: https://help.ubuntu.com/community/Smartmontools
but when I try and start smartmontools service I get: -
root@joshua12:~# /etc/init.d/smartmontools start
/etc/default/smartmontools: 14: /dev/sda: Permission denied
Huh?! I'm root and have access to the disk (which is fine, btw, system is running peachy).
I had to use "/dev/sda" instead of DEVICESCAN environment variable (I assume that is what it is anyway) as recommended, because my system doesn't seem to have it and I'm not entirely certain what it should be.
Doing an "ls -la /dev/sda*" for this drive gives me: -
brw-rw---- 1 root disk 8, 0 2010-09-23 17:42 sda
brw-rw---- 1 root disk 8, 1 2010-09-23 17:42 sda1
brw-rw---- 1 root disk 8, 2 2010-09-23 17:42 sda2
brw-rw---- 1 root disk 8, 5 2010-09-23 17:42 sda5
Can anyone help please? Thanks.