[klibc] Unable to cat raw /dev/fd0 more than one time
H. Peter Anvin
hpa at zytor.com
Sun Jun 8 15:55:05 PDT 2008
Gilles Espinasse wrote:
>
> When init run those actions are made
> echo "Insert the root-1.img floppy and press Enter"
> read ANSWER
> mount -t tmpfs tmpfs /initramfs
> echo -n "Loading root-1 initramfs ... "
> cd /initramfs && cat /dev/fd0 | zcat -d | cpio -i
> echo "Insert the root-2.img floppy and press Enter"
> read ANSWER
> echo -n "Loading root-2 initramfs ... "
> cd /initramfs && cat /dev/fd0 | zcat -d | cpio -i
>
Well, for one thing you're command here is somewhat daft; you have a
redundant "cat", and "zcat -d" (which is a tautology). This is probably
the source of your problem: "cat" won't know that the floppy is done, so
it won't close the file.
zcat < /dev/fd0 | cpio -i
... would be better.
-hpa
More information about the klibc
mailing list