Re: help (OT, rm -rf /)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 10 Nov 2003 20:09:26 -0500
"Joe Szilagyi" <lists@xxxxxxxxxxx> wrote:

> Just out of curiosity, and since people I know have argued this. If
> you ran rm -rf /, will it keep running until 100% of the system is
> gone leaving only what's in physical memory and RAM, or will it
> eventually choke and fail, leaving some files? We hosed a virtual
> server environment (gomer) on a test box once, and it left just the
> /dev folder, but what will remain if done on non-virtual environments?

Just a minute....

login: root
Password:
Last login: Sun Nov  9 15:00:36 on tty1
root@trustix ~# rm -rf /
rm: cannot remove directory '//dev/pts': Device or resource busy
rm: cannot remove '//proc/scsi/BusLogic/0': Operation not permitted
rm: cannot remove '//proc/scsi/scsi': Operation not permitted
rm: cannot remove '//proc/mdstat': Operation not permitted
rm: cannot remove '//proc/pci': Operation not permitted
rm: cannot remove '//proc/ide/piix': Operation not permitted
rm: cannot remove '//proc/ide/drivers': Operation not permitted
rm: '//proc/ide/hda' changed dev/ino: Operation not permitted
root@trustix ~# 

# I did an 'ls /' and all my directories where still there (bin,
sbin,dev, etc)
# Not content, I then did:

root@trustix ~# rm -rf /*
rm: cannot remove directory '//dev/pts': Device or resource busy
rm: cannot remove '//proc/scsi/BusLogic/0': Operation not permitted
rm: cannot remove '//proc/scsi/scsi': Operation not permitted
rm: cannot remove '//proc/mdstat': Operation not permitted
rm: cannot remove '//proc/pci': Operation not permitted
rm: cannot remove '//proc/ide/piix': Operation not permitted
rm: cannot remove '//proc/ide/drivers': Operation not permitted
rm: '//proc/ide/hda' changed dev/ino: Operation not permitted
root@trustix ~# ls /bin
-bash: /bin/ls: No such file or directory


Yep, it's dead now :-)

BTW, I did this in VMware and copied the error messages by hand, so they
may not be completely correct.


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux