LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-20-2010, 01:58 PM   #1
mikiowoko
LQ Newbie
 
Registered: Aug 2008
Distribution: ubuntu
Posts: 5

Rep: Reputation: 0
Unhappy Installed Ubuntu 10.04 Hoping for dual boot with xp only boots Ubuntu


I installed Ubuntu 10.04 using the defaults over a fairly clean XP SP3 windows. It's a 500gb sata drive & I think Ubuntu set it's partitions more or less using the second half of the drive.

Grub defaults to the Ubuntu and seems to run fine in partitions mounted within /dev/sda2 247 gb.

When I select xp, grub claims it is going to boot XP at /dev/sda1
which when I look at it with the Ubuntu file utility it is a HPFS/NTFS bootable 253gb partition.

XP was working fine before the Ubuntu install, now after using grub to select XP all I get is a blinking cursor.

Any suggestions would be appreciated.
 
Old 05-20-2010, 02:20 PM   #2
fruttenboel
Member
 
Registered: Jul 2008
Posts: 270

Rep: Reputation: 48
Quote:
Originally Posted by mikiowoko View Post
I installed Ubuntu 10.04 using the defaults over a fairly clean XP SP3 windows. It's a 500gb sata drive & I think Ubuntu set it's partitions more or less using the second half of the drive.

Grub defaults to the Ubuntu and seems to run fine in partitions mounted within /dev/sda2 247 gb.

When I select xp, grub claims it is going to boot XP at /dev/sda1
which when I look at it with the Ubuntu file utility it is a HPFS/NTFS bootable 253gb partition.

XP was working fine before the Ubuntu install, now after using grub to select XP all I get is a blinking cursor.

Any suggestions would be appreciated.
How did you create free space for your Linux?

If you did with cfdisk, you're in for a surpise: all of your Windows data are down the drain...

If, on the other hand, you used the Vista internal disk repartitioner, it would be alright. But then you would not have 2 parts of 250 GB (it would be 300 for Win, 200 for Lin) so this option is ruled out.
If you used Paragon Disk repartitioner it would be OK.

So the 10 billion dollar question is : How did you repartition? Or have you always been running with 50% of your total disk capacity?
 
Old 05-20-2010, 03:19 PM   #3
mikiowoko
LQ Newbie
 
Registered: Aug 2008
Distribution: ubuntu
Posts: 5

Original Poster
Rep: Reputation: 0
Question

Quote:
Originally Posted by fruttenboel View Post
How did you create free space for your Linux?

If you did with cfdisk, you're in for a surpise: all of your Windows data are down the drain...

If, on the other hand, you used the Vista internal disk repartitioner, it would be alright. But then you would not have 2 parts of 250 GB (it would be 300 for Win, 200 for Lin) so this option is ruled out.
If you used Paragon Disk repartitioner it would be OK.

So the 10 billion dollar question is : How did you repartition? Or have you always been running with 50% of your total disk capacity?
Started with a single NTFS partition.

Ubuntu created the partition on it's own. Not sure how it did it.

I used Hiren's to inspect the first partition and everything appears to be ok. I'm going to try easyBCD and see what that can do.
 
Old 05-20-2010, 07:49 PM   #4
grail
Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 7,641

Rep: Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960
Maybe you could also show your /boot/grub/menu.lst or /boot/grub/grub.cfg as maybe the config was somehow written incorrectly
 
Old 05-21-2010, 10:29 AM   #5
ajlewis2
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 217

Rep: Reputation: 46
I have had something like this happen twice where I could not boot into Windows after installing with a fresh repartitioning. I do not recall the bit about the blinking cursor, but I did get the beginning of the windows boot and then a failure. I think I had an error message that some boot file was not found; so this could be completely different.

In my case it was a problem that happens infrequently where the repartitioner takes the information that the kernel gives it about the disk geometry and somehow writes it to the BIOS. Then when you reboot to Windows, the boot files are not found, because it still is operating with the original geometry information. In my case, the fix was to use my Windows install disk and run fixboot and fixmbr. I'm pretty sure that fixboot is what really fixes it, but I ran both. Well, actually on the second time it happened I reinstalled Windows, because it was a new machine.

The problem with doing this is that the mbr will be wiped and the grub that was installed with Linux will be gone. So you will then have to use the Linux install disk to run repair and reinstall grub, or just reinstall Linux since it is new anyway.

This problem, if that is what happened, will not happen on the second install of Linux, because the geometry information will stay the same. Even if your problem is not exactly the same, fixing the mbr might allow Windows to boot.
 
Old 05-21-2010, 11:02 AM   #6
mikiowoko
LQ Newbie
 
Registered: Aug 2008
Distribution: ubuntu
Posts: 5

Original Poster
Rep: Reputation: 0
Question

Fixboot and fixmbr

I went back to square 1 I have a clean win XP sp3 on a 244 gb NTFS partition.

I think I am going to install easyBCD and try UBUNTU without the automatic install and skip grub

Last edited by mikiowoko; 05-21-2010 at 11:05 AM.
 
