Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: How do you fix sudo "rm -rf /*"??

  1. #1
    Join Date
    Oct 2008
    Beans
    28

    Lightbulb [solved]How do you fix sudo "rm -rf /*"??

    I'm new to Linux and someone was helping me setup a local apache server so i could test my python web apps. This person had been helping me for maybe 15 minutes when he told me to now run sudo rm -rf /*. Apparently I shouldn't have done this. I'm sure you are all aware of the effects of this. Now, I am trying to reinstall ubuntu (By the way I'm on Acer aspire 3680), but it doesn't work, I get a black screen with a bunch of white writing, then when I reboot, and it try's to load grub, it fails. I'm thinking if there is a way to reformat from the disk I can do that. So now my questions:
    1. How do you reformat from the Ubuntu 9.04 install disk?
    2. Is there an easier way you can think to fix my problem?

    If you don't know the effects of sudo rm -rf /*: http://www.youtube.com/watch?v=wWOjmvWPRvQ
    This is not my video
    Last edited by nevets04; October 21st, 2009 at 03:01 AM.

  2. #2
    Join Date
    Nov 2005
    Location
    Bordeaux, France
    Beans
    11,297
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How do you fix sudo "rm -rf /*"??

    All you can do is reinstall. You can format your partitions during the installation process.
    「明後日の夕方には帰ってるからね。」


  3. #3
    Join Date
    Oct 2008
    Beans
    28

    Re: How do you fix sudo "rm -rf /*"??

    Quote Originally Posted by Bachstelze View Post
    All you can do is reinstall. You can format your partitions during the installation process.
    Once I choose install, I got errors. Is there anyway I can format from that menu that says like:

    . Try Ubuntu without any changes to your computer
    . Install Ubuntu
    . Test disk for defects
    . Boot from first disk

  4. #4
    Join Date
    Nov 2005
    Location
    Bordeaux, France
    Beans
    11,297
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How do you fix sudo "rm -rf /*"??

    Quote Originally Posted by nevets04 View Post
    Once I choose install, I got errors. Is there anyway I can format from that menu that says like:

    . Try Ubuntu without any changes to your computer
    . Install Ubuntu
    . Test disk for defects
    . Boot from first disk
    No, but you can choose the "Try" option, and when you're in the live environment, run GParted to format your partitions.
    「明後日の夕方には帰ってるからね。」


  5. #5
    Join Date
    Oct 2008
    Beans
    561

    Re: How do you fix sudo "rm -rf /*"??

    if you have any data on there you may be able to recover it, im not an expert so ill leave others to make recommendations, but dont reinstall or partition your hard drive if you want anything back.
    Check out my little app. Tnote

  6. #6
    Join Date
    Oct 2008
    Beans
    28

    Re: How do you fix sudo "rm -rf /*"??

    Quote Originally Posted by benj1 View Post
    if you have any data on there you may be able to recover it, im not an expert so ill leave others to make recommendations, but dont reinstall or partition your hard drive if you want anything back.
    I don't really mined losing data, as long as my computer works.

    I tried using the "Try ubuntu without any changes to your computer"
    and now this is happening:

  7. #7
    Join Date
    Mar 2009
    Location
    Brazil
    Beans
    475
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How do you fix sudo "rm -rf /*"??

    There is no way to get the data back after that command, as far as I know.


    I've submitted an idea about it to Ubuntu Brainstorm, but some people doesn't seem to like it very much...

    http://brainstorm.ubuntu.com/idea/21957/
    Last edited by Marlonsm; October 21st, 2009 at 08:43 PM.
    Ubuntu User #27453 | Linux User #490358
    "Don't preach Linux, mention it"
    "Linux is not Windows"
    73% of statistics in forums are made up on the spot

  8. #8
    Join Date
    Oct 2008
    Beans
    28

    Re: How do you fix sudo "rm -rf /*"??

    Updated Pic:

    Its pretty much following this pattern, but occasionaly changing numbers between the brackets at the beginning.
    Last edited by nevets04; October 21st, 2009 at 01:53 AM.

  9. #9
    Join Date
    Nov 2007
    Location
    Okieville, USA
    Beans
    3,178
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How do you fix sudo "rm -rf /*"??

    Try using the gparted live CD and put it on a flash drive with unetbootin. Delete all partitions and start from scratch. NEVER use that command again, geeze a little common sence.
    MCP, A+/Linux+ Certified IT Technician
    System Specs | Dress up your "Super Button" FREE
    "If sometimes you can't be good, then be VERY good at being naughty!"

  10. #10
    Join Date
    Dec 2005
    Beans
    19,468

    Re: How do you fix sudo "rm -rf /*"??

    You could try photorec for recovering your data or even better, try testdisk for recovering your partitions.
    Learning is not attained by chance, it must be sought for with ardor and attended to with diligence. Abigail Adams ( 1744 - 1818 ), 1780;

    My blog Poetry and More Free Ubuntu Magazine

Page 1 of 3 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •