Linux / UNIX Tech Support Forum
This is a discussion on how to recover correupted filesystem? within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; hi guys, iam RHCE student today my teacher gave an kickstart file which is very dangerous see its postscript %post ...
|
|||||||
| CentOS / RHEL / Fedora Discussion about Redhat Enterprise Linux or CentOS or Fedora Linux related problems. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
hi guys,
iam RHCE student today my teacher gave an kickstart file which is very dangerous see its postscript %post e2label /dev/sda1 /Boot e2label /dev/sda2 /. e2label /dev/sda3 / #mv /etc/inittab /etc/initab sed -e 's/el5/e15/g' -i.bak /boot/grub/grub.conf rm -rf /bin/sh rm -fr /bin/bash rm -rf /boot/initrd* dd if=/dev/zero of=/dev/sda bs=200 count=1 i think i have done all the things right else the last dd command i dont really understand its meaning...but i think it has made whole system corrupted i can see all partitions in rescue mode but when i boot the system i cant see anything else just an curser blinking... i tried to run e2fsck -b 8193 on all parts but it says Error " Attempt to read block from filesystem resulted in a short read while trying to open /dev/sda Could be a zero-length partition?" and same error with fsck.ext3 command i have fixed bash,initrd,e2lablel...all problems but still it shows same curser on boot dont know what to do please help guys...i think iam gonna fail in RHCE exam... Thanks |
| Sponsored Links | ||
|
|
|
||||
|
Boot with a livecd, login as root
mount partitions and file system including /proc Once done chroot and and run grub-install and grub> prompt type: Code:
grub> root (hd0,0) grub> setup (hd0) grub> quit Code:
exit reboot
__________________
Vivek Gite Linux Evangelist |
|
|||
|
Thanks Vivek
i had done this but that didnt solve it .... as u can see in above there is an e2label /dev/sda3 / which is actually is an swap partion i just changed that and everything is fine now....anyways do u also watch Timon&Pumba show like me?? i saw ur blog saying "HakunaMatata"..... LoL |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| mounting an NFS filesystem with iptables | natashak | Networking, Firewalls and Security | 2 | 29-11-2007 11:26 PM |
| HP unix check filesystem for errors | jerry | HP-UX | 0 | 09-06-2007 01:49 AM |
| expand a filesystem | indiresh | Linux software | 1 | 07-12-2006 03:59 PM |
| Unable to unmount a filesystem because of zombie processes | toor | Linux software | 2 | 28-06-2006 12:13 PM |
| How do I recover a bzip2 file? | jerry | Linux software | 1 | 14-06-2006 04:27 PM |