Re: Installing grub for a different computer

From: Kevin Freeman (kfreem02_at_comcast.net)
Date: 11/17/04

  • Next message: Rahul Sundaram: "Re: Kernel changes from 667 to 678?"
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    Date: Wed, 17 Nov 2004 14:27:04 -0600
    
    

    On Wed, 2004-11-17 at 07:15 +0000, Colin Paul Adams wrote:
    > assumptions, assumptions....
    > NOW Murphy is kicking good and proper. Here are the last few messages
    > from the console:
    >
    > Mounting root filesystem.
    > EXT3-fs: unable to read superblock
    > mount: error 22 mounting ext3
    > pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed: 2
    > umount /initrd/proc failed: 2
    > Freeing unused kernel memory: 168k freed
    > Kernel panic: No init found. Try passing init= option to kernel.
    >

    Looking at the bright side, at least the kernel was loaded from
    the /boot partition. ;)

    I can think of 3 likely causes:

    1) root parameter on kernel line is pointing to the wrong partition
    2) initrd points to a different version than the kernel version
    3) your / partition is at least partially corrupt

    > I tried the above with two different kernels (there's 4 or 5 installed
    > - all FC1).
    > Now, I mentioned before that I was able to mount the root file system on my
    > other computer OK, so I'm rather puzzled by the failure to find the
    > superblock.
    >
    > Is there anything I can do at this stage?

    Try modifying the root= parameter of grub's kernel config. If you did a
    stock FC1 install, try root=LABEL=/. Otherwise, just try root=/dev/hda1
    through root=/dev/hda5. One of them has to work! This should not cause
    any harm to the drive since nothing will be mounted read/write until
    your / partition is properly specified.

    If this still does not work, you might try Toms root/boot:
    http://www.toms.net/rb/

    This floppy contains fdisk, vi, etc. and will allow you to explore the
    drive to locate the / partition and edit /boot/grub/grub.conf. While
    there, also verify that /boot/grub/menu.lst links
    to /boot/grub/grub.conf.

    Kevin Freeman

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Rahul Sundaram: "Re: Kernel changes from 667 to 678?"

    Relevant Pages

    • Re: Grub Manual
      ... I have digested what you all have said and applied it to the small file I wrote on the Grub Manual. ... Please no more about what is root. ... Many people keep the entire Linux in one partition and in that case both of the root point to the same partition. ... Your computer often wants to use the name of the kernel. ...
      (Fedora)
    • Re: Grub Manual
      ... And you will hate my definition of a root. ... Many people keep the entire Linux in one partition and in that case both of the root point to the same partition. ... Others like to use more partitions and there is a root directory for each of them and the root calls point to different partitions. ... Your computer often wants to use the name of the kernel. ...
      (Fedora)
    • Grub Manual
      ... At first look at what it takes in the file /grub/grub.conf to boot a Linux system. ... root ... Your computer often wants to use the name of the kernel. ... A typical one will look like rootwhich says a partition on the first hard drive and the 4th partition. ...
      (Fedora)
    • [Full-disclosure] Re: Linux kernel source archive vulnerable
      ... >> the kernel as root. ... you compile it as 'jerry' but still have to install it as ... resistant to setting proper permissions in the kernel tree source. ...
      (Full-Disclosure)
    • SUMMARY: Moving /usr From Under Root "/" To Its Own Partition
      ... One of the reasons for doing this is to end up with a smaller root ... Install the boot block and boot off the new drive. ... " In order for the root partition to be fscked and remounted ... D> temporarily on the existing disk. ...
      (SunManagers)