On Fri, Jul 17, 2009 at 1:19 AM, Seann Clark <span dir="ltr"><<a href="mailto:nombrandue@tsukinokage.net">nombrandue@tsukinokage.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div class="h5">linux guy wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
No joy.  All I got was the same blinking cursor.  I'm running from the<br>
F9 Live CD.<br>
<br>
BTW: chroot above was actually /usr/sbin/chroot.   And the yum problem<br>
with the repos wasn't the repos at all.  The chroot session doesn't<br>
have access to the network.  ping <a href="http://www.google.com" target="_blank">www.google.com</a> returns "unknown<br>
host" in the chroot session, whereas its found from a non chroot<br>
session.<br>
<br>
yum -C list kernel shows only the two F11 kernels.  The F12 kernel is gone.<br>
<br>
However, if I look at grub. conf in /media/-/boot, the entry for the<br>
F12 kernel is still there !  Furthermore so are the F12 kernel files.<br>
 So I am guessing that rpm didn't remove any of the actual files, even<br>
though it seems to have removed all of the database entries.  GREAT !<br>
I've got a mess on my hands.<br>
<br>
This makes sense, because if I do a cd /boot from the chroot session,<br>
it shows a blank directory.   However, if I cd to /media/-/boot, its<br>
definitely not empty.<br>
<br>
I think I need to link the /boot directory to /media/-/boot and then<br>
to an rpm -i against the F12 kernel rpm to reinstall the entries into<br>
the database and then do a rpm -e to actually remove the files.<br>
<br>
Does that make sense ?  Is there an easier way ?<br>
<br>
Thanks<br>
<br>
<br>
HOWEVER....<br>
<br>
On 7/16/09, linux guy <<a href="mailto:linuxguy123@gmail.com" target="_blank">linuxguy123@gmail.com</a>> wrote:<br>
  <br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I think I got it fixed.  Here is what I did in case someone needs it someday<br>
:)<br>
<br>
- booted F9 Live.  Just because I had it around.<br>
- opened Dolphin, because it displays the hard drives for the machine<br>
- opened a terminal in Dolphin<br>
- browse to the root directory of the hard drive<br>
- did a pwd in the terminal and found the root of my hard drive was<br>
/media/-/<br>
- su<br>
- chroot /media/-/<br>
- yum -C list kernel  <- did -C because the Fedora repos seem to be<br>
messed up again, thus I only used the local cache data<br>
- yum -C remove kernel-2.6.31-0.69.rc3.fc12<br>
- this resulted in an error due to some unrelated pooched dependencies.<br>
- rpm -e kernel-2.6.31-0.69.rc3.fc12<br>
- this resulted in an error due to some unrelated pooched dependencies<br>
- rpm --nodeps -e kernel-2.6.31-0.69.rc3.fc12<br>
- rpm -e kernel-firmware-2.6.31-0.69.rc3.fc12<br>
<br>
I will now reboot and see if my system runs.  I'll report back in a<br>
bit if it does.<br>
<br>
On 7/16/09, linux guy <<a href="mailto:linuxguy123@gmail.com" target="_blank">linuxguy123@gmail.com</a>> wrote:<br>
    <br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Will chroot work when the target system has a broken kernel ?   It<br>
keeps running the old kernel ?<br>
<br>
I tried using rpm with --dbpath so that it used the F11 rpm data.  It<br>
wouldn't run because of incompatible rpm versions.<br>
<br>
On 7/16/09, davide <<a href="mailto:lists4davide@gmail.com" target="_blank">lists4davide@gmail.com</a>> wrote:<br>
      <br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
linux guy <linuxguy123 <at> <a href="http://gmail.com" target="_blank">gmail.com</a>> writes:<br>
<br>
<br>
        <br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
 I am now running from a Fedora 9 live CD I had laying around.  I can<br>
 see the hard drive and its partitions from the live session.  How<br>
 would I fix the F11 installation so it runs again ?  Is it possible to<br>
 do an rpm -e on the non running F11 partition from the F9 live session<br>
 ?<br>
          <br>
</blockquote>
You can take control of the installed linux from a live cd with the<br>
chroot<br>
command using the command line.<br>
But you should know what you are doing.<br>
Basically it is very simple and powerful, but for this reason you can<br>
also<br>
break<br>
your system.<br>
<br>
--<br>
fedora-list mailing list<br>
<a href="mailto:fedora-list@redhat.com" target="_blank">fedora-list@redhat.com</a><br>
To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list" target="_blank">https://www.redhat.com/mailman/listinfo/fedora-list</a><br>
Guidelines:<br>
<a href="http://fedoraproject.org/wiki/Communicate/MailingListGuidelines" target="_blank">http://fedoraproject.org/wiki/Communicate/MailingListGuidelines</a><br>
<br>
        <br>
</blockquote></blockquote></blockquote>
<br>
  <br>
</blockquote></div></div>
To fix Grub fast and easy, after editing the kernel grouping, or anything else out of  /boot/grub/grub.conf, you can grab a livecd that works good on fixing a broken grub boot, called super grub disk (I have used it plenty of times when a borked boot of a fedora box happened to me) and it works great.  Biggest thing I can think of is edit grub.conf, and change the default to a known good kernel and remove the bad kernel out. That is to say you have a good one you can boot off of still on the system....<br>
<font color="#888888">
<br>
~Seann<br>
</font><br>--<br>
fedora-list mailing list<br>
<a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a><br>
To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list" target="_blank">https://www.redhat.com/mailman/listinfo/fedora-list</a><br>
Guidelines: <a href="http://fedoraproject.org/wiki/Communicate/MailingListGuidelines" target="_blank">http://fedoraproject.org/wiki/Communicate/MailingListGuidelines</a><br></blockquote><div></div><div>It definately seems like your grub configuration was "borked" and not much more.  The files of your previous versions are still there (it seems as the directory is populated with many files) and in their proper place (though when using the live CD you see them under /media....) so you need to add one of the older kernel entries back into your grub.con file pointing to the normal location.  I wil post here the latest entry for my grub.conf and you can substitute your kernel version specifics as needed....<br>
</div><div></div><div># grub.conf generated by anaconda<br>#<br># Note that you do not have to rerun grub after making changes to this file<br># NOTICE:  You have a /boot partition.  This means that<br>#          all kernel and initrd paths are relative to /boot/, eg.<br>
#          root (hd0,0)<br>#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00<br>#          initrd /initrd-version.img<br>#boot=/dev/sda<br>default=0<br>timeout=5<br>splashimage=(hd0,0)/grub/splash.xpm.gz<br>
hiddenmenu<br>title Fedora (2.6.29.5-191.fc11.i586)<br>        root (hd0,0)<br>        kernel /vmlinuz-2.6.29.5-191.fc11.i586 ro root=UUID=ec9b81f9-3160-4b45-9d1b-f42c934fbb60 rhgb quiet vga=0x318<br>        initrd /initrd-2.6.29.5-191.fc11.i586.img</div>
<div></div><div>I hope that this helps and you do not end up going through a much more painful clean re-install process.  I suspect that all you do need to do is to make an appropriate grub.conf file with your existing kernel and init image file entries located in /media/-/boot/.  The real location on booting without the liveCD will be in /boot/.  Of course your grub loader located on the MBR might also have an issue and there, hopefully, the live cd should have some way to reinitialize the mbr with the grub loader.</div>
<div></div><div>Best of luck,</div><div></div><div>fennix<br><br></div>