Page 14 of 24 FirstFirst ... 41213141516 ... LastLast
Results 131 to 140 of 236

Thread: “How to” Dual boot Ubuntu and Windows 7 (Ubuntu installed first)

  1. #131
    Join Date
    Sep 2008
    Location
    Philadelphia, PA
    Beans
    5,193
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: “How to” Dual boot Ubuntu and Windows 7 (Ubuntu installed first)

    Quote Originally Posted by dustoashes View Post
    Hi,
    I've read the entire thread but can't seem to find the answer to my problem.

    I've followed all the steps and after installing Windows 7, re-installed GRUB, etc. But each time I restart, it simply proceeds to Ubuntu.

    This is my f-disk l:

    Code:
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1       26736   214756888+  83  Linux
    /dev/sda2   *       26737       29286    20482875    7  HPFS/NTFS
    /dev/sda3           29287       30401     8956237+   5  Extended
    /dev/sda5           29287       30401     8956206   82  Linux swap / Solaris
    Menu.lst:

    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		0
    
    ## timeout sec
    # Set a timeout, in SEC seconds, before automatically booting the default entry
    # (normally the first entry defined).
    timeout		3
    
    ## 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=09ac54c0-8e01-4d27-b9f1-87c4ce142c1e ro
    
    ## default grub root device
    ## e.g. groot=(hd0,0)
    # groot=09ac54c0-8e01-4d27-b9f1-87c4ce142c1e
    
    ## 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
    
    ## specify if running in Xen domU or have grub detect automatically
    ## update-grub will ignore non-xen kernels when running in domU and vice versa
    ## e.g. indomU=detect
    ##      indomU=true
    ##      indomU=false
    # indomU=detect
    
    ## 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 9.04, kernel 2.6.28-16-generic
    uuid		09ac54c0-8e01-4d27-b9f1-87c4ce142c1e
    kernel		/boot/vmlinuz-2.6.28-16-generic root=UUID=09ac54c0-8e01-4d27-b9f1-87c4ce142c1e ro quiet splash 
    initrd		/boot/initrd.img-2.6.28-16-generic
    quiet
    
    title		Ubuntu 9.04, kernel 2.6.28-16-generic (recovery mode)
    uuid		09ac54c0-8e01-4d27-b9f1-87c4ce142c1e
    kernel		/boot/vmlinuz-2.6.28-16-generic root=UUID=09ac54c0-8e01-4d27-b9f1-87c4ce142c1e ro  single
    initrd		/boot/initrd.img-2.6.28-16-generic
    
    title		Ubuntu 9.04, kernel 2.6.28-15-generic
    uuid		09ac54c0-8e01-4d27-b9f1-87c4ce142c1e
    kernel		/boot/vmlinuz-2.6.28-15-generic root=UUID=09ac54c0-8e01-4d27-b9f1-87c4ce142c1e ro quiet splash 
    initrd		/boot/initrd.img-2.6.28-15-generic
    quiet
    
    title		Ubuntu 9.04, kernel 2.6.28-15-generic (recovery mode)
    uuid		09ac54c0-8e01-4d27-b9f1-87c4ce142c1e
    kernel		/boot/vmlinuz-2.6.28-15-generic root=UUID=09ac54c0-8e01-4d27-b9f1-87c4ce142c1e ro  single
    initrd		/boot/initrd.img-2.6.28-15-generic
    
    title		Ubuntu 9.04, kernel 2.6.28-11-generic
    uuid		09ac54c0-8e01-4d27-b9f1-87c4ce142c1e
    kernel		/boot/vmlinuz-2.6.28-11-generic root=UUID=09ac54c0-8e01-4d27-b9f1-87c4ce142c1e ro quiet splash 
    initrd		/boot/initrd.img-2.6.28-11-generic
    quiet
    
    title		Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
    uuid		09ac54c0-8e01-4d27-b9f1-87c4ce142c1e
    kernel		/boot/vmlinuz-2.6.28-11-generic root=UUID=09ac54c0-8e01-4d27-b9f1-87c4ce142c1e ro  single
    initrd		/boot/initrd.img-2.6.28-11-generic
    
    title		Ubuntu 9.04, memtest86+
    uuid		09ac54c0-8e01-4d27-b9f1-87c4ce142c1e
    kernel		/boot/memtest86+.bin
    quiet
    
    title 		windows 7 beta (Loader)
    root 		(hd0,1)
    savedefault
    makeactive
    chainloader 	+1
    
    ### END DEBIAN AUTOMAGIC KERNELS LIST
    Here I also tried root (hd0,2), though the result doesn't change.
    change this :
    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		0
    
    ## timeout sec
    # Set a timeout, in SEC seconds, before automatically booting the default entry
    # (normally the first entry defined).
    timeout		3
    
    ## hiddenmenu
    # Hides the menu by default (press ESC to see the menu)
    hiddenmenu
    
    # Pretty colours
    to:
    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		0
    
    ## timeout sec
    # Set a timeout, in SEC seconds, before automatically booting the default entry
    # (normally the first entry defined).
    timeout		3
    
    ## hiddenmenu
    # Hides the menu by default (press ESC to see the menu)
    #hiddenmenu
    
    # Pretty colours
    Put a # in front of hiddenmenu (in red above) The way you have it now it will not display the GRUB menu unless you hit Esc before the 3 second countdown. For countdown control continue reading.

    Set the timeout in seconds to how long to display the GRUB menu before booting the default which is Ubuntu. (purple above)
    Last edited by presence1960; October 24th, 2009 at 12:46 PM.
    Multi-boot: Arch linux, Ubuntu 12.04, Windows 7 & Windows 8

  2. #132
    Join Date
    May 2006
    Beans
    49
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: “How to” Dual boot Ubuntu and Windows 7 (Ubuntu installed first)

    Quote Originally Posted by presence1960 View Post
    change this :
    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		0
    
    ## timeout sec
    # Set a timeout, in SEC seconds, before automatically booting the default entry
    # (normally the first entry defined).
    timeout		3
    
    ## hiddenmenu
    # Hides the menu by default (press ESC to see the menu)
    hiddenmenu
    
    # Pretty colours
    to:
    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		0
    
    ## timeout sec
    # Set a timeout, in SEC seconds, before automatically booting the default entry
    # (normally the first entry defined).
    timeout		3
    
    ## hiddenmenu
    # Hides the menu by default (press ESC to see the menu)
    #hiddenmenu
    
    # Pretty colours
    Put a # in front of hiddenmenu (in red above) The way you have it now it will not display the GRUB menu unless you hit Esc before the 3 second countdown. For countdown control continue reading.

    Set the timeout in seconds to how long to display the GRUB menu before booting the default which is Ubuntu. (purple above)
    Thanks, works like a charm.

  3. #133
    Join Date
    Sep 2008
    Location
    Philadelphia, PA
    Beans
    5,193
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: “How to” Dual boot Ubuntu and Windows 7 (Ubuntu installed first)

    Quote Originally Posted by dustoashes View Post
    Thanks, works like a charm.
    Glad you got it like you want it. Enjoy ubuntu.
    Multi-boot: Arch linux, Ubuntu 12.04, Windows 7 & Windows 8

  4. #134
    Join Date
    Oct 2009
    Beans
    1

    Re: “How to” Dual boot Ubuntu and Windows 7 (Ubuntu installed first)

    Pour Win7/Linux Dual Boot, utiliser EasyBCD 2.0 Beta Build65 minimum

    http://neosmart.net/forums/showthread.php?t=642

    et suivre intégralement le topic suivant :

    http://doc.ubuntu-fr.org/tutoriel/co..._windows_vista

  5. #135
    Join Date
    Sep 2008
    Location
    Philadelphia, PA
    Beans
    5,193
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: “How to” Dual boot Ubuntu and Windows 7 (Ubuntu installed first)

    Quote Originally Posted by Grumly666 View Post
    Pour Win7/Linux Dual Boot, utiliser EasyBCD 2.0 Beta Build65 minimum

    http://neosmart.net/forums/showthread.php?t=642

    et suivre intégralement le topic suivant :

    http://doc.ubuntu-fr.org/tutoriel/co..._windows_vista
    EasyBCD is crap in my opinion. GRUB works better and is way more customisable. But to each his/her own.
    Multi-boot: Arch linux, Ubuntu 12.04, Windows 7 & Windows 8

  6. #136
    Join Date
    Dec 2008
    Beans
    1

    Re: “How to” Dual boot Ubuntu and Windows 7 (Ubuntu installed first)

    With Win 7 & Ubuntu 9.10 (grub2) is the same solution as with grub (1) ?

  7. #137
    Join Date
    Sep 2008
    Location
    London, UK
    Beans
    491

    Re: “How to” Dual boot Ubuntu and Windows 7 (Ubuntu installed first)

    Quote Originally Posted by CrownRU View Post
    With Win 7 & Ubuntu 9.10 (grub2) is the same solution as with grub (1) ?
    No, grub two is entirely different. When I get time I will add a section for grub two, but for now try searching in google.
    For high-res minimalist and abstract wallpapers check out my Deviantart profile - http://hyperdude111.deviantart.com/

  8. #138
    Join Date
    Sep 2008
    Location
    Philadelphia, PA
    Beans
    5,193
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: “How to” Dual boot Ubuntu and Windows 7 (Ubuntu installed first)

    Quote Originally Posted by hyperdude111 View Post
    No, grub two is entirely different. When I get time I will add a section for grub two, but for now try searching in google.
    http://members.iinet.net/~herman546/p20.html
    Multi-boot: Arch linux, Ubuntu 12.04, Windows 7 & Windows 8

  9. #139
    Join Date
    May 2009
    Beans
    39

    Re: “How to” Dual boot Ubuntu and Windows 7 (Ubuntu installed first)

    I installed ubuntu 9.10 first and then installed Windows 7. After that i followed the tutorial here to reinstall grub. After i ran the command update-grub, it detected Windows 7 automatically and added it to the grub.cfg file. However, now when I try to start windows from the grub, It doesn't load windows and instead just shows the grub again after a second. Here is my fdisk -l
    Code:
    Disk /dev/sda: 120.0 GB, 120034123776 bytes
    255 heads, 63 sectors/track, 14593 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x597e5e85
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1        4255    34178256   83  Linux
    /dev/sda2            4256        4379      996030    5  Extended
    /dev/sda3   *        4380       14593    82043955    7  HPFS/NTFS
    /dev/sda5            4256        4379      995998+  82  Linux swap / Solaris
    and here is my grub.cfg file
    Code:
    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by /usr/sbin/grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #
    
    ### BEGIN /etc/grub.d/00_header ###
    if [ -s /boot/grub/grubenv ]; then
      have_grubenv=true
      load_env
    fi
    set default="0"
    if [ ${prev_saved_entry} ]; then
      saved_entry=${prev_saved_entry}
      save_env saved_entry
      prev_saved_entry=
      save_env prev_saved_entry
    fi
    insmod ext2
    set root=(hd0,1)
    search --no-floppy --fs-uuid --set fa42374d-e7b7-4877-848f-f9d80985c641
    if loadfont /usr/share/grub/unicode.pf2 ; then
      set gfxmode=640x480
      insmod gfxterm
      insmod vbe
      if terminal_output gfxterm ; then true ; else
        # For backward compatibility with versions of terminal.mod that don't
        # understand terminal_output
        terminal gfxterm
      fi
    fi
    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 ###
    insmod ext2
    set root=(hd0,1)
    search --no-floppy --fs-uuid --set fa42374d-e7b7-4877-848f-f9d80985c641
    insmod tga
    if background_image /usr/share/images/grub/splash.tga ; then
      set color_normal=black/black
      set color_highlight=magenta/black
    else
      set menu_color_normal=white/black
      set menu_color_highlight=black/white
    fi
    ### END /etc/grub.d/05_debian_theme ###
    
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry "Ubuntu, Linux 2.6.31-14-generic" {
            recordfail=1
            if [ -n ${have_grubenv} ]; then save_env recordfail; fi
        set quiet=1
        insmod ext2
        set root=(hd0,1)
        search --no-floppy --fs-uuid --set fa42374d-e7b7-4877-848f-f9d80985c641
        linux    /boot/vmlinuz-2.6.31-14-generic root=UUID=fa42374d-e7b7-4877-848f-f9d80985c641 ro   quiet splash
        initrd    /boot/initrd.img-2.6.31-14-generic
    }
    menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
            recordfail=1
            if [ -n ${have_grubenv} ]; then save_env recordfail; fi
        insmod ext2
        set root=(hd0,1)
        search --no-floppy --fs-uuid --set fa42374d-e7b7-4877-848f-f9d80985c641
        linux    /boot/vmlinuz-2.6.31-14-generic root=UUID=fa42374d-e7b7-4877-848f-f9d80985c641 ro single 
        initrd    /boot/initrd.img-2.6.31-14-generic
    }
    ### END /etc/grub.d/10_linux ###
    
    ### BEGIN /etc/grub.d/20_memtest86+ ###
    menuentry "Memory test (memtest86+)" {
        linux16    /boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
        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/sda3)" {
        insmod ntfs
        set root=(hd0,3)
        search --no-floppy --fs-uuid --set f0107bd3107b9f72
        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 ###

  10. #140
    Join Date
    Sep 2008
    Location
    London, UK
    Beans
    491

    Re: “How to” Dual boot Ubuntu and Windows 7 (Ubuntu installed first)

    set root=(hd0,3)
    Is that the correct partition you have windows 7 on ?
    For high-res minimalist and abstract wallpapers check out my Deviantart profile - http://hyperdude111.deviantart.com/

Page 14 of 24 FirstFirst ... 41213141516 ... 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
  •