LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-15-2010, 04:28 AM   #1
asinghpu
Member
 
Registered: Mar 2010
Location: India
Posts: 32

Rep: Reputation: 15
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
 
Old 07-15-2010, 04:39 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
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.
 
Old 07-16-2010, 02:36 AM   #3
asinghpu
Member
 
Registered: Mar 2010
Location: India
Posts: 32

Original Poster
Rep: Reputation: 15
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
 
Old 07-16-2010, 02:43 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
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.
 
Old 07-16-2010, 02:50 AM   #5
asinghpu
Member
 
Registered: Mar 2010
Location: India
Posts: 32

Original Poster
Rep: Reputation: 15
hi


by using
>sudo grub-install /dev/sda i am getting the same error .
 
Old 07-16-2010, 02:52 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
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?
 
Old 07-16-2010, 02:55 AM   #7
asinghpu
Member
 
Registered: Mar 2010
Location: India
Posts: 32

Original Poster
Rep: Reputation: 15
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
 
Old 07-16-2010, 03:11 AM   #8
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with event sounds in ubuntu lucid-lynx. (may be related to canberra-gtk-play) vhasun Ubuntu 2 11-28-2013 01:02 PM
GRUB error 2 and possibly related problem cajunaggie Linux - General 4 08-31-2007 05:08 AM
Need help fixing grub related problem joint Linux - Software 4 12-08-2006 10:20 AM
Grub related vkmgeek Linux - General 4 10-27-2006 10:16 AM
linux /boot backup problem related with GRUB kvv_bne Linux - General 2 02-21-2006 02:04 PM


All times are GMT -5. The time now is 01:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration