Page 102 of 103 FirstFirst ... 25292100101102103 LastLast
Results 1,011 to 1,020 of 1028

Thread: How to install Grub from a live Ubuntu cd.

  1. #1011
    Join Date
    Sep 2010
    Beans
    1

    Re: How to restore Grub from a live Ubuntu cd.

    when my pc boots it comes to the screen where i usually hit the boot options but the options don't come up. i can't boot into windows. i can't get the live cd to boot. if possible how do i force boot of the cd drive?

  2. #1012
    Join Date
    Jul 2009
    Location
    India
    Beans
    26
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How to restore Grub from a live Ubuntu cd.

    Quote Originally Posted by kaisa249 View Post
    when my pc boots it comes to the screen where i usually hit the boot options but the options don't come up. i can't boot into windows. i can't get the live cd to boot. if possible how do i force boot of the cd drive?
    I guess there is a multitude of problems when you try to dual boot ubuntu with windows 7. Let me summarize what I faced recently, and should certainly share so that more people can benefit.


    1. I installed ubuntu over windows 7, hence grub2 took charge. As soon as one boots into windows again, the MBR erases the grub entries, so a problem occurs which is addressed in this post.
    2. However, when your PC can't detect any image on disk, you can't but boot with live CD. So did I. The best solution is to reinstall the grub. Rather change grub2 to the classic grub. Follow this link.
    3. Now the problem appears as posted above. It boots directly to Ubuntu and you can't even see Windows. So, one needs to add lines for windows in the /boot/grub/menu.lst . Follow this.

    I found that the Windows 7 created 3 partitions in a Dell desktop: Dell Diagnostic, RECOVERY, and Windows 7. Out of which I found the Recovery partition to be put in the
    Code:
    root='(hdX,Y)'
    , where X and Y would be the hard disk number and partition number of the Recovery partition respectively.

    I guess if you edit the grub.cfg / menu.lst in this way, everything should be fine and you will see windows to get booted again. Good luck.

    I never expected that an OS would rewrite the MBR again after a successful installation of some other OS, leaving things in a mess. This is a shame for Windows. I wonder why nobody sued them yet.

  3. #1013
    Join Date
    Apr 2008
    Beans
    3

    Re: How to install Grub from a live Ubuntu cd.

    I copied whole partition and MBR to my new 500GB HDD, but I'm getting Grub error 17.

    Old HDD is 100GB you can see it in fdisk -l

    On old hdd I had linux but it's no longer there.

    What I'm loking to do is to be able to boot windows from 500GB HDD

    No matter what I did I was still getting error 17.

    What to do?

    I tried lots of things but I admit this is above my skills.
    Code:
    ubuntu@ubuntu:~$ sudo fdisk -l
    
    Disk /dev/sda: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00075f0b
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1       12898   103603153+   7  HPFS/NTFS
    /dev/sda2           12899       12911      104422+  83  Linux
    
    Disk /dev/sdc: 100.0 GB, 100030242816 bytes
    255 heads, 63 sectors/track, 12161 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xc38aaea8
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdc1            3856        3868      104422+  83  Linux
    /dev/sdc2   *           1        3855    30965256    7  HPFS/NTFS
    /dev/sdc3            3869       12161    66613522+   f  W95 Ext'd (LBA)
    /dev/sdc5            3869       12161    66613491    7  HPFS/NTFS
    
    Partition table entries are not in disk order
    device.map
    Code:
    (hd0)	/dev/sda
    (hd1)	/dev/sdb
    Code:
    # menu.lst - See: grub(8), info grub, update-grub(8)
    #            grub-install(8), grub-floppy(8),
    #            grub-md5-crypt, /usr/share/doc/grub
    #            and /usr/share/doc/grub-doc/.
    
    ## default num
    # Set the default entry to the entry number NUM. Numbering starts from 0, and
    # the entry number 0 is the default if the command is not used.
    #
    # You can specify 'saved' instead of a number. In this case, the default entry
    # is the entry saved with the command 'savedefault'.
    # WARNING: If you are using dmraid do not use 'savedefault' or your
    # array will desync and will not let you boot your system.
    default		6
    
    ## timeout sec
    # Set a timeout, in SEC seconds, before automatically booting the default entry
    # (normally the first entry defined).
    timeout		1
    
    ## hiddenmenu
    # Hides the menu by default (press ESC to see the menu)
    #hiddenmenu
    
    # Pretty colours
    #color cyan/blue white/blue
    
    ## password ['--md5'] passwd
    # If used in the first section of a menu file, disable all interactive editing
    # control (menu entry editor and command-line)  and entries protected by the
    # command 'lock'
    # e.g. password topsecret
    #      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
    # password topsecret
    
    #
    # examples
    #
    # title		Windows 95/98/NT/2000
    # root		(hd0,0)
    # makeactive
    # chainloader	+1
    #
    # title		Linux
    # root		(hd0,1)
    # kernel	/vmlinuz root=/dev/hda2 ro
    #
    
    #
    # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
    
    ### BEGIN AUTOMAGIC KERNELS LIST
    ## lines between the AUTOMAGIC KERNELS LIST markers will be modified
    ## by the debian update-grub script except for the default options below
    
    ## DO NOT UNCOMMENT THEM, Just edit them to your needs
    
    ## ## Start Default Options ##
    ## default kernel options
    ## default kernel options for automagic boot options
    ## If you want special options for specific kernels use kopt_x_y_z
    ## where x.y.z is kernel version. Minor versions can be omitted.
    ## e.g. kopt=root=/dev/hda1 ro
    ##      kopt_2_6_8=root=/dev/hdc1 ro
    ##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
    # kopt=root=UUID=90149fa4-9ab7-49e1-b7ba-7813fad90165 ro
    
    ## Setup crashdump menu entries
    ## e.g. crashdump=1
    # crashdump=0
    
    ## default grub root device
    ## e.g. groot=(hd0,0)
    # groot=(hd0,0)
    
    ## should update-grub create alternative automagic boot options
    ## e.g. alternative=true
    ##      alternative=false
    # alternative=true
    
    ## should update-grub lock alternative automagic boot options
    ## e.g. lockalternative=true
    ##      lockalternative=false
    # lockalternative=false
    
    ## additional options to use with the default boot option, but not with the
    ## alternatives
    ## e.g. defoptions=vga=791 resume=/dev/hda5
    # defoptions=quiet splash
    
    ## should update-grub lock old automagic boot options
    ## e.g. lockold=false
    ##      lockold=true
    # lockold=false
    
    ## Xen hypervisor options to use with the default Xen boot option
    # xenhopt=
    
    ## Xen Linux kernel options to use with the default Xen boot option
    # xenkopt=console=tty0
    
    ## altoption boot targets option
    ## multiple altoptions lines are allowed
    ## e.g. altoptions=(extra menu suffix) extra boot options
    ##      altoptions=(recovery) single
    # altoptions=(recovery mode) single
    
    ## controls how many kernels should be put into the menu.lst
    ## only counts the first occurence of a kernel, not the
    ## alternative kernel options
    ## e.g. howmany=all
    ##      howmany=7
    # howmany=all
    
    ## should update-grub create memtest86 boot option
    ## e.g. memtest86=true
    ##      memtest86=false
    # memtest86=true
    
    ## should update-grub adjust the value of the default booted system
    ## can be true or false
    # updatedefaultentry=false
    
    ## should update-grub add savedefault to the default options
    ## can be true or false
    # savedefault=false
    
    ## ## End Default Options ##
    
    title		Ubuntu 8.04.1, kernel 2.6.24-22-generic
    root		(hd0,0)
    kernel		/vmlinuz-2.6.24-22-generic root=UUID=90149fa4-9ab7-49e1-b7ba-7813fad90165 ro quiet splash
    initrd		/initrd.img-2.6.24-22-generic
    quiet
    
    title		Ubuntu 8.04.1, kernel 2.6.24-22-generic (recovery mode)
    root		(hd0,0)
    kernel		/vmlinuz-2.6.24-22-generic root=UUID=90149fa4-9ab7-49e1-b7ba-7813fad90165 ro single
    initrd		/initrd.img-2.6.24-22-generic
    
    title		Ubuntu 8.04.1, kernel 2.6.24-19-generic
    root		(hd0,0)
    kernel		/vmlinuz-2.6.24-19-generic root=UUID=90149fa4-9ab7-49e1-b7ba-7813fad90165 ro quiet splash
    initrd		/initrd.img-2.6.24-19-generic
    quiet
    
    title		Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
    root		(hd0,0)
    kernel		/vmlinuz-2.6.24-19-generic root=UUID=90149fa4-9ab7-49e1-b7ba-7813fad90165 ro single
    initrd		/initrd.img-2.6.24-19-generic
    
    title		Ubuntu 8.04.1, memtest86+
    root		(hd0,0)
    kernel		/memtest86+.bin
    quiet
    
    ### END DEBIAN AUTOMAGIC KERNELS LIST
    
    # This is a divider, added to separate the menu items below from the Debian
    # ones.
    title		Other operating systems:
    root
    
    
    # This entry automatically added by the Debian installer for a non-linux OS
    # on /dev/sda2
    title		Windows XP Media Center Edition
    root		(hd0,1)
    savedefault
    makeactive
    chainloader	+1

  4. #1014
    Join Date
    Apr 2008
    Beans
    3

    Re: How to install Grub from a live Ubuntu cd.

    I got this solved. I used Super Grub and then just fixed boot.ini in windows.

    Thanks anyway

  5. #1015
    Join Date
    May 2007
    Location
    West Indies
    Beans
    497
    Distro
    Ubuntu

    Re: How to install Grub from a live Ubuntu cd.

    I can't find the go-to thread for how to fix GRUB2. Where is it?
    My rig:
    IBM Personal System/2 Model 30-286 - - Intel 80286 (16 bit) 10 Mhz - - 1MB DRAM - - Integrated VGA Display adapter
    1.44MB capacity Floppy Disk - - PS/2 keyboard (no mouse)

  6. #1016
    Join Date
    May 2007
    Location
    West Indies
    Beans
    497
    Distro
    Ubuntu

    Re: How to install Grub from a live Ubuntu cd.

    My rig:
    IBM Personal System/2 Model 30-286 - - Intel 80286 (16 bit) 10 Mhz - - 1MB DRAM - - Integrated VGA Display adapter
    1.44MB capacity Floppy Disk - - PS/2 keyboard (no mouse)

  7. #1017
    Join Date
    May 2011
    Beans
    2

    Re: How to install Grub from a live Ubuntu cd.

    omg..that was really help...very well explained... thanks a lot.

  8. #1018
    Join Date
    May 2011
    Beans
    14

    Re: How to install Grub from a live Ubuntu cd.

    I'm stuck at the beginning:

    Code:
    grub> find /boot/grub/stage1
    
    Error 15: File not found
    But

    Then I tried:

    Code:
    find /boot/grub/grub.cfg
     (hd1,6)
    
    grub> root (hd1,6)
    
    grub> setup (hd1)
     Checking if "/boot/grub/stage1" exists... no
     Checking if "/grub/stage1" exists... no
    
    Error 15: File not found
    Any idea?
    Last edited by umpirsky; June 12th, 2011 at 07:10 PM.

  9. #1019
    Join Date
    May 2007
    Location
    Pleasant Hill, California
    Beans
    315
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How to install Grub from a live Ubuntu cd.

    One thing you should be aware of is that the recent releases of Ubuntu use a newer version of GRUB, collectively known as GRUB 2. There are minor differences, but there are major differences between version 1 and version 2, one of which is that there is no longer any stage1 or stage2, and the files in /boot/grub are not the way to make changes.

    You can read more about this here: https://help.ubuntu.com/community/Grub2

  10. #1020
    Join Date
    Jun 2011
    Location
    Mass, not this one E=MC^2
    Beans
    258
    Distro
    Ubuntu Studio 11.04 Natty Narwhal

    Re: How to install Grub from a live Ubuntu cd.

    Quote Originally Posted by catlett View Post
    Just wanted to post with more concrete proof. I knew it was right from the documentation and I got feedback from one success story plus I ran it but it was just replacing the same list so it was hard to tell.
    BUT NOW, I have absolute proof. I just installed Fedora Core 5 yesterday. I allowed Fedora to install grub. Fedora's grub didn't recognise Ubuntu's installation.
    I thought to myself, Perfect! Lets put the guide to work. This is just the scenario I was hoping to help people with. You had grub but lost it to another install (or another issue that caused grub to return an error or what not. The main thing is that grub is already installed somewhere. The issue is you can't access it)
    This is actually how anyone could handle this. I copied down Fedora's grub entry , then I rebooted and put the Ubuntu Live installation cd. When I got to the desktop I opened the terminal and did the 4 commands. One from the regular ubuntu terminal and 3 at the grub shell.
    Code:
    sudo grub
    then at grub>
    Code:
    find /boot/grub/stage1
    It returned 2 listings, hd0,2 and hd0,6. I forgot Ubuntu's root partition believe it or not but I knew I just put Fedora on /dev/hda3 (that is hd0,2 to grub)
    Now that I know Ubuntu's grub is on hd0,6 I let the grub shell know what grub files I wanted to use
    Still at grub>
    Code:
    root (hd0,6)
    Now the command to install grub on the mbr with hd0,6's grub files
    Code:
    setup (hd0)
    Grub then prints a little read out in the terminal about how it found the kernel and everything else until it says "succeeded". Now all I have to do is get out of the shell
    grub>
    Code:
    quit
    Then I shutdown Ubuntu and restarted the computer.
    Gone was Fedora's grub and in it's place was my Ubuntu grub menu. Success.
    (As for accessing Fedora, I just inserted the Fedora entries I copied from Fedora's grub before I booted the live cd. Now I have Ubuntu's grub back and it is booting to fedora.)

    To sum up, hd0,6's grub installed flawlessly on the mbr. It took all of 2 minutes from putting the cd in to restarting.

    Here it is again just to put it to bed.
    Code:
    sudo grub
    Code:
    find /boot/grub/stage1
    whatever the find command returns use for root
    Code:
    root (hd?,?)
    Code:
    setup (hd0)
    hd0 is the mbr of the first drive (as far as grub is concerned)
    Code:
    quit

    thats all well and good but what happens with us guys who get Error 15: File not found what do I do?????????????
    The true value of a human being
    is determined primarily by the measure and the sense in which he has attained liberation from the self.
    - Albert Einstein Ideas and Opinions

Page 102 of 103 FirstFirst ... 25292100101102103 LastLast

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
  •