LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 05-08-2010, 12:57 AM   #16
avee137
Member
 
Registered: Apr 2010
Location: bangalore,india
Distribution: ubuntu 9.10,CentOS 5
Posts: 120

Original Poster
Rep: Reputation: 16

Quote:
Originally Posted by ronlau9 View Post
Try in terminal the command sudo su update-grub
If it does not work post again
Restart you're computer to see if it works
yeah,did that a couple of times...no use !
 
Old 05-08-2010, 01:02 AM   #17
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by avee137 View Post
thanks a lot!
lemme c if it works fr me!
Please do not use texting shorthand here.....

Let me see if it works for me.
 
Old 05-08-2010, 01:43 AM   #18
avee137
Member
 
Registered: Apr 2010
Location: bangalore,india
Distribution: ubuntu 9.10,CentOS 5
Posts: 120

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by pottzie View Post
I had a similar problem. In my situation grub2 was running from Mint and wouldn't recognize that Fedora was on my hard drive. The Fedroa forum worked on it for about a week.

http://forums.fedoraforum.org/showthread.php?t=242038

The answer came when someone realized there was a way to get grub to do the dirty work from the comand line. And yes, you can't/don't want to edit grub2!
The short, sweet and brutal solution:

"there is something called Startup Manager for Ubuntu. Maybe a graphical representation of what you want to do? Point and click menu editing? Just a thought while I was reading through my GRUB2 notes."

And that did the trick! After about a week of agonizing by what seemed like all of Fedora's team. When I ran it, Fedora was listed. It's at the last page of a post that's longer than most books in the bible!
i got the startupmanager but the 'security' tab is disabled in the grub-2 verion.and there are limited options in 'advanced' tab and those are not pertinent to my issue.However i noticed that in legacy version there is an option to limit number of OS in boot menu but that does not apply to my GRUB-2!!
 
Old 05-08-2010, 10:07 AM   #19
avee137
Member
 
Registered: Apr 2010
Location: bangalore,india
Distribution: ubuntu 9.10,CentOS 5
Posts: 120

Original Poster
Rep: Reputation: 16
I managed to get CentOS in the grub menu but when i am trying to boot thru that option,it gives an error:load the kernel first.
I thought i had given the wrong disk option hence i changed to other available options but it gives the same error.output of "fdisk -l" and "blkid" is as below .Help me to figure out on what partition kernel of CentOS lies.Or,what else could be the possible solution to the issue.

avi@avi-laptop:~$ sudo blkid
[sudo] password for avi:
/dev/sda1: UUID="26147F9A147F6BA5" LABEL="Recovery" TYPE="ntfs"
/dev/sda2: UUID="C0AC8048AC803AC4" LABEL="System Reserved" TYPE="ntfs"
/dev/sda3: UUID="088481B88481A930" LABEL="Root" TYPE="ntfs"
/dev/sda5: UUID="b9469d27-2d6d-4943-9b60-54b5bc4ea2b6" TYPE="swap"
/dev/sda6: UUID="e001231b-e90c-4429-8137-4a16afc19757" TYPE="ext4"
/dev/sda7: UUID="105ED5035ED4E310" LABEL="Funterland" TYPE="ntfs"
/dev/sda8: UUID="92da5c74-97b0-4a4e-ae5c-4b6d66c2951e" TYPE="ext4"
/dev/sda9: UUID="fec50e60-b629-4e51-9efd-eed9fbbe80df" TYPE="ext4"
/dev/sda10: LABEL="/boot" UUID="e12c9a72-00bc-438f-bc49-4957e02da432" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda11: UUID="gL8kDi-k1d9-BVbv-hhf2-w2He-q0do-rEjS3W" TYPE="LVM2_member"



avi@avi-laptop:~$ sudo fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x695e1c35

Device Boot Start End Blocks Id System
/dev/sda1 1 1874 15048704 27 Unknown
/dev/sda2 * 1874 1887 102400 7 HPFS/NTFS
/dev/sda3 1887 12722 87031808 7 HPFS/NTFS
/dev/sda4 12723 38914 210380360+ f W95 Ext'd (LBA)
/dev/sda5 15417 15807 3140707+ 82 Linux swap / Solaris
/dev/sda6 27557 28470 7341673+ 83 Linux
/dev/sda7 28471 38914 83884032 7 HPFS/NTFS
/dev/sda8 12723 15416 21639523+ 83 Linux
/dev/sda9 15808 17052 10000431 83 Linux
/dev/sda10 17053 17065 104391 83 Linux
/dev/sda11 17066 27556 84268926 8e Linux LVM

Partition table entries are not in disk order

plz help..its more than 48 hrs since i am trudging thru this issue!
 
Old 05-09-2010, 01:37 AM   #20
avee137
Member
 
Registered: Apr 2010
Location: bangalore,india
Distribution: ubuntu 9.10,CentOS 5
Posts: 120

Original Poster
Rep: Reputation: 16
SOS!
 
Old 05-09-2010, 07:37 PM   #21
lunitix
LQ Newbie
 
Registered: Apr 2010
Distribution: Debian
Posts: 16

Rep: Reputation: 2
On most distros root is not allowed to login to X so when you try to run a gui application you get errors.
You can change this behaviour but it is not suggested . If you must use a gui app (for ease of use I persume ---although nano is very friendly )add your account to sudoers file and use the command "sudo gedit" or whatever gui app you want to run with root privileges .

Hope this helps
 
Old 05-10-2010, 04:09 AM   #22
lunitix
LQ Newbie
 
Registered: Apr 2010
Distribution: Debian
Posts: 16

Rep: Reputation: 2
Quote:
Originally Posted by avee137 View Post
I managed to get CentOS in the grub menu but when i am trying to boot thru that option,it gives an error:load the kernel first.
I thought i had given the wrong disk option hence i changed to other available options but it gives the same error.output of "fdisk -l" and "blkid" is as below .Help me to figure out on what partition kernel of CentOS lies.Or,what else could be the possible solution to the issue.

avi@avi-laptop:~$ sudo blkid
[sudo] password for avi:
/dev/sda1: UUID="26147F9A147F6BA5" LABEL="Recovery" TYPE="ntfs"
/dev/sda2: UUID="C0AC8048AC803AC4" LABEL="System Reserved" TYPE="ntfs"
/dev/sda3: UUID="088481B88481A930" LABEL="Root" TYPE="ntfs"
/dev/sda5: UUID="b9469d27-2d6d-4943-9b60-54b5bc4ea2b6" TYPE="swap"
/dev/sda6: UUID="e001231b-e90c-4429-8137-4a16afc19757" TYPE="ext4"
/dev/sda7: UUID="105ED5035ED4E310" LABEL="Funterland" TYPE="ntfs"
/dev/sda8: UUID="92da5c74-97b0-4a4e-ae5c-4b6d66c2951e" TYPE="ext4"
/dev/sda9: UUID="fec50e60-b629-4e51-9efd-eed9fbbe80df" TYPE="ext4"
/dev/sda10: LABEL="/boot" UUID="e12c9a72-00bc-438f-bc49-4957e02da432" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda11: UUID="gL8kDi-k1d9-BVbv-hhf2-w2He-q0do-rEjS3W" TYPE="LVM2_member"



avi@avi-laptop:~$ sudo fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x695e1c35

Device Boot Start End Blocks Id System
/dev/sda1 1 1874 15048704 27 Unknown
/dev/sda2 * 1874 1887 102400 7 HPFS/NTFS
/dev/sda3 1887 12722 87031808 7 HPFS/NTFS
/dev/sda4 12723 38914 210380360+ f W95 Ext'd (LBA)
/dev/sda5 15417 15807 3140707+ 82 Linux swap / Solaris
/dev/sda6 27557 28470 7341673+ 83 Linux
/dev/sda7 28471 38914 83884032 7 HPFS/NTFS
/dev/sda8 12723 15416 21639523+ 83 Linux
/dev/sda9 15808 17052 10000431 83 Linux
/dev/sda10 17053 17065 104391 83 Linux
/dev/sda11 17066 27556 84268926 8e Linux LVM

Partition table entries are not in disk order

plz help..its more than 48 hrs since i am trudging thru this issue!

Sorry to say but you have mixed your disk pretty bad . Are you on a laptop or something (oh just noticed the avi-laptop)? This windows recovery partition is usually found on laptops. Anyway it looks pretty messed up ...

From the output these commands give you can't know were your Centos kernel lies . One can only guess it is in some of you Linux partitions .

I presume you can log in to Ubuntu, otherwise you can use a live cd. Try mounting the partitions to see the file structure .Unless you have made some mistake is the installation sequence you should have two root filesystems, one of which is Centos ...Since you can boot Ubuntu you should already know which of the two is Ubuntu's ,so it shouldn't be hard to recognize the other .Then you can configure grub accordingly .


