TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Software World > Open Source & Linux

Notices

Reply
 
Thread Tools Display Modes
Old 10-10-2006, 05:47 AM   #1
Advanced Member (250+)
 
pixelpainter's Avatar
 
Join Date: Oct 2006
Location: san francisco
Posts: 457
Thanks: 16
Thanked 50 Times in 47 Posts
Rep Power: 26 pixelpainter is just Greatpixelpainter is just Greatpixelpainter is just Greatpixelpainter is just Greatpixelpainter is just Greatpixelpainter is just Greatpixelpainter is just Greatpixelpainter is just Greatpixelpainter is just Greatpixelpainter is just Greatpixelpainter is just Great
Send a message via Yahoo to pixelpainter
HOWTO create Dual Boot linux -Windows - Using Windows Bootloader

This is not my Tut, but this is how I made my windows boot Linux, and it worked like a charm.
For original post, go here



The location of the /boot partition on the hard drive is critical so that you don't get screwed by the infamous BIOS 1024 cylinder limit. The BIOS of older systems can't access data beyond cylinder 1024, which is ~8.5 GB. A simple way to avoid the BIOS 1024 limit is to create /boot within the first 1024 cylinders (~8.5 GB) of the hard drive. If you have multiple hard drives (disks), /boot must be on the same hard drive (probably the first hard drive) that has the Windows boot loader (NTLDR) on the MBR.
Here are some options for where to create /boot partition.
  1. (What I did) Shrink the Windows partition such that there is 50 MB of unused disk space at the beginning of the drive and lots of space after the Windows partition. You can install the /boot Linux partition in this first 50 MB and avoid any potential issues with the 1024-cylinder limit entirely.
  2. Shrink the Windows partition such that it does not cross the 1024 cylinder (~8.5 GB), and install the /boot partition right after the Windows partition.
  3. Use LBA (Logical Block Addressing). LBA allows you to boot beyond the 1024 cylinder. In order to use LBA, your BIOS must support it. In addition, for LILO, you must also add a flag to enable LBA support. GRUB supports LBA "out-of-the-box"
To non-destructively shrink the Windows partition, you can use the free software program fips (please note that fips does not currently support NTFS partitions). Another option is the excellent commercial product Partition Magic. It has an easy-to-use GUI. Unfortunately, the tool that comes with Red Hat 7.2, Disk Druid, does not have the ability to shrink existing partitions. Once you've shrunk the Windows partition, you can use Disk Druid during the Red Hat Installation to create all the partitions you need for Linux.
Dual-Boot Setup

Following are the steps to get dual-boot working with GRUB; I figured out how to do this by looking at a similar procedure for LILO. I've verified that this works for Windows 2000 and Windows XP, and this should work on Windows NT (all 3 OSs use the same booting architecture).
  1. Install GRUB on the first sector of the /boot partition. DO NOT INSTALL IT ON THE MBR!. If you are performing the Red Hat installation, for the "Boot Loader Installation" screen:
    • Select "Use GRUB as the boot loader"
    • Select Install Boot Loader record on "...First sector of boot partition".
    • After finishing the Red Hat installation, reboot into Linux. If you don't have a boot disk, try booting in linux rescue mode
    If you already have Linux installed:
    • Run the following command (e.g. assuming /boot is /dev/hda2): grub-install /dev/hda2. If you don't know which partition contains /boot, run the df command and check the output.
    • Edit /etc/grub.conf and make sure there is an entry for your version of Windows. For reference, here is a copy of my /etc/grub.conf file.
  2. Determine which partition contains the /boot partition by running the df command. You'll see output like this: Filesystem 1k-blocks Used Available Use% Mounted on
    /dev/hda3 8665372 1639580 6585612 20% /
    /dev/hda2 46636 5959 38269 14% /boot
    /dev/hda6 513776 189504 324272 37% /osshare
    none 256624 0 256624 0% /dev/shm
    From this output, we see that /boot is on /dev/hda2.
  3. Make a copy of the Linux boot sector onto a floppy or onto a FAT32 partition. We'll name this copy linux.bin. To make a copy onto a floppy:
    • Mount the floppy drive if it's not mounted (assumes /mnt/floppy exists): mount -t msdos /dev/fd0 /mnt/floppy
    • Run the following command: dd if=/dev/hda2 of=/mnt/floppy/linux.bin bs=512 count=1 Substitute the path for the if= parameter (the input file) with the appropriate partition from the previous step. E.g., set if= to /dev/hda2.
    To make a copy onto a FAT32 (vfat) partition:
    • Mount the FAT32 partition if it's not mounted yet. If it isn't listed in the df output, it hasn't been mounted yet. Check out steps 3a-3c for mounting a FAT32 partition on the "Share Partitions HOWTO".
    • Run the following command: dd if=/dev/hda2 of=/osshare/linux.bin bs=512 count=1 Substitute the path for the if= parameter (the input file) with the appropriate partition from the previous step. E.g., set if= to /dev/hda2. Substitute the path for the of= parameter (the output file) with whatever is appropriate for your system. The example here (of=/osshare/linux.bin) is for copying onto a FAT32 partition called osshare.
  4. Reboot into Windows
  5. Copy the linux.bin file to C:\
  6. Run notepad and edit C:\boot.ini. Note that C:\boot.ini is a hidden system file, so it probably won't show up in Windows Explorer. To edit the file, try: Start->Run and enter: notepad C:\boot.ini. Add the following line at the end: c:\linux.bin="Linux" If your C: filesystem is NTFS (not FAT32), you must edit C:\boot.ini as a user with administrator-level privileges.
    To make C:\boot.ini writable, you can either :
    • Use Explorer:
      • Go to Tools->Folder Options->View and select Show hidden files and folders and deselect Hide protected operating system files (Recommended).
      • Right-click on the file, view the Properties and uncheck Read-only. You can now edit the file.
      • After editing the file, restore the settings to their original state.
    • Use the command-line:
      • Make the file writable: attrib -R -S -H C:\boot.ini.
      • After you've finished editing the file, put the settings back: attrib +R +S +H C:\boot.ini
    For reference, here is a copy of my boot.ini file.
  7. Reboot again. You should be able to pick either Windows or Linux. Selecting Linux will start GRUB
