跳到主要內容

發表文章

目前顯示的是 1月, 2009的文章

Initrd

現在的Fedora都有用到initrd來開機, 如果想研究看看裡面的機制, 可以將之解開來看看. cpio format mkdir temp ; cd temp cp /boot/initrd-2.6.14.2.img initrd-2.6.14.2.img.gz gunzip initrd-2.6.14.2.img.gz cpio -i --make-directories < initrd-2.6.14.2.img non-cpio format mkdir temp ; cd temp cp /boot/initrd.img.gz . gunzip initrd.img.gz mount -t ext -o loop initrd.img /mnt/initrd ls -la /mnt/initrd Tools mkinitrd; packagename -- mkinitrd References: http://www-128.ibm.com/developerworks/linux/library/l-initrd.html

Linux 下看硬體規格的工具

lshw is a small tool to extract detailed information on the hardware configuration of the machine. yum install -y lshw 有GUI版 yum install -y lshw-gui 其它相關工具: lspci, lsusb, and lshal