Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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 can't load a compressed root file system on floppy disk when a Kernel (2.4.19) tell me to insert a floppy!
But i succeed when i try to load with uncompressed file system!
Probably, i must enable some feature in the kernel.
currently, i have following support built-in:
- ext2
- floppy disk
- ram disk (5000 k)
- inird (i think is not useful)
I think it's this
#
# File systems
#
CONFIG_ZLIB_FS_INFLATE=y
I have verified in my config and the value is set to y
what are you using? rdev??
yes, i've used:
rdev bzImage /dev/fd0
and:
rdev -R /dev/fd0 0
how are you compressing the fs? gzip??
i've been compressed my root fs with:
dd if=/dev/loop0 bs=1k | gzip -v9 > /dev/fd0
what commands do you use to setup the kernel's ramdisk work?
I don't use any comand to set ramdisk, i've been only compiled the kernel with it's support for ramdisk and set the value at 5000 K
what are the errors?
the error is:
Kernel Panic:VFS:Unable to mount root fs on 02.00
Inside the kernel image is the ramdisk word that specifies where the root filesystem is to be found, along with other options. The word can be accessed and set via the rdev command, and its contents are interpreted as follows:
Bit field Description
0-10 Offset to start of ramdisk, in 1024 byte blocks
11-13 unused
14 Flag indicating that ramdisk is to be loaded
15 Flag indicating to prompt before loading rootfs
If bit 15 is set, on boot-up you will be prompted to place a new floppy diskette in the drive. This is necessary for a two-disk boot set.
There are two cases, depending on whether you are building a single boot/root diskette or a double ``boot+root'' diskette set.
1.
If you are building a single disk, the compressed root filesystem will be placed right after the kernel, so the offset will be the first free block (which should be the same as KERNEL_BLOCKS). Bit 14 will be set to 1, and bit 15 will be zero. For example, say you're building a single disk and the root filesystem will begin at block 253 (decimal). The ramdisk word value should be 253 (decimal) with bit 14 set to 1 and bit 15 set to 0. To calculate the value you can simply add the decimal values. 253 + (2^14) = 253 + 16384 = 16637. If you don't quite understand where this number comes from, plug it into a scientific calculator and convert it to binary,
2.
If you are building a two-disk set, the root filesystem will begin at block zero of the second disk, so the offset will be zero. Bit 14 will be set to 1 and bit 15 will be 1. The decimal value will be 2^14 + 2^15 = 49152 in this case.
After carefully calculating the value for the ramdisk word, set it with rdev -r. Be sure to use the decimal value. If you used LILO, the argument to rdev here should be the mounted kernel path, e.g. /mnt/vmlinuz; if you copied the kernel with dd, instead use the floppy device name (e.g., /dev/fd0).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.