Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to boot a ramdisk and am getting the following error:
16384 ram0 (driver?)
.
.
.
16384 ram181 (driver?)
No filesystem could mount root, tried:ext2 iso9660.
Kernel panic - not syncing:VFS:Unable to mount root fs on unknown-block (1,0)
This is RHEL5 so input the ramdisk_blocksize into isolinux.cfg:
DEFAULT linux
LABEL linux
KERNEL vmlinuz
APPEND initrd=initrd.img root=/dev/ram0 ramdisk_blocksize=1024 ramdisk=2969600 rw init=/etc/rc.d/rc.sysinit
normal ramdisk that erases all data on reboot. This system does not have a hard drive. The messages scroll by so fast that I can not tell if there are any errors before the 182 16384 ram0-182 (driver?) scroll by and it ends in Panic.
I am not sure I have ever heard of someone trying to boot to a ram disk like that.
You'd have to create it, format it and load the data to it before almost anything was loaded or configured. To even run a script you'd have to be up in linux. I guess you could then use loadlin or such to change command control to the ram disk.
You might be able to create it with memdisk and pxe or gpxe boot.
I have been told that I have boot with a DVD. I boot ramdisks all the time with flash drives (Lilo) and PXEBoots. It is just not working with isolinux. I will look into memdisk.
Then I might be misunderstanding the exact thing you are trying to do. It seems like you wanted a computer to boot from cold boot to a ram drive without pxe or flash drive with option toram.
Since isolinux is very similar to pxe, both syslinux products, I believe it should work. I am trying to replicate what slackware does with their busybox ramdisk.
Slackware isolinux.cfg file:
default hugesmp.s
prompt 1
timeout 1200
display message.txt
F1 message.txt
F2 f2.txt
label huge.s
kernel /kernels/huge.s/bzImage
append initrd=initrd.img load_ramdisk=1 prompt_ramdisk=0 rw SLACK_KERNEL=huge.s
label hugesmp.s
kernel /kernels/hugesmp.s/bzImage
append initrd=initrd.img load_ramdisk=1 prompt_ramdisk=0 rw SLACK_KERNEL=hugesmp.s
label speakup.s
kernel /kernels/speakup.s/bzImage
append initrd=initrd.img load_ramdisk=1 prompt_ramdisk=0 rw SLACK_KERNEL=speakup.s
I think I have found the problem. but will not able to test until tomorrow. I thought the kernel would create the ram0... devices dynamically. I am going to try and add the devices to ramdisk to see if that helps.
The system is booting from the DVD now. I change to a 64 bit version of the 2.6.25.14 kernel based on the Redhat 2.6.18 X64 config. The 32 bit version of the 2.6.25.14 was based on the RedHat 2.6.18 32bit config, so I am not sure what is different about the two kernels. I did a diff on the config files, but the amount of differences was huge.
Last edited by clcbluemont; 06-30-2010 at 11:31 AM.
All is working now under the 64 bit version of the 2.6.25.14 kernel. Using extlinux 4.0 for the flash drive version and isolinux for the DVD version. Still not sure what option was kernel option in the 32 bit version was missing to cause it to fail like that.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.