Find the answer to your Linux question:
Results 1 to 7 of 7
I accidentally formated /boot partition of my RHEL 5 box. Can any one tell me steps to recover /boot partition. Thanx & Regard's Ashish...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2006
    Posts
    6

    How to recover /boot partition.


    I accidentally formated /boot partition of my RHEL 5 box.

    Can any one tell me steps to recover /boot partition.

    Thanx & Regard's
    Ashish

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Welcome to the forums!

    Check out the SuperGRUB LiveCD:

    Super Grub Disk Homepage

    It's usually very good for repairing Linux and Windows bootloaders.



    Edit: oops... sorry, I just realized that you are talking about the /boot partition and not the MBR. I'm not sure what files would need to be replaced in a boot partition since I don't ever create one. Perhaps someone that has one will reply with some info for you.
    Last edited by oz; 07-28-2009 at 04:17 PM.
    oz

  3. #3
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Doh! I wasn't thinking again... you should check out TestDisk because it's able to recover deleted partitions and such:

    TestDisk - CGSecurity

    You can get a copy of it on the Parted Magic LiveCD and other such live disks.
    oz

  4. #4
    Just Joined!
    Join Date
    Sep 2006
    Posts
    6

    Exclamation Hi

    Thanx for the reply, But i think we can do it by Rescue mode in Linux ... But how i donno.


    Regard's
    Ashish

  5. #5
    Just Joined! vishesh's Avatar
    Join Date
    Jul 2009
    Location
    Delhi
    Posts
    36

    first recover data

    Dear ashish
    You formatted your boot partition. so first think about recover data present on boot partition and then think about 'Linux rescue' mode. Linux rescue doesn't recover data from formatted partition.

  6. #6
    Just Joined!
    Join Date
    Sep 2006
    Posts
    6

    Exclamation

    Hi Vishesh ,

    /boot was the independent 100MB partition & i didn't stored any other data on it.

    All the files related to Grub & Kernel was there on /boot.

    So do you have any idea how we can create /boot working as before ?


    Thanx & Regard's
    Ashish

  7. #7
    Just Joined! vishesh's Avatar
    Join Date
    Jul 2009
    Location
    Delhi
    Posts
    36
    put linux dvd in drive. on prompt type 'linux rescue' command.
    use 'grub_install' command. But remember this will install just grub into mbr not on boot partition. So i don't think 'linux rescue' can help you because you lost your kernel, initrd and grub by formatting /boot partition

    Thanks

Posting Permissions

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