歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> wubi安裝Ubuntu後無法進入系統

wubi安裝Ubuntu後無法進入系統

日期:2017/2/28 16:01:42   编辑:Linux教程

利用wubi硬盤安裝Ubuntu後無法進入系統,百度了許多方法,經測試以下方法可行:

  1. grub>ls
  2. grub>ls (hd0,x)/ #找出WUBI安裝的盤,裡面有ubuntu/這個目錄,
  3. grub>insmod ntfs #加載ntfs模塊,因為WUBI將ubuntu安裝到了我分的ntfs盤上
  4. grub>set root=(hd0,5) #這裡(hd0,5)就是我找到的ubuntu安裝的分區
  5. grub>ls $Boot #找到我們BOOT分區的UUID,下一步要用到,我這裡顯示出來的是2250018e50016a3d
  6. grub>search --no-floppy --fs-uuid --set 2250018e50016a3d #這裡的UUID就是上一定找出來的那個
  7. grub>loopback loop0 /ubuntu/disks/root.disk #設loop0,WUBI裝ubuntu安裝成了一個root.disk文件
  8. grub>set root=(loop0) #重設root
  9. grub>linux /boot/vmlinuzxxxxxxxxx (tab補全即可) root=/dev/sda5 loop=/ubuntu/disks/root.disk ro quiet splash #加載內核,這裡的5根據實際情況填寫
  10. grub>initrd /boot/initrd.imgxxxxxxxxxxxx(tab 補全即可) #不用說大家都知道
  11. gurb>boot

ENTER就可以啟動了。進入熟悉的系統,打開終端
  1. #update-grub2
  2. #reboot
這樣grub就修復好了
Copyright © Linux教程網 All Rights Reserved