安裝archbang 2011.11經歷

用archbang的livecd啓動進入圖形界面後 點右鍵選擇install
根據提示進行安裝過程簡單 安裝完成重啓  傻眼了報錯
Error 15: File not found
馬上想到可能是grub配置問題 手動執行grub
root (hd0,0)
kernel /vmlinuz  按tab發現竟然沒有linux內核  也沒有initrd.img

於是重新用光盤啓動
mkdir /mnt/boot
mount /dev/sda1 /mnt/boot
cp /bootmng/arch/boot/i686/vmlinuz  /mnt/boot/
cp /bootmng/arch/boot/i686/archiso.img /mnt/boot/

mkdir /mnt/root
mount /dev/sda3  /mnt/root
編輯grub配置文件
vi /mnt/root/boot/grub/menu.lst

kernel  /vmlinuz
initrd  /archiso.img

重啓開始菜單馬上過去了 心想這次沒問題了吧 沒過兩秒又報錯
/dev/disk/by-label  device did not show up
隨後進入 ramfs
沒見過馬上google  半天也沒找到答案  倒是瞭解了一下ramfs 看到了製作initrd.img的方法

於是懷疑可能是 initrd.img的問題

光盤啓動 進行chroot
mkdir /mnt/chroot
mount /dev/sda3 /mnt/chroot/
mount /dev/sda1 /mnt/chroot/boot/
mount -o bind /proc /mnt/chroot/proc
mount -o bind /dev /mnt/chroot/dev
chroot /mnt/chroot /bin/bash

mkinitcpio -g /boot/archiso.img

重新生成了 archiso.img

重啓 哈哈 一切順利



 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章