Page 1 of 2 12 LastLast
Results 1 to 20 of 33
  1. #1
    Dark Star's Avatar
    Dark Star is online now Super Moderator
    Join Date
    May 2006
    Location
    /var/lib
    Posts
    6,757

    Tutorial : Easily multibooot Windows 7 with Linux




    Windows7 has been the talk of the town for quite a few months and it will be the favorites due to lower system usage than Vista.. Recently I gave the new Redmond OS a ride and found it reminiscent of Vista, in-addition to few cosmetic changes that it brings with it.



    Well we are not here today to talk about what WIn7 is and what it does .This thread is for those people who intend to dual boot Windows 7 with any of the Linux Operating system.



    Prerequisites : -

    1. Windows 7 DVD
    2. Any Linux distro with latest grub 0.99.x
    3. A DVD/CD drive..




    In this tutorial we will make Linux and Windows7 multi-boot in which Linux has been installed first.



    Once you install Windows7 over any Linux installation, the Windows boot-loader will overwrite the existing grub boot loader and you will not get the Linux entry while booting you system.. In order to get a multi boot we have to restore the grub..



    After installing Windows 7 over any linux distro. Insert the Linux Live Cd and boot through it. Once the desktop appears open the Terminal in Gnome or Konsole in kde . to open the respective command client you can either gain access from menu's or simply press ALT + F2 and type the following



    Code:
     Gnome - gnome-terminal
    
    KDE - konsole


    This will open the command client in the respective desktop environment. Once it is open, we have to gain root privileges



    Code:
     Debian based disto - sudo su root 
    
    Rpm based distro - su -


    After you have gain the desired privileges we will focus on restoring the grub and adding windows entries to it..



    Type the following command as super user/root one by one



    Code:
    grub
    
    find /boot/grub/stage1


    This will show your Linux boot file location as following



    Code:
     (hd0,1) # consider 0,1 as X,Y


    Note the 1'st word 0 say X indicates the hdd entry number (hard disk number -1 ) in which you have installed Linux. For Example, if you have installed the Linux in hard-disk 1 the it will show the number as 0 and if you have installed in second hard-disk as set in BIOS then it will list the number as 1.



    The second number output 1 say Y list the partition ( partition number -1) in which you have installed the distro..



    Now once you get the numbers you have just to re-install the grub inorder to restore the default Linux boot manager



    Code:
    root(hd0,1) 
    
    setup (hd0)


    Note : Do not forget to replace the number with the output that you get..



    Once we are done type quit and reboot the system in Linux.. Open the command client again [not in Live disc mode] and type the following commands after gaining root privileges..



    Code:
     For Gnome user - gedit /boot/grub/menu.lst
    
    
    
    KDE user - kwrite /boot/grub/menu.lst


    Add these lines at the end where other Linux entries are listed as well..





    Code:
    title Windows 7 (Loader)
    
    root (hd0,0)
    
    savedefault
    
    makeactive
    
    chainloader +1


    Note : here first 0 indicate hard disk number -1 and second 0 indicate partition number -1.. I have installed Windows 7 in the first partition of my primary hard drive therefore the entries are shown as 0,0. It will vary with the partition and hard disk in which you have installed...



    Ubuntu 9.10 Onwards : The Grub 2 Mumbo Jumbo



    WIth the release of Ubuntu 9.10, the Canonical was quick to adapt with the venerable Grub2, even though the version 2 of the Gnu Bootloader is still under development the people behind ubuntu thought of including it even though its still not in final stage.



    Since Ubuntu is one of the most popular distro out there, playing with Grub2 was an essential for almost all those who plan to use uBuntu, even if you don't plan to use it, getting something new under the hood isn't that bad ? Ain't it ?



    To recover the grub after installing Windows over the Ubuntu installation, just follow these steps : -



    1. Insert Ubuntu Disc 9.10 onward.

    2. Enter sudo fdisk -l. Yo u will get output something similar to this :

    Code:
    shashwat@shashwat-desktop:~$ sudo fdisk -l
    
    [sudo] password for shashwat: 
    
    
    
    Disk /dev/sda: 640.1 GB, 640135028736 bytes
    
    255 heads, 63 sectors/track, 77825 cylinders
    
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
    Disk identifier: 0x0009e36e
    
    
    
       Device Boot      Start         End      Blocks   Id  System
    
    /dev/sda1               1        4514    36258673+   7  HPFS/NTFS
    
    /dev/sda2            4515        8473    31800667+  83  Linux
    
    /dev/sda3   *        8474       11802    26740192+  83  Linux
    
    /dev/sda4           11803       77825   530329716+   5  Extended
    
    /dev/sda5           11803       18800    56211403+  83  Linux
    
    /dev/sda6           18801       48903   241802316   83  Linux
    
    /dev/sda7           48904       63885   120342883+  83  Linux
    
    /dev/sda8           63886       77518   109507041   83  Linux
    
    /dev/sda9           77519       77825     2465946   82  Linux swap / Solaris
    
    shashwat@shashwat-desktop:~$


    Now my MBR is installed in the third partition of my hard disk. This means that the main booting parameters are stored here. In no sense this means that my Linux is installed in the same partition, the partition for linux installation can vary from the MBR partition. Just in case you don't rememebr the exact partition you can alway browse the partition using the inbuilt browser Nautilus in Ubuntu disc. Once you have got the partition located (say Ubuntu mount the partition as /media/disk) you can from here get the exact device status from df -h command.



    4. df -h should show the following output



    Code:
    shashwat@shashwat-desktop:~$ sudo df -h
    
    [sudo] password for shashwat: 
    
    Filesystem            Size  Used Avail Use% Mounted on
    
    /dev/sda3              26G   22G  2.5G  90% /
    
    udev                  1.9G  280K  1.9G   1% /dev
    
    none                  1.9G  2.7M  1.9G   1% /dev/shm
    
    none                  1.9G  328K  1.9G   1% /var/run
    
    none                  1.9G     0  1.9G   0% /var/lock
    
    none                  1.9G     0  1.9G   0% /lib/init/rw
    
    /dev/sda7             115G   37G   79G  32% /media/hd0
    
    /dev/sda6             231G  218G   13G  95% /media/hd1
    
    /dev/sda8             105G   32G   73G  31% /media/hd2
    
    /dev/sr0              683M  683M     0 100% /media/cdrom0
    
    shashwat@shashwat-desktop:~$


    Once you have got the exact partition under the belt its time for some mounting and installing.



    5. Mount the partition using mount command. Make sure you umount all the partition before doing this.



    Code:
     umount -a


    Now mount that partition using mount command



    Code:
    mount /dev/sdaX /mnt


    Here X refers to the partition number in which the linux (Ubuntu or distro with grub2 is installed). Replace sda with hda or whatever your fdisk -l or df -h output is.



    Now install the grub again using the following command : -



    Code:
    grub-install --root-directory=/mnt /dev/sda


    Once done just reboot and open ubuntu, incase your Windows entry is not showing just update the grub using



    Code:
    sudo update-grub




    That is it . You have successfully dual boot Windows 7 and Linux in your machine..



    This tutorial is also applicable in case where Windows is installed first. If some distro fails to add grub and windows entries you can use the above stated method to make a multi-boot solution...



    I hope this tutorial helps you in multi-booting OS. You can multiboot any linux, windows or mac using the same procedure.



    Please feel free to ask your doubts .



    Also check : http://www.techenclave.com/guides-an...tu-137734.html



    Regards

  2. #2
    vishnuhost is offline Upgraded User
    Join Date
    Jun 2009
    Posts
    45

    Re: Tutorial : Easily multibooot Windows 7 with Linux

    Nice tutorial bro. Welldone.
    ____________________________________________

    AMD Athlon X2 5000+ Black Edition @ 3.2 Ghz || Asus M2N68 AM MOBO || 2 GB RAM 800MHz || 512 MB Geforce 9500GT || Zebronics Bijli 400W PSU || Creative Inspire 5.1 :hap2:


    VISTA INDEX : 5.7

  3. #3
    linuxtechie is offline Moderator
    Join Date
    Aug 2007
    Posts
    1,407

    Re: Tutorial : Easily multibooot Windows 7 with Linux

    DarkStar,



    Agreed, the right way is the way you mentioned if a user wishes to let linux control the bootup. However if the user would like to let window's boot manager continue, then again the grub will come to rescue. Instead of reviving linux boot manager, the user can continue without any of but plainly install grub in windows.



    BTW A job done nice.



    ~LT


    www.linuxtechie.net


    [SIGPIC]http://www.techenclave.com/signaturepics/sigpic19220_5.gif[/SIGPIC]

  4. #4
    Dark Star's Avatar
    Dark Star is online now Super Moderator
    Join Date
    May 2006
    Location
    /var/lib
    Posts
    6,757

    Re: Tutorial : Easily multibooot Windows 7 with Linux

    ^^Hmm yes.. But if there is already a grub copy installed whats the point in re-installing But yes it can be done ..



    Thanks guys for the appreciation .. Please digg the article here Tutorial : Easily multibooot Windows 7 with Linux - TechEncl
    Help the mods to 'Keep TechEnclave Clean'

    Report
    if you see any:

    Rude posts
    . SMS lingo posts.

    Useless posts that add no value to the discussion.

  5. #5
    DanDroiD is offline Upgraded User
    Join Date
    Apr 2007
    Posts
    1,730

    Re: Tutorial : Easily multibooot Windows 7 with Linux

    Quote Originally Posted by linuxtechie
    DarkStar,



    Agreed, the right way is the way you mentioned if a user wishes to let linux control the bootup. However if the user would like to let window's boot manager continue, then again the grub will come to rescue. Instead of reviving linux boot manager, the user can continue without any of but plainly install grub in windows.



    BTW A job done nice.



    ~LT


    I did that once but it's a bit of a finicky process to load grub from windows and then you still have to contend with 2 boot manager screens.... whereas with Grub bootloader you can boot directly into windows and skip the windows menu.
    AKA Pixel-Pusher




  6. #6
    Ryunosuke is offline Upgraded User
    Join Date
    Jul 2008
    Posts
    880

    Re: Tutorial : Easily multibooot Windows 7 with Linux

    Well I installed the Windows 7 in my partition that earlier contained XP and despite XP's want of being the primary HDD resulting in mapping of drives in menu.lst file, Windows 7 boots beautifully without any problem.

    On my setup, I've 3 HDD, each having an OS, Windows 7(32-bit), Vista SP1(64-bit) and Ubuntu 8.10(32-bit). I have made the Ubuntu's drive main Primary boot drive and the GRUB manages it all flawlessly. :cool2:
    My Avatar Info!

    Click below for Porn movies subtitles

    [SPOILER] RFOLMAO LOL@u n00b u actually thought there are subtitles to porn movies [/SPOILER]

  7. #7
    Dark Star's Avatar
    Dark Star is online now Super Moderator
    Join Date
    May 2006
    Location
    /var/lib
    Posts
    6,757

    Re: Tutorial : Easily multibooot Windows 7 with Linux

    Update : Mandriva 2009.1 automatically adds Windows 7 and Ubuntu entry, a decent distro with properly integrated grub/distro detector will automatically add windows7 so no need to worry.



    I will add a How to soon on adding Linux/Windows entry using Mandriva Control Center .
    Help the mods to 'Keep TechEnclave Clean'

    Report
    if you see any:

    Rude posts
    . SMS lingo posts.

    Useless posts that add no value to the discussion.

  8. #8
    j1n M@tt is offline Upgraded User
    Join Date
    Mar 2009
    Posts
    348

    Re: Tutorial : Easily multibooot Windows 7 with Linux

    sorry for bumping up this old thread, I just have few questions.



    At present I have Win 7 RC on my HDD. I got my Ubuntu 9.04 copy lately and I wish to install it soon. If I install it now, will there be a problem with GRUB on MBR?? The last time I have installed linux, it was Ubuntu 8.10 with Vista on my another rig and it worked fine.



    And for the new Mandriva which one is the best, KDE or Gnome??.....I mean like Gnome suites best for Ubuntu than KDE.
    j1n M@tt || "a guy who gets off bed only b'coz of technology..."

  9. #9
    Dark Star's Avatar
    Dark Star is online now Super Moderator
    Join Date
    May 2006
    Location
    /var/lib
    Posts
    6,757

    Re: Tutorial : Easily multibooot Windows 7 with Linux

    ^^Well thats tricky Ubuntu comes with WUBI so if you install Ubuntu inside windows MBR will be the bootloader.



    But if you install Linux the way it is meant to be installed then Grub will take over (ofcourse you need to install grub during installation)



    For Desktop Env. that is personal choice. I use both so get what you are familiar with, unlike (X)Ubuntu (X=K,X,n,L) , mandriva specializes in both Gnome as well in KDE, while ubuntu/canonical focus more on Gnome that KDE.
    Help the mods to 'Keep TechEnclave Clean'

    Report
    if you see any:

    Rude posts
    . SMS lingo posts.

    Useless posts that add no value to the discussion.

  10. #10
    j1n M@tt is offline Upgraded User
    Join Date
    Mar 2009
    Posts
    348

    Re: Tutorial : Easily multibooot Windows 7 with Linux

    I didn't mean that I was installing Ubuntu inside Windows with some kinda virtual machine that Ubuntu disks comes with. I need to dual boot.



    so you mean I have to install Grub manually when installing Ubuntu?? if yes, can you plz tell me how to install Ubuntu in command line...I usually use the graphics install, am not an advanced linux user.
    j1n M@tt || "a guy who gets off bed only b'coz of technology..."

  11. #11
    Dark Star's Avatar
    Dark Star is online now Super Moderator
    Join Date
    May 2006
    Location
    /var/lib
    Posts
    6,757

    Re: Tutorial : Easily multibooot Windows 7 with Linux

    ^^Just install ubuntu and it will install grub and will add the windows entry as well
    Help the mods to 'Keep TechEnclave Clean'

    Report
    if you see any:

    Rude posts
    . SMS lingo posts.

    Useless posts that add no value to the discussion.

  12. #12
    j1n M@tt is offline Upgraded User
    Join Date
    Mar 2009
    Posts
    348

    Re: Tutorial : Easily multibooot Windows 7 with Linux

    so just like dual booting with vista...but many of them said to me Win 7 crashed after installing Ubuntu 9.04, thats why asked. Anyway will try soon and thanx for the help.
    j1n M@tt || "a guy who gets off bed only b'coz of technology..."

  13. #13
    kamajra is offline Upgraded User
    Join Date
    Oct 2009
    Posts
    4

    Re: Tutorial : Easily multibooot Windows 7 with Linux

    This happens to me usually.



    I try booting win 7 with grub and it gives some weird errors and which leads to repairing the Win 7 OS or at times reinstalling.



    How to install grub in to the win 7 boot manager. Put a light over that.
    Quieter you become more you will listen



    Knightrider

  14. #14
    saqib_khan is offline Privileged Users
    Join Date
    Feb 2009
    Posts
    884

    Re: Tutorial : Easily multibooot Windows 7 with Linux

    ^^ That shouldn't happen. Have you restored GRUB correctly after installing Win 7 ?
    technostarry.com Oh ! and By the way, check out my Blog

  15. #15
    sikvik is offline Upgraded User
    Join Date
    Jul 2007
    Posts
    84

    Re: Tutorial : Easily multibooot Windows 7 with Linux

    I'm stuck after-

    grub> find /boot/grub/stage1

    I get (hd0,0)

    Can't understand what to enter next, inside the brackets? Get Unrecognised command...

    Pls help FIRST time Dual booter win7 RC over Karmic



    Wiped the disk with active kill disk. Installed Win7RC and Karmic over it. Dual-boot, was smooth as silk. Cheers...

  16. #16
    viridian is offline Upgraded User
    Join Date
    Jun 2008
    Posts
    232

    Re: Tutorial : Easily multibooot Windows 7 with Linux

    I've tried this method before with GRUB 0.99x and it works like a charm. Has anyone tried this successfully with GRUB 2?
    -_-

  17. #17
    Dark Star's Avatar
    Dark Star is online now Super Moderator
    Join Date
    May 2006
    Location
    /var/lib
    Posts
    6,757

    Re: Tutorial : Easily multibooot Windows 7 with Linux

    ^^nope not yet. Only encountered the Gub 2 with Buntu and looked pretty messed up



    Gotta learn it with Constantine shift

  18. #18
    vishalrao's Avatar
    vishalrao is offline Global Moral Police
    Join Date
    Nov 2007
    Posts
    3,457

    Re: Tutorial : Easily multibooot Windows 7 with Linux

    grub2 aint so bad. its just got a new config format which is cool once you get a hang of it. grep the web for grub2 tutorials to get a hang of stuff... i am successfully quadbooting win7 with 3 other linux distros using ubuntu's grub2 as the bootloader in the MBR...



    there are some annoyances (or cant figure out solutions yet) for example, i cant figure out how to custom arrange the OSes autodetected by os-prober script... i want to put win7 at the top of the list and default boot but cant figure out rearranging the items properly at the moment...
    Global moral police here to clean up all the global village idiots from the Internetz.

    My rig: Q6600, 4GB, 500GB HDD, 128GB SSD, 8800GT/512mb, vx450w, Dell E248WFP 24" LCD and the MX5021. My Tablet PC

    Brand new acquisitions: Nokia N900 and HTC HD7.

  19. #19
    vishalrao's Avatar
    vishalrao is offline Global Moral Police
    Join Date
    Nov 2007
    Posts
    3,457

    Re: Tutorial : Easily multibooot Windows 7 with Linux

    whoa nice.... check out "BURG" especially the sora themes! i will try it soon even though there is only karmic PPA...



    See: https://help.ubuntu.com/community/Burg



    Decorate Grub 2 boot loader using BURG

    Add OS logos into Grub2 boot menu using BURG
    Global moral police here to clean up all the global village idiots from the Internetz.

    My rig: Q6600, 4GB, 500GB HDD, 128GB SSD, 8800GT/512mb, vx450w, Dell E248WFP 24" LCD and the MX5021. My Tablet PC

    Brand new acquisitions: Nokia N900 and HTC HD7.

  20. #20
    cooldude0092 is offline Junior Member
    Join Date
    Jan 2010
    Posts
    1

    Re: Tutorial : Easily multibooot Windows 7 with Linux

    nice info !!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Tutorial : Enable AMD Cool 'n' Quite in Linux
    By Dark Star in forum Open Source and Linux
    Replies: 3
    Last Post: 12-07-09, 10:23 PM
  2. Tutorial : Easily save any online video in Linux
    By Dark Star in forum Open Source and Linux
    Replies: 6
    Last Post: 15-03-09, 09:39 PM
  3. How To Easily Restart Windows XP
    By power_nitin in forum Guides and Tutorials
    Replies: 2
    Last Post: 27-09-06, 02:38 PM
  4. Complete Debian Linux Server Setup Tutorial
    By gg234 in forum Open Source and Linux
    Replies: 0
    Last Post: 10-02-06, 07:00 PM

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
  •  
All times are GMT +5.5. The time now is 10:02 AM. Powered by vBulletin® Version 4.1.12
Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.
Content Relevant URLs by vBSEO 3.6.0 PL2