what do I type in grub to switch back to xp?

Asked by Sanford Moser

After I downloaded ubuntu to a cd and installed it into an hp laptop running xp I was able to switch from ubuntu to xp one time.
Now I no longer have that as one of the options in startup.
It does offer microsoft windows xp enbedded (on/dev/sda3) but when i click on it it takes me to quick play. If i click on the windows symbol it says windows hibernating.
Is there a step by step fix you can offer so that i can switch back and forth?
Thank you,
Sanford

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu grub2 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Can you give the output of:

sudo fdisk -l; lsb_release -a

Thanks

Revision history for this message
Sanford Moser (vette007) said :
#2

   Device Boot Start End Blocks Id System
/dev/sdb1 1 7318 58775152+ 7 HPFS/NTFS
/dev/sdb2 7318 14594 58444801 5 Extended
/dev/sdb5 7318 14333 56350720 83 Linux
/dev/sdb6 14333 14594 2093056 82 Linux swap / Solaris

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 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
Disk identifier: 0x282d282d

   Device Boot Start End Blocks Id System
/dev/sda1 * 1 12934 103892323+ 7 HPFS/NTFS
/dev/sda2 12936 14462 12265627+ c W95 FAT32 (LBA)
/dev/sda3 14463 14593 1052257+ d7 Unknown
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.04
Release: 11.04
Codename: natty
sanford@sanford-HP-Pavilion-dv9000-RG335UA-ABA:~$

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Ok just wanted to check you still have NTFS partitions around. If you run;

sudo apt-get -y install os-prober; sudo os-prober; sudo update-grub

Does it say XP in the output?

Revision history for this message
Sanford Moser (vette007) said :
#4

sanford@sanford-HP-Pavilion-dv9000-RG335UA-ABA:~$ sudo apt -y instal os-prober; sudo os-prober; sudo update-grub
[sudo] password for sanford:
sudo: apt: command not found
/dev/sda1:Windows XP Media Center Edition:Windows:chain
/dev/sda2:Windows NT/2000/XP:Windows1:chain
/dev/sda3:Microsoft Windows XP Embedded:Windows2:chain
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.38-11-generic
Found initrd image: /boot/initrd.img-2.6.38-11-generic
Found linux image: /boot/vmlinuz-2.6.38-8-generic
Found initrd image: /boot/initrd.img-2.6.38-8-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows XP Media Center Edition on /dev/sda1
Found Windows NT/2000/XP on /dev/sda2
Found Microsoft Windows XP Embedded on /dev/sda3
done
sanford@sanford-HP-Pavilion-dv9000-RG335UA-ABA:~$

Thank you for all your help,
Sanford

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

Cool, reboot to test

Revision history for this message
Sanford Moser (vette007) said :
#6

I did a reboot, however, I still can't find xp os as an option in GNU GRUB VERSION 1.99 RC1-13 Ubuntu3 to click on.
It offers about 6 options which I have tried but nothing with just xp os.
The closest I have found is xp media player but after trying that I still could not get to xp. In fact after I clicked on the window symbol it went into hibernation.
Thank you,
Sanford

Revision history for this message
Sanford Moser (vette007) said :
#7

After thinking about the problem should my question be how do I get xp os to be one of the options I can click on after rebooting?

Revision history for this message
delance (olivier-delance) said :
#8

There is a standard script provided to analyse boot configuration. Could you download script at:

   http://sourceforge.net/projects/bootinfoscript/

Then in a terminal (Ctrl+Alt+T) run command:

    sudo bash [path/to/the/download_folder]/boot_info_script.sh

This will produce a file named: RESULTS.txt. Paste content of this file in http://paste.ubuntu.com/ and provide in this thread the link to Web page. Please don't post file directly in thread, else it will make thread difficult to read.

Revision history for this message
Sanford Moser (vette007) said :
#9

I downloaded http://sourceforge.net/projects/bootfoscript/ but do not know how to launch it to get you the answer from the next command.
Each time I type in sudo bash [path/to/the/download_folder]/boot_info_script.sh it say no file found.
I am new to Ubuntu and trying to work with it so I really appreciate your help and advice.
Thank you,
Sanford

