Find the answer to your Linux question:
Results 1 to 5 of 5
I deleted my /boot folder on my Fedora 14 installation. Doesn't matter how I did it. I just did. Does anyone have any suggestions for recreating this folder and making ...
  1. #1
    Linux User glennzo's Avatar
    Join Date
    Sep 2004
    Location
    Salem, Mass
    Posts
    434

    Restore /boot folder

    I deleted my /boot folder on my Fedora 14 installation. Doesn't matter how I did it. I just did. Does anyone have any suggestions for recreating this folder and making the system bootable again?

    This is a multi boot system with Fedora 14 x86_64, Fedora 14 i686, CentOS 5.5, Fedora 13 i686, Fedora 12 i686. I may have installed more OS's but I don't remember. I have install DVD's available for everything I've ever installed, ssh access over my local network and from work so I can get into any machine I own, etc, etc. I don't need to repair this installation but it would be nice if I could. Google helps, but not too much.
    Glenn
    Powered by Fedora 16 and Arch Linux

  2. #2
    Linux User Manko10's Avatar
    Join Date
    Sep 2010
    Posts
    250
    I'm not a Fedora expert but on Gentoo I would do it this way:
    Boot a live CD and chroot into the installed Linux as follows
    Code:
    mkdir ./mylinux
    mount /dev/sda1 mylinux
    mount -o bind /dev ./mylinux/dev
    mount -t proc none ./mylinux/dev
    chroot ./mylinux /bin/bash
    source /etc/profile
    (/dev/sda1 is your system partition, could have a different name on your computer).
    Then reinstall the kernel and GRUB. Recreate your GRUB config. Finally exit your chroot shell, unmount all previous mounted devices and reboot.
    If your system still doesn't boot you probably have to reinstall GRUB into the MBR. So repeat the chrooting steps above and run
    Code:
    grub-install --no-floppy /dev/sda
    from within the chroot environment. But normally reinstalling the MBR shouldn't be necessary.
    Refining Linux Advent calendar: “24 Outstanding ZSH Gems

  3. #3
    Linux User glennzo's Avatar
    Join Date
    Sep 2004
    Location
    Salem, Mass
    Posts
    434
    Thanks for the reply Manko10. Appreciate your time. Your suggestions look promising so I'll give them a shot when I get home and will report back with results. I haven't found anything that provides a clear and concise procedure out there on the world wild tangled web so your advice is worth a million.

    Thanks again.
    Glenn
    Powered by Fedora 16 and Arch Linux

  4. #4
    Linux User Manko10's Avatar
    Join Date
    Sep 2010
    Posts
    250
    This solution I provided is distribution independent and will therefore also work for you. The only thing I don't know is how the Fedora package manager handles kernel packages. But that shouldn't be a big issue.
    Refining Linux Advent calendar: “24 Outstanding ZSH Gems

  5. #5
    Linux User glennzo's Avatar
    Join Date
    Sep 2004
    Location
    Salem, Mass
    Posts
    434
    Booted with the Fedora 14 install DVD using rescue mode. That get's me a shell. From there I followed your instructions to the letter. There were a few errors, minor in nature I hope. Trying to list partitions with fdisk got me an error, "cannot open /proc/partitions". A /bin/sed warning : failed to set default file creation context to system_u:object:r:etc_t:s0: No such file or directory/sbin/new-kernel-package: line 76: /dev/null: and something stating unable to connect to dbus. The yum reinstall kernel-xyz finished with a report of Complete! The yum reinstall or grub exited with Complete! also. I copied menu.lst to grub.conf and edited it accordingly. Now I'll back out and reboot the box.
    Glenn
    Powered by Fedora 16 and Arch Linux

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...