LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 03-26-2009, 03:38 AM   #1
bcbotha
Member
 
Registered: Nov 2008
Location: South Africa
Distribution: Ubuntu, Windows
Posts: 149

Rep: Reputation: 16
grub loader


i was dual booting vista and ubuntu but i have now taken off vista. however the microsoft bootloader is still in the list. how do i get rid of it and automatically boot into ubuntu?
 
Old 03-26-2009, 03:46 AM   #2
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Quote:
Originally Posted by bcbotha View Post
i was dual booting vista and ubuntu but i have now taken off vista. however the microsoft bootloader is still in the list. how do i get rid of it and automatically boot into ubuntu?
Two ways first edit you menu.lst
As root or su vi /boot/grub/menu.lst and remove the lines you did not need
anymore.
Ore
Second install with synaptic the grub editor and you get it as a option application>system tools and you remove the lines you do not need any more
 
Old 03-27-2009, 04:02 AM   #3
bcbotha
Member
 
Registered: Nov 2008
Location: South Africa
Distribution: Ubuntu, Windows
Posts: 149

Original Poster
Rep: Reputation: 16
im needing help. i got rid of microsoft from grub but i think i messed up grub. i cant log on to my machine. i get

Error 11: Unrecognized device string

Press any key to continue...

this happened after i tried to install grub 2 and had a problem installing it. so i tried to uninstall it. i moved everything from my microsoft partition to this partition and now its not booting up. i do have a live cd with me if that will be any use.
 
Old 03-27-2009, 04:16 AM   #4
vlademir
Member
 
Registered: Jan 2009
Location: The Netherlands
Distribution: Centos,Ubuntu,Mandriva,Suse11.1
Posts: 86

Rep: Reputation: 17
Smile

Quote:
Originally Posted by bcbotha View Post
im needing help. i got rid of microsoft from grub but i think i messed up grub. i cant log on to my machine. i get

Error 11: Unrecognized device string

Press any key to continue...

this happened after i tried to install grub 2 and had a problem installing it. so i tried to uninstall it. i moved everything from my microsoft partition to this partition and now its not booting up. i do have a live cd with me if that will be any use.
Try to reinstall your boot loader Grub , see the steps in this documentation how to reinstall Grub


after reinstalling and reboot of your computer you will have everything working again

Last edited by vlademir; 03-27-2009 at 05:59 AM.
 
Old 03-27-2009, 04:30 AM   #5
bcbotha
Member
 
Registered: Nov 2008
Location: South Africa
Distribution: Ubuntu, Windows
Posts: 149

Original Poster
Rep: Reputation: 16
i did try earlier from the live cd but it didn't work. ill take a look at the link, i might not have done it properly.

thanks
 
Old 03-27-2009, 04:46 AM   #6
bcbotha
Member
 
Registered: Nov 2008
Location: South Africa
Distribution: Ubuntu, Windows
Posts: 149

Original Poster
Rep: Reputation: 16
im doing what it says but when it says type
Code:
setup (hdo)
i get
Code:
Error 12: Invalid device requested
the partition that grub is installed on is hd0,1.

what do i do from here?
 
Old 03-27-2009, 05:58 AM   #7
vlademir
Member
 
Registered: Jan 2009
Location: The Netherlands
Distribution: Centos,Ubuntu,Mandriva,Suse11.1
Posts: 86

Rep: Reputation: 17
because the partition that grub is installed on is hd0,1.

you have to use

Quote:
root (hd0,1)
instead of root (hd0,0)

and then the command bellow to install it on hd0, that is MBR of the first HD.
Quote:
setup (hdo)
then type

exit

Last edited by vlademir; 03-27-2009 at 06:09 AM. Reason: add a command
 
Old 03-27-2009, 06:03 AM   #8
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Quote:
Originally Posted by bcbotha View Post
im doing what it says but when it says type
Code:
setup (hdo)
i get
Code:
Error 12: Invalid device requested
the partition that grub is installed on is hd0,1.

what do i do from here?
AS I do not know how you try the above command I do not know if its works ,normally the next commands we do it from the rescue mode
chroot/mnt/sysimage
grub install /dev/sda
exit
Hope it works
 
Old 03-27-2009, 06:33 AM   #9
bcbotha
Member
 
Registered: Nov 2008
Location: South Africa
Distribution: Ubuntu, Windows
Posts: 149

Original Poster
Rep: Reputation: 16
do i type
chroot/mnt/sysimage
grub install /dev/sda after i have typed
setup (hd0)
 
Old 03-27-2009, 07:33 AM   #10
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Just type
Chroot/mnt/sysimage
grub install /dev/sda
exit
Some linux distro ask for the exit command some not
If you have a rescue mode than GRUB is install on sda and than try to reboot
 
Old 03-27-2009, 08:39 AM   #11
bcbotha
Member
 
Registered: Nov 2008
Location: South Africa
Distribution: Ubuntu, Windows
Posts: 149

Original Poster
Rep: Reputation: 16
Chroot/mnt/sysimage
grub install /dev/sda
doesn't work, i get the Error 12 message again. Any ideas what else i can try?
 
Old 03-27-2009, 09:03 AM   #12
bcbotha
Member
 
Registered: Nov 2008
Location: South Africa
Distribution: Ubuntu, Windows
Posts: 149

Original Poster
Rep: Reputation: 16
im running off the live cd and my ubuntu partition is dev/sda2. if i right click on it and go to infomation the status is Not mounted?
 
Old 03-27-2009, 09:13 AM   #13
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Quote:
Originally Posted by bcbotha View Post
im running off the live cd and my ubuntu partition is dev/sda2. if i right click on it and go to infomation the status is Not mounted?
Of course is you're Ubuntu on sda2 . because SDA1 is normally windows
To be honest I am out of options maybe the quickest solution is
reinstalling Ubuntu
And if Ubuntu will be you're only Os let her use the hole disk .
If you later on decided to dual boot or triple boot with a other linux Oss it is always possible to shrink the partitions
Or divide you HD now in several partitions

Last edited by ronlau9; 03-27-2009 at 09:17 AM.
 
Old 03-27-2009, 09:16 AM   #14
bcbotha
Member
 
Registered: Nov 2008
Location: South Africa
Distribution: Ubuntu, Windows
Posts: 149

Original Poster
Rep: Reputation: 16
but then how do i get all my stuff off...can i or will i loose it all?
 
Old 03-27-2009, 09:25 AM   #15
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Quote:
Originally Posted by bcbotha View Post
but then how do i get all my stuff off...can i or will i loose it all?
It depends on how you have install Ubuntu now .
With separate /home than you can keep you're personal data , if you do not
format /home
But the programs Yes you the reinstall them all
If you let Ubuntu use the entire HD she will format the entire HD and you
started with a brand new system
 
  


Reply

Tags
grub, reinstall


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
How to change from grub boot loader to lilo boot loader linuxjamil Linux - Software 1 05-27-2008 02:47 PM
How to change my Grub Loader to Lilo loader in REDHAT LINUX 9.0 skumar.v Linux - Newbie 3 04-04-2008 11:38 AM
GRUB loader tszhim Linux - General 4 02-09-2003 02:00 PM
Help! Grub Loader! djsktbrd Linux - Newbie 5 12-27-2002 02:34 AM


All times are GMT -5. The time now is 02:48 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration