startmanager-directing Winxp (/dev/sdc1) won't work

Asked by Peter Saxon

Have setup start manager to open Windows XP Pro as the default, but on bootup it will not go there.
I am a new user of Ubuntu (v10.04.2 LTS). Maybe I set the install incorrectly. The disk, /dev/sdc, is partitioned as /dev/sdc1 (WinXP), /dev/sdc3 ext4 mount /boot, /dev/sdc6 ext4 mount /, & /dev/sdc5 as swap. Just before starting the Ubuntu install, in Advance, set to boot from Windows partition. Since I am unable to boot into Windows XP, I would appreciate any constructive suggestions, even reinstalling Ubuntu again.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu grub2 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

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

If you run:

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

Does it get added ok?

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

You can't get "Windows booting first" persistent with StartupManager.
How to make Windows boot first permanently https://answers.launchpad.net/grub/+faq/1676

Revision history for this message
Peter Saxon (bumpysax) said :
#3

Thanks delance, that solved my question.

Revision history for this message
Peter Saxon (bumpysax) said :
#4

Thanks for a quick reply! Am a newby in Ubuntu - would you please explain exactly how I can implement your suggestion.

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

So it seems my FAQ is not clear enough!
To open a terminal, you can use Ctrl+Alt+T or Application->Accessories->Terminal
What explanation do you need ?

Revision history for this message
Peter Saxon (bumpysax) said :
#6

Thanks delance, that solved my question.

Revision history for this message
Peter Saxon (bumpysax) said :
#7

Sorry, am still getting used to launchpad.
I opened Terminal OK - pasted 1st line, hit enter, pasted 2nd line
Now it asks for my password - but I can't type anything at the prompt! Won't accept pasting the 3rd line.

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

Nothing is displayed when you enter password, even stars!
Could you reopen question. It is marked "Solved" currently.

Revision history for this message
Peter Saxon (bumpysax) said :
#9

Re setting Windows 1st in boot manager:
Have Terminal running. Pasted your follwing suggested code all in 1 line
 cd /etc/grub.d
    sudo mv 30_os-prober 09_os-prober
    sudo update-grub
The following line appears:
{studio} password for bumpy: []
How do I enter my password - it won't accept any keystrokes?

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

sudo doesn't give a visual feedback. This is to hide length. Just type the password and hit ENTER. It will work

Revision history for this message
Peter Saxon (bumpysax) said :
#11

Sorry - a typo error:
The following line appears:
[sudo] password for bumpy: []
How do I enter my password - it won't accept any keystrokes?

Revision history for this message
Peter Saxon (bumpysax) said :
#12

I did that, rebooted & windows is still on the bottom line.
Selected it & hit enter - it returns to the same menu - does not work - am back in Ubuntu

Revision history for this message
Peter Saxon (bumpysax) said :
#13

Could I edit the bootup screen to solve this?

Revision history for this message
Peter Saxon (bumpysax) said :
#14

bumpy@bumpy-desktop:~$ sudo apt-get -y install os-prober; sudo os-prober; sudo update-grub
Reading package lists... Done
Building dependency tree
Reading state information... Done
os-prober is already the newest version.
os-prober set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up initramfs-tools (0.92bubuntu78) ...
update-initramfs: deferring update (trigger activated)

Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.32-32-generic

gzip: stdout: No space left on device
update-initramfs: failed for /boot/initrd.img-2.6.32-32-generic
Trying to alter Bootloader to get Windows to boot first
Tried this code:
sudo apt-get -y install os-prober; sudo os-prober; sudo update-grub

This was the result:
dpkg: error processing initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
/dev/sdc1:Microsoft Windows XP Professional:Windows:chain
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-32-generic
Found initrd image: /boot/initrd.img-2.6.32-32-generic
Found linux image: /boot/vmlinuz-2.6.32-28-generic
Found initrd image: /boot/initrd.img-2.6.32-28-generic
Found memtest86+ image: /memtest86+.bin
Found Microsoft Windows XP Professional on /dev/sdc1
done
bumpy@bumpy-desktop:~$

Question:
Can I edit the Boot menu on startup to rectify this, & if so, how?

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

Please post result of:
    ls /etc/grub.d

Revision history for this message
Peter Saxon (bumpysax) said :
#16

bumpy@bumpy-desktop:~$ ls /etc/grub.d
00_header 10_linux 30_os-prober README
05_debian_theme 20_memtest86+ 40_custom
bumpy@bumpy-desktop:~$

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

Redo commands
   cd /etc/grub.d
   sudo mv 30_os-prober 09_os-prober
   sudo update-grub

Revision history for this message
Peter Saxon (bumpysax) said :
#18

bumpy@bumpy-desktop:~$ cd /etc/grub.d
bumpy@bumpy-desktop:/etc/grub.d$ sudo mv 30_os-prober 09_os-prober
[sudo] password for bumpy:
bumpy@bumpy-desktop:/etc/grub.d$ sudo update-grub
Generating grub.cfg ...
Found Microsoft Windows XP Professional on /dev/sdc1
Found linux image: /boot/vmlinuz-2.6.32-32-generic
Found initrd image: /boot/initrd.img-2.6.32-32-generic
Found linux image: /boot/vmlinuz-2.6.32-28-generic
Found initrd image: /boot/initrd.img-2.6.32-28-generic
Found memtest86+ image: /memtest86+.bin
done
bumpy@bumpy-desktop:/etc/grub.d$

Result:
Microsoft Windows XP Professional on /dev/sdc1 moved to top line but will not bootup Windows

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

It will be more complex! It means either Grub is badly configured or Windows boot is broken.

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 ./boot_info_script055.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.

http://ubuntuforums.org/showthread.php?t=1014708
Try "fixboot" but NOT "fixmbr".

Revision history for this message
Peter Saxon (bumpysax) said :
#20

Downloaded script
ran terminal
Result:

bumpy@bumpy-desktop:~$ sudo bash ./boot_info_script055.sh
bash: ./boot_info_script055.sh: No such file or directory
bumpy@bumpy-desktop:~$

Revision history for this message
Peter Saxon (bumpysax) said :
#21

I presume I should run the script - how do I do this?

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

New name of file is: boot_info_script.sh
Check it by going inside folder.

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

http://bootinfoscript.sourceforge.net/ describe the commands to run.
Please search by yourself in Web page. I could have answered tomorrow morning!

Boot into any Linux based operating system, LiveCD or LiveUSB with an Internet connection.
Download the Boot Info Script
Extract the zip file to a directory of your choice.
Open a terminal (Applications -> Accessories -> Terminal in Gnome) and type :

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

Can you help with this problem?

Provide an answer of your own, or ask Peter Saxon for more information if necessary.

To post a message you must log in.