Dual Booting Ubuntu with existing XP

Discussion and support for all Linux distributions and Unix flavours (FreeBSD, OpenBSD, etc).
DJT
I Bribed Ron With Foundry And All I Got Was This Lousy Title
Posts: 9387
Joined: 09 Aug 2002, 02:00
Location: Locked Down
Contact:

Dual Booting Ubuntu with existing XP

Post by DJT »

I want to install Ubuntu onto my primary machine today
I have an 80GB drive where Win sits. It is currently partitioned so that 10GB is for Windows and system files, and the 70 is for data
What I want to do is split the 70 into two partitions, leaving one for Ubuntu and the rest for data

My questions are this
1) How big should the Ubuntu partition be? Baring in mind I will want to play with some linux apps and stuff
2) I still want Windows to be my primary partition, so will it give me a screen when starting up asking me what OS I want?
3) Do I need to redo windows at the same time or can it go without a format, don't want to do anything to windows until next month after lan party.
4) what would be the best way to make the partition?

Thanks guys
DJ
First time Linux user
Want to support my creative work? Drop me a like and subscribe below. It will be greatly appreciated!
Clarke Media - YouTube Channel
Clarke Media - Facebook
WAJeff
Registered User
Posts: 28011
Joined: 30 Jun 2006, 02:00
Location: /dev/sda1/home
Contact:

Post by WAJeff »

1) I rate make your Linux partition 5GB. Dont forget about your swap partition. Its like a page file, so you gonna have to keep that in mind

2) When you install Ubuntu AFTER you've installed XP/Vista, Ubuntu gives you a menu called GRUB Boot Loader. From there you can choose the OS's you have installed

3) Im not 100% sure with this one. I know DJV knows something about it. I've always formated my other partitions any way. A clean install with XP is always a good idea :wink:
Cupis
Registered User
Posts: 914
Joined: 06 Mar 2006, 02:00
Location: Somewhere in my mind
Contact:

Post by Cupis »

Ya if you can afford or you have the effort to Format and reinstall great it amesk things faster. And start Afresh. but i know this is always a problem with effort and convenience.

i know that you will have a OS choice while booting up, especially if you install Windows first, i am assuming other way too but i have not tried it first.

If you can get your hands on Symentec Partition Magic, that is a great proggy for creating new partition inside windows. i Used it once or twice and it seemed to work great.
simmy
Registered User
Posts: 3981
Joined: 24 Jun 2003, 02:00
Location: Cape Town
Contact:

Re: Dual Booting Ubuntu with existing XP

Post by simmy »

DJT wrote:....
My questions are this
1) How big should the Ubuntu partition be? Baring in mind I will want to play with some linux apps and stuff
2) I still want Windows to be my primary partition, so will it give me a screen when starting up asking me what OS I want?
3) Do I need to redo windows at the same time or can it go without a format, don't want to do anything to windows until next month after lan party.
4) what would be the best way to make the partition?
...
Dear First time user, get another drive!

If u cant....

1) while installing ubuntu you can use the "partition slider" to "push" your data partition around, make it 10GB, that depends on the free space...

2) Yes. GRUB, the ubuntu boot menu, will put ubuntu first in the menu and XP last, so you'll have 10 seconds to boot in XP.

3) Yes, you can leave Windows be.

4) see point 1)

Warmest regards,
simmy aka "where's all my data"

edit: read this The beginner's guide to Ubuntu (installing and configuring)
DJT
I Bribed Ron With Foundry And All I Got Was This Lousy Title
Posts: 9387
Joined: 09 Aug 2002, 02:00
Location: Locked Down
Contact:

Post by DJT »

I am so going to get laughed at for this.

I installed Ubuntu on a partition on my primary drive, and now the GRUB menu does not show Windows in the boot list. I don't think I did anything to the windows partition, I just can't find any reference to it.

How do I get it back? Something about the master boot record?

