LinuxQuestions.org
Review your favorite Linux distribution.
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
 
LinkBack Search this Thread
Old 11-26-2008, 11:27 AM   #16
shariefbe
Member
 
Registered: Aug 2008
Location: Trichy,India
Distribution: UBUNTU 10.10
Posts: 363

Original Poster
Rep: Reputation: 31

i made the changes even i am getting error as...

Begin :waiting for root file system

what to do?
 
Old 11-27-2008, 04:12 AM   #17
monsm
Member
 
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Rep: Reputation: 37
Not enough information in your post to say.

Could you use a flash drive or something and copy you menu.lst and /etc/fstab files and post them here? Also post the content of "ls -l /boot"

Mons
 
Old 11-27-2008, 09:01 AM   #18
shariefbe
Member
 
Registered: Aug 2008
Location: Trichy,India
Distribution: UBUNTU 10.10
Posts: 363

Original Poster
Rep: Reputation: 31
For the sake i installed the new kervel version 2.6.26..i will tell the steps which i done here..

step 1)tar -xzvf linux-2.6.26.tar.gz

step 2)cd linux-2.6.26

step 3)make menuconfig
(I didnt do any changes)

step 4)make

step 5)make modules_install

step 6)make install

After i typed this i got the following things

sh /home/sharief/Desktop/linux/linux-2.6.26/arch/x86/boot/install.sh 2.6.26 arch/x86/boot/bzImage System.map "/boot"
In order to use the new kernel image you have just installed, you
will need to reboot the machine. First, however, you will need to
either make a bootable floppy diskette, re-run LILO, or have GRUB
installed.

Checking for ELILO...No

GRUB is installed. To automatically switch to new kernels, point your
default entry in menu.lst to /boot/vmlinuz-2.6.26
root@sharief-desktop:/home/sharief/Desktop/linux/linux-2.6.26#


After that i did

step 7)# cp arch/i386/boot/bzImage /boot/bzImage-2.6.26

step 8)# cp System.map /boot/System.map-2.6.26

step 9)vi /boot/grub/menu.lst

in that i edited as

title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=7ef4f8ec-7dd3-4c02-9f24-c9438e6b8bce ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
quiet

title Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=7ef4f8ec-7dd3-4c02-9f24-c9438e6b8bce ro single
initrd /boot/initrd.img-2.6.22-14-generic

title Ubuntu 7.10, kernel 2.6.26 ie new one
root (hd0,0)
kernel /boot/vmlinuz-2.6.26 root=UUID=7ef4f8ec-7dd3-4c02-9f24-c9438e6b8bce ro quiet splash


title Ubuntu 7.10, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
quiet

when i reboot the system i entered in to new kernel i am getting this error

starting up.....
uncompressing linux...ok,booting the kernel
[ some number]kernel panic : not syncing; VFS; Unable to mount root fs on unknown-block (0,0)


for your kind information the content of /boot is

abi-2.6.22-14-generic memtest86+.bin
bzImage-2.6.26 sarge.bmp
coffee.bmp sid.bmp
config Syatem.map-2.6.26
config-2.6.22.14 System.map
config-2.6.22-14-generic System.map-2.6.22.14
config-2.6.26 System.map-2.6.22-14-generic
config.old System.map-2.6.26
debian.bmp System.map.old
debianlilo.bmp vmlinuz
grub vmlinuz-2.6.22.14
initrd.img-2.6.22-14-generic vmlinuz-2.6.22-14-generic
initrd.img-2.6.22-14-generic.bak vmlinuz-2.6.26
initrd.img-linux-2.6.22.14 vmlinuz.old

what to do now?

Last edited by shariefbe; 11-27-2008 at 09:14 AM.
 
Old 11-27-2008, 09:11 AM   #19
shariefbe
Member
 
Registered: Aug 2008
Location: Trichy,India
Distribution: UBUNTU 10.10
Posts: 363

Original Poster
Rep: Reputation: 31
Here is the output of "ls -l /boot" is

