Ubuntu 下通过修改/etc/grub.d/40_custom 文件硬盘安装debian8
来源:互联网 发布:达内培训 京构北京php 编辑:程序博客网 时间:2024/05/17 05:01
在使用过Ubuntu一段时间之后,有点不满足,尝试逼格更高的debian
自己U盘出了问题,只能用硬盘安装,参考了:http://blog.sina.com.cn/s/blog_540a7a590101gzi7.html
1. sudo vim /etc/grub.d/40_custom
2. 在注释后面添加:
menuentry "debian-8.8.0-amd64-DVD-1.iso" { insmod ext2 set isofile="(hd1,2)/debianCD/debian-8.8.0-amd64-DVD-1.iso" loopback loop $isofile linux (hd1,2)/debianCD/hdmedia8.8.0/vmlinuz iso-scan/filename=$isofile noeject nopromt -- initrd (hd1,2)/debianCD/hdmedia8.8.0/initrd.gz}
- 注意这里的(hd1,2)是自己放置的镜像的位置,home分区比较合适(后面安装的时候不能将这个分区格式化);
- vmlinuz, 和initrd.gz文件不是镜像里边解压出来的文件,debian官网在hd-media文件夹下提供的vmlinuz和initrd.gz(路径一般是:dists/Debian8.8/main/installer-amd64/current/images/hd-media/),我这里是中科大的镜像站
http://mirrors.ustc.edu.cn/debian/dists/Debian8.8/main/installer-amd64/current/images/hd-media/- 确认无误之后保存退出。
- sudo update-grub
就是重新生成GRUB的启动菜单配置文件(/boot/grub/grub.cfg)
以上步骤完成了在启动菜单添加镜像的引导debian-8.8.0-amd64-DVD-1.iso,这样开机就能选择。 - 重启,开机的时候不断按shift键进入grub菜单,后面是debian的安装过程,这里就不讲了网上自行百度。
遗留问题:我这样能进入安装界面,但是后面会提示镜像没有挂载,希望成功的朋友给我留言。
建议还是u盘安装,这样简单方便
个人博客即将搭建完成,请移步http://codeyourlife.cn/
阅读全文
1 0
- Ubuntu 下通过修改/etc/grub.d/40_custom 文件硬盘安装debian8
- ubuntu 修改/etc/fstab文件,取消ubuntu开机硬盘自检
- ubuntu下grub启动硬盘iso安装ubuntu
- 通过硬盘iso文件安装ubuntu
- Ubuntu 开机引导文件 /etc/default/grub
- Ubuntu 14.04 /etc/default/grub文件
- 通过硬盘安装ubuntu
- windows下利用grub硬盘安装linux
- windows下利用grub硬盘安装linux
- /etc/default/grub文件
- xp下硬盘安装windows7记录(grub引导xp,leopard、ubuntu、windows7)
- Windows 7下通过硬盘安装Ubuntu 15.04图文教程
- Learn GRUB2 (/etc/grub.d/*)
- Ubuntu 12.04LTS 系统 /etc/default/grub文件详解
- debian8.4下安装Snort处理tcpdump文件技术细节
- 嵌入式 Ubuntu下修改grub菜单
- Ubuntu下grub启动引导修改
- ubuntu6.10下竟然没有/etc/grub.conf文件
- 【7.1】c++ primer plus 课后编程答案
- 什么是DML与DDL
- 基于Scrapy爬取知乎信息
- Java框架集合:Collection<E>、Iterable<T>和Iterator<E>接口
- 第一次写博客
- Ubuntu 下通过修改/etc/grub.d/40_custom 文件硬盘安装debian8
- HCA卡的Port GUID 和ib0的关系
- js对象声明方式
- hihocoder 1305 区间求差 经典思维+技巧
- 两数组的交Ⅱ
- 【7.3】c++ primer plus 课后编程答案
- R包的安装教程以及myeclipse对R包的调用
- OKHttp(一)入门
- 【7.5】c++ primer plus 课后编程答案