pixelpainter is offline   Reply With Quote
Old 10-10-2006, 04:25 PM   #2
Founder
 
Strider's Avatar
 
Join Date: Nov 2005
Location: The Last City Zion!
Posts: 2,684
Thanks: 228
Thanked 230 Times in 191 Posts
Rep Power: 53 Strider is just GreatStrider is just GreatStrider is just GreatStrider is just GreatStrider is just GreatStrider is just GreatStrider is just GreatStrider is just GreatStrider is just GreatStrider is just GreatStrider is just Great
A bit complex method. But selecting Grub from Windows Menu, instead of Windows from Grub is a good experience.
Strider is offline   Reply With Quote
Old 11-10-2006, 01:33 AM   #3
Advanced Member (250+)
 
pixelpainter's Avatar
 
Join Date: Oct 2006
Location: san francisco
Posts: 457
Thanks: 16
Thanked 50 Times in 47 Posts
Rep Power: 26 pixelpainter is just Greatpixelpainter is just Greatpixelpainter is just Greatpixelpainter is just Greatpixelpainter is just Greatpixelpainter is just Greatpixelpainter is just Greatpixelpainter is just Greatpixelpainter is just Greatpixelpainter is just Greatpixelpainter is just Great
Send a message via Yahoo to pixelpainter
It seemed a little overwhelming/complex to me too, but if you follow the directions to the letter it works really well. It's more intimidating than it looks.... ;-)

you can skip the part below if you have acronis disk director. All you have to do is save out the .bin file to the /boot directory, and then in windows, you can browse the directory from acronis and copy and paste to windows boot disk. Also ... if your computer BIOS is relatively new, you don't have to worry so much about the 1024 cylinder.


"Make a copy of the Linux boot sector onto a floppy or onto a FAT32 partition. We'll name this copy linux.bin. To make a copy onto a floppy:
  • Mount the floppy drive if it's not mounted (assumes /mnt/floppy exists): mount -t msdos /dev/fd0 /mnt/floppy
  • Run the following command: dd if=/dev/hda2 of=/mnt/floppy/linux.bin bs=512 count=1 Substitute the path for the if= parameter (the input file) with the appropriate partition from the previous step. E.g., set if= to /dev/hda2.
To make a copy onto a FAT32 (vfat) partition:
  • Mount the FAT32 partition if it's not mounted yet. If it isn't listed in the df output, it hasn't been mounted yet. Check out steps 3a-3c for mounting a FAT32 partition on the "Share Partitions HOWTO".
  • Run the following command: dd if=/dev/hda2 of=/osshare/linux.bin bs=512 count=1 Substitute the path for the if= parameter (the input file) with the appropriate partition from the previous step. E.g., set if= to /dev/hda2. Substitute the path for the of= parameter (the output file) with whatever is appropriate for your system. The example here (of=/osshare/linux.bin) is for copying onto a FAT32 partition called osshare."
pixelpainter is offline   Reply With Quote
Old 22-01-2008, 01:53 PM   #4
Newbie
 
newton's Avatar
 
Join Date: Jan 2008
Age: 21
Posts: 21
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0 newton is an unknown quantity at this point
Send a message via Yahoo to newton
Re: HOWTO create Dual Boot linux -Windows - Using Windows Bootloader

what is the main purpos of wine?
is it fully compatible in fedora 8?
__________________
i must understand if u can...
newton is offline   Reply With Quote
Old 26-01-2008, 02:07 PM   #5
Elite Member (1000+)
 
Dark Star's Avatar
 
Join Date: May 2006
Location: /dev/had0
Age: 19
Posts: 1,577
Thanks: 98
Thanked 170 Times in 146 Posts
Rep Power: 43 Dark Star is just GreatDark Star is just GreatDark Star is just GreatDark Star is just GreatDark Star is just GreatDark Star is just GreatDark Star is just GreatDark Star is just GreatDark Star is just GreatDark Star is just GreatDark Star is just Great
Re: HOWTO create Dual Boot linux -Windows - Using Windows Bootloader

^^ Wine main purpose is to run WIndows applications in Linux and ya its 100% compatible with F8
__________________
My GNU/ Tux Blog : ~TuxEnclave~
Dark Star is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO Create RAM Disk on Windows Server 2003 qa4eve Windows Server 2003 1 31-08-2007 10:30 PM
dual boot linux with grub faeychild Mandriva Linux 7 29-08-2007 08:48 PM
windows 2003 server dual boot Tester Windows Server 2003 2 28-08-2007 11:23 AM
dual boot windows xp and vista cotxjmn Windows Vista All 1 17-08-2007 05:36 PM
Problems while changing from dual-boot (XP and Linux) to single boot (XP) Sairam Windows XP 4 16-08-2007 03:21 PM

Google
 


All times are GMT +5.5. The time now is 06:57 AM.


vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2008, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional