好像没grub 怎么解决 |
网友回复:
注册: /boot/efi/centos
hsorg: 这是啥
PSBC: /boot/efi/EFI/centos/grub.cfg cd进去看看再问,当个小白还不爱动手,明显是个目录
hsorg: 我是太白金星
PSBC: set pager=1 if [ -s $prefix/grubenv ]; then load_env fi if [ “${next_entry}” ] ; then set default=”${next_entry}” set next_entry= save_env next_entry set boot_once=true else set default=”${saved_entry}” fi if [ x”${feature_menuentry_id}” = xy ]; then menuentry_id_option=”–id” else menuentry_id_option=”” fi export menuentry_id_option if [ “${prev_saved_entry}” ]; then set saved_entry=”${prev_saved_entry}” save_env saved_entry set prev_saved_entry= save_env prev_saved_entry set boot_once=true fi function savedefault { if [ -z “${boot_once}” ]; then saved_entry=”${chosen}” “/boot/efi/EFI/centos/grub.cfg” 157L, 6056C
大侠饶命: 兄弟,这是grub引导文件 yum -y install wget vim lsof net-tools cat << EOF >/boot/Reinstall.sh #!/bin/bash rm -rf /boot/initrd77.img /boot/vmlinuz77 wget -P /boot/ http://vault.centos.org/7.2.1511/os/x86_64/images/pxeboot/initrd.img -O /boot/initrd77.img wget -P /boot/ http://vault.centos.org/7.2.1511/os/x86_64/images/pxeboot/vmlinuz -O /boot/vmlinuz77 cat << EOFEOF>/etc/grub.d/40_custom #!/bin/sh exec tail -n +3 \\\$0 # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the ‘exec tail’ line above. menuentry “VNCInstallCentos7” { set root='(hd0,gpt3)’ linuxefi /boot/vmlinuz77 inst.vnc inst.vncpassword=12345678 inst.headless ip=dhcp nameserver=114.114.114.114 inst.repo=http://vault.centos.org/7.2.1511/os/x86_64/ inst.lang=en_US inst.keymap=us initrdefi /boot/initrd77.img } EOFEOF #sed -i ‘s/GRUB_DEFAULT=saved/g’ /etc/default/grub grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg grub2-reboot VNCInstallCentos7 reboot EOF bash /boot/Reinstall.sh复制代码 执行完等待5-10分钟 打开vnc客户端输入ip:1,要是提示要密码,自己在代码中查找
hsorg: 确定可用吧 不会dd死掉了吧
PSBC: 这个是自己安装,。要用到vnc客户端,执行了没有客户端,等有了自己根据vnc内容点下一步就行
hsorg: 大佬试过这个没有 在甲骨文上
注册: 甲骨文你开了台CENTOS已然半残多一点。就别折腾了,不然迟早删鸡。开的时候就要开UBUNTU啊
注册: 马克
xiaobei206: 甲骨文老老实实 ubuntu16.04
…沧ネ月ザ: 我试过在甲骨文上d本机d centos,不可行,还是用挂载的方法吧,或者是强制刷Windows,centos唯一强刷Windows成功过。
wangwei8828: centos7我是让它每天早上7点自动reboot一次,一直用得很好
寒夜方舟: 害dd呢 各种失联开不了机的还少么