Any help would be greatly appreciated, and in between loling and rofling, remember this was my first time.
Want to support my creative work? Drop me a like and subscribe below. It will be greatly appreciated!
Clarke Media - YouTube Channel
Clarke Media - Facebook
Vampyre_2099
Registered User
Posts: 1321
Joined: 04 Nov 2007, 02:00
Location: /home/jhb/fourways

Post by Vampyre_2099 »

rofl, rofl, rofl, lolocopter. Anyway, seriously, you just need to add Windows to your grub list.

From a gnome terminal

Code: Select all

sudo gedit /boot/grub/menu.lst
then add

Code: Select all

title		Windows 95/98/NT/2000
root		(hd0,0)
makeactive
chainloader	+1
to the end of the file, save, exit and restart
mybrute
myminicity
PCformat ZA Folding Stats

ImageImage
Spoiler: (show)
Desktop: Q8200 @ 2.33GHz ~ TRUE ~ DP35DP ~ 4GB Transcend Jetram RAM ~ Nvidia 8800GT ~ 250GB HDD
Notebook: T5550 @ 1.83GHz ~ 2GB RAM ~ ATI HD 2400 XT ~ 160GB HDD
SBSP
Registered User
Posts: 3124
Joined: 09 May 2006, 02:00
Location: Centurion

Post by SBSP »

Stick in you Windows CD boot off it then in the setup choose to recover.
think somwher you press [r] it will drop down to a black console type fixmbr then fixboot. fixboot not necessary but do it anyways.

mbr = Master boot record.

The first few sectors of your harddrive think it = 512kb's the grub bootloader sits threre. even if you format it will not go away.

Then unfortunately reinstall ubuntu. (Thats how you learn.)

or do what the Vampyre_2099 said. :wink:
DJT
I Bribed Ron With Foundry And All I Got Was This Lousy Title
Posts: 9387
Joined: 09 Aug 2002, 02:00
Location: Locked Down
Contact:

Post by DJT »

Vampyre_2099 wrote:rofl, rofl, rofl, lolocopter. Anyway, seriously, you just need to add Windows to your grub list.

From a gnome terminal

Code: Select all

sudo gedit /boot/grub/menu.lst
then add

Code: Select all

title		Windows 95/98/NT/2000
root		(hd0,0)
makeactive
chainloader	+1
to the end of the file, save, exit and restart
I input the code, restarted and tried to select windows, but it didn't work. Was I supposed to change something? Confused now. Anything else I can try without reinstalling ubuntu?
Want to support my creative work? Drop me a like and subscribe below. It will be greatly appreciated!
Clarke Media - YouTube Channel
Clarke Media - Facebook
SBSP
Registered User
Posts: 3124
Joined: 09 May 2006, 02:00
Location: Centurion

Post by SBSP »

it doent take long to install.

Do your self a favour and mount your winxp partition and make sure you have not overwritten it
DJT
I Bribed Ron With Foundry And All I Got Was This Lousy Title
Posts: 9387
Joined: 09 Aug 2002, 02:00
Location: Locked Down
Contact:

Post by DJT »

SBSP wrote:Stick in you Windows CD boot off it then in the setup choose to recover.
think somwher you press [r] it will drop down to a black console type fixmbr then fixboot. fixboot not necessary but do it anyways.

mbr = Master boot record.

The first few sectors of your harddrive think it = 512kb's the grub bootloader sits threre. even if you format it will not go away.

Then unfortunately reinstall ubuntu. (Thats how you learn.)

or do what the Vampyre_2099 said. :wink:
Got a feeling that I made things even worse. Now I cant get past post. Just sits there. And if I have the win cd in it asks if i want to run from cd and i don;t it just sits there doing nothing. Any advice on how I might come out of this with my two installs intact? Or if not both, i wish to preserve my Windows one
Want to support my creative work? Drop me a like and subscribe below. It will be greatly appreciated!
Clarke Media - YouTube Channel
Clarke Media - Facebook
DJT
I Bribed Ron With Foundry And All I Got Was This Lousy Title
Posts: 9387
Joined: 09 Aug 2002, 02:00
Location: Locked Down
Contact:

Post by DJT »

Ok, here is where i stand now.
I got Ubuntu working again, and this time it picks up my Windows partition and my SATA drive.

I have tried changing the GRUB menu, but each time it says it can't find the partition.

These are the screen shots from the Windows partion sitting on my desktop.
I am a linux noob, so was just wondering if this would help? I just want to boot from Windows partition.
Image
Image

Ubuntu has named the drive hda5.

Any ideas?

EDIT: The Windows partition had 'E' as the drive letter instead of C as Vista was installed on C for a while. Don't know if that helps or not
Want to support my creative work? Drop me a like and subscribe below. It will be greatly appreciated!
Clarke Media - YouTube Channel
Clarke Media - Facebook
WAJeff
Registered User
Posts: 28011
Joined: 30 Jun 2006, 02:00
Location: /dev/sda1/home
Contact:

Post by WAJeff »

Mkay, I dunno here but if I was you heres what I'd do:

1) Backup ALL your data
2) Boot from the XP disk
3) Delete all the partitions from your HDD
4) Make new ones - one for XP, another for Ubunutu and another for your data
5) Install XP
6) Install Ubuntu
7) Be happy and praise me :wink:

When you install Ubuntu the GRUB automatically detects other OS's installed
DJT
I Bribed Ron With Foundry And All I Got Was This Lousy Title
Posts: 9387
Joined: 09 Aug 2002, 02:00
Location: Locked Down
Contact:

Post by DJT »

