Find the answer to your Linux question:
Results 1 to 3 of 3
Background: It is a dual boot machine with F18 installed on /dev/sda3. In order to boot F18, I have created ( during F18 installation ) an MBR on a USB ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie blnl's Avatar
    Join Date
    Jan 2009
    Location
    The Netherlands
    Posts
    170

    Question Create MBR on a USB stick for booting F18 on /dev/sda3


    Background:
    It is a dual boot machine with F18 installed on /dev/sda3. In order to boot F18, I have created ( during F18 installation ) an MBR on a USB stick. So now when I insert the USB stick, my laptop boots F18 system ( otherwise it boots Win7 ). MBR on HDD boots only Win7 and I do not want to touch or modify it. I have a good reason for that, which I do not want to discuss here.

    Problem description:
    Yesterday I lost my USB stick. Without USB stick I can't boot F18...

    Question:
    How can I (re)create MBR on another USB stick ( without having to reinstall F18 ) that will point to /dev/sda3 as the boot partition?
    Last edited by blnl; 06-27-2013 at 01:20 PM.
    Fedora_20@Dell_Latitude_E7440
    Ubuntu_14.04_LTS@HP_Compaq_DC7100

  2. #2
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,190
    Use the Fedora installation media to install Grub to the mbr of the new flash drive. First, determine the device name of the new flash using the fdisk command. Then as root run from a terminal: grub-install /dev/sd?, replacing the ? with the actual device, sdb, sdc, whatever. You can then mount the flash and create a correct menuentry in the grub.cfg file pointing to sda3. If you have a separate boot partition, you would need to point to it rather than the system partition.

  3. #3
    Linux Newbie blnl's Avatar
    Join Date
    Jan 2009
    Location
    The Netherlands
    Posts
    170

    Cool

    I have followed instructions form this web page:
    How to Reinstall Grub Onto Your MBR

    The exact procedure is:
    1) Use gparted to create NTFS partition on the USB stick (and make it bootable)
    2) Start F18 Live DVD
    3)
    Code:
    mkdir /mnt/f18sys
    mount /dev/sda3 /mnt/f18sys
    grub2-install --root-directory=/mnt/f18sys /dev/sdb
    Fedora_20@Dell_Latitude_E7440
    Ubuntu_14.04_LTS@HP_Compaq_DC7100

  4. $spacer_open
    $spacer_close

Posting Permissions

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