XP dual boot to Ubuntu

Discussion in 'Archives' started by teh 1337 pwner, Feb 9, 2008.

XP dual boot to Ubuntu
  1. Unread #1 - Feb 9, 2008 at 3:20 PM
  2. teh 1337 pwner
    Joined:
    Jan 21, 2007
    Posts:
    1,587
    Referrals:
    0
    Sythe Gold:
    0

    teh 1337 pwner Guru
    Banned

    XP dual boot to Ubuntu

    How would one dual boot XP and Ubuntu linux with XP already installed without losing files? Pretty straight forward question...I looked on google but I couldn't find anything without me having to start off with a fresh HDD...
     
  3. Unread #2 - Feb 9, 2008 at 3:44 PM
  4. Faskist
    Joined:
    Apr 25, 2005
    Posts:
    1,869
    Referrals:
    0
    Sythe Gold:
    0

    Faskist Tuxhead
    Banned

    XP dual boot to Ubuntu

    Defrag your hard drive, boot up the Ubuntu livecd, and use the "Partition Editor", under System, to shrink the NTFS filesystem. Then create a new ext3 partition and select that to be mounted as "/" when you install.
     
  5. Unread #3 - Feb 9, 2008 at 3:46 PM
  6. Eric
    Joined:
    Feb 23, 2007
    Posts:
    3,344
    Referrals:
    13
    Sythe Gold:
    25

    Eric Grand Master
    Banned

    XP dual boot to Ubuntu

    How to dual boot Windows and linux without changing the Windows Master Boot Record:

    (I'm assuming you've read other FAQs on how to install linux to your partition of choice. I recommend creating a partition on a second hard drive. That's the risk free option if you don't want to destoy Windows on your primary partition. But you should be able to create a partition on your primary hard drive by using software that can non-detructively resize your Windows partition. QTParted is a good program which can be downloaded if you're running the ubunut live CD. Back up though. It doesn't always work. I don't think the partition resizer in the ubuntu installer can do non-destructive.)

    When installing ubuntu, install the boot loader (GRUB) to a floppy disk instead of the MBR. ie. when prompted for grub location enter: /dev/fd0

    Boot into ubuntu with the floppy.

    Open a terminal window.

    Copy your bootloader from the floppy to a file called bootsect.lnx with this command:
    dd if=/dev/fd0 of=bootsect.lnx bs=512 count=1

    Save that file somewhere that you can access from within Windows. ie a FAT partition, a USB drive, a floppy (but not your boot floppy!) Don't try saving it to an NTFS Windows XP partition from within linux. (Bad!)

    Reboot into Windows. (hint: take the floppy out of the drive. Keep it somewhere as a rescue boot floppy.)

    Copy bootsect.lnx from wherever you had stored it to c:\bootsect.lnx

    Open a file called c:\boot.ini
    (It's normally a hidden read-only file, so you may have to change the folder and file options.)

    After opening boot.ini add the following line to the end of it and save it:
    c:\bootsect.lnx=”Linux”

    Reboot your system.

    You will be prompted to boot either Windows or Linux and your MBR hasn't been changed at all!

    It's magic!
    I use this setup to boot ubuntu from the third partition of my second hard drive. As ubuntu is on a second drive I haven't made any changes to my Windows partition at all! Risk free.

    (If you do screw up your MBR and can't get into Windows try booting your Windows rescue CD and then type 'fdisk /mbr' to restore it. If you already have ubuntu installed I think you can make a boot floppy this way, but I"m not 100% certain: In a console, type grub-intall /dev/fd0.)

    Hope thats helps :)

    http://ubuntuforums.org/showthread.php?t=56723
     
  7. Unread #4 - Feb 9, 2008 at 4:09 PM
  8. teh 1337 pwner
    Joined:
    Jan 21, 2007
    Posts:
    1,587
    Referrals:
    0
    Sythe Gold:
    0

    teh 1337 pwner Guru
    Banned

    XP dual boot to Ubuntu

    I dont have a floppy drive :\ Is there any other way?
     
  9. Unread #5 - Feb 9, 2008 at 4:25 PM
  10. Faskist
    Joined:
    Apr 25, 2005
    Posts:
    1,869
    Referrals:
    0
    Sythe Gold:
    0

    Faskist Tuxhead
    Banned

    XP dual boot to Ubuntu

    You could try;
    a) Reading my post
    b) Shooting yourself in the head for being a moron
     
  11. Unread #6 - Feb 9, 2008 at 4:29 PM
  12. Eric
    Joined:
    Feb 23, 2007
    Posts:
    3,344
    Referrals:
    13
    Sythe Gold:
    25

    Eric Grand Master
    Banned

    XP dual boot to Ubuntu

    D:...
     
  13. Unread #7 - Feb 9, 2008 at 4:30 PM
  14. teh 1337 pwner
    Joined:
    Jan 21, 2007
    Posts:
    1,587
    Referrals:
    0
    Sythe Gold:
    0

    teh 1337 pwner Guru
    Banned

    XP dual boot to Ubuntu

    Oh lmao I didn't even see your post
    What do you mean by "to shrink the NTFS filesystem"?

    EDIT: woah eric your irc rank just dissapeared XD
    now its back...
     
  15. Unread #8 - Feb 9, 2008 at 4:43 PM
  16. Faskist
    Joined:
    Apr 25, 2005
    Posts:
    1,869
    Referrals:
    0
    Sythe Gold:
    0

    Faskist Tuxhead
    Banned

    XP dual boot to Ubuntu

    Well, you see the massive graphical display on the partition editor? You see the arrows denoting how they can be dragged? DRAG IT TO SHRINK THE FILESYSTEM. SHRINK MEANS TO MAKE SOMETHING SMALLER.
     
  17. Unread #9 - Feb 9, 2008 at 4:48 PM
  18. teh 1337 pwner
    Joined:
    Jan 21, 2007
    Posts:
    1,587
    Referrals:
    0
    Sythe Gold:
    0

    teh 1337 pwner Guru
    Banned

    XP dual boot to Ubuntu

    I know what shrink means calm down lol
    What should I shrink it to...
     
  19. Unread #10 - Feb 9, 2008 at 6:07 PM
  20. Faskist
    Joined:
    Apr 25, 2005
    Posts:
    1,869
    Referrals:
    0
    Sythe Gold:
    0

    Faskist Tuxhead
    Banned

    XP dual boot to Ubuntu

    Leave Ubuntu as much space as you think you'll need. If you have a big enough disk, give Ubuntu about 10GB.
     
  21. Unread #11 - Feb 9, 2008 at 7:22 PM
  22. teh 1337 pwner
    Joined:
    Jan 21, 2007
    Posts:
    1,587
    Referrals:
    0
    Sythe Gold:
    0

    teh 1337 pwner Guru
    Banned

    XP dual boot to Ubuntu

    WTF now my comp won't boot from disc -.-
     
  23. Unread #12 - Feb 9, 2008 at 8:01 PM
  24. Faskist
    Joined:
    Apr 25, 2005
    Posts:
    1,869
    Referrals:
    0
    Sythe Gold:
    0

    Faskist Tuxhead
    Banned

    XP dual boot to Ubuntu

    Won't boot from the Ubuntu disk? Did you fuck up GRUB, son?
     
  25. Unread #13 - Feb 9, 2008 at 8:39 PM
  26. teh 1337 pwner
    Joined:
    Jan 21, 2007
    Posts:
    1,587
    Referrals:
    0
    Sythe Gold:
    0

    teh 1337 pwner Guru
    Banned

    XP dual boot to Ubuntu

    K I got it to work, im on Ubuntu as we speak. Thanks Darby.
     
  27. Unread #14 - Feb 10, 2008 at 6:47 AM
  28. Faskist
    Joined:
    Apr 25, 2005
    Posts:
    1,869
    Referrals:
    0
    Sythe Gold:
    0

    Faskist Tuxhead
    Banned

    XP dual boot to Ubuntu

< FREE training!!! | [Req] Banner (Firecaping Thread) >

Users viewing this thread
1 guest


 
 
Adblock breaks this site