Re: Not able to boot Linux-2.6.33.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Folks
 
I made some progress. I could boot system at runlevel 1. With following changes:
1. Setting root=/dev/sda1 at grub.
2. Avoiding booting "initrd". I compiled everything in kernel. Removed initrd entry from grub.
 
So, as far as booting is concerned, it seems to be someting wrong with initrd image.
 
But story does not ends here. if I swith to runlevel 2 then it stucks with following messages:
 
* Starting periodic command scheduler
* Running local boot scritps (/etc/rc.local)
* INIT: Id "1" respawning too fast: disabled for five minutes
* INIT: Id "2" respawning too fast: disabled for five minutes
* INIT: Id "3" respawning too fast: disabled for five minutes
* INIT: Id "4" respawning too fast: disabled for five minutes
* INIT: Id "5" respawning too fast: disabled for five minutes
* INIT: Id "6" respawning too fast: disabled for five minutes
 
and keeps on repeating same after every five minutes.
 
Now any idea's on this.
--
Regards,
Mukesh

On Wed, Apr 28, 2010 at 10:56 AM, Mukesh Yadav <mukesh224@xxxxxxxxx> wrote:
Following is output of fdisk -l and cat /etc/fstab
 
Any way, very first message (FATAL: Could not load /lib/modules/2.6.33.2/modules.dep: No such file or directory.), perhaps is not because /dev/hda1 is not available. I copied "lib/modules/2.6.33.2/modules.dep" in "ramfs" and mesaage went away. It seems kernel is looking for modules.dep in ramfs even before going to mount /dev/hda1
modeprobe:
 
root@host3:~# fdisk -l

Disk /dev/hda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         997     8008371   83  Linux
/dev/hda2             998        1044      377527+   5  Extended
/dev/hda5             998        1044      377496   82  Linux swap / Solaris
root@host3:~# 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       /               ext3    defaults,errors=remount-ro 0       1
/dev/hda5       none            swap    sw              0       0
/dev/hdc        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0

On Tue, Apr 27, 2010 at 4:50 PM, Anuz Pratap Singh Tomar <chambilkethakur@xxxxxxxxx> wrote:


On Tue, Apr 27, 2010 at 4:19 PM, Mukesh Yadav <mukesh224@xxxxxxxxx> wrote:
More suggestions please.

Please post your /etc/fstab output
please post your fdisk -l output


As someone pointed out: scsi and ata are merged in recent kernels
between .15 and .33: there are so  many changes, its unlikely u can run it from older distros.
 Secondly, u can boot .15 with "hda1" but newer kernels require "sdXn"
Now they use UUID for recognizing partition, though not sure, if kernel forces such requirements.
if you look at it: its not able to find "/lib/modules/2.6.33.2/modules.dep",
Which is probably because its not able to mount "/root"
 
--
Regards
Mukesh

On Tue, Apr 27, 2010 at 3:26 PM, Mukesh Yadav <mukesh224@xxxxxxxxx> wrote:


On Tue, Apr 27, 2010 at 3:04 PM, Anuz Pratap Singh Tomar <chambilkethakur@xxxxxxxxx> wrote:


On Tue, Apr 27, 2010 at 1:06 PM, Mukesh Yadav <mukesh224@xxxxxxxxx> wrote:
Hello everyone,
 
I wanted to upgrade form Linux-2.6.15-52-386 kernel to vanila Linux-2.6.33.2 kernel from kernel.org. I compiled and installed kernel with defualt configurion (except for disabling booting from NFS)
 
Steps for compiling kernel:
 
$make menuconfig   --- to disable booting form NFS
$make
$make modules
$make modules_install
$make install
 
$cd /boot/
$mkinitramfs -o initrd.img-2.6.33.2 2.6.33.2
 
 
 
 
Following is a list of messages that I get when I try boot with new kernel:
 
modeprobe: FATAL: Could not load /lib/modules/2.6.33.2/modules.dep: No such file or directory.
 
WARNING: Couldn't open directory /lib/modules/2.6.33.2: No such file or directory
 
FATAL: Could not open /lib/modules/2.6.33.2/modules.dep.temp for writing: No such file or directory.
 
ALERT!: /dev/hda1 does not exists. Dropping to a Shell!


not sure, but seems like u need to fix the partition info
/dev/hda1 may not be your root.
 
 
If this is case then same partition should not work as root for Linux-2.6.15.-52-386. Isn't it.
 
 
I'm trying all this on sun virtual box. My Linux-2.6.15-52-386 still works well.
 
Following are grub entries:
title           Ubuntu, kernel 2.6.33.2
root           (hd0, 0)
kernel        /boot/vmlinuz-2.6.33.2  root=/dev/hda1 ro  quiet splash
initrd          /boot/initrd.img-2.6.33.2
savedefault
boot
 
Please help!
--
Best Regards,
Mukesh



--
People ask the question... what's a RocknRolla? And I tell 'em - it's not about drums, drugs, and hospital drips, oh no. There's more there than that, my friend. We all like a bit of the good life - some the money, some the drugs, other the sex game, the glamour, or the fame. But a RocknRolla, oh, he's different. Why? Because a real RocknRolla wants the fucking lot.





--
People ask the question... what's a RocknRolla? And I tell 'em - it's not about drums, drugs, and hospital drips, oh no. There's more there than that, my friend. We all like a bit of the good life - some the money, some the drugs, other the sex game, the glamour, or the fame. But a RocknRolla, oh, he's different. Why? Because a real RocknRolla wants the fucking lot.



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux