You are not logged in.
Hi,
My brother wrote
rm-rf / home
I quickly turned off the PC, I boot with live (knoppix).
Can I retrieve all the contents of /home?
I found photos jpeg, files .odt ... with PhotoRec
but I want to get the /home full.
Thanks
Offline
You should 'rm -rf' your brother !*!*!
Try this [ if you were using ext3 ]:
http://www.xs4all.nl/~carlo17/howto/undelete_ext3.html
Good luck...
Deej
Offline
If he entered what you have actually posted i.e. with a space between '/' and 'home', your problem is not just in the /home dir. The command you have given deletes the root dir, and any file or dir called 'home' in the dir where the command was executed.
I have never needed to recover, or attempt to recover, deleted files, but I believe it depends a lot on the filesystem.
Offline
I wonder if you can find out what was deleted. rm -r seems to use the same order as find, (which seems to be neither alphabetical nor based on inode).
If they do use the same order, something like find /home | head could tell you which folder rm was in before dying. It also seems to delete everything in the starting folder first, so see if all your dotfiles are still there.
Offline
You're screwed probably. Hope you have good backups. One question, how does your brother have your root password? If he did that as his user normal user, nothing would be allowed to happen.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Next time don't give your root password away... or stop normally logging in as root.
Offline
Wow.. yeah ^^ use sudo.
Offline
Man, your brother is a dick.
Offline
Hi,
My brother wrote
rm-rf / home
I quickly turned off the PC, I boot with live (knoppix).
Can I retrieve all the contents of /home?I found photos jpeg, files .odt ... with PhotoRec
but I want to get the /home full.Thanks
rm-rf ? Without space ? If yes, you are lucky
Offline
Next time don't give your root password away... or stop normally logging in as root.
Although, if his brother really wanted to rape his HDD, he would only need a live CD since root is root. Still, short of locking down the BIOS w/ a password to boot and physically locking the case, I dunno what else the OP can do.
@op - have you tried beating your brother
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
For the future, since you're using a knoppix liveCD, you should consider setting a BIOS password to keep your brother off the computer's root account.
Either that or remaster the system so the root account has a password.
Hopefully you have found your answer!
I keep getting distracted from my webserver project...
huh? oooh... shiny!
Offline
Unfortunately he wrote
rm -rf /home
He wanted to install vlc, I logged on as root and I left to with pacman
: rolleyes:
I have lost any important file.
The partition /home is separate from /
In conclusion, it is impossible to find
/home as a whole and so the entire partition.
Offline
I've checked the big book of sibling etiquette and chapter 4, section 5a clearly states that a severe beating is required in this situation.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
omg look at Xyne's post count XD
1337
OP: You need to lay the law down on your brother. I would go ape s*** if my bro did that to me
Offline
Dude that's rough. Was it his idea of a joke or something?
Offline
I prefer my brother that the /home
Offline
I prefer my brother that the /home
+1
Matt
"It is very difficult to educate the educated."
Offline
You should keep backups, and not brothers. Also if you do make a backup, hide it from your brother.
Let this be a lesson for us all to make backups, don't stay as root, and keep brothers in primordial fear.
urxvtc / wmii / zsh / configs / onebluecat.net
Arch will not hold your hand
Offline
I is misunderstood,
I have lost any files (photos, videos, etc. ..) and I made regular backups
(every 15 days).
My question is to find the /home and not to set again software.
I have always the system partition /
Offline
You can try this:
http://www.faqs.org/docs/Linux-mini/Par … RECOVERING
Good luck.
Myself, I'd start over from scratch since everything was backed up then booby trap my deskchair in case the wrong sized butt checks were ever planted in it.
Offline
If the /home dir no longer exists, just recreate it, and mount the required partition on it. Then recreate any user dirs you need, and restore your files from backup.
Offline
If the /home dir no longer exists, just recreate it, and mount the required partition on it. Then recreate any user dirs you need, and restore your files from backup.
But I have no backup configuration files of programs (konqueror, mplayer,
thunderbird (mails ...)
Offline
But I have no backup configuration files of programs (konqueror, mplayer,
thunderbird (mails ...)
So, you *don't* have a backup. You just saved what you thought were important files.
If I was in the same situation, I will surely ban my brother from Linux Heaven and leave him punished by some devilish airy (because of open Windows) operative systems. Also, I will start over and reconfigure all from the scratch. Lost emails? Definitely a bad idea not to set the option "Leave mails on server" for your POP3 accounts or not to use IMAP...
Do not frustrate yourself too much, though: it's just gained experience
syntaxerrormmm - Homepage
Offline
It would be nice to patch rm so that if you try to delete an important directory like your home directory or /, it will ask for your password or the root password again. Is this possible?
-- jwc
http://jwcxz.com/ | blog
dotman - manage your dotfiles across multiple environments
icsy - an alarm for powernappers
Offline
It's actually been done, surprisingly. But there are so many ways of irrevocably clobbering your data... what's the point?
Do you want Linux to be like Windows, asking for confirmation whenever you so much as move the mouse?
Last edited by Peasantoid (2009-05-12 03:29:42)
Offline