linux流言終結者 [論壇 - 新手村]


正在瀏覽:   1 名遊客


 到底部   前一個主題   下一個主題  [無發表權] 請登錄或者註冊

« 1 (2)


回覆: linux流言終結者
管理員
註冊日期:
2011/3/11 6:32
所屬群組:
討論區管理群
等級: 44
HP : 216 / 1084
MP : 1088 / 39786
EXP: 38
離線
夢見草 寫到:
若是象 Lawliet 那麼肯定的說,不是因為UUID造成的換機後無法開機的原因,那麼他影片中無法關機的原因是會什麼呢?

有可能是 initramfs 缺少該磁碟控制器的驅動,所以抓不到含有該 UUID 檔案系統的硬碟

作業系統有可能只會把安裝時那台的驅動包進去,但是其他的驅動就不一定了

2016/6/23 15:29
本篇發表文章以「創用CC BY 3.0 或更新之台灣地區版本」授權條款釋出,如何使用敬請參考
 Creative Commons — 姓名標示 3.0 台灣 — CC BY 3.0 TW
 http://creativecommons.org/licenses/by/3.0/tw/

「你不懂的東西就不要亂講,被懂得人看破手腳就算了,騙不懂的人誤導別人,還要別人把你當成大師,這就真的是說不過去了。」
 by Allen Own
 出處 http://www.plurk.com/p/i4uogm

自由知識創作平台介紹
 https://docs.google.com/document/d/1MGG6lW_0qCgH4U785R-IwSc_INdoBGej1l-JxiA4gPE
如何建立新的自由知識創作平台文件
 https://docs.google.com/document/d/11NdzOW2lGYksfyQIcPMPye5tlmj1J0QTkgPTmQvIvKA
應用擴展 工具箱
回覆: linux流言終結者
會員四級
註冊日期:
2015/9/29 21:19
所屬群組:
已註冊使用者
等級: 16
HP : 0 / 380
MP : 100 / 8898
EXP: 22
離線
夢見草 寫到:
他影片中講的第4點關於UUID的問題,我也有些疑問。
我的印象中,好象也曾做過換系紌硬碟的事....但那是好幾年前的事了,細節全忘了。

若是象 Lawliet 那麼肯定的說,不是因為UUID造成的換機後無法開機的原因,那麼他影片中無法關機的原因是會什麼呢?



以前我裝 arch linux 的時候, 把桌機裝好製作 squashfs 後, 還原到筆電,重建fstab 跟 grub 選單之後.

一樣開機有引導選單, 但是啟動後跟它一樣卡住, 出現 [rootfs /] # 的訊息.

這種狀況用 livecd 掛載目標系統 chroot 執行 # mkinitcpio -p linux
重建 initramfs 就好了.

如果 debian 或 ubuntu 出現一樣的問題.
重建 Initramfs 指令為:
# update-initramfs -u

# rm /boot/initrd.img-*
# update-initramfs -c -k $(uname -r)

影片說的uuid問題應該是正確的.
initramfs裡面也有一組uuid
可以拿手邊的 linux mint 或 ubuntu 官方發行版做實驗
把 livecd 的 initrd.lz 解開
14.04 是放在 rootfs/conf/uuid.conf
16.04之後我不知道它uuid放哪裡
uuid.conf 會跟光碟目錄的 .disk/live-uuid-generic 比對uuid
如果不正確或者 .disk/live-uuid-generic 遺失
一樣會出現跟影片一樣得訊息.
live 的 initrd uuid 是這樣比對的
安裝在硬碟的 initrd 怎麼比對 uuid 沒研究.

只知道重建 initramfs 就好了.

2016/6/23 17:17
應用擴展 工具箱
回覆: linux流言終結者
管理員
註冊日期:
2011/3/11 6:32
所屬群組:
討論區管理群
等級: 44
HP : 216 / 1084
MP : 1088 / 39786
EXP: 38
離線
#
# initramfs.conf
# Configuration file for mkinitramfs(8). See initramfs.conf(5).
#
# Note that configuration options from this file can be overridden
# by config files in the /etc/initramfs-tools/conf.d directory.

#
# MODULES: [ most | netboot | dep | list ]
#
# most - Add most filesystem and all harddrive drivers.
#
# dep - Try and guess which modules to load.
#
# netboot - Add the base modules, network modules, but skip block devices.
#
# list - Only include modules from the 'additional modules' list
#

MODULES=most

2016/6/23 18:42
本篇發表文章以「創用CC BY 3.0 或更新之台灣地區版本」授權條款釋出,如何使用敬請參考
 Creative Commons — 姓名標示 3.0 台灣 — CC BY 3.0 TW
 http://creativecommons.org/licenses/by/3.0/tw/

「你不懂的東西就不要亂講,被懂得人看破手腳就算了,騙不懂的人誤導別人,還要別人把你當成大師,這就真的是說不過去了。」
 by Allen Own
 出處 http://www.plurk.com/p/i4uogm

自由知識創作平台介紹
 https://docs.google.com/document/d/1MGG6lW_0qCgH4U785R-IwSc_INdoBGej1l-JxiA4gPE
如何建立新的自由知識創作平台文件
 https://docs.google.com/document/d/11NdzOW2lGYksfyQIcPMPye5tlmj1J0QTkgPTmQvIvKA
應用擴展 工具箱
回覆: linux流言終結者
會員四級
註冊日期:
2015/9/29 21:19
所屬群組:
已註冊使用者
等級: 16
HP : 0 / 380
MP : 100 / 8898
EXP: 22
離線
V字龍 寫到:
#
# initramfs.conf
# Configuration file for mkinitramfs(8). See initramfs.conf(5).
#
# Note that configuration options from this file can be overridden
# by config files in the /etc/initramfs-tools/conf.d directory.

#
# MODULES: [ most | netboot | dep | list ]
#
# most - Add most filesystem and all harddrive drivers.
#
# dep - Try and guess which modules to load.
#
# netboot - Add the base modules, network modules, but skip block devices.
#
# list - Only include modules from the 'additional modules' list
#

MODULES=most


「五本兔」跟「戴維安」發行版, 目前我只在USBLive的狀態碰過uuid問題.
跨機器還原在硬碟, 我是還沒試過.

live boot 的 initramfs 跟 HD boot 的 initramfs 基本上製程不一樣

不知道你所要說的是不是載入most模組就不會 [rootfs /] 卡住

影片中的案例是 arch linux 這個uuid問題我有碰過.

就我所知 arch linux 沒有 most 模組這個東西

2016/6/23 19:49
應用擴展 工具箱

« 1 (2)

 [無發表權] 請登錄或者註冊


可以查看帖子.
不可發帖.
不可回覆.
不可編輯自己的帖子.
不可刪除自己的帖子.
不可發起投票調查.
不可在投票調查中投票.
不可上傳附件.
不可不經審核直接發帖.