RAMDISK incomplete write error kernel panic-Collection of common programming errors
I am building Linux Kernel 2.6.36.4 on a Dell Laptop which has Linux Kernel 2.6.35.11 running.
BTW I got the source from kernel.org.
The source had few syntax errors which I fixed in the process and finished building Kernel.
After reboot, I keep getting following error:
RAMDISK: incomplete write error(6022 != 28860) write error Kernel Panic – not syncing: VFS: Unable to mount root fs on unknown-block(0, 0) Pid: 1, comm: swapper Not tainted 2.6.36.4 #2 Call Trace:
? printk….
I followed following steps while building the source:
- tar xvf linux-2.6.36.4.tar.bz2
- sudo cp /boot/config-2.6.35.11generic ~/linux-2.6.36.4/.config
- cd ~/linux-2.6.36.4
- make menuconfig
- sudo make
- sudo make modules_install
- sudo make install
- sudo update-initramfs -k 2.6.36.4 -c
- sudo update-grub
I tried following things after my internet search:
- After reboot with working kernel, ran
sudo update-initramfs -u -k all
- Ran
fsck
However I still get this error for every attempt to boot using 2.6.36.4
Has anybody come across such an issue and what do you suggest in this context?
Thank you in advance!
EDIT:
Some developers have increased the ramdisk size to few MBs from 4096 default. Is that a good idea?