LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 12-24-2010, 10:41 AM   #1
chaitanyajun12
Member
 
Registered: Nov 2010
Posts: 38

Rep: Reputation: 0
Smile How to edit grub.cfg after kernel compilation -reg.


hi all,

I am compiling a new kernel. I have successfully compiled it, but can anyone tell me how to modify grub.cfg. I am using ubuntu 10.10.

Can I use 'update-grub' ?

I tried using that and even its updating the grub with new kernel. But after I boot the new kernel its showing

-----------------------------------------------
The disk for / is not ready or does not exist

#and some statements# M for recovery ...
-----------------------------------------------

Is there any problem with kernel compilation and why is that coming ?

with kind regards,
Chaitanya.
 
Old 12-24-2010, 10:53 AM   #2
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Here is a good link to a grub2 tutorial that tells you how to change everything including splash screens.

grub2

Oh and also simple enough I understood most of it.

Sorry just reread the rest of your post and it appears you may have another problem. Do you have a live cd? If so from terminal

sudo grub-install /dev/sdX

and if that does not work

parted -l
and post results

Last edited by Larry Webb; 12-24-2010 at 10:59 AM.
 
Old 12-24-2010, 10:56 AM   #3
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
os-prober has to be executed

before update-grub
 
Old 12-24-2010, 11:17 AM   #4
chaitanyajun12
Member
 
Registered: Nov 2010
Posts: 38

Original Poster
Rep: Reputation: 0
yes..my grub updated correctly and the entry is also being shown up. but the problem which I mentioned earlier, after booting with that kernel, I am getting a screen

---------------------------
ubuntu 10.10

The disk drive for / is not ready yet or not present

Continue to wait; or press S to skip mounting or M for manual recovery.
----------------------------

from that stage its not moving at all. I tried 'M' but it ended up entering password and to the command line.

I am having two linux installations in my system 10.04 and 10.10 separately. Is the problem because of that ?

Chaitanya.
 
Old 12-24-2010, 12:04 PM   #5
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Do you have option of booting old kernel?
 
Old 12-24-2010, 12:08 PM   #6
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
If should not be a problem if the two are on separate partitions.

Use a ubuntu live and from terminal post the results of command

sudo parted -l

and tell me which partitions ubuntu 10.4 and 10.10 are on.
 
Old 12-24-2010, 12:46 PM   #7
chaitanyajun12
Member
 
Registered: Nov 2010
Posts: 38

Original Poster
Rep: Reputation: 0
@eddy
through the grub i am selecting the new kernel.

@larry

obviously those are on seperate partitions. I am sending you the details of the command mentioned.

Quote:
# sudo parted -l

Model: ATA ST3250310AS (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 32.3kB 21.0GB 21.0GB primary fat32 boot, lba
2 21.0GB 126GB 105GB extended lba
11 21.0GB 21.8GB 822MB logical ext3
10 27.4GB 37.0GB 9640MB logical ext2
8 37.0GB 52.0GB 15.0GB logical ext3
9 52.0GB 52.4GB 387MB logical linux-swap(v1)
5 52.4GB 83.9GB 31.5GB logical fat32
6 83.9GB 115GB 31.5GB logical ntfs
7 115GB 126GB 10.5GB logical ext3
3 126GB 157GB 31.5GB primary ntfs
4 157GB 250GB 92.7GB primary ntfs
I even doubt if there is any problem with my compilation. Initially I did

1. make defconfig (selecting a default configuration)
2. make
3. make modules_install
4. make install
5. update-grub

Later i just restarted the system. Is this correct?
 
Old 12-24-2010, 04:50 PM   #8
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Is your ubuntu on a live cd, if it is boot the live cd and try the command from terminal

sudo grub-install /dev/sda

I am not experienced with scsi hds. If it does not install it should give errors.
 
Old 12-25-2010, 01:46 AM   #9
chaitanyajun12
Member
 
Registered: Nov 2010
Posts: 38

Original Poster
Rep: Reputation: 0
Since i have got only one partition on linux /dev/sda1 ..
so i tried installing from that.

$ sudo grub-install /dev/sda1

/usr/sbin/grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?).

----------------------------
Chaitanya.
 
Old 12-25-2010, 03:01 AM   #10
chaitanyajun12
Member
 
Registered: Nov 2010
Posts: 38

Original Poster
Rep: Reputation: 0
I have installed the grub2 following this tutorial

https://help.ubuntu.com/community/Gr...0from%20LiveCD

and now i am getting the grub. but when I am trying to boot the new kernel,

its showing some mount errors followed by

Quote:
Target file system doesn't have /sbin/init
No init found. Try passing init = bootarg

Busy box V1.13.3
(initramfs)
when i am trying to exit using 'exit' command ..
its showing errors.
Quote:
/init: line 271: can't open /root/dev/console
[110.785090] Kernel panic - not syncing: after to kill init
[110.782930] Call trace:
...
...
.
These errors are coming when i trying to boot new kernel.

please help me out with these errors.

Chaitanya.
 
  


Reply



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
permission for grub.cfg jone kim Linux - General 1 09-15-2010 01:53 PM
[SOLVED] May I edit the file "grub.cfg" without causing harm to my system? seamuscristo Linux - Newbie 11 06-07-2010 01:13 PM
[SOLVED] Grub can't find grub.cfg when booting - error: no such device Breagha Linux - Software 8 03-14-2010 12:40 PM
locate grub.conf on a separate /boot partition to edit in an additional kernel ktek Linux - Newbie 6 10-03-2008 08:21 PM
Missing Edit button on Reg. Expr. filters linuxbeliever Linux - Software 0 04-08-2005 11:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:28 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
Open Source Consulting | Domain Registration