LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   grub related problem in ubuntu (https://www.linuxquestions.org/questions/linux-newbie-8/grub-related-problem-in-ubuntu-819921/)

asinghpu 07-15-2010 03:28 AM

grub related problem in ubuntu
 
hi

recently i have installed window 7 in my laptop which already running ubuntu 10.4 . but after installation window , ubuntu not working . somewhere else i have read that by using following command we can set boot loader for linux

>sudo grub
>root (hd0,0)
>setup (hd0)
> quit

but when i put >sudo grub , system say command not found .

please help

amandeep

linuxlover.chaitanya 07-15-2010 03:39 AM

Did you install windows after Ubuntu? If it is the case then you will need to recover the Grub. Get Ubuntu Live cd, boot from it and then on the terminal use:

sudo grub-install /dev/sdX

Where X is the name of your drive, probably sda.

asinghpu 07-16-2010 01:36 AM

hi


i have given the command

>sudo grub-install /dev/sda1

output comes out
/usr/sbin/grub-probe: error: cannot find a device for /boot/grub(is /dev mounted ? )
no path or device is specified

linuxlover.chaitanya 07-16-2010 01:43 AM

Where did you give the command? And you should not install in a partition. Rather install it in MBR of your HDD.

sudo grub-install /dev/sda.

See the difference. Its sda NOT sda1.

asinghpu 07-16-2010 01:50 AM

hi


by using
>sudo grub-install /dev/sda i am getting the same error .

linuxlover.chaitanya 07-16-2010 01:52 AM

Where are you giving this command? How do you do that? Can you give more information? And are you able to boot Ubuntu or are you using Live CD?

asinghpu 07-16-2010 01:55 AM

hi

i am not able to boot ubuntu because i have installed window . now i am using ubuntu live cd . and i am getting this errors

pls help

linuxlover.chaitanya 07-16-2010 02:11 AM

Ok. Can you see the HDD from the Live CD? What does sudo fdisk -l give?


All times are GMT -5. The time now is 05:40 PM.