< Back

硬盘安装Ubuntu

  • 准备镜像

  • 打开镜像,找到casper文件夹,把里面的initrd.lz和vmlinuz.efi复制出来跟镜像放同目录下

  • 打开EasyBCD,按如下来操作,点击安装再点配置

​ 然后就会出现一个menu.lst文件,把以下内容写进menu.lst

title Install Ubuntu root (hd0,6) kernel (hd0,6)/vmlinuz.efi boot=casper iso-scan/filename=/ubuntu-13.10-desktop-i386.iso ro quiet splash locale=zh_CN.UTF-8 initrd (hd0,6)/initrd.lz

上面的(hd0,6)的6表示的是表示镜像的位置,如果是放在C盘就写0,D盘就写4,在E盘就写5,F盘,写6。ubuntu-13.10-desktop-i386.iso 要对应自己的iso的文件名。注意root后面有空格,下面两行也同样,不然会找不到命令

  • 重启。选择 NeoGrub 引导加载器,就可以进入ubuntu
  • 分区

30G的空间,400m的主分区/boot,不少于物理内存的swap分区,比如4个g,10G逻辑分区/分区,剩下的给/home

更新1804后没有网络了

https://askubuntu.com/questions/1021884/no-internet-after-upgrade-from-16-04-to-18-04/1021885#1021885?newreg=3570cfa00cef41729874d3657477464d

if the /etc/resolv.conf is empty but you can ping 8.8.8.8

$ echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null

if the /etc/resolvconf/resolv.conf.d/head is empty then you have to repeat the command above after every restart except you do this:

$ echo "nameserver 8.8.8.8" | sudo tee -a /etc/resolvconf/resolv.conf.d/head > /dev/null

then you have to restart the resolvconf and the networking

$ sudo systemctl enable resolvconf $ sudo systemctl start resolvconf $ sudo /etc/init.d/networking restart

【完美解决】

【英文拯救世界。搜了半天的中文都没有找到办法,最后搜了一句ubuntu1804 no network解决】