Results 1 to 5 of 5

Thread: [SOLVED] Boot sector corruption

  1. #1
    Join Date
    May 2008
    Location
    St. Petersburg, Russia
    Beans
    9
    Distro
    Ubuntu 8.04 Hardy Heron

    [SOLVED] Boot sector corruption

    During the boot message appear - something like: boot sector differ than backup, cannot be fixed automatically. How could I fix it?

  2. #2
    Join Date
    Apr 2007
    Location
    /dev/random
    Beans
    3,052

    Re: Boot sector corruption

    I guess you could ask grub to reinstall it properly. Provided you're using grub?
    Code:
    $ sudo grub
    
    grub> find /boot/grub/stage1
     (hdx,y)		<note what x and y are, may be (hd0,1), may be (hd4,8), etc>
    
    grub> root (hdx,y)
    
    grub> setup (hdx)	<note, no y>
    
    grub> quit
    
    $ sudo update-grub	<for good measure>
    In a terminal, of course.

    edit: If you can't boot at all (original post didn't say), do this from a live cd.
    Last edited by Zorael; June 2nd, 2008 at 09:49 AM. Reason: spacing
    ...

  3. #3
    Join Date
    May 2008
    Location
    St. Petersburg, Russia
    Beans
    9
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Boot sector corruption

    I need to clarify, I ma not so skilled about grub and I wonder if I got dual boot (Ubuntu and MS WXP) will this operation reset dual boot? Thanks, Also I should mention that I can boot.
    Last edited by Evgeny_N; June 2nd, 2008 at 10:06 AM.

  4. #4
    Join Date
    Apr 2007
    Location
    /dev/random
    Beans
    3,052

    Re: Boot sector corruption

    It should not, no. It'll only reinstall grub into the master boot record; the /boot/grub/menu.lst file - which contains your grub menu options - will only be updated and verified to point to your available kernels. Omit the last command (update-grub) if you wish to leave it completely alone.

    If you examine the contents of that menu.lst file, you'll see that near the end there's a line that says "### END DEBIAN AUTOMAGIC KERNELS LIST". Any entries below that line will be left alone when doing update-grub. Only the entries above that line will be touched at all.
    ...

  5. #5
    Join Date
    May 2008
    Location
    St. Petersburg, Russia
    Beans
    9
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Boot sector corruption

    Thank you it help

Bookmarks

Posting Permissions

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