不用工具解决VM下安装kali-linux到U盘出现not init found.Try passing init=option to kernel,然后后卡在initramfs:
2017-04-14 18:17
901 查看
不用工具解决VM下安装kali-linux到U盘出现not init found.Try passing init=option to kernel,然后后卡在initramfs:
#问题原因,grub安装路径出错#VM中安装GRUB时U盘为唯一的,默认为sda、而实际电脑电脑的环境下原来的磁盘会默认为第一块盘,即启动时U盘路径不再是sda,比如我的是在sdc。
#所以修改好grub路径就可以进入系统,在系统中要将grub安装到u盘的正确路径下
###小白文###欢迎指导###
1—确定硬盘
(initramfs)也是个精简的系统,可以执行一定命令------用blkid可以查看硬盘信息,藉此查看我们的U盘究竟是哪一个
安装kali主分区格式是ext4,可以看到,sdc1就是我们的u盘主区。简单记一下然后退出,这个模式下reboot和exit都是没有用的,直接关主机强制关机。
2-修改grub挂载路径
在进入kali的界面,最下面可以看到一串英文功能介绍,e是编辑命令,按c是grub命令行按e------出现的是grub.cfg,可以修改挂载路径然后引导进入系统
找到有“初始化内存盘....”字样的地方,找到有一行linux后面有............./dev/sda1 ro(或者hda“IDE接口”)的地方,将sda修改成我们的U盘主区我是sdc1.把ro也修改成rw吧!然后按F10引导启动就可以进入kali的gnome开始登陆root进入系统。
/
/
/进入系统后必须将grub安装到U盘正确路径才行,否则必须每次登陆每次修改!
/进入后打开终端
/输入
# grub-install /dev/sdc #把grub安装到你的u盘,是U盘不是主区sdc后面没数字
#update-grub #更新下grub.cfg
#cat /boot/mnt/grub.cfg #查看下linux是否挂载在sdc1下,现在很可能显示的是UUID,可以用blkid命令查看对比下
#确认挂载正确后
#sync #确保写入
#reboot
等待重启:此时应该没问题了,grub是一个允许多系统的引导器如果成功在启动选择kali系统的界面下面应该会出现电脑原来的系统的选项
###小白文###欢迎指导###
###小白文###欢迎指导###
###小白文###欢迎指导###
相关文章推荐
- Kernel panic - not syncing: No init found. Try passing init= option to kernel. See Linux ...
- 对于Kernel panic - not syncing: No init found. Try passing init= option to kernel.出错的一点总结!
- 用Nand flash出现:Kernel panic - not syncing: No init found. Try passing init= option to kerne
- Kernel panic - not syncing: No init found. Try passing init= option to kernel
- 解决kali linux 2.0(2016.01)的安装内核头部出现错误:E: Unable to locate package linux-headers-4.3.0-kali1-amd64
- centos6.6_64位操作系统安装时候出现kernel panic - not syncing: Attempted to kill init 解决办法
- U盘安装ubuntu 10.10,出现错误:Could not find kernel image 的解决办法
- 在fedora14下安装vmware 7.1.4 build-385536 出现C header files matching your running kernel were not found. 错误
- 解决 Virtual Box 安装 xp 时出现的 `Sector not found reading drive A`
- Linux下安装oracle数据库提示DISPLAY not set. Please set the DISPLAY and try again.解决方法
- VMWare安装64位CentOS6.3出现Unable to boot - please use a kernel appropriate for your CPU.解决方法
- 安装vmware-tool出现the path""is not a valid path to the 3.4.6-2.10-desktop kernel headers
- linux安装weblogic报错: End-of-central-directory signature not found.Error during init, error code = 2
- 安装交叉编译工具,执行arm-linux-gcc –v命令出现提示找不到该文件或目录?解决方法
- 安装交叉编译工具,执行arm-linux-gcc –v命令出现提示找不到该文件或目录?解决方法(转)
- CentOS 6.2 二进制安装apache2.4.3出现configure: error: APR-util not found. Please read the documentation的解决方
- opencv2.1移植arm 出现找不到libcv.so not found (try using -rpath or -rpath-link) 及大量 undefined reference的解决
- mysql连接linux系统提示“登录出现1130 is not allowed to connect to this MySql server”问题,解决方法
- 安装IIS时出现The specified module could not be found图示解决方法