Results 1 to 5 of 5

Thread: How to add entry of ubuntu 12.04 live usb partiotion to grub?

  1. #1
    Join Date
    Aug 2011
    Beans
    15

    How to add entry of ubuntu 12.04 live usb partiotion to grub?

    i have 150 gb external hard disk with following partitions-
    /dev/sdb1 elements(data) 123 gb
    /dev/sdb2 linuxlivekey(bootable live usb ubuntu 12.04.2) 5gb
    /dev/sdb5 /boot
    /dev/sdb6 /
    /dev/sdb7 /home
    /dev/sdb 8 swap

    i initially partitioned the disk, installed ubuntu 12.04 live usb in partition 2, then booted the live usb partition and installed ubuntu 12.04...and wrote mbr to /dev/sdb.
    but when grub loaded after installing, it displayed entry of ubuntu & windows, but did'nt display the live usb entry.
    how can i add entry of the live usb partition to grub so that i can install ubuntu on any other system with my external hdd?
    Last edited by chk1827; March 25th, 2013 at 05:07 PM.

  2. #2
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How to add entry of ubuntu 12.04 live usb partiotion to grub?

    If you have grub in sdb, you can directly mount the ISO. Or did you extract it?

    Does not matter if hard drive, external drive or flash drive. I use this for all of them. It is just getting path and drive number correct as boot drive from BIOS always is hd0.

    This will boot an ISO from a hard drive.
    ISO Booting with Grub 2 from Hard drive - drs305
    https://help.ubuntu.com/community/Grub2/ISOBoot
    Examples - you may copy & edit for your path & ISO version
    https://help.ubuntu.com/community/Gr...OBoot/Examples
    http://ubuntuforums.org/showthread.php?t=1549847
    Boot ISO from harddrive. To install it would have to be different partition
    [SOLVED] Using grub 2 to boot an iso off hard drive old examples
    http://ubuntuforums.org/showthread.php?t=1535864
    Oldfred on vacation. Back Sept 9. Will not have much if any Internet access.
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  3. #3
    Join Date
    Aug 2011
    Beans
    15

    Re: How to add entry of ubuntu 12.04 live usb partiotion to grub?

    no i made a live usb partition using linux live usb creator(for windows)..in the partion /dev/sdb2 of 5gb fat32 filesystem..which has persistance of 3.5 gb..which is not present using .iso image...and i want to add entry of this live usb partition to grub...i tried editing the custom grub.d file custom 40 and added
    menuentry 'Ubuntu 12.04.2 LiveUSB'{
    set root='(hd1,2)'
    chainloader +1
    }
    but this boots up my windows partition in hd0,2
    what to do?

  4. #4
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How to add entry of ubuntu 12.04 live usb partiotion to grub?

    If you directly boot the flash drive, it will be hd0 and then hard drives are in motherboard port order.
    Try set root='hd0,2'
    You can test with e on grub menu and edit. That is just a one time change but allows you to experiment. It took me a while to understand how it numbers drives as it is not fixed. Actually it depends on how BIOS reports drives to operating system.

    I skipped one port in the middle of my ports and have several drives. Sometimes my flash drive is sdb and others sde. But if I boot it, it is always hd0 in grub, then sda is hd1 for chainloading.
    Oldfred on vacation. Back Sept 9. Will not have much if any Internet access.
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  5. #5
    Join Date
    Aug 2011
    Beans
    15

    Re: How to add entry of ubuntu 12.04 live usb partiotion to grub?

    That worked!! Thank you

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
  •