CentOS 5 :: Procedure To Restore Initial Installed Configuration?
Jun 18, 2009
I am looking for a procedure to recover the initial installed state of my system with out over writing user data areas. The install procedure has the phrase "will remove all linux partitions" which interpret to mean data partitions, not just /bin and /. Additional background - Was attempting to build a 32 bit cross compile of Mozilla/Firefox on a x86_64 configuration and had a conflict with libgl. Online advice was to remove duplicate libgls from the system (that was bad advice). This led to running yum update.
When I restarted the system I know longer had wireless networking, ntfs mounts and possibly other features I had installed. Further, attempts to update, re-install, erase and reinstall have had no effect on the situation. My assumption is that I need to start with a clean install - which will be about 10-20 hours to reset all the additions I made. But I don't see another solution.
Last night I started my computer and loaded my CentOS 5.2 partition (Windows 7 on the other partition). I was able to login to my account, but was given a gnome error that the panel buttons (i.e. weather, cpu monitor etc) could not be loaded. I then went to restart the computer (probably not the smartest thing to do) and was given some file errors upon shutdown that were related to /dev/VolGroup00/LogVol00. After restart I was taken to a shell and ran fsck manually. It seemed to find a lot of bad blocks, so I repaired the /dev/VolGroup00 system and restarted. At this point CentOS seemed to boot normally, but upon loading of the login screen I get the error: Configuration not correct The configuration file contains an invalid command line for the login dialog, so running the default command. Please fix your configuration.
I cannot even log in as root. I get the error /usr/bin/gnome-session: error while loading shared libraries: libgnome-desktop-2.so.2: cannot open shared objects file: no such file or directory. I then went to a shell and ran: sudo yum install libgnome-desktop-2.so.2, but the package was already installed and up to date, so there was nothing to do. I am therefore stuck at this login screen with pull-down menus and tabs where I can change the configuration, add/remove users etc. So, my question is this: How do I restore my user profile so I can login....and if anyone has some insight, what caused this to happen in the first place? I should also mention, this all happened after plugging the computer into a new internet connection. No clue if that's even relevant.
Setup: 1. Desktop running WinXP 2. Lenovo S10e netbook running Win7RC1 (just expired.) no DVD drive. 3. 1 DVD by Novell and Lenovo with "SUSE Linux Enterprise Desktop 10 (For recovery select Restore System from the initial Menu.) November 2008" 4. 4GB USB drive. Laptop can boot from it.
Problem: Need to install the system to the Laptop using the USB drive. Doesn't install. What I did: Mostly followed the guide at "Installation without CD - openSUSE.htm" my USB drive is G:
used the HP USB Disk storage format tool to make my USB bootable. Copied all files from the dvd to the usb drive Moved G: ooti386loader* to G: Deleted E: isolinux.bin Renamed E: isolinux.cfg to E: syslinux.cfg Downloaded syslinux-3.85.zip from [kernel.org] Extract syslinux-3.85.zip to c: syslinux CD'ed to c: syslinuxwin32 directory in a cmd prompt Ran syslinux -ma E: .....
Result: Runs all the way through, gets to a windowed program called ">>> Linuxrc v3.0.20 (Kernel 18.104.22.168-31-default) <<<" Code: could not find the openSUSE Repository. Activating manual setup program
Main Menu: Settings, System Information, Kernel Modules (Hardware Drivers), Start installation or System, Verify Installation CD-ROM/DVD, Eject CD, Exit or Reboot, Power off Cant find anything on the usb drive (obviously?) so what do I do now?
This is where I'm at and quite stuck... not sure what other flags there are to use, what I have to move around or rename.
are there any sweeper / cleaner apps which can take back my installation as to when it was new. I know home directory could have config files etc..but that doesnt matter, i want all packages and applications reset to how it was when i had a clean install. I am using Natty
I am using NetworkManager Applet in Gnome to connect to the internet with a 3G modem. After last update few days back it changed the way it was recognizing the modem. I used to click on the NetworkManager Applet icon on the notification area and choose my configured mobile connection from the list. Because, as I said, I am using mobile broadband connection and I have to check via SMS my usage in order not to overcome the GB I am supposed to use (to avoid overpriced charge). In order to use Wammu to send/receive SMS I have to close the internet connection by right clicking on the NetworkManager Applet and uncheck "Enable Mobile Broadband" otherwise Wammu can't use the usb dongle because it's locked by the internet connection. Up to this point all is working exactly the same. Except when I uncheck the "Enable Mobile Broadband" the NetworkManager Applet disappears and I can only get it back with a reboot. Also I tried clicking on the applet and choosing "Disconnect" from the menu. The applet stays there but there are no more options for mobile connection. Only wired connections and VPN (whatever that is). In this case if I disconnect and reconnect the usb dongle it recognise it again. So my question is: Is there a way to make NetworkManager Applet to always stay aware of the usb modem without disconnecting or rebooting? Or at least is there a command that can search for new usb hardware without the described procedure?
I have successfully installed Slackware 13.1 with the help of a brilliant guide and some reading on my own. And I am loving it. I have installed few applications and feel that the I understand the system more better than any other linuses I tried.
But, the initial fonts look quite out of focussed(can't find a word) or simply ugly?
I searched and found few threads and a dugan's blog but I got confused as to what to do exactly....How to make fonts beautiful or focussed?... This is my first query.....
Also, a second query is about updating the system...I installed Slackware 13.1 DVD without KDE( Yes I love xfce). As I see I used the "slackpkg" utility to update.
First, uncommented the # sign from one of the mirrors in /etc/slackpkg/mirrors and ran slackpkg update
And the next time when I ran the same, it said "No changes in change log between last update and now". I gather it means my system is upto date but I have doubt about it. How do I conform if the system is upto date? Should I necessarily subscribe to the mailing list? It a thing I haven't done yet.
I have just installed tripwire. I have created a baseline db using the default policy file. Then I checked the output of the db to see what I did not have on my filesystem that db was searching for (according to the default policy when tripwire was installed), I then changed my default clear text policy file accordingly and used twadmin to generate a new tw.pol file.
Next I come grinding to a halt after this (assuming the next thing is to update the policy in tripwire right? )
I'm working on a project using CentOs 5.3 that uses a solid state drive (SSD) as the boot device. It is desired to configure it such that writes do not typically occur run-time but configuration files can be saved. There are 2 reasons we do not want writes to occur run-time. 1) Writes will wear out a SSD over time. 2) A system disruption during a write can cause a file system error.
I had a server with CentOS 5.5 and Asterisk fail today most likely due to the power failure. I guess the stupid electrician turned the power ON and OFF multiple times while changing the burned out fuse without unplugging the PBX. It was set in CMOS to power back on when there is power outage so my two HDDs which were set in RAID-1 now shot.
Trying to start the system and it goes through some check and fixes and then tells me to do Ctrl+D or enter password and run fsck. I have tried both methods and I don't think they yeild anything.
Ctrl+D reboots and same store again with the system fixing and asking me to Ctrl+D again. Putting the password and doing "fsck -y" gives many errors and it fixes it and then it just keeps looping. I am afraid this is making it worst than better. So, after few loops I did few more restarts and just give up. Took out the HDDs and installed new ones and install CentOS+Asterisk so business runs as usual on Monday.
However, I am kind f*ked if I don't get the files out of these HDDs. This is my first time using fsck and also encountering this type of a problem. What is the normal procedure when fixing inodes misplaced in a case like this? and what should I do to at least be able to grab my files?
I have already connected one of the drives to Windows and used Disk Internals (which maps Linux drives) but I see only folders with no contents except for /tmp/ which has contents. While the HDDs were in the system I could actually browse files and they were fine. I am really keen to get the drives fixed but I am also afraid that bad usage of fsck might replace lots of files and burn it all.
ive just ported another system over to CentOS however when I went to run the initial set of updates using the graphical tool it asked me after downloading if I wanted to import a new public key which I dont remember ever being asked this before? Is this right or has there been a problem with my downloads?
I am configuring a new installation of CentOS 5.4 with the goal of setting up a server. Ive been through the installation and set up everything that I thought that I had to setup. Im getting into CentOS because my work utilizes this distribution. I do have some debian experience, and I have used Ubuntu on both server and desktop platforms.
Now, when setting up Ubuntu, I found that I was able to get networking up much easier. During the initial installation it had asked me to choose between DHCP or manual configuration. As this is going to be a server I want it setup with a static IP. But for some reason no matter what I do I can not get the machine connected. I go so far as trying to do a 'yum update' and I can not make a connection.
A few things Ive noticed that might be applicable here . . . . .
For DNS servers, I am unsure exactly what I need to put here. My ISP is Cox. I am not sure what NS's to put there for them, so I thought that I would be able to use third party DNS servers such as OpenDNS or the Google Public DNS. I know that I have setup my debian server like that with no issues. Also when setting up my debian server it prepopulated certain areas that I am required to fill when setting up CentOS. Example, when setting up localhost.localdomain -- I would choose my hostname and local domain was prepopulated as ph.cox.net. I dont know if this is something that I have to use, or if it would change if I am using third party DNS.
My resolv.conf file looks like this
search ph.cox.net nameserver (IP address of third party dns either opendns or google) nameserver (IP address of third party dns either opendns or google)
I am busy to do some tests using the Adaptec 1430sa hardware raid controler .I started the setup by generating the raid 1 aray and it worked ok .I did the regular setup of Cent Os 5.5 64 bits all worked ok but the system do not boot .When I start the box it enter the minimal grub screen .I tried to install a first time on the MBR like suggested and how it need to be done for soft raid setup .nd I tried to install it on the first cluster from the boot sequence like possible on second choice
Does anyone know how to install the Default KDE Desktop settings in an existing user? I copied a user's home directory from another Linux and when I added the user using adduser on the new intallation, it did not copy any of the Desktop or other .rc/.profile settings.
Is there a script that is run by adduser, or a list somewhere of the files that are needed for KDE Desktop to work correctly? Or, do I delete or rename certain files and then, what executable do I run to get the Desktop?
How to Backup & Restore Installed copy of my UBUNTU 10.10.If I create any ISO or Recovery CD /DVD, saves time to fresh install & update & install favorable software.I use Mobile to connect, works slow to download.
After resetting a pc running lenny I get iptables errors at boot ("resource temporarily unavailable", "bad rule" etc). "setting up firewall" (Guarddog) is not followed by any errors and the firewall apparently operates ok.How can I restore my iptables to the default installation values?
I just installed the only Nvidia driver available in the software center for Ubuntu. I'm running Ubuntu 9.10. I don't know which Nvidia driver I installed, but the screen resolution the Nvidia driver tried to set fails at login, so now I'm stuck booting my computer into the terminal. . I used sudo apt-get install xerver-xorg in attempt to restore the screen; however, the xerver-xorg package cannot be found. How do I restore xerver without reinstalling Ubuntu? How do I restore my original driver?
I am using Centos 5. I got one error unexpectedly after some configuration for rsync and folder settings. The error i am getting is "Serve Authorization directory (daemon/ServAuthDir) is set to /var/gdm but does not exist. Please correct the configuration and restart GDM." after rebooting.
I tried to resolve the issue by setting permission for folder /var/gdm to 755. but the problem is still not resolved.
I have 4 different servers with exactly the same hardware. I set up one of them to have a centos install with all the basic stuff I'd like running on each one. I then created an image of the harddrive with the operating system, and stored it on an external drive. I used dd to copy the external image to one of the new machines. It worked fine, everything booted up as normal and with a few tweaks everything was great. The problem is that the drive is rather large (500gb) and it takes days for dd to copy it over. I decided to try a different route, I booted to a usb (using the linux distro on the ultimate boot cd pre-loaded with gparted). There are two partitions on the external drive, a small (100mb) partition which can easily be copied over with gparted, and the larger 480+gb lvm partition.
Gparted doesn't support lvm, so I used fdisk to create a new lvm partition on the new machine, and then pvcreate/vgcreate/lvcreate to re-create the same volume groups/logical volumes that are in the image on the external harddrive. I rsync'ed all the information over from LogVol00, and made the same swap partition LogVol01 (which took WAY less time). I disconnected the hard drive and renamed the volume group to VolGroup00 (initiall I named it differently, since linux doesn't like having the volume groups named the same). I can mount the LogVol00 partition and see all the files as they should be. But when I try and boot up, it doesn't even go to grub, I just end up with a blank screen and blinking cursor. How to make the drive bootable? Alternatively, a better strategy than using dd to restore this image??
We have a linux server (centos 5.2 final), with postfix smtp server, webmin, usermin and sugar crm We need to backup all the data, and then perform a restore on a clean machine, without any OS installed yet.
I look into many pages that says that doing a backup on linux it's as easy as pack all the files in a .TAR file. Unpacking the tar will restore the system to it's original state. Also, i'm confused because if we perform a backup and mysql has active connections, perhaps the database would be inconsistent or corrupted. In the restore step, do i need a live CD in order to boot up linux command prompt? �Can it be from any linux version, or only centos version?
I'm trying to recover my rpmdb after canceling the installation of a package (dumb, I know). After clearing /var/lib/rpm/__db* and running rpm -vv --rebuilddb I still get an error error: cannot open Packages index using db3 - Invalid argument (22). What should be my next step?
I accidentally deleted the file called "fstab,v" not "fstab" The files location was /etc/fstab,v if it is very important file and what its used for & how to restore?, as my server seems to be running fine, but I don't want to get into any problems later down the line.
I seem to have lost my desktop menu at the top of the screen (for want of the right term the start menu in windows). Can anyone remember how I can get it back or the name and location of the utility I can use to control the look & features of the desktop?
this message is a bit long but I've been pulling my hair for 2 days now. I am installing Centos 5.3 on a Dell Powerege R610, x86_64 flavour. That part goes well. next is testing backup & restore. I've tried MondoArchive, that I used on other OS, but it fails to remount the LVM correctly, and disk formatting fails. Now, I am trying another way: boot with centos 5.3 i386 live cd, take the disks online, cpio to a usb file everything but: /tmp /proc /boot /dev /etc/fstab /etc/mtab
then, reinstall a fresh centos to erase the disk (crash simulation) and to simulate the initial restore I would do after a crash. From there, I go again with the livecd, mount r/w the logical volume, cpio -i all my files, and reboot. It sort of goes well. system reboots correctly - it loads all my drivers (even asterisk & dahdi and the T1/E1 card light goes green...), starts KDE, but from there I get an infamous error message preventing me to log in "Your session only lasted less than 10 seconds" - looking in the details, i get this message "could not exe /etc/X11/xinit/XSession default' - but I dont think X11 has so much to do with it...
When I go to a text console (ctrl alt f1), and try to log, no luck either - and no time to see why. I've modified initrd to level 1 - there I get the single user prompt, that's ok - but init 3 brings me to a screen where I cant log (either with root or a user) - there is a clear difference between an incorrect password and a failed login - the later, as soon as I enter the password, I return to a login prompt Now my questions. 1/ how can I make a "system backup" of Centos 5.3 x64 -ie after a crash, I want an image tha t I will restore and bring back OS + Applications (data can be backed up separately) 2/ what is wrong with my restore thru livecd ? why cant I log into the system ?
I created a CD image of my CentOS installation using mondo. When I booted from this CD and, in the restore process, selected an option to test the integrity of the image, it got to a certain point and said: Failure to execute /init. Kernel panic - not syncing: No init found. Try passing init= option to kernel.The instructions say the kernel may need to be recompiled with certain options.Does anyone know if the CentOS kernel needs to be recompiled for use with mondo? If so, with exactly what options?I'm using CentOS 5.5. dmesg: Linux version 2.6.18-194.el5 (firstname.lastname@example.org) (gcc version 4.1.2 20080704 (Red Hat4.1.2-48)) #1 SMP Fri Apr 2 14:58:14 EDT 2010.
Unfortunately I don't remember exactly what command I used to test the integrity of the mondo image, and http:[url]....the source of the instructions, is currently down.
So i'm VERY new at this, i need fedora for this research i'm starting. I have a dell and vista was installed on it, then i installed fedora 10 like it said on the fedora site from a boot disc. Now i have fedora but i don't have vista nor access to the memory it took up. I tried to restore to start over but i can't, and i need vista back.
Normally i would restore from the 10 G partition dell sets up for recovery but i'm not able to get to it, and i don't have my vista discs they're back at school.
I am trying to put up my own Quake2 server to play with my friends. During this installation process I have encountered rather confusing issue. First I downloaded the Q2 server binaries in RPM package and tried installing it:
I just upgraded by box from Fedora Core 9 to Centos 5.2. Finally!I have a 500GB SATA drive, it's partitioned into three equal size slices, hda1 through 3. The old Fedora was on hda1, I installed the new Centos on hda3. I instructed the installer to write the MBR to /dev/hda, not /dev/hda3. Fdisk says I have sector 0 unused.First, the system wouldn't boot - it just looped through the BIOS, rebooting over and over again. The BIOS sees the disk, but it never loaded Grub. I tried re-running grub-install /dev/hda, and not I get a Grub Error 17 after stage 1.5 loads.
I can boot from rescue OK, the grub.conf man menu.lst look fine, it's pointing to "root (hd0,2)". It's either the BIOS that can't find the MBR, or the MBR can't find Grub.When I looked at the disk with fdisk after the install, hda1 was still marked bootable, hda3 was not, so I swapped bootable flags but that has not made a difference. I also appended the new grub to the old grub thinking I could get the MBR (if it is there) to load the old grub and thence find the new Centos, but that didn't work either.Mobo is an old Shuttle AK35.Any ideas? Did I mess up by not telling the system to put the MBR on /dev/hda3? Is there a way to fix this without reinstalling?
I've installed CentOS 5.3 on a machine, and I need a Samba version 3.2 or higher. Since 3.4 is out, I thought I'd grab that. But, "yum list|grep samba" gives me only version 3.0.33. Is there a package of Samba I can grab that will upgrade the 3.0 installation so that I don't have two laying around? If not and I need to compile from source, do you have any suggestions for what arguments I should give configure? I'm not used to Linux coming from the BSD world