-
Kernel panic probs, CD->HD->CD
A school project asked to recompile the Knoppix 3.7 linux-2.4.27 kernel with an added system call.
In order to complete this assignment, we had to first install knoppix onto a new partition on our hard drives. I used hda6 for this partition and installed knoppix by running knoppix-installer. LILO was not installed in the MBR however, it was installed to the partition. My computer was using GRUB, and I added Knoppix to GRUB using chainloader +1 to start up lilo on hda6.
My Computer Paritions are as follows:
hda1 – Windows XP
hda2 – /boot linux ext3 boot
hda3 – linux ext3 (Linux RedHat)
hda5 – Swap
hda6 – Knoppix 3.7
Then source code was taken from http://developer.linuxtag.net/knoppix/sources/
Then, from kernel-source-2.4.27_10.00.Custom_all.deb we extracted the kernel-source-2.4.27.tar.bz2 file inside using Ark. This was then copied over to /usr/src/linux-2.4.27, and the old one was renamed to linux-2.4.27.old. Then inside this directory, we added in our helloworld.c system call inside of the kernel and added it to the Makefile as well. We also added/modified the entry.S and unistd.h files. This system call simply printed out hello world! to the kernel log file. After make dep, make clean, make bzImage (we didn’t need to do make module, but I have tried this already), we then placed the bzImage into the root folder, modified lilo.conf to contain a new entry that referenced this file, and ran lilo. We then rebooted the computer and ran the new kernel and tested the new system call by creating a program that used the call.
The system call used a printk message that would print to a log file, however, it did not print to any of the log files we checked inside of /var/log/ and it’s subdirectories. However, our message did show up when we typed dmesg. This was just one small error compared to what we encountered next.
The school project asked us burn the newly created kernel to a CD. This is where most of our problems came in. We then followed the Knoppix Remastering Howto, http://www.knoppix.net/wiki/Knoppix_Remastering_Howto, with two changes.
• We used /mnt/hda6 as the source for the first ISO image, linux-2.4.27.
• The file created using bzImage, replaces the linux24 file inside the boot/isolinux inside of the master directory.
After doing all of this, we then burned the the ISO using the directions on the Remastering website. When we finally booted the CD onto my computer, it worked great, except that when it was loading, it said that it was loading from the HD…
When we tried to use the CD on another computer, we got the following message:
Kernel Panic VFS: Unable to mount root fs to 03:06
It seems as if this CD is trying to mount on hda6, and since all computers do not have this partition, it’s not able to. After troubleshooting for hours, long sleepeless nights, we got the same error. I tried recompiling the CD from my linux partition on hda3, by chrooting to the source file inside of /knx/source/KNOPPIX/. However, after burning that CD, I got this message:
Kernel Panic VFS: Unable to mount root fs to 03:03
I think that the problem might be that lilo is inside of this partition instead of being installed in the MBR, master boot record. Another problem might be that the fstab file might need some modification. Any ideas? I have been working on this for a long time, and so far, I have created 6 CDs that result in Kernel Panic statements. If anyone has any clue to what the problem might be, please email me!
Other Referenced websites:
Project Description: http://wiggins.cs.uic.edu/cs385/projects/p2/
Silberschatz, A., Galvin, P., Gagne, G. Operating System Concepts. 7th ed. 2005, pp. 74-78.
Knoppix Remastering Howto: http://www.knoppix.net/wiki/Knoppix_Remastering_Howto
--- Sana
Similar Threads
-
By Trace Green in forum Customising & Remastering
Replies: 2
Last Post: 05-19-2005, 04:33 PM
-
By gitarzysta in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 06-03-2004, 08:36 PM
-
By madserb in forum Hardware & Booting
Replies: 0
Last Post: 08-24-2003, 10:58 AM
-
By cYmen in forum Customising & Remastering
Replies: 0
Last Post: 07-14-2003, 10:17 AM
-
By tji in forum Customising & Remastering
Replies: 4
Last Post: 06-12-2003, 06:40 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Crucial MX500 1TB 2.5" SATA III Internal SSD CT1000MX500SSD1
$99.99

Dell Latitude 14" Laptop Computer Intel i5 Up To 32GB RAM 1TB SSD Windows 11 Pro
$316.61

Samsung 2.5" 870 EVO SSD SATA III 250GB 500GB 1TB Internet Solid State Drive Lot
$60.00

Dell Latitude 14" Laptop Computer Intel i7 Up To 32GB RAM 1TB SSD Windows 11 Pro
$349.48

Lenovo Legion 5 Gaming 15.1" WQXGA OLED 165Hz Core i9-14900HX 16GB 1TB RTX 5070
$1469.00

1TB Kingston DataTraveler Max DTMAX/1TB USB Type-C Flash Drive
$86.95

Netac 2TB 1TB 512GB 256GB Internal SSD 2.5inch SATAIII Solid State Drive lot
$1090.00

External SSD 1TB 2TB 4TB Portable Hard Drive USB 3.0 Type-C High Speed PC Mac
$19.99

Dell Precision 7670 i7-12850HX 2.1GHz 32GB 1TB NVMe 16" A1000 Win 11 Pro: Good
$649.00

External Solid State Drive USB 3.2 Gen2, 1TB SSD External Hard Drive with C to A
$100.00