從 PCMCIA disk 開機
Niels Elgaard Larsen 做了一個很有趣的嘗試,修改 pcmcia-cs 讓 PCMCIA disk 可用來開機,詳情可參閱 [
Booting from PCMCIA disks]。
注意 Niels 的作法,很值得參考:
The pcmcia-cs project has a pcinitrd script that creates an initrd ram disk image for booting with the root file-system on a PCMCIA device. But is it too big for a floppy disk. It is about 2.5 MByte not including the linux kernel.
Instead I modified the cardmgr.c program from the pcmcia-package to remove unnecessary code, mount /proc, mount a tmpfs drive, set up the card in the first PCMCIA-slot, do a pivot_root() to the new root fs. This is the only program on the initrd. There is not shell. The result is an 212KByte initrd leaving space for even a fat 2.6 kernel.
由 jserv 發表於 March 1, 2005 02:08 AM