root@sharief-desktop:/home/sharief/Desktop/linux/linux-2.6.26# ls -l /boot
total 28896
-rw-r--r-- 1 root root 424317 2007-10-15 07:09 abi-2.6.22-14-generic
-rw-r--r-- 1 root root 1849920 2008-11-27 20:03 bzImage-2.6.26
-rw-r--r-- 1 root root 308326 2008-11-22 08:26 coffee.bmp
lrwxrwxrwx 1 root root 13 2008-11-27 20:21 config -> config-2.6.26
-rw-r--r-- 1 root root 81511 2008-11-21 17:53 config-2.6.22.14
-rw-r--r-- 1 root root 75311 2007-10-15 07:09 config-2.6.22-14-generic
-rw-r--r-- 1 root root 91632 2008-11-27 20:21 config-2.6.26
-rw-r--r-- 1 root root 91632 2008-11-27 19:21 config-2.6.26.old
lrwxrwxrwx 1 root root 17 2008-11-27 20:21 config.old -> config-2.6.26.old
lrwxrwxrwx 1 root root 15 2008-11-22 08:26 debian.bmp -> /boot/sarge.bmp
-rw-r--r-- 1 root root 153720 2008-11-22 08:26 debianlilo.bmp
drwxr-xr-x 2 root root 4096 2008-11-27 20:13 grub
-rw-r--r-- 1 root root 7523672 2008-09-28 14:08 initrd.img-2.6.22-14-generic
-rw-r--r-- 1 root root 7124250 2007-10-16 04:56 initrd.img-2.6.22-14-generic.bak
-rw-r--r-- 1 root root 0 2008-11-23 15:38 initrd.img-linux-2.6.22.14
-rw-r--r-- 1 root root 103204 2007-09-28 15:36 memtest86+.bin
-rw-r--r-- 1 root root 23662 2008-11-22 08:26 sarge.bmp
-rw-r--r-- 1 root root 24116 2008-11-22 08:26 sid.bmp
-rw-r--r-- 1 root root 901026 2008-11-27 20:04 Syatem.map-2.6.26
lrwxrwxrwx 1 root root 17 2008-11-27 20:21 System.map -> System.map-2.6.26
-rw-r--r-- 1 root root 821557 2008-11-21 17:53 System.map-2.6.22.14
-rw-r--r-- 1 root root 823535 2007-10-15 07:09 System.map-2.6.22-14-generic
-rw-r--r-- 1 root root 901026 2008-11-27 20:21 System.map-2.6.26
-rw-r--r-- 1 root root 901026 2008-11-27 19:21 System.map-2.6.26.old
lrwxrwxrwx 1 root root 21 2008-11-27 20:21 System.map.old -> System.map-2.6.26.old
lrwxrwxrwx 1 root root 14 2008-11-27 20:21 vmlinuz -> vmlinuz-2.6.26
-rw-r--r-- 1 root root 1761312 2008-11-21 22:59 vmlinuz-2.6.22.14
-rw-r--r-- 1 root root 1764280 2007-10-15 07:09 vmlinuz-2.6.22-14-generic
-rw-r--r-- 1 root root 1849920 2008-11-27 20:21 vmlinuz-2.6.26
-rw-r--r-- 1 root root 1849920 2008-11-27 19:21 vmlinuz-2.6.26.old
lrwxrwxrwx 1 root root 18 2008-11-27 20:21 vmlinuz.old -> vmlinuz-2.6.26.old
 
Old 11-27-2008, 09:27 AM   #20
monsm
Member
 
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Rep: Reputation: 37
Ok, you can probably make the boot work without the initrd line as in your previous entries. However you need to make some changes in the kernel config.

Run "make menuconfig" from the kernel source folder. In the file system section, compile in ext2 and ext3 support (mark them with * and NOT 'M'). I presume you use ext3 for root. That should be enough.

After the kernel is compiled, you most likely need to remove those UUIDs from the new menu.lst entry and replace it with root=/dev/hdax
You should have the same in /etc/fstab. I presume you have a single HD on this machine? If you boot with one of the entries that has an initrd, your harddrive is probably called /dev/sda. So run "fdisk -l /dev/sda" from root. It will list partitions. Find the one that is root and in menu.lst and /etc/fstab use the same number (after the sda part) there. The drive will most likely be renamed from sda to hda when you boot without initrd, but the number will be the same. I have root on the second partion on my machine. With initrd running it was called /dev/sda2, without it is called /dev/hda2.

I think the UUID stuff only works with initrd. So alternatively you could build a new initrd.img file, but I'm not sure how to do that on your system.

Mons
 
Old 11-27-2008, 12:01 PM   #21
shariefbe
Member
 
Registered: Aug 2008
Location: Trichy,India
Distribution: UBUNTU 10.10
Posts: 363

Original Poster
Rep: Reputation: 31
This is the content of /etc/fstab

root@sharief-desktop:/home/sharief/Desktop/linux/linux-2.6.26# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/hda1
UUID=7ef4f8ec-7dd3-4c02-9f24-c9438e6b8bce / ext3 defaults,errors=remount-ro 0 1
# /dev/hda5
UUID=c034f424-3fb6-416d-92ec-ae358e90f566 none swap sw 0 0
/dev/hdb /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec 0 0

Refer that and tell me..
 
Old 11-27-2008, 09:46 PM   #22
shariefbe
Member
 
Registered: Aug 2008
Location: Trichy,India
Distribution: UBUNTU 10.10
Posts: 363

Original Poster
Rep: Reputation: 31
somebody suggest me whatto do now...i posted all the details..
 
Old 11-27-2008, 11:27 PM   #23
shariefbe
Member
 
Registered: Aug 2008
Location: Trichy,India
Distribution: UBUNTU 10.10
Posts: 363

Original Poster
Rep: Reputation: 31
ya..its working.....compiled sucessfully...Thanks for post
 
Old 11-28-2008, 12:05 AM   #24
vamsi_k
Member
 
Registered: Aug 2008
Posts: 66

Rep: Reputation: 18
Just for information :

http://www.cyberciti.biz/tips/compil...kernel-26.html
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Compilation Problem nsampath Linux - Software 5 10-27-2007 12:56 PM
kernel compilation problem ddaas Suse/Novell 2 06-12-2007 06:07 AM
Kernel compilation problem alephnull Slackware 11 04-19-2006 10:38 PM
kernel compilation problem vishalbutte Programming 6 02-07-2006 10:55 PM
Kernel Compilation Problem 2.6.7 ultrix Slackware 4 08-11-2004 05:31 AM


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

Main Menu
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