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

Reply With Quote