Revision history for this message
delance (olivier-delance) said :
#10

replace [path/to/the/download_folder] by the name of folder in which you downloaded the script
should be $HOME/Downloads or $HOME/Desktop

Revision history for this message
Sanford Moser (vette007) said :
#11

I am not having any luck making that happen.
One time I had a problem with xp, and Microsoft was able to take over my laptop. They were able to correct the problem in about 3 minutes. Can we do that with Ubuntu?
Thank you,
Sanford

Revision history for this message
Sanford Moser (vette007) said :
#12

I saw another question where the person was told to run this in Terminal:
sudo update-grub. When I ran it one response was:
Found windowsnt/2000/xp on dev/sda2.

Is this information helpful in instructing me on how to switch between Ubuntu and xp?

Thanks,
Sanford

Revision history for this message
delance (olivier-delance) said :
#13

Check if sda2 is Windows OS or recovery partition (which could be also a form of Windows OS, so confusion).
If sda2 is truly Windows OS, you should have Windows in Grub menu at boot.

Revision history for this message
Sanford Moser (vette007) said :
#14

You are correct. When I click on sda2 it take me to HP Recovery mode.

After reading all the questions some people have, I hate to risk doing that since everything in Ubuntu is running great. I just need to access some software and files on xp from time to time.

I know all the old xp software and files are on the other partition. Is there a grub command you can give me to enter at startup that will allow me to switch between Ubuntu and xp?

Thanks for everything,
Sanford

Revision history for this message
delance (olivier-delance) said :
#15

Could you paste file /boot/grub/grub.cdg in http://paste.ubuntu.com/ and return URL.

Revision history for this message
Sanford Moser (vette007) said :
#16

file/boot/grub.cdg

Revision history for this message
Sanford Moser (vette007) said :
#17

sanford@sanford-HP-Pavilion-dv9000-RG335UA-ABA:~$ sudo apt -y instal os-prober; sudo os-prober; sudo update-grub
[sudo] password for sanford:
sudo: apt: command not found
/dev/sda1:Windows XP Media Center Edition:Windows:chain
/dev/sda2:Windows NT/2000/XP:Windows1:chain
/dev/sda3:Microsoft Windows XP Embedded:Windows2:chain
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.38-11-generic
Found initrd image: /boot/initrd.img-2.6.38-11-generic
Found linux image: /boot/vmlinuz-2.6.38-8-generic
Found initrd image: /boot/initrd.img-2.6.38-8-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows XP Media Center Edition on /dev/sda1
Found Windows NT/2000/XP on /dev/sda2
Found Microsoft Windows XP Embedded on /dev/sda3
done
sanford@sanford-HP-Pavilion-dv9000-RG335UA-ABA:~$

Thank you for all your help,
Sanford

Revision history for this message
Sanford Moser (vette007) said :
#18

Let me know if you can take over my laptop from where you are, like they can do with Microsoft, to fix this.
Thank You

Revision history for this message
delance (olivier-delance) said :
#19

Type command: cat /boot/grub/grub.cfg
and paste result in http://paste.ubuntu.com/ and return URL.

The 3 Windows OSes are detected by os-prober, so they should be displayed on boot menu.
Could you confirm you don't see all three entries, and problem is not after having chosen an entry ?

About to take control of PC remotely, firstly I'm not sure we are in same time zone. And after, I have a lot of questions to answer and it's too time consuming. Sorry.

Revision history for this message
Sanford Moser (vette007) said :
#20

After I typed cat/boot/grub/grub.cfg
It came back saying unknown command cat/boot/grub/grub.c'.
What do you think?
Is there a solution to being able to switch between ubuntu and xp?

Revision history for this message
delance (olivier-delance) said :
#21

Not "cat/boot/grub/grub.cfg" but "cat /boot/grub/grub.cfg"

Can you help with this problem?

Provide an answer of your own, or ask Sanford Moser for more information if necessary.

To post a message you must log in.