Excellent illustration! However my 2 cents:

On Tue, Jun 01, 2010 at 05:02:21PM +0530, Jkhatri wrote:
> Hi Ravi
>
> Hope following will help
> ----------------------------------------------------
> 1) Boot using your live CD :
> ----------------------------------------------------
> . Select " Try Ubuntu without any change to your computer "
> . Once you've login to desktop run Terminal ( Application > Accessories  
> > Terminal )
> . Change to root, using this [enter *BOLD*  lines] command in Terminal:
>
> ubu...@ubuntu:~$* sudo -i*
> r...@ubuntu:~#
> -------------------------------------------------------------------
> 2)  Find Partition location of your Ubuntu:
> -----------------------------------------------------------------------
> r...@ubuntu:~# *fdisk -l*
> Disk /dev/sda: 160.0 GB, 160041885696 bytes
> 255 heads, 63 sectors/track, 19457 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> Disk identifier: 0x10031003
> Device Boot Start End Blocks Id System
> /dev/sda1 * 1 6374 51199123+ 7 HPFS/NTFS
> /dev/sda2 6375 19457 105089197+ f W95 Ext'd (LBA)
> /dev/sda5 6375 11473 40957686 7 HPFS/NTFS
> /dev/sda6 11474 19457 64131448+ 83 Linux _*<--- Here*_
> ------------------------------------------------------------------------
> 3) Creat mount-point for ubuntu's partition
> ------------------------------------------------------------------------
>
> r...@ubuntu:~# *mkdir /media/root*
> ------------------------------------------------------------------
> 4) Mount the partition using this line
> -------------------------------------------------------------
>
> r...@ubuntu:~# *mount /dev/sda6 /media/root*
> ---------------------------------------------------------------
> 5) Confirm your root location by typing this line:
> --------------------------------------------------------------
>  o...@ubuntu:~#* ls /media/root*
> bin dev initrd.img lib32 media proc selinux tmp vmlinuz
> boot etc initrd.img.old lib64 mnt root srv usr vmlinuz.old
> cdrom home lib lost+found opt sbin sys var
>
>
> If those lines above appear, go to the step 6
> ----------------------------------------------------------------
> 6) proceed by installing GRUB2
> -----------------------------------------------------------
> r...@ubuntu:~# *sudo grub-install --root-directory=/media/root /dev/sda*


why sudo when already logged in as root?




> Installation finished. No error reported. This is the contents of the  
> device map
> /media/root/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
>
> ----------------------------------------
> 7) Reboot your system
> _------------------------------------------
> If in any case you do not see windows xp in GRUB menu do the following  
> steps to resolve the issue _
>
> 1) Boot into your ubuntu
>
> 2) go to the terminal
>
> ( you just need to update you grub so that it can find the windows  
> installation, this can be done by the following command )
>
> usern...@systemname:~$ *sudo update-grub2*
> [sudo] password for ubuntu:
> Generating grub.cfg ...
> Found Debian background: apollo.tga
> Found linux image: /boot/vmlinuz-2.6.31-15-generic
> Found initrd image: /boot/initrd.img-2.6.31-15-generic
> Found linux image: /boot/vmlinuz-2.6.31-14-generic
> Found initrd image: /boot/initrd.img-2.6.31-14-generic
> Found memtest86+ image: /boot/memtest86+.bin
> Found Windows xp (loader) on /dev/sda1
> done
>
> 3) try reboot again , now you will see windows xp in grub menu


I think step 7 mentioned here is relevant to the newer version of grub
i.e. Grub2 which is default from 9.10 onwards. However from the original
post it looks like the user is going to install 9.04 which installs
grub-legacy by default, where one will have to manually add the lines
for 'windows xp' *if it was not recognised during install*. But most
probably, grub will automatically recognise the windows partition and
add it to the list.

You may have a look at
https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows




-- 
Regards,
Nitesh Mistry
www.mistrynitesh.com


-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GB/J/IT/O>TW d+(-) s+:+>: a- C+ UL>+++ P L++>+++ !E W++ N* o? K? w--- O? M-- V? 
PS+() PE(++)(-) Y+ PGP+ t 5? X R tv+ b+ DI D G e+++>++++ h-- !r y?
------END GEEK CODE BLOCK------

-- 
ubuntu-in mailing list
ubuntu-in@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-in

Reply via email to