In future , to avoid such problems it is best to use virtualization software like VirtualBox or something.

Last edited by lunitix; 05-10-2010 at 04:14 AM.
 
Old 05-13-2010, 09:22 AM   #23
avee137
Member
 
Registered: Apr 2010
Location: bangalore,india
Distribution: ubuntu 9.10,CentOS 5
Posts: 120

Original Poster
Rep: Reputation: 16
Nothing was working out well so i wiped out CentOS and ubuntu partitions and reinstalled everything once again.I installed CentOS first with its grub on its / partition rather than on MBR of the disk.Then i installed ubuntu by creating a / and a /home partition on the empty part of the disk.Even though the installation completed successfully, -when I am booting the pc, I am ending up with grub rescue prompt. - i tried to recover grub using live ubuntu cd by mounting the / ubuntu partition.when i moved to /boot/grub directory,its empty. -Further besides,when i see the disk thru disk utility on ubuntu, i do not see / and /home mount point for CentOS partitions,though partitions exist. I know I have messed up badly.Please suggest what should i do!
 
Old 05-14-2010, 03:18 AM   #24
lunitix
LQ Newbie
 
Registered: Apr 2010
Distribution: Debian
Posts: 16

Rep: Reputation: 2
Hi again !

Mount points are only valid for the OS you've set them , so while you have created them fine for Centos when you boot ubuntu or anything else you only see them as what the system knows about them , that is just partitions with filesystem.

Again sorry if I try once more to tell you about virtualization but what you are trying to do is too complicated and not really useful. I used to have many OSes too but in time I realized that I was using only one mainly because it was not convenient to reboot to other oses and have part of my files there part elsewhere and configuration and blah blah etc.Another reason that you'll probably discover later is that it is simply boring to reboot to one OS ....than reboot to the other because you want to do something there ...etc

If you ultimate goal is to learn the OS you can do it in a virtual machine with no trouble .VirtualBox is a very good option and is also available for free.If you still want to have a dual boot system the best thing is to stay with 2 OSes maximum .Going with 3 and more is an exaggeration.

Sorry I am not providing a solution to your current problem but I really think you should go with virtualization .

Last edited by lunitix; 05-14-2010 at 03:19 AM.
 
Old 05-14-2010, 03:40 AM   #25
avee137
Member
 
Registered: Apr 2010
Location: bangalore,india
Distribution: ubuntu 9.10,CentOS 5
Posts: 120

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by lunitix View Post
Hi again !

Mount points are only valid for the OS you've set them , so while you have created them fine for Centos when you boot ubuntu or anything else you only see them as what the system knows about them , that is just partitions with filesystem.

Again sorry if I try once more to tell you about virtualization but what you are trying to do is too complicated and not really useful. I used to have many OSes too but in time I realized that I was using only one mainly because it was not convenient to reboot to other oses and have part of my files there part elsewhere and configuration and blah blah etc.Another reason that you'll probably discover later is that it is simply boring to reboot to one OS ....than reboot to the other because you want to do something there ...etc

If you ultimate goal is to learn the OS you can do it in a virtual machine with no trouble .VirtualBox is a very good option and is also available for free.If you still want to have a dual boot system the best thing is to stay with 2 OSes maximum .Going with 3 and more is an exaggeration.

Sorry I am not providing a solution to your current problem but I really think you should go with virtualization .
Thanks!
What you suggested above is pretty much similar to what i am intending to do.I am trying to keep win7 just for the reason that I paid for it .My aim is to learn the OSs,hence I am going for multi-boot.This time I didn't enable virtualization support in CentOS as I am planning to use some virtualization s/w.I learnt a bit about grub and booting in this disastrous mess.I will start with a clean disk if nothing works out well!
 
  


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
grub 1.97 beta3 , if no /boot/grub/menu.lst frenchn00b Linux - General 15 12-09-2009 02:47 AM
Why /boot/grub/grub.conf is symlinked to /boot/grub/menu.lst raj_hcl1986@rediffma Linux - Newbie 2 10-19-2008 03:19 AM
grub menu.lst Won't boot Windows XP tschima Solaris / OpenSolaris 2 07-23-2008 09:35 PM
Right way to edit /boot/grub/menu.lst ? eeried Linux - Software 2 02-07-2007 09:59 AM
need to access /boot/grub/menu.lst and /boot/grub/device.map neouto Linux - Newbie 8 09-04-2005 12:45 PM


All times are GMT -5. The time now is 12:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration