LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 06-12-2008, 05:38 PM   #1
ceon2002
LQ Newbie
 
Registered: Jun 2008
Location: Austin, TX
Distribution: Ubuntu
Posts: 4

Rep: Reputation: 0
Thumbs down Problem with dual booting Ubuntu and windows xp


I am having a problem with dual booting Ubuntu 8.04 and Windows XP. Now before i go on i would like to say i am brand new to Linux so I'm sorry ahead of time if i sound dumb.

I have Ubuntu installed on it's own separate partition from Windows. At first when i installed everything worked perfectly. I could boot both Ubuntu and windows anytime i wanted with no problems. Now whenever i go to boot Windows XP it gives me Grub error 22: no such partition. I think this started happening after I updated Ubuntu from 16 to 17, but I'm not sure. When i go to edit the Windows XP at the screen where you pick which partition you want, it says that windows is root(hd0,0). I have no idea what this means but help would be greatly appreciated.

Thanks
 
Old 06-12-2008, 05:52 PM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,758

Rep: Reputation: Disabled
After Grub starts hit the 'c' key

# rootnoverify (hd0,0)
# chainloader +1
# boot

If you still get an error ... you must have done something.

In (hd0,0),
hd0 is your 1st hard disk and
0 is the 1st partition.


best


A. Mani
 
Old 06-12-2008, 05:57 PM   #3
ceon2002
LQ Newbie
 
Registered: Jun 2008
Location: Austin, TX
Distribution: Ubuntu
Posts: 4

Original Poster
Rep: Reputation: 0
Alright i did that and it now says Starting up... but then it just stays there and never boots anything.
 
Old 06-12-2008, 06:04 PM   #4
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,758

Rep: Reputation: Disabled
If you boot into ubuntu,

# sudo grub-install /dev/sda

(or is it /dev/hda ... your first hard disk)


Get super grub disk too
 
Old 06-12-2008, 06:19 PM   #5
ceon2002
LQ Newbie
 
Registered: Jun 2008
Location: Austin, TX
Distribution: Ubuntu
Posts: 4

Original Poster
Rep: Reputation: 0
Searching for GRUB installation directory ... found: /boot/grub
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(hd0) /dev/sda

Is what i get after i do the sudo grub-install /dev/sda.

Also i believe I'm going to have to go buy some more CD-Rs before i can get super grub disk. Will this be a problem?

EDIT: When i do /dev/hda it says Not found or not a block device.

Last edited by ceon2002; 06-12-2008 at 06:21 PM.
 
Old 06-12-2008, 07:05 PM   #6
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,525

Rep: Reputation: 704Reputation: 704Reputation: 704Reputation: 704Reputation: 704Reputation: 704Reputation: 704
If you are able to boot into ubuntu run the command: sudo fdisk -l (that's a lower case letter L), you will be asked for your user password, enter that and post the result of the command. It would also be useful to post the contents of the menu.lst file which is in the /boot/grub directory. You won't need to post all the lines commented out (#) at the beginning of this file.
 
Old 06-12-2008, 07:06 PM   #7
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Can you give us your 'fdisk -l from ubuntu terminal. This will give us your hd and partition layout.
 
Old 06-12-2008, 07:16 PM   #8
ceon2002
LQ Newbie
 
Registered: Jun 2008
Location: Austin, TX
Distribution: Ubuntu
Posts: 4

Original Poster
Rep: Reputation: 0
Here is fdisk-l

Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0af20af2

Device Boot Start End Blocks Id System
/dev/sda1 * 1 16343 131275116 7 HPFS/NTFS
/dev/sda2 16344 24321 64083285 5 Extended
/dev/sda5 16344 24038 61810056 83 Linux
/dev/sda6 24039 24321 2273166 82 Linux swap / Solaris




And here is the menu.lst file

title Ubuntu 8.04, kernel 2.6.24-17-generic
root (hd0,4)
kernel /boot/vmlinuz-2.6.24-17-generic root=UUID=3c15bcfe-0f67-4677-9e02-c1576c305a60 ro quiet splash
initrd /boot/initrd.img-2.6.24-17-generic
quiet

title Ubuntu 8.04, kernel 2.6.24-17-generic (recovery mode)
root (hd0,4)
kernel /boot/vmlinuz-2.6.24-17-generic root=UUID=3c15bcfe-0f67-4677-9e02-c1576c305a60 ro single
initrd /boot/initrd.img-2.6.24-17-generic

title Ubuntu 8.04, kernel 2.6.24-16-generic
root (hd0,4)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=3c15bcfe-0f67-4677-9e02-c1576c305a60 ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
quiet

title Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)
root (hd0,4)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=3c15bcfe-0f67-4677-9e02-c1576c305a60 ro single
initrd /boot/initrd.img-2.6.24-16-generic

title Ubuntu 8.04, memtest86+
root (hd0,4)title Ubuntu 8.04, kernel 2.6.24-17-generic
root (hd0,4)
kernel /boot/vmlinuz-2.6.24-17-generic root=UUID=3c15bcfe-0f67-4677-9e02-c1576c305a60 ro quiet splash
initrd /boot/initrd.img-2.6.24-17-generic
quiet

title Ubuntu 8.04, kernel 2.6.24-17-generic (recovery mode)
root (hd0,4)
kernel /boot/vmlinuz-2.6.24-17-generic root=UUID=3c15bcfe-0f67-4677-9e02-c1576c305a60 ro single
initrd /boot/initrd.img-2.6.24-17-generic

title Ubuntu 8.04, kernel 2.6.24-16-generic
root (hd0,4)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=3c15bcfe-0f67-4677-9e02-c1576c305a60 ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
quiet

title Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)
root (hd0,4)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=3c15bcfe-0f67-4677-9e02-c1576c305a60 ro single
initrd /boot/initrd.img-2.6.24-16-generic

title Ubuntu 8.04, memtest86+
root (hd0,4)
kernel /boot/memtest86+.bin
quiet
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1

By the way thank you very much I appreciate this greatly
 
Old 06-12-2008, 09:43 PM   #9
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Boot your ubuntu disk and from terminal

sudo grub

and at the grub prompt

root (hd0,4)
setup (hd0)

This should repair your upgrade.
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Vista Dual-Booting with Ubuntu 6.10 Koueen Linux - Newbie 6 06-02-2008 06:12 PM
New To Linux, Dual Booting Ubuntu on Windows XP SP2. Agent_Fowler Linux - Newbie 2 02-26-2008 01:18 AM
Problem with grub dual booting windows xp and ubuntu 7.04 Frozen.past Linux - Newbie 36 01-31-2008 08:49 AM
LXer: Dual-Booting Windows XP/Vista And Ubuntu 7.04 LXer Syndicated Linux News 0 07-22-2007 01:46 PM
help dual booting windows on already installed ubuntu machine ralphbluecoat Linux - Software 2 02-09-2007 09:02 PM


All times are GMT -5. The time now is 05:41 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