Results 1 to 3 of 3

Thread: New triple boot install WinXP/10.04 and 12.04 - 2 MBR?

  1. #1
    Join Date
    Sep 2006
    Location
    Southern Indiana, USA
    Beans
    1,644
    Distro
    Ubuntu 12.04 Precise Pangolin

    New triple boot install WinXP/10.04 and 12.04 - 2 MBR?

    I reinstalled 12.04.1 on a trible boot system and got the "error no such device", "Grub rescue" prompt.

    I found this thread:
    http://ubuntuforums.org/showthread.php?t=1014708
    but you see what happened, then here:


    Code:
    Disk /dev/sda: 320.1 GB, 320072933376 bytes
    240 heads, 63 sectors/track, 41345 cylinders, total 625142448 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00058ed2
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *        2048   125835263    62916608    7  HPFS/NTFS/exFAT
    /dev/sda2       125835264   461389823   167777280    7  HPFS/NTFS/exFAT
    /dev/sda3       461389824   618676223    78643200   83  Linux
    /dev/sda4       618676224   625141759     3232768   82  Linux swap / Solaris
    
    Disk /dev/sdb: 203.9 GB, 203928109056 bytes
    255 heads, 63 sectors/track, 24792 cylinders, total 398297088 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x000e6065
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1              63   188570969    94285453+   7  HPFS/NTFS/exFAT
    /dev/sdb2       188570970   272462399    41945715    7  HPFS/NTFS/exFAT
    /dev/sdb3   *   272462400   398297087    62917344   83  Linux
    ubuntu@ubuntu:~$ sudo mkdir /media/sdb3 
    ubuntu@ubuntu:~$ sudo mount /dev/sdb3 /media/sdb3
    ubuntu@ubuntu:~$ sudo grub-install --root-directory=media/sdb3 /dev/sdb3
    /usr/sbin/grub-probe: error: cannot find a device for media/sdb3/boot/grub (is /dev mounted?).

    When I reinstalled new 12.04 I "think" I said sdb, not remembering that I "may" have used sda for the mbr... It appears this is so.

    Anyway, Ignore my noobiness but I am sort of stuck here and I need to get off to work - can someone please assist so I can get to my system when I return.

    I just want a grub2 boot to 12.04.1 LTS, WinXP and 10.04LTS as I had before.

    Also, is that what I did? The 12.04.1 install defaulted to sdb to load bootloader on install - I presumed it "knew" that is where it was/should be (but I guess not?)

    I would like to not have to reinstall 120.4.01 all over, but if i have to, will it delete the (apparently now wrong) boot loader on sdb?
    If NOT, how do I do it before re-installing?

    Thank you (again!)!
    MRK
    Ubuntu 12.04 LTS (& Windows XP-SP3 for Flight Sim only) - (1) 3.4 G/3G RAM/NVIDIA GT630, 2048VRAM/SB AudigySE Audio (2) 2.9 G/2G RAM/NVIDIA 9500GT,1024VRAM/SB Audio (3) 2.3 G/2G RAM/NVIDIA FX1500M,256VRAM/Sigmatel Audio

  2. #2
    Join Date
    Nov 2008
    Location
    Storybrooke
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: New triple boot install WinXP/10.04 and 12.04 - 2 MBR?

    Two ways to do it.
    Code:
    sudo grub-install --root-directory=/media/sdb3 /dev/sda
    or
    Code:
    sudo mkdir /mnt/ubuntu
    sudo mount /dev/sdb3 /mnt/ubuntu
    sudo mount --bind /dev /mnt/ubuntu/dev
    sudo mount --bind /sys /mnt/ubuntu/sys
    sudo mount --bind /proc/mnt/ubuntu/proc
    sudo chroot /mnt/ubuntu
    sudo grub-install /dev/sda
    Last edited by sandyd; August 25th, 2012 at 06:48 AM.
    Ubuntu Forums Moderation Staff
    Okay then. We're relying on mirror dust and fairies but now we have a plan which is progress - Emma

  3. #3
    Join Date
    Sep 2006
    Location
    Southern Indiana, USA
    Beans
    1,644
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: New triple boot install WinXP/10.04 and 12.04 - 2 MBR?

    Thanks!

    Or - forgot all about this lifesaver!

    "sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
    sudo apt-get install -y boot-repair && boot-repair"
    Ubuntu 12.04 LTS (& Windows XP-SP3 for Flight Sim only) - (1) 3.4 G/3G RAM/NVIDIA GT630, 2048VRAM/SB AudigySE Audio (2) 2.9 G/2G RAM/NVIDIA 9500GT,1024VRAM/SB Audio (3) 2.3 G/2G RAM/NVIDIA FX1500M,256VRAM/Sigmatel Audio

Tags for this Thread

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
  •