2011-12-29 聚會手記

上一週 || 下一週

Table of Contents

Mat

mount —move $old $new 跟 mount —bind $old $new 不一樣。
用 mount —move $old $new 執行完之後, $old 就會消掉,只留 $new
而 mount —bind $old $new 的話,$old 跟 $new 都會同時存在,並指到相同內容
initrd 開機,切換 root 的機制主要有兩個:

pivot_root ( new )

若開機參數有 root=/dev/ram0

1. 將 initrd image 掛成 rootfs

2. 執行 /sbin/init

3. 掛上將要切過去的 rootfs

4. 用 pivot_root 將 rootfs 切過去

5. 執行 /sbin/init

6. 移除 initrd image

change_root ( deprecated )

若開機參數沒有 root=/dev/ram0

進到 initrd 後,會執行 /linuxrc 而不是 /sbin/init

initrd 的格式也分兩種:

1. 傳統的 initrd

用 ext2 的分割區 image + gzip 來製作

2. 新的 initramfs ( 現在的主流 )

用 gzip + cpio 來製作

Kanru

Emacs diff-mode hack

Kindle Fire

Amazon Kindle Fire Software Update

http://www.amazon.com/gp/help/customer/display.html?nodeId=200790620#download

Tips & Tricks About To Kindle Fire Stock ROM Installation

http://www.androidegis.com/how-to/tips-tricks-about-to-kindle-fire-stock-rom-installation/

除非特別註明,本頁內容採用以下授權方式: Creative Commons Attribution-ShareAlike 3.0 License