or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing
xxxxxxxxxx
如何
在外接式儲存裝置中
安裝可保留作業狀態的 Ubuntu 作業系統
https://hackmd.io/@brlin/portable-ubuntu-howto
尚未完成,歡迎分身伐樹
「感恩HackMD!讚嘆HackMD!」
這是一個基於Markdown的HackMD簡報
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →歡迎於授權範圍內自由使用本作品
點此查看本簡報的來源碼
免責聲明
基本知識
快閃記憶體儲存裝置的
可用性問題
快閃記憶體儲存裝置的
效笑能問題因為要 costdown 騙你以為你買到好東西
快閃記憶體儲存裝置的
分區對齊問題
快閃記憶體儲存裝置的
分區對齊問題
產品選購參考
強烈主觀意見,僅供參考
爛爛的便宜貨- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →老實
但是還是一樣爛爛的便宜貨- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →國防布
(包裝上完全看不出來,碰運氣)
好的好野人- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →不過CP值都比不上
目標
免責聲明
好便宜的需要什麼工具
Ubiquity 作業系統安裝程式
安裝媒體 Live 系統 + Persistence
還在學QAQ
Debootstrap
土法煉鋼桌面環境選擇
儲存空間分區
Partitioning
檔案系統選用
檔案系統選用
分區參考1(EXT2)
分區參考2(F2FS)
檔案系統初始化
Debootstrap安裝基本系統
把其他檔案系統掛載在正確的位置
變更根目錄(chroot)以取得該系統的 Root Shell
自訂主機名稱
由於是異機可用系統所以沒「主機」名稱可設,選個自己好記的吧:
主機名稱→網路地址映射設定也要新增對應的項目:
參考資料
WORKAROUND
修正 APT 軟體來源清單
Debootstrap 預設給的軟體來源清單是不完整的,弄一個相對完整的給它
全系統升級
由於使用的 suite 是 xenial 而非 xenial-updates 故需要如此
初始化語系設定
安裝 Linux 作業系統核心
基本系統預設是沒有作業系統核心的(因為某些情境其實不需要)
這邊直接安裝簽好 SecureBoot 的版本(-signed)
安裝 GRUB 開機載入程式
(舊式PC開機支援)
一樣,基本系統預設是沒有開機載入程式(bootloader)的(因為某些情境不需要),這個步驟實際上已在上個步驟進行
停用 GRUB 其他系統開機選單自動產生
新式PC開機支援
(含Secureboot簽章)
新式PC開機支援
(含Secureboot簽章)
WORKAROUND
修正 GRUB 沒有將 root 核心參數設定為 UUID 的問題
WORKAROUND
強制作業系統核心以文字模式啟動
在部份的硬體配置下早期的開機訊息將無法顯示在螢幕上,此法可以迴避此問題
撰寫檔案系統掛載設定
(/etc/fstab)
參閱 fstab(5) 的 manpage 使用手冊頁面
撰寫檔案系統掛載設定
(/etc/fstab)
vfat
,且 options 須填入utf8=1
以支援 Unicode 檔名安裝 F2FS 的使用者空間工具以讓 F2FS 檔案系統在開機時可以被檢查
將 F2FS 檔案系統驅動核心模組打包入作業系統初始化時期運行記憶體檔案系統(initramfs)中
這樣系統才能成功掛載根目錄檔案系統
注意:理論上應該要自動包入才對,可能是個軟體缺陷
將 F2FS 檔案系統驅動核心模組打包入作業系統初始化時期運行記憶體檔案系統(initramfs)中
WORKAROUND
迴避F2FS沒有依賴crc32模組的問題
Linux作業系統核心第187471號軟體缺陷
(選用)加快F2FS乾淨檔案系統的檢查速度
如果開機的時候一直卡在呼叫 fsck.f2fs 的話可以將
fastboot
參數加入 Linux 作業系統核心參數列中新增一般使用者帳號
記得給他 sudo 的使用權限
安裝 Xubuntu 桌面版
注意:如果設定軟體途中在 blueman 軟體包發生錯誤,此為 blueman 軟體包打包的已知缺陷:#878814 - fails to install in a chroot - Debian Bug report logs
搞定收工!
參考資料
快閃記憶體基本知識方面
參考資料
開機相關
參考資料
系統設定
參考資料
其他