Re: dual boot two disk

From: Jerry McAllister (jerrymc_at_clunix.cl.msu.edu)
Date: 03/17/05

  • Next message: Pietro Cerutti: "Re: Mounting DVD"
    To: FreeBSD@euro.net.mk (Perica Veljanovski)
    Date: Thu, 17 Mar 2005 09:11:53 -0500 (EST)
    
    

    >
    > Hi
    >
    > I have a problem booting the second disk with fbsd's boot manager. I
    > installed a new disk as pri/master (ad0) and moved my old disk to
    > sec/master (ad2). Then devided ad0 (40GB) with fbsd's fdisk in 10G (ufs)
    > and 30G (fat) and installed FreeBSD 5.3 with a boot manager on the first
    > 10G. When I boot the system I get:
    >
    > F1 FreeBSD (the fbsd on ad0s1)
    > F2 DOS (the 30G fat, ad0s2)
    > F5 Other (again the fbsd)
    >
    > So there is no option to boot from the second disk!?
    > Allso when I unlplug ad0 or change the BIOS to boot from ad2 (hd1 as he
    > sees it), WinXP boots just fine, meaning, there is no problem with the
    > mbr on ad2.

    Hmmm. I am not exactly clear from your description, but...

    I would expect that when you hit F5, you would be presented with
    a new menu that included the ad2 disk. Maybe that disk does not
    really have an MBR, but only a boot block (the second part of
    the disk boot process [or third if you count BIOS]). I believe
    each disk that has bootable slices (which have boot blocks/sectors)
    also needs to have an MBR for it to work right. If you are brave,
    try using fdisk to write the MBR to ad2 as well. I don't think
    that would mess up anything and might be what is missing.

    Something like: fdisk -BI -b /boot/boot0 ad2

    I don't know if FreeBSD 5.3 still keeps its MBR in /boot/boot0.
    You may have to check that.

    ////jerry

    >
    > I read the man for boot0cfg, but I can't make heads or tails of ti!!!
    > how do I configure/install the boo0 to show the second disk ni the boot
    > menu?

    I generally use fdisk and not boot0cfg, but I think it is basically
    the same for what you are trying to do here.

    Something like: boot0cfg -B -b /boot/boot0 -o packet ad2

    You might want to add -f some_file_name if you want it to save whatever
    was in the sector0 before the command. You can put it back if you need.

    You may also need -m 0x1 or -m 0x3 or -m 0x7 or -m 0xf depending
    on if you have 1, 2, 3 or 4 slices actively bootable. I think it
    is supposed to figure it out, but if it doesn't, then try those.

    You migh also want to include the -v flag to make it print out more
    stuff when it runs.

    You might also want to do the exactly the same or the same fdisk to ad0
    as well.

    By the way, what happened to ad1? (I don't muck with IDE - I have SCSI
    so, I am not up on its device naming schemes)

    Good luck,

    ////jerry

    >
    > _______________________________________________
    > 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"
    >

    _______________________________________________
    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: Pietro Cerutti: "Re: Mounting DVD"

    Relevant Pages

    • Re: Fixing a MBR (and more) that ??? trashed
      ... Even the Windows blowing away ... >> MBR is an annoyance, not a disaster since it is easy to rewrite. ... >> more than just adding a disk or Windows killing your MBR. ... > hardware, and then boot first into FBSD, all is well EXCEPT the boot ...
      (freebsd-questions)
    • Re: Moving Active Partition
      ... The MBR is contained within the cloned image. ... If the new drive fails to boot, recognize that failure is part of the ... a hard disk experiences its most extreme ... usage when installing an Operating System, ...
      (microsoft.public.windowsxp.general)
    • Re: Windows Xp crash
      ... Message came up "Disk Boot failure.: ... indicated that all drives had no disk inserted. ... I tried about a week ago to install Windows 7 on the second hard ...
      (microsoft.public.windowsxp.hardware)
    • Re: Broke Mirror incorrectly and cant login ... what do I do now?
      ... A fault tolerant boot disk will get you going from the disk without MBR. ... up the rest of your problem with the broken mirror. ...
      (microsoft.public.windows.server.setup)
    • Re: How do I make a boot disk so I can restore Grub?
      ... I read that Windows will overwrite the MBR. ... >I need to make a boot disk so I can restore MBR after Windows ...
      (comp.os.linux.setup)