Mailinglist Archive: opensuse-project (479 mails)

< Previous Next >
Re: [opensuse-project] openSUSE 11.3, disk expert needed (SSD + hdparm/wiper.sh error: /usr/sbin/rdev needed but not found)
  • From: Johannes Nohl <johannes.nohl@xxxxxxxxx>
  • Date: Wed, 12 Jan 2011 18:53:51 +0100
  • Message-id: <AANLkTikydCeum+P4ku_32YA5Mv=5EJr4pDRtVF4JqoB-@mail.gmail.com>
2011/1/12 Greg Freemyer <greg.freemyer@xxxxxxxxx>:
Mark,

I just got a problem report about wiper.sh needing /usr/sbin/rdev.

That seems to have been deprecated for a while.  Googling
"usr/sbin/rdev" I see the same issue raised for several distros.

Are you working on a hdparm update / patch to address that?

Thanks
Greg

As far as I understand rdev is only needed to tell which is the root
device "/". If it's safe to extract this info from /etc/mtab I would
suggest to get it there.

Diff for /sbin/wiper.sh in hdparm 9.36:

261,262d260
< elif [ "$RDEV" == "" -a `$GAWK '{if ($2 ~ /^\/$/) print $1}'
/etc/mtab` != "" ]; then
< rootdev=`$GAWK '{if ($2 ~ /^\/$/) print $1}' /etc/mtab` ## openSUSE

This enables me to do a dry-run of wiper.sh on openSUSE 11.3 (didn't
try with --commit).
--
To unsubscribe, e-mail: opensuse-project+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-project+help@xxxxxxxxxxxx

< Previous Next >
This Thread