Page 71 of 94 FirstFirst ... 2161697071727381 ... LastLast
Results 701 to 710 of 931

Thread: Grub 2 Basics

  1. #701
    Join Date
    Dec 2010
    Beans
    6

    Re: Grub 2 Basics

    Thankyou drs305

    sudo grub-install --force /dev/sdXY
    fixed the problem, very grateful. I used Grub2 super boot disk from a floppy to get into my installation to do it - I can highly recommend that utility to anyone with this problem.

    Cheers.

  2. #702
    Join Date
    Dec 2010
    Beans
    5

    Re: Grub 2 Basics

    I am new to linux and I have been trying to install ubuntu alongside my Windows 7... (both 64 bits, mainly for RAM)... Anyway, I started with a clean install, I first installed Win 7 and left 150 GB of space in a HDD for a partition for linux.. I ran linux and installed it, everything went as smooth as silk... everything worked fine, when the installation ended it asked me to reboot so I can start using ubuntu... I rebooted but the problem is that it loads directly Windows 7, there is no boot menu, its like GRUB never kicks in.... Any ideas??

    I am running
    Intel Core i7 3.0 GHz
    Asus Sabertooth motherboard
    12 GB RAM 1333
    Nvidia Geforce GTX 470
    1 WD HD (1.5 TB)
    1 WD HD (1.0 TB)
    1 SM HD (1.0 TB)

    I am guessing is because I have 3 HDDs and sda is not the one I installed neither Windows nor Ubuntu?? they are both in sdb... But I really have no idea... It only boots Windows 7 and I can't seem to find anything that might help... so please, a little help!

  3. #703
    Join Date
    Dec 2010
    Beans
    6

    Re: Grub 2 Basics

    Quote Originally Posted by Maundler View Post
    I am new to linux and I have been trying to install ubuntu alongside my Windows 7... (both 64 bits, mainly for RAM)... Anyway, I started with a clean install, I first installed Win 7 and left 150 GB of space in a HDD for a partition for linux.. I ran linux and installed it, everything went as smooth as silk... everything worked fine, when the installation ended it asked me to reboot so I can start using ubuntu... I rebooted but the problem is that it loads directly Windows 7, there is no boot menu, its like GRUB never kicks in.... Any ideas??

    I am running
    Intel Core i7 3.0 GHz
    Asus Sabertooth motherboard
    12 GB RAM 1333
    Nvidia Geforce GTX 470
    1 WD HD (1.5 TB)
    1 WD HD (1.0 TB)
    1 SM HD (1.0 TB)

    I am guessing is because I have 3 HDDs and sda is not the one I installed neither Windows nor Ubuntu?? they are both in sdb... But I really have no idea... It only boots Windows 7 and I can't seem to find anything that might help... so please, a little help!
    Maundler, I am NO expert and no doubt drs305 will post something much more useful, but download grub2superdisk provided your ubuntu is recent version.

    http://www.supergrubdisk.org/

    it is a 1.4 MB iso and will fit on floppy or can be put on cd or usb. It will show you where grub installed and where your linux install is and allow you to boot ubuntu, but it sound like grub did not install to mbr of sda. Note that windozzze 7 has a nasty habit of overwriting mbr if you go into repair even if you click cancel ! it will then happily think that your world only has Windows and Gates. I use a hexeditor to look at mbr and see what is going on. Hope that is a little help. (its worth having that superdisk on the shelf anyhow)

  4. #704
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Grub 2 Basics

    Maundler,

    Welcome to the Ubuntu forums. We need to see the status of your boot files. From the LiveCD Desktop, go to the following link and download the boot info script. Post the contents of the RESULTS.txt and we can see what happened during the install.
    http://bootinfoscript.sourceforge.net
    GRUB2

    Retired.

  5. #705
    Join Date
    Dec 2010
    Beans
    5

    Re: Grub 2 Basics

    Thanks dsr.. I have always wanted to migrate to Linux, but I honestly never had the time to do it until now...
    This is my RESULTS.txt file.. Its a bit long and I didn-t know if I should paste the whole file, but here it is... As I said earlier before, it seems ubuntu installed Grub into another HDD while Windows installed a boot in another HDD... Still don-t know what this means... LOL...

    Code:
                    Boot Info Script 0.55    dated February 15th, 2010                    
    
    ============================= Boot Info Summary: ==============================
    
     => Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in 
        partition #5 for (,msdos5)/boot/grub.
     => Windows is installed in the MBR of /dev/sdb
     => Windows is installed in the MBR of /dev/sdc
    
    sda1: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  
        Boot files/dirs:   
    
    sda2: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  
        Boot files/dirs:   
    
    sda3: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  
        Boot files/dirs:   
    
    sdb1: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  
        Boot files/dirs:   /bootmgr /Boot/BCD /grldr
    
    sdb2: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  Windows 7
        Boot files/dirs:   /Windows/System32/winload.exe
    
    sdb3: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  
        Boot files/dirs:   
    
    sdb4: _________________________________________________________________________
    
        File system:       Extended Partition
        Boot sector type:  -
        Boot sector info:  
    
    sdb5: _________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info:  
        Operating System:  Ubuntu 10.10
        Boot files/dirs:   /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
    
    sdb6: _________________________________________________________________________
    
        File system:       swap
        Boot sector type:  -
        Boot sector info:  
    
    sdc1: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  
        Boot files/dirs:   
    
    sdc2: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  
        Boot files/dirs:   
    
    =========================== Drive/Partition Info: =============================
    
    Drive: sda ___________________ _____________________________________________________
    
    Disk /dev/sda: 1500.3 GB, 1500301910016 bytes
    255 heads, 63 sectors/track, 182401 cylinders, total 2930277168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    
    Partition  Boot         Start           End          Size  Id System
    
    /dev/sda1    *          2,048   882,274,303   882,272,256   7 HPFS/NTFS
    /dev/sda2         882,274,304 1,906,274,303 1,024,000,000   7 HPFS/NTFS
    /dev/sda3       1,906,274,304 2,930,272,255 1,023,997,952   7 HPFS/NTFS
    
    
    Drive: sdb ___________________ _____________________________________________________
    
    Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
    255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    
    Partition  Boot         Start           End          Size  Id System
    
    /dev/sdb1    *          2,048       206,847       204,800   7 HPFS/NTFS
    /dev/sdb2             206,848   737,282,047   737,075,200   7 HPFS/NTFS
    /dev/sdb3       1,024,002,048 1,953,521,663   929,519,616   7 HPFS/NTFS
    /dev/sdb4         737,284,094 1,024,002,047   286,717,954   5 Extended
    /dev/sdb5         737,284,096 1,010,718,719   273,434,624  83 Linux
    /dev/sdb6       1,010,720,768 1,024,002,047    13,281,280  82 Linux swap / Solaris
    
    
    Drive: sdc ___________________ _____________________________________________________
    
    Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
    255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    
    Partition  Boot         Start           End          Size  Id System
    
    /dev/sdc1               2,048 1,024,002,047 1,024,000,000   7 HPFS/NTFS
    /dev/sdc2       1,024,002,048 1,953,519,615   929,517,568   7 HPFS/NTFS
    
    
    blkid -c /dev/null: ____________________________________________________________
    
    Device           UUID                                   TYPE       LABEL                         
    
    /dev/loop0                                              squashfs                                 
    /dev/sda1        B4A40E56A40E1C0C                       ntfs       Data2                         
    /dev/sda2        7EF017FAF017B6FD                       ntfs       Data3                         
    /dev/sda3        54FC1FB7FC1F927A                       ntfs       Data and backup               
    /dev/sda: PTTYPE="dos" 
    /dev/sdb1        E06ECFB16ECF7EB2                       ntfs       System Reserved               
    /dev/sdb2        6422DE0F22DDE5D8                       ntfs                                     
    /dev/sdb3        AC3CA4C63CA48CC0                       ntfs       Maverick                      
    /dev/sdb4: PTTYPE="dos" 
    /dev/sdb5        7698db3f-e402-4d34-895e-e8d9432586aa   ext4                                     
    /dev/sdb6        faf08c58-7fa7-4244-8e88-cf3c3bdbc400   swap                                     
    /dev/sdb: PTTYPE="dos" 
    /dev/sdc1        061441B71441AA8F                       ntfs       Maundler                      
    /dev/sdc2        EE585BDF585BA55D                       ntfs       Data                          
    /dev/sdc: PTTYPE="dos" 
    error: /dev/sdd: No medium found
    error: /dev/sde: No medium found
    error: /dev/sdf: No medium found
    error: /dev/sdg: No medium found
    
    ============================ "mount | grep ^/dev  output: ===========================
    
    Device           Mount_Point              Type       Options
    
    aufs             /                        aufs       (rw)
    /dev/sr0         /cdrom                   iso9660    (ro,noatime)
    /dev/loop0       /rofs                    squashfs   (ro,noatime)
    /dev/sda3        /media/Data and backup   fuseblk    (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
    /dev/sda2        /media/Data3             fuseblk    (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
    /dev/sdc1        /media/Maundler          fuseblk    (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
    
    
    =========================== sdb5/boot/grub/grub.cfg: ===========================
    
    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #
    
    ### BEGIN /etc/grub.d/00_header ###
    if [ -s $prefix/grubenv ]; then
      set have_grubenv=true
      load_env
    fi
    set default="0"
    if [ "${prev_saved_entry}" ]; then
      set saved_entry="${prev_saved_entry}"
      save_env saved_entry
      set prev_saved_entry=
      save_env prev_saved_entry
      set boot_once=true
    fi
    
    function savedefault {
      if [ -z "${boot_once}" ]; then
        saved_entry="${chosen}"
        save_env saved_entry
      fi
    }
    
    function recordfail {
      set recordfail=1
      if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
    }
    
    function load_video {
      insmod vbe
      insmod vga
    }
    
    insmod part_msdos
    insmod ext2
    set root='(hd1,msdos5)'
    search --no-floppy --fs-uuid --set 7698db3f-e402-4d34-895e-e8d9432586aa
    if loadfont /usr/share/grub/unicode.pf2 ; then
      set gfxmode=640x480
      load_video
      insmod gfxterm
    fi
    terminal_output gfxterm
    insmod part_msdos
    insmod ext2
    set root='(hd1,msdos5)'
    search --no-floppy --fs-uuid --set 7698db3f-e402-4d34-895e-e8d9432586aa
    set locale_dir=($root)/boot/grub/locale
    set lang=en
    insmod gettext
    if [ "${recordfail}" = 1 ]; then
      set timeout=-1
    else
      set timeout=10
    fi
    ### END /etc/grub.d/00_header ###
    
    ### BEGIN /etc/grub.d/05_debian_theme ###
    set menu_color_normal=white/black
    set menu_color_highlight=black/light-gray
    ### END /etc/grub.d/05_debian_theme ###
    
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod part_msdos
        insmod ext2
        set root='(hd1,msdos5)'
        search --no-floppy --fs-uuid --set 7698db3f-e402-4d34-895e-e8d9432586aa
        linux    /boot/vmlinuz-2.6.35-22-generic root=UUID=7698db3f-e402-4d34-895e-e8d9432586aa ro   quiet splash
        initrd    /boot/initrd.img-2.6.35-22-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod part_msdos
        insmod ext2
        set root='(hd1,msdos5)'
        search --no-floppy --fs-uuid --set 7698db3f-e402-4d34-895e-e8d9432586aa
        echo    'Loading Linux 2.6.35-22-generic ...'
        linux    /boot/vmlinuz-2.6.35-22-generic root=UUID=7698db3f-e402-4d34-895e-e8d9432586aa ro single 
        echo    'Loading initial ramdisk ...'
        initrd    /boot/initrd.img-2.6.35-22-generic
    }
    ### END /etc/grub.d/10_linux ###
    
    ### BEGIN /etc/grub.d/20_linux_xen ###
    ### END /etc/grub.d/20_linux_xen ###
    
    ### BEGIN /etc/grub.d/20_memtest86+ ###
    menuentry "Memory test (memtest86+)" {
        insmod part_msdos
        insmod ext2
        set root='(hd1,msdos5)'
        search --no-floppy --fs-uuid --set 7698db3f-e402-4d34-895e-e8d9432586aa
        linux16    /boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
        insmod part_msdos
        insmod ext2
        set root='(hd1,msdos5)'
        search --no-floppy --fs-uuid --set 7698db3f-e402-4d34-895e-e8d9432586aa
        linux16    /boot/memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Windows 7 (loader) (on /dev/sdb1)" {
        insmod part_msdos
        insmod ntfs
        set root='(hd1,msdos1)'
        search --no-floppy --fs-uuid --set e06ecfb16ecf7eb2
        chainloader +1
    }
    ### END /etc/grub.d/30_os-prober ###
    
    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries.  Simply type the
    # menu entries you want to add after this comment.  Be careful not to change
    # the 'exec tail' line above.
    ### END /etc/grub.d/40_custom ###
    
    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f  $prefix/custom.cfg ]; then
      source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###
    
    =============================== sdb5/etc/fstab: ===============================
    
    # /etc/fstab: static file system information.
    #
    # Use 'blkid -o value -s UUID' to print the universally unique identifier
    # for a device; this may be used with UUID= as a more robust way to name
    # devices that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    nodev,noexec,nosuid 0       0
    # / was on /dev/sdb5 during installation
    UUID=7698db3f-e402-4d34-895e-e8d9432586aa /               ext4    errors=remount-ro 0       1
    # swap was on /dev/sdb6 during installation
    UUID=faf08c58-7fa7-4244-8e88-cf3c3bdbc400 none            swap    sw              0       0
    
    =================== sdb5: Location of files loaded by Grub: ===================
    
    
     454.9GB: boot/grub/core.img
     497.8GB: boot/grub/grub.cfg
     378.4GB: boot/initrd.img-2.6.35-22-generic
     454.9GB: boot/vmlinuz-2.6.35-22-generic
     378.4GB: initrd.img
     454.9GB: vmlinuz
    =======Devices which don't seem to have a corresponding hard drive==============
    
    sdd sde sdf sdg
    Last edited by drs305; December 18th, 2010 at 12:50 PM.

  6. #706
    Join Date
    Sep 2008
    Beans
    17

    Re: Grub 2 Basics

    I am having no luck with this. Can anyone tell me what it is i am typing wrong?

    menuentry "mint 10" {
    set isofile="/distro/m10.iso"
    loopback loop (hd0,5)/distro/m10.iso
    linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/distro/m10.iso noprompt noeject
    initrd (loop)/casper/initrd.lz
    }

    iso file is on my / partition. Thanks in advance guys.

  7. #707
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Grub 2 Basics

    Maundler,

    Thanks for posting. I placed the RESULTS.txt between "code" tags for formatting purposes. You generate the tags when creating a post by pressing the # icon in the post's menubar. Then you paste between the [code] [/code] tags.

    What the results show is that Grub2 was installed, but wrote to the sda MBR. It appears your system boots first to the sdb MBR.

    Depending on how it was written, the best solution would be to change the BIOS boot order to boot sda first. Even though it would be a bit strange, it would allow you to have G2 on sda, which would present the boot menu and allow you to boot either Windows or Linux. The advantage would be that the Windows bootloader would still be on sdb and if Grub2 ever broke, you could switch the BIOS back and immediately have Windows again just as you do now.

    The other way to get Grub2 working is to boot the LiveCD, mount your Ubuntu partition (sdb5) and install Grub2 to sdb with the following commands:
    Code:
    sudo mount /dev/sdb5 /mnt
    sudo grub-install --root-directory=/mnt /dev/sdb
    Do not include the partition number in the second command.

    After rebooting, run "sudo update-grub" if you don't see Windows as a menu option during boot.
    GRUB2

    Retired.

  8. #708
    Join Date
    Dec 2010
    Beans
    5

    Re: Grub 2 Basics

    DRS.. thanks for the quick response!!! I will try it right now... I mean, it felt "logical" that this would be the answer, although I was unsure how Linux behaved with 2 "bootloaders" and I was unsure whether Windows boot would mess up the Linux one...

    Now that it seems to be this way, it works perfect then... I will still have my untouched boot from Windows and the boot from Linux... Anyway, thanks again and I will give it a try and post the results later...

  9. #709
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Grub 2 Basics

    Quote Originally Posted by akureikorineko View Post
    I am having no luck with this. Can anyone tell me what it is i am typing wrong?

    menuentry "mint 10" {
    set isofile="/distro/m10.iso"
    loopback loop (hd0,5)/distro/m10.iso
    linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/distro/m10.iso noprompt noeject
    initrd (loop)/casper/initrd.lz
    }

    iso file is on my / partition. Thanks in advance guys.
    Try this one, with your m10.iso in the sda5 partition. You say the file is on your / partition - I'm assuming it's in the /distro folder.

    menuentry "mint 10" {
    loopback loop (hd0,5)/distro/m10.iso
    linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/distro/m10.iso noprompt noeject
    initrd (loop)/casper/initrd.lz
    }
    If you have problems with it, from the Grub menu press "c" to get to the Grub command prompt, then type the following, which should list your m10.iso file. If it doesn't, change the address until you do and then modify your menuentry accordingly.
    Code:
    ls (hd0,5)/distro
    GRUB2

    Retired.

  10. #710
    Join Date
    Sep 2008
    Beans
    17

    Re: Grub 2 Basics

    Thanks that solved it. Now i just have to figure out why it won't actually show a desktop. The startup theme rings, but i get a static screen. (kinda like the old school tv fuzzy channels, but in lines instead of dots)

Page 71 of 94 FirstFirst ... 2161697071727381 ... LastLast

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
  •