Navigation : Top/Linux/Ubuntu/ブートしない
* grubが壊れた場合 [#d61871cc]
** 手順 [#ge141829]
boot-repairを使う
+ USBでboot
+ boot-repairで修復
++ sudo add-apt-repository ppa:yannubuntu/boot-repair
++ sudo apt-get update
++ sudo apt-get install -y boot-repair
++ boot-repair
+ check
-- /media/XXX
+ reboot

** Link [#o948e747]
- http://kledgeb.blogspot.jp/2013/11/ubuntu-boot-repair-1-os.html
- http://tylerhandstone.hateblo.jp/entry/2014/05/06/182839


* kernelを消した場合 [#o77c998e]
** 手順 [#b2a68940]
+ Ubuntu Server 14.XX をCDで起動
+ "Rescue a broken system"を選択
+ 修復したいOSのパーテーションの選択
+ boot partitionの分割を聞かれる
-- No (前の状態を踏まえる)
+ "Excute a shell in /dev/ubuntu-vg/root"を選択
+ コマンドラインが表示される
+ resolv.confを作成
++ mkdir /run/resolvconf/
++ echo nameserver 8.8.8.8 > /run/resolvconf/resolv.conf
+ kernelインストール
++ apt-get update
++ apt-get install linux-image-generic lvm2
+ reboot
+ boot-repairでgrubを修復
+ reboot









** Link [#e30c8254]
- http://qiita.com/EmEpsilon/items/691fc5d86c40d5c83cfa