Results 1 to 3 of 3
Hi!
I installed the Belkin Home Office UPS
and the included Linux Bulldog software on my
Linux box running Mandrake 9.1.
It complained about the install so I decided
to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-01-2003 #1Just Joined!
- Join Date
- May 2003
- Posts
- 1
UPS software issued "rm -rf /*" Now what?
Hi!
I installed the Belkin Home Office UPS
and the included Linux Bulldog software on my
Linux box running Mandrake 9.1.
It complained about the install so I decided
to uninstall using the provided uninstall script
(see attached). A fault in the script ($path
not set) made the following command
rm -rf $path/*
become
rm -rf /*
Obviously, my system is now dead---comes up but stops
at the bootloader (grub). Is recovery possible?
It was set to the ext3 file system, are there ways that
I can try and recover the deleted files through grub?
Any ideas welcome?
Thanks.
=======================uninstall begin =============
#/bin/sh
# Copyright (c) 2002, Belkin Components
# Script Name: uninstall
# Platform: Linux (RedHat 5.2)
# Date: Feb/6/2002
# Description: Uninstallation program for Bulldog
path
set `/usr/bin/whoami`
if [ $1 != "root" ]
then
echo "You must login under root to execute this program."
echo "Bye !"
exit
fi
echo
echo -n "Do you really want to remove the Belkin Bulldog? [y|n] "
read answer
if [ $answer = "y" ]
then
pid=`/bin/cat $path/UPSD.PID 2> /dev/null`
# pid=`/bin/ps -e | grep upsd | cut -d" " -c1-5`
if [ "${pid}" != "" ]
then
kill -9 $pid
fi
rm -rf $path/*
rm -f $path/*
rm -f /etc/rc.d/rc3.d/S99upslim
rm -f /etc/rc.d/rc5.d/S99upslim
rm -f /usr/lib/libdryhttp.so
echo
echo "Uninstallation complete."
echo
else
echo "Bye !"
fi
=======================uninstall end=============
- 05-01-2003 #2Linux User
- Join Date
- Feb 2003
- Location
- Norway, Asker
- Posts
- 267
no.. i dont think recovery is possible, since /etc /lib and such are gone, amog others. So, reinstall the distro you used, and send in an complaint to Belkin Components
- 05-01-2003 #3Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
I wouldn't think so either, but probably your data is still intact, just that all inodes have been flagged as deleted. It _is_ possible to undelete files, but I wouldn't bet on it. See the undelete-howto on tldp.org.


Reply With Quote
