installing boot0 via dd

From: FreeBSD MailingLists (freebsd.ml_at_gmail.com)
Date: 05/31/05

  • Next message: Bill Schmitt (SW): "General PHP Port Question"
    Date: Tue, 31 May 2005 17:08:46 +0900
    To: questions <freebsd-questions@freebsd.org>
    
    

    I have a sony Vaio U50. It's a pretty cool device but sony seems to
    be locking out non-Sony floppy/cdrom drive during the boot process.
    As a result I can't use either of my usb-floppy or usb-cdrom drive,
    even though the bios boot order is set to try floppy, optical drive,
    then HDD.

    I want to install boot0 onto the MBR so at least i'll have the option
    of booting from a second harddrive.

    Here is what I am thinking...
    1) go to a different freebsd box with boot0 already installed.
    2) use dd to grab a image file of the MBR
    3) boot into knoppix on the machine (i already have it installed on the HDD)
    4) use dd to load the image file to the MBR

    can someone tell me if the following commands are correct for grabbing
    and reloading the MBR?
    1) on Freebsd: dd if=/dev/ad0 of=boot0file bs=1b count=1
    2) on knoppix: dd if=boot0file of=/dev/hda bs=1b count=1
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Bill Schmitt (SW): "General PHP Port Question"

    Relevant Pages

    • Re: How to delete all partitions for a complete reinstall
      ... keep all the other partitions since the MBR is kept. ... Sorry to ask this question in ubuntu list. ... During the XP install process you can delete all of your partitions ... partition in the new GRUB menu (shows on boot allowing you to choose ...
      (Ubuntu)
    • Re: GRUB, MBR and NTLDR confusion
      ... that GRUB can be loaded on to the boot partition instead of the MBR ... What you want is to install it to the MBR of /dev/hda. ...
      (Ubuntu)
    • Re: Any way to write to an NTFS partition?
      ... >>We currently add RH 7.3 and GRUB to the MBR for demos. ... > you can do is come up with a Win script to copy the linux.bin copy of ... > the /boot partition boot sector, edit boot.ini, etc. ... Corporate IT has let us install GRUB in the MBR but someone may ...
      (comp.os.linux)
    • Re: how to set up a dual boot system
      ... a slice on the first disk for windows? ... The MBR should also be on the other two disks, ... Then you have to install a boot sector ...
      (freebsd-questions)
    • Re: Quad-boot Windows XP/2K, Suse Linux 9.2, FreeBSD 5.3?
      ... I dont think that lilo can boot the FreeBSD ... Lilo in MBR selects between the different systems. ... > tried to install Ubuntu (thats a horrible one, but it cames on one CD ...
      (comp.unix.bsd.freebsd.misc)