Re: Bootloader produces garbage - reconstructing MBR

From: Alvin Oga (aoga_at_mail.Linux-Consulting.com)
Date: 07/04/05

  • Next message: Rick Pasotto: "sarge and sound"
    Date: Sun, 3 Jul 2005 19:53:13 -0700 (PDT)
    To: Haines Brown <brownh@hartford-hwp.com>
    
    

    On Sun, 3 Jul 2005, Haines Brown wrote:

    > It happened that I could no longer mount my ide cdrom or my scsi cdrom
    > drives

    that is a simple kernel option problem
            - fix lilo/grub config files
            - manually installt he modules manuall

    > I can boot all three disks from a grub boot floppy, which I assume
    > narrows things down to what's in the sda MBR rather than a hardware
    > problem.

    good.. says grub's MBR on the floppy is correct
     
    > I copied (dd) the MBR on sda and sdc to img files. Being binary files,

    how exactly was the dd command ??

            dd if=/dev/fd0 of=/dev/sda bs=448 count=1

            any other "dd" command is WRONG

            - NEVER copy binary files from xx to yy versions

    > I could not get diff to tell me anything more than that they differed,

    duh... why should it be the same

    -- use the latest grub via cvs from gnu.org

    > I need to do a MBR check, repair or restoration.
    ..
    > To wipe the MBR clean, I read of doing # fdisk /MBR.

    wipe it ( fdisk /mbr or dd if=/dev/null of=/dev/sda bs=448 count=1 )
    and rerun lilo or grub

    > Other than making the disk
    > unbootable from its bootloader, which is already the case, are there
    > any particular dangers doing this?

    you dont need to worry.. you ahve a working boot floppy...
            save it as it.. forever

    > I assume simply means doing >grub root and >grub setup.

    grub-install /dev/sda
    or
    grub-install /des/db
    ...

    c ya
    alvin

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Rick Pasotto: "sarge and sound"

    Relevant Pages

    • Re: Please Help: system keeps rebooting after installing FC3
      ... writing to the MBR even when i opt not too. ... F8 everytime i boot to toggle BIOS to boot from my hdb. ... get hold of various other boot loaders, grub fail the same way as yours. ... The installation went smooth and at the end I needed ...
      (linux.redhat)
    • Re: remove partaion
      ... The most interesting hurdle will be what the Master Boot Record ... thus kill GRUB. ... I would copy your MBR and first 63 sectors (see the MBR Copy Appendix ... GUI or command line commands to accomplish that. ...
      (Fedora)
    • Re: Retaining windoze when replacing 9.0 with 9.1?
      ... > My concern is the MBR. ... If grub has been working fine, up 'til now, leave it alone. ... the new install, don't erase the /grub directory on the boot partition, ... When I install a new OS, I never mount the boot partition, and install ...
      (alt.os.linux.suse)
    • Re: dual booting XP and Linux
      ... /dev/hda - MBR ... I don't worry too much now, since I'm booting fine into GRUB and from there ... > Millions of people are using to grub to boot Linux and/or Windows.. ... I like the idea of removing the hard drives because it is safe. ...
      (Fedora)
    • RE: GRUB failure
      ... but not personal expertise with GRUB That Grub is organized ... Phase 1 the GRUB MBR DOES NOT KNOW THE OS FILE STRUCTURES. ... Loaded and executed by the ROM BIOS boot strap code. ... fails to be able to load in the Phase 1.5 Loader. ...
      (RedHat)