booting problem

Asked by thisisSHIVAM09

i installed ubuntu after installing windows xp on a separate hard drive, now on switching on computer it directly loads ubuntu, although it shows a menu but in that menu too there is no windows xp option and there is ubuntu only.plzzz tell wt should i do?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu grub Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
thisisSHIVAM09 (thisisshivam09) said :
#1

ubuntu is installed on a separte drive and windows on separate drive

Revision history for this message
thisisSHIVAM09 (thisisshivam09) said :
#2

ubuntu is installed on a separte drive and windows on separate drive

Revision history for this message
Sam Cater (wraund-deactivatedaccount) said :
#3

Please be more clear... What loading bar. Do you get a countdown on your screen before Ubuntu loads saying something like "Will boot in 4 seconds"?

Revision history for this message
Amit Jain (amitj) said :
#4

hi,
Ubuntu have facility to hide or show list of operating system at startup , if u are seeing this please open file by typeing this command:-

$ gksu gedit /boot/grub/menu.lst

after that in the comment line
hiddenmenu by # like #hiddenmenu

save file

and the reboot again

if its working mail me <email address hidden>

Revision history for this message
Tom (tom6) said :
#5

Just editing the grub-boot-loader menu should fix this. Please back it up first though! One way to do all this is to go up to the top taskbar and click on

Applications - Accessories - Terminal

into the terminal/command window/console type

cd /boot/grub
ls
sudo cp menu.lst menu.lst.280309

it will now ask for your normal user password, not your SuperUser/Root one. Note that the "ls" command was a lower-case "LS" and shows a list of what's in the folder. The "sudo" command gives the CoPy that follows it SuperUser/Root priveleges which are required when making changes to system files or writing to system-folders. So far we have just created a backup copy of menu.lst and can see the copy, and continue further by typing

ls
sudo gedit menu.lst

this time it probably wont ask for a password because you have 15minutes free-reign after having used sudo the first time. In the text-editor console scroll down to the bottom and add this near the end but just above the first similar block for Ubuntu, putting it there rather than at the very end of menu.lst makes Xp the default, hopefully

title Windows Xp
root (hd0,0)
makeactive
chainloader +1

Save and reboot. If you don't see a boot menu with "Windows Xp" and various options for Ubuntu then press the Escape key when the boot process prompts you.

The chances are that you will still have to tweak the menu.lst further but this wont hurt. Often the Xp 'drive' (partition on a drive really) is not on /dev/sda1 which means that the "root hd(0,0)" needs changing. However, in virtually all cases the "hd(0,0)" is the correct one for new linux users (and most of us not-so-new too) :)

Good luck and regards from
Tom :)

Revision history for this message
S.Vikash Koushik (vikashkoushik) said :
#6

Hi thisisSHIVAM09,

        Its really simple.Just open Gparted which should be present in System->Administrations->gparted.If not then just download it from Synaptic Manager which is present in System->Administrations.Then open gparted and then it will show you the partitions of your hard disk.On the left most side of the window you will be able to see some thing like this /dev/sda1 which is the label for and it will show you the memory of that particular partition.You should know how much space you allocated for Windows installation.Say you have given 20GB for Windows and its label is /dev/sda2,now go to Applications->Accessories->Terminal.Here type this command
sudo gedit /boot/grub/menu.lst
Now you will be asked to type your password. (NOTE: When you type your password,your password will not appear on the screen) Then a window will open. At the end of the page type the following:

title Windows XP
rootnoverify (hd0,1)
savedefault
makeactive
chainloader +1

(NOTE: You can type the above only if your hard disk label is shown in gparted as /dev/sda2. If it shows /dev/sda3,then you have to type rootnoverify as (hd0,2).The others will be the same.Similarly if the label is /dev/sda4,you have to type rootnoverify as (hd0,3) and so on.)

Hope you got your problem solved.

Can you help with this problem?

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

To post a message you must log in.