CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 5 - General Support
  centos 5.5 & gzip in /

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  runouri
      runouri
centos 5.5 & gzip in /
#1
Newbie
Joined: 2012/1/13
From
Posts: 1
Hello
I have the next problem. I execute a --> gzip -f -r / with the root user..... I stopped at the moment, but I lost the connection to the server. Now when I try connect with my user this work, but when do a su - Centos tellme that the password is incorrect for the user root.
The most probable is the file of the password where is encripted the root passwdord has been "gziped" (and another files:
/usr/openv/man/man1/nbjm.1.gz
/usr/openv/man/man1/bppldelete.1.gz
/usr/openv/man/man1/bplabel.1.gz
............)
How I can uncompress this files?...... I think the solution is a livecd.. an uncompress the files... (this is dangerus, because I can't uncompress this files, the server doesn't restart, because files boot are compress and anothers:
/boot/grub/ffs_stage1_5.gz
/boot/grub/grub.conf.gz
/boot/.vmlinuz-2.6.18-194.11.1.el5PAE.hmac.gz
/boot/System.map-2.6.18-194.11.1.el5PAE.gz
/boot/config-2.6.18-194.26.1.el5PAE.gz
/boot/initrd-2.6.18-194.11.1.el5PAE.img.old.gz
/boot/message.gz
/boot/vmlinuz-2.6.18-194.11.1.el5PAE.gz
/boot/initrd-2.6.18-194.e
Posted on: 2012/1/13 10:05
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: centos 5.5 & gzip in /
#2
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.

Guess I'm stating the obvious to say - that was a really Bad Idea [TM].

No way to know how far things got in the process, but the compressed man pages are normal. I'd boot the system from installation media in rescue mode, or from a CentOS 5.7 LiveCD and attempt to decompress files in /etc and /boot except those that should be compressed, such as the following:
# find /etc /boot -name \*.gz
/etc/alternatives/pack200.1.gz
/etc/alternatives/unpack200.1.gz
/etc/alternatives/java.1.gz
/etc/alternatives/keytool.1.gz
/etc/alternatives/tnameserv.1.gz
/etc/alternatives/orbd.1.gz
/etc/alternatives/servertool.1.gz
/etc/alternatives/rmiregistry.1.gz
/etc/alternatives/rmid.1.gz
/boot/grub/splash.xpm.gz
/boot/symvers-2.6.18-274.el5.gz
/boot/symvers-2.6.18-274.17.1.el5.gz


Then proceed to other directories such as /bin /lib /usr /var ...

Depending on how far the process got, and what you run into trying to recover, you may just want to back up everything over the network or to removable media, do a fresh install, then recover what you need.

In any case, after re-installation or recovery you should be at the current/supported release 5.7. Obsolete releases are not supported, nor is it advisable to be running them.
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/1/15 17:50
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com