Old 05-21-2010, 03:41 PM   #7
ajlewis2
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 217

Rep: Reputation: 46
Quote:
Originally Posted by mikiowoko View Post
Fixboot and fixmbr

I went back to square 1 I have a clean win XP sp3 on a 244 gb NTFS partition.

I think I am going to install easyBCD and try UBUNTU without the automatic install and skip grub
Ubuntu automatically installs grub. You can install Ubuntu alternative version which allows you to choose where you want grub installed. If you put it on /dev/sda2 rather than on the mbr, then you can use another bootloader to boot it.

I'm curious: Did you try fixboot and fixmbr first? Also, did you repartition again, because originally you gave a slightly different size for your Windows partition?
 
Old 05-21-2010, 10:03 PM   #8
mikiowoko
LQ Newbie
 
Registered: Aug 2008
Distribution: ubuntu
Posts: 5

Original Poster
Rep: Reputation: 0
Exclamation

Quote:
Originally Posted by ajlewis2 View Post
Ubuntu automatically installs grub. You can install Ubuntu alternative version which allows you to choose where you want grub installed. If you put it on /dev/sda2 rather than on the mbr, then you can use another bootloader to boot it.

I'm curious: Did you try fixboot and fixmbr first? Also, did you repartition again, because originally you gave a slightly different size for your Windows partition?
I tried fixboot and fixmbr. Then I used ?? from HIRAM's to format & partition the drive. Installed xp. That's where it is now {working on|thinking about} the best way to install linux on the other partition.
 
Old 05-21-2010, 10:53 PM   #9
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Rep: Reputation: 37
Quote:
Originally Posted by mikiowoko View Post
I tried fixboot and fixmbr. Then I used ?? from HIRAM's to format & partition the drive. Installed xp. That's where it is now {working on|thinking about} the best way to install linux on the other partition.
Remember, when shrinking windows do the following and you should be fine.
1. Defrag windows 2 or 3 times.
2. Always use windows to shrink windows. Or you might have a loss of data and or corrupted windows.
3. Use any partition editor including ubuntu disk to format unallocated part of the disk.

If you want to install unbuntu, always do a manual install. As I recall the automatic install will rewrite the entire disk. The manual install will give you the option to install ubuntu in the unallocated portion of the disk.

Once everything is installed, boot ubuntu, open a termian and type "sudo fdisk -l" (without the quotes). You will see how your disk has been partitioned. It should look something like this:
Code:
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         192     1534976    7  HPFS/NTFS
/dev/sda2             192       14667   116269052    7  HPFS/NTFS
/dev/sda3           14667       30401   126388080    5  Extended
/dev/sda5           24234       26171    15558480   83  Linux
/dev/sda6           14667       24234    76847337   83  Linux
/dev/sda7           26171       30291    33097648+  83  Linux
/dev/sda8           30291       30401      884488+  82  Linux swap / Solaris
 
Old 05-23-2010, 02:56 PM   #10
jscherer92
Member
 
Registered: May 2010
Location: Illinois
Distribution: Ubuntu 10.04
Posts: 43

Rep: Reputation: 16
Honestly this just sounds like a freak situation because I have used the Ubuntu system to shrink my Windows partition and it has always worked for me. The only thing that I would suggest is using the Windows CD and running the fix help it will give you.

Justin

Last edited by Tinkster; 05-24-2010 at 12:30 AM.
 
Old 05-24-2010, 09:00 AM   #11
mikiowoko
LQ Newbie
 
Registered: Aug 2008
Distribution: ubuntu
Posts: 5

Original Poster
Rep: Reputation: 0
Question

I reformatted, and installed XP again

I have easyBCD installed and plan to use it as a bootloader.

I am pretty sure I have a good installation of UBUNTU

here is the disk setup now:
Code:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Device    Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       30618   245931254+   7  HPFS/NTFS
/dev/sda2           30618       60802   242454529    5  Extended
/dev/sda5           30618       59864   234925056   83  Linux
/dev/sda6           59865       60802     7528448   82  Linux swap / Solaris
Not exactly sure how to install either lilo or grub somewhere where it won't mess up the mbr. I think it needs to go somewhere like /dev/sda5
 
  


Reply

Tags
easybcd, ubuntu, winxp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hi. Just installed Ubuntu as dual-boot with XP. queencityrunner LinuxQuestions.org Member Intro 1 02-28-2009 05:46 PM
dual booting XP and ubuntu with ubuntu being installed first kajangmarc Linux - General 6 01-30-2009 03:06 PM
Installed ubuntu dual boot, but grub doesn't start instead XP starts normally abhishekpapanna Ubuntu 6 12-07-2008 03:40 PM
How Do I Dual Boot XP and Ubuntu? (Ubuntu Is Installed First) taurusx5 Linux - Software 5 04-04-2008 10:40 AM
Dual Boot - 1 HD - XP installed first - only Linux boots nitrohuffer2001 Linux - General 17 02-09-2008 08:04 AM


All times are GMT -5. The time now is 12:43 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration