Dear Mary:
Sorry! I think smartd is not same as sdparm. Is it a wrong link? Or I am wrong, please correct me. Thanks!
I check a numbers of search & make the procedure together is like that. If anyone find this is not correct. Please let me know. Thanks!
*** install sdparm procedure
*** setup dag repository
/sbin/e-smith/db yum_repositories set dag repository \
Name 'Dag - EL4' \
BaseURL '
http://apt.sw.be/redhat/el4/en/$basearch/dag' \
EnableGroups no \
GPGCheck yes \
GPGKey
http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt \
Visible no \
Exclude freetype,htop,iptraf,rsync,syslinux \
status disabled
*** update the yum database
signal-event yum-modify
***wait unit yum update is finished. You can use command
ps -A
to see the yum process is still running or not.
*** install sdparm via yum
yum install --enablerepo dag sdparm
***Create a script for start the usb harddisk before backup
pico /etc/e-smith/events/actions/usbrecover.sh
*** put the line into the usbrecover.sh
sdparm --command=start /dev/sda
*** ctrl -X to close & save
*** Change mode of the usbrecover.sh
chmod +x /etc/e-smith/events/actions/usbrecover.sh
***create a symlink to it in this way:
cd /etc/e-smith/events/pre-backup
ln -s /etc/e-smith/events/actions/usbrecover.sh 00usbrecover
Thank you for all who replied to me. This problem encountered for a long time & make the backup not work very well.
Thanks again!
David Yip