Re: problemi allo shutdown (drive_cmd: ....) Quasi risolto!!!
On Sat, Nov 03, 2001 at 11:25:51PM +0100, Antonio Del Rosso wrote:
Forse ho trovato la soluzione. quando ho installato hdparm, esso ha
aggiunto a /etc/init.d/umountfs le seguenti righe di script:
#
# Turn off write caching on all IDE devices. Systems that
# do poweroff-on-halt might otherwise still be writing
# stuff to disk when the power is yanked - oops.
# The package 'hdparm' needs to be installed for this to
# work, unfortunately there's no /proc interface for it
# yet.
#
if [ -x /sbin/hdparm ] && [ -d /proc/ide ]
then
sync
cd /proc/ide
for i in hd*
do
[ -b /dev/$i ] && hdparm -W0 /dev/$i >/dev/null 2>&1
done
fi
La soluzione potrebbe essere adattare questo script alla mia soluzione:
hda: WDC WD135AA, ATA DISK drive
hdc: Compaq DVD-ROM DVD-114 0114, ATAPI CD/DVD-ROM drive --> emul.scsi
hdd: SHUTTLE, ATAPI CD/DVD-ROM drive --> emul.scsi
Pensavo ad una cosa del genere:
if [ -x /sbin/hdparm ] && [ -d /proc/ide ]
then
sync
cd /proc/ide
for i in hda # non tiene in considerazione hdb e hdc
do
[ -b /dev/$i ] && hdparm -W0 /dev/$i >/dev/null 2>&1
done
fi
Ho paura di combinare casini, dato che non ho molto tempo da dedicare
allo scripting. Mi potete correggere, per favore?
Grazie a tutti,
Antonio
P.s. Mi scuso per la lunghezza dell'email.
Reply to: