Ubuntu recover /etc

2012-09-08  Source: Original Site  Category:Ubuntu  Views:0 

Advertisement

Thanks to a dumb typo I accidentally deleted my entire etc directory ](*,)
I tried doing a reinstall but that forces me to format the partition and that's not an option.
Obviously my system is dead, so I can only work from bootable cd's.
What I want to do is rebuild my system without losing any other data (recovering the deleted dir would be even better of course).
Please advise me on how I can best go about this.

Related articles
  • Ubuntu Recover /etc/resolvconf/run/resolv.conf file 2013-09-11

    I am using Ubuntu 9.04. This morning, while fiddling with my VPNC, I mistakenly deleted the /etc/resolvconf/run/resolv.conf instead of /etc/resolv.conf file. I was in the process of doing this: sudo rm -rf /etc/resolv.conf sudo ln -s /etc/resolvconf/

  • Ubuntu recover /etc folder 2012-07-11

    I was using 7.04 ubuntu and I was backing up /etc folder regularly. Today I started using 7.10 XUBUNTU. and once I installed it I wanted to copy my old /etc to new /etc I used cp command and as result, almost all the folders were omitted. then I used

  • Ubuntu recover /etc 2012-09-08

    Thanks to a dumb typo I accidentally deleted my entire etc directory ](*,) I tried doing a reinstall but that forces me to format the partition and that's not an option. Obviously my system is dead, so I can only work from bootable cd's. What I want

  • Ubuntu Missing /etc/iftab 2013-04-12

    I am presently following the article on "Broadcom BCM4311 802.11g mini-PCIe (14E4:4324) Wireless Adapter using ndiswrapper Installation (Plus NetworkManager and WPA)" - see here (https://help.ubuntu.com/community/WifiDocs/Device/Broadcom_BCM4311_rev_

  • Ubuntu recover encrypted files? 2014-02-10

    Can Ubuntu recover encrypted folders and files from a Windows computer that won't boot (and needs to be reformatted)? I've tested Ubuntu and it recovers files that have administrator privileges, but failed on the encrypted folders that I attempted to

  • Ubuntu Recover evolution emails addresses etc? 2014-10-01

    Help - I lost my emails and contacts in Evolution and i don't know if I can get them back. Here's what happened: I've been having a problem for a few months where when I log into gnome my toolbars etc wouldn't display - I could log in with the "safe"

  • Ubuntu Recover from LiveCD /etc/passwd 2012-03-05

    I accidentally overwrite my /etc/passwd /etc/group /etc/shadow and /etc/gshadow with the respective files from a Centos distribution. Although things seems to run ok, I am sure that my machine is about to lock up the next minute. If I am to grab the

  • Ubuntu Recover deleted files from USB / Camera / Flash / NTFS.... etc - which Apps? 2014-12-24

    HI there are several good apps under windows for recovering deleted or accidentally overwritten files, specially when it comes to camera flash memory. I need to recover pics and movies from a camera flash. (NTFS and rest can be an extra) which apps a

  • Ubuntu how to recover /etc folder 2015-03-24

    when I was using ubuntu 6.04, 6.10 and 7.04 I was told to back-up /etc folder regularly. I did so. When I was upgrading from 6.04 to 6.10 and 7.04 I was using dist-upgrade so it was not a problem but now I did a clean!!! install. Now I have 7.10 XUBU

  • Ubuntu Recovering data on an external USB hard disk drive 2012-01-28

    I could use your help. I was re-installing Ubuntu 10.10 and was asked in the process whether to format the hard disk. I clicked yes before I noticed that my external hard disk was selected and not the internal. Thus, all my pictures, movies, document

  • Ubuntu Changing etc/environment 2012-04-02

    Guys, it's been a while since I've last posted here. I was running my Ubuntu fine here, but decided to add some environment variables to it, so they would be loaded when I logged in. I added them to /etc/environment, doing: sudo gedit /etc/environmen

  • Ubuntu Recover Overwritten Files? 2012-04-17

    I searched around a bit but couldn't find an answer that really fit my special situation. After a recent error in my WinXP install which caused a strange BSOD error on bootup, I decided to use an Ubuntu disk to try to save my files and try out Linux.

  • Ubuntu aptitude & /etc configuration files 2012-05-10

    I removed some files from /etc using rm -rf (more specifically, rm -rf /etc/postgresql* , thus getting rid of /etc/postgresql and /etc/postgresql-common ). I thought that by re-installing postgresql using apt-get install, the default configuration fi

  • Ubuntu Recover Gnome Applications menu ? 2012-07-20

    It seems that this is not my day. :( I manually deleted some files in the ~/.config and the /etc/gdm folders (to delete the configuration files for Xfce) and now I lost all Applications entries in the Gnome-panel-menu (even for those applications whi

  • Ubuntu Recover data from a Hard Drive with deleted partitions 2012-08-17

    I have a ext3 hard drive seperate from my ubuntu installation with deleted patitons and has important files on it I need to recover. I have tried partimage, rsync, ddrescue, etc with no luck because these programs seem to require the partion already

  • Ubuntu recover grub 2012-10-20

    I did zcat disk.img.gz /dev/sda Now it tries to install some ubuntu 6.XX and hangs. I want to recover grub. I used windows xp in another computer and used unetbootin to have super grub in usb drive. With that i booted. I tried all the options like GR

  • Ubuntu restore etc folder 2012-11-06

    today i made a fresh install for ubuntu and i copy my etc folder in another hard drive.if a restore my old etc folder in the new one did i expect to recover all my installed programs and preferences. if yes how to do this?

  • Ubuntu Recovering NTFS files from ext3 partition... 2012-12-15

    I had Windows XP pro x64 installed on one partition and kubuntu on the other. I decided to reinstall Ubuntu, so I boot from the live cd. I don't remember seeing any choice for the partitions, so maybe this was the dumpest thing ever happened and mayb

  • Ubuntu Recover / XORG.Conf parse failed - please help 2012-12-28

    Hello, i was following a Beryl wiki page i found on the ubuntu website and i restart the X server, and now ubuntu wont boot. It is coming up with the following errors An error about multi Indentifier's in Screen section and fatal error, no screen fou

  • Ubuntu Recovering data from recovery mode 2013-01-25

    Ubuntu fellows, Today I wanted to make a backup of my Ubuntu server. Since the program wasn't working for me, I rebooted my computer and right now it wont boot. Now I entered recovery mode and I'm trying to recover my /var/www and /etc/mrtg folders.