:( GB, don't suppose you have an option in which I can come away with my windows intact do you? I don't care about the linux anymore, but I NEED data off that drive. HELP!
Want to support my creative work? Drop me a like and subscribe below. It will be greatly appreciated!
Clarke Media - YouTube Channel
Clarke Media - Facebook
WAJeff
Registered User
Posts: 28011
Joined: 30 Jun 2006, 02:00
Location: /dev/sda1/home
Contact:

Post by WAJeff »

Things get a lot easier when you have two HDD's
Vampyre_2099
Registered User
Posts: 1321
Joined: 04 Nov 2007, 02:00
Location: /home/jhb/fourways

Post by Vampyre_2099 »

while in linux, at a gnome terminal type

Code: Select all

sudo fdisk -l
(incase you can't read it, its FDISK -L, all in small letters though)

Then type in your password and post the output here
mybrute
myminicity
PCformat ZA Folding Stats

ImageImage
Spoiler: (show)
Desktop: Q8200 @ 2.33GHz ~ TRUE ~ DP35DP ~ 4GB Transcend Jetram RAM ~ Nvidia 8800GT ~ 250GB HDD
Notebook: T5550 @ 1.83GHz ~ 2GB RAM ~ ATI HD 2400 XT ~ 160GB HDD
WAJeff
Registered User
Posts: 28011
Joined: 30 Jun 2006, 02:00
Location: /dev/sda1/home
Contact:

Post by WAJeff »

What happens when you try and boot into any OS?
DJT
I Bribed Ron With Foundry And All I Got Was This Lousy Title
Posts: 9387
Joined: 09 Aug 2002, 02:00
Location: Locked Down
Contact:

Post by DJT »

Code: Select all

Disk /dev/hda: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x31043103

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           2        2920    23446867+   f  W95 Ext'd (LBA)
/dev/hda5               2        1402    11253501    7  HPFS/NTFS
/dev/hda6            1403        2677    10241406   83  Linux
/dev/hda7            2678        2920     1951866   82  Linux swap / Solaris

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xbebd0b9d

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1       30401   244196001    7  HPFS/NTFS
Want to support my creative work? Drop me a like and subscribe below. It will be greatly appreciated!
Clarke Media - YouTube Channel
Clarke Media - Facebook
DJT
I Bribed Ron With Foundry And All I Got Was This Lousy Title
Posts: 9387
Joined: 09 Aug 2002, 02:00
Location: Locked Down
Contact:

Post by DJT »

g0ldback wrote:What happens when you try and boot into any OS?
At the moment, only Ubuntu works.
Want to support my creative work? Drop me a like and subscribe below. It will be greatly appreciated!
Clarke Media - YouTube Channel
Clarke Media - Facebook
D3PART3D
Starbound's Dear
Posts: 16295
Joined: 01 Dec 2004, 02:00
Contact:

Post by D3PART3D »

Did you shut your windows down properly? It might be marked "in use" (whatever the nerd term for that is) still and linux won't mount it... that doesn't explain why windows isn't showing up on your GRUB though.
Ceterum autem censeo Samsung Mobile esse delendam.

When something is important enough, you do it even if the odds are not in your favor.
- Elon Musk
DJT
I Bribed Ron With Foundry And All I Got Was This Lousy Title
Posts: 9387
Joined: 09 Aug 2002, 02:00
Location: Locked Down
Contact:

Post by DJT »

Yip I did, but the first time I installed Ubuntu it didn't even show that partition or my Media sata drive. But after installing it again, they did show up.
Want to support my creative work? Drop me a like and subscribe below. It will be greatly appreciated!
Clarke Media - YouTube Channel
Clarke Media - Facebook
WAJeff
Registered User
Posts: 28011
Joined: 30 Jun 2006, 02:00
Location: /dev/sda1/home
Contact:

Post by WAJeff »

Download Super Grub Disk and repair the GRUB

See what that does
Download the .iso file, burn it to CD, and boot from it
Judas
Registered User
Posts: 2118
Joined: 17 Oct 2006, 02:00
Location: Stellenbosch
Contact:

Post by Judas »

D3PART3D wrote:Did you shut your windows down properly? It might be marked "in use" (whatever the nerd term for that is).
*cough* dirty unmount *cough*
'One will rarely err if extreme actions be ascribed to vanity, ordinary actions to habit, and mean actions to fear.'
- Friedrich Nietzsche

'Do not argue with Judas, nube, that would be foolish!'
- D3PART3D
Judas
Registered User
Posts: 2118
Joined: 17 Oct 2006, 02:00
Location: Stellenbosch
Contact:

Post by Judas »

Vampyre_2099 wrote:rofl, rofl, rofl, lolocopter. Anyway, seriously, you just need to add Windows to your grub list.

From a gnome terminal

Code: Select all

sudo gedit /boot/grub/menu.lst
then add

Code: Select all

title		Windows 95/98/NT/2000
root		(hd0,0)
makeactive
chainloader	+1
to the end of the file, save, exit and restart
There's your grub problem... This:

Code: Select all

root		(hd0,0)
Should be:

Code: Select all

rootnoverify (hd0,4)
'One will rarely err if extreme actions be ascribed to vanity, ordinary actions to habit, and mean actions to fear.'
- Friedrich Nietzsche

'Do not argue with Judas, nube, that would be foolish!'
- D3PART3D
D3PART3D
Starbound's Dear
Posts: 16295
Joined: 01 Dec 2004, 02:00
Contact:

Post by D3PART3D »

:lol:
*cough* nerd *cough*
Ceterum autem censeo Samsung Mobile esse delendam.

When something is important enough, you do it even if the odds are not in your favor.
- Elon Musk
Judas
Registered User
Posts: 2118
Joined: 17 Oct 2006, 02:00
Location: Stellenbosch
Contact:

Post by Judas »

D3PART3D wrote::lol:
*cough* nerd *cough*
Guilty as charged :P
'One will rarely err if extreme actions be ascribed to vanity, ordinary actions to habit, and mean actions to fear.'
- Friedrich Nietzsche

'Do not argue with Judas, nube, that would be foolish!'
- D3PART3D
Post Reply