文件系统 没有请求的/sbin/init./bin/sh: 0: 无法打开 splash 15.04"

分享于 

4分钟阅读

ubuntu

  繁體

问题

当尝试引导到机器时,引导时抛出以下错误。


Target filesystem doesn't hvae requested /sbin/init.


/bin/sh: 0: Can't open splash


[4.458446] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00


[4.458479] CPU: 1 PID: 1 Comm: sh not tainted 3.13.0-46-generic #79-Ubuntu



机器有三个os:Windows,Centos,Ubuntu-15.04.

fsck的输出如下所示:

$ fsck /dev/sda5
fsck from util-linux 2.25.2
e2fsck 1.42.12 (29-Aug-2014)
/dev/sda5: clean, 885843/1313280 files, 3569836/5242880 blocks.

我也尝试过fsck的-f选项,其输出是:

 
$ fsck /dev/sda5 -f
fsck /dev/sda5 -f
fsck from util-linux 2.25.2
e2fsck 1.42.12 (29-Aug-2014)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sda5: 885843/1313280 files (0.1% non-contiguous), 3569836/5242880 blocks

fdisk -l命令可打印以下消息以及打印设备详细信息。

Partition 5 does not start on physical sector boundary.

我用mount -o ro /dev/sda5 /media/boot 命令,ls -l /media/boot的输出如下所示:

total 116
drwxr-xr-x 2 root root 4096 Jan 26 07:01 bin
drwxr-xr-x 3 root root 4096 Dec 26 07:10 boot
drwxr-xr-x 2 root root 4096 Jan 4 2015 cdrom
drwxr-xr-x 4 root root 4096 Apr 17 2014 dev
drwxr-xr-x 164 root root 12288 Jan 26 07:04 etc
drwxr-xr-x 2 root root 4096 Jan 4 2015 home
lrwxrwxrwx 1 root root 33 Feb 27 2015 initrd.img -> boot/initrd.img-3.13.0-46-generic
lrwxrwxrwx 1 root root 33 Feb 4 2015 initrd.img.old -> boot/initrd.img-3.13.0-45-generic
drwxr-xr-x 25 root root 4096 Jan 26 07:01 lib
drwxr-xr-x 2 root root 4096 Dec 26 06:49 lib32
drwxr-xr-x 2 root root 4096 Dec 26 06:28 lib64
drwx------ 2 root root 16384 Jan 4 2015 lost+found
drwxr-xr-x 3 root root 4096 Jan 4 2015 media
drwxr-xr-x 2 root root 4096 Apr 10 2014 mnt
drwxr-xr-x 6 root root 4096 Oct 2 14:15 opt
drwxr-xr-x 2 root root 4096 Apr 10 2014 proc
drwx------ 11 root root 4096 Jan 26 10:30 root
drwxr-xr-x 12 root root 4096 Apr 17 2014 run
drwxr-xr-x 2 root root 12288 Jan 26 07:03 sbin
drwxr-xr-x 2 root root 4096 Apr 17 2014 srv
drwxr-xr-x 2 root root 4096 Mar 13 2014 sys
drwxrwxrwt 6 root root 4096 Jan 26 22:01 tmp
drwxr-xr-x 11 root root 4096 Oct 2 14:14 usr
drwxr-xr-x 15 root root 4096 Jan 9 02:05 var
lrwxrwxrwx 1 root root 30 Feb 27 2015 vmlinuz -> boot/vmlinuz-3.13.0-46-generic
lrwxrwxrwx 1 root root 30 Feb 4 2015 vmlinuz.old -> boot/vmlinuz-3.13.0-45-generic

怎么修复它?


答案1

在尝试强制关闭时,/sbin/init文件已损坏。

你可以做的是:

  • 使用unetbootIn或启动磁盘创建器
  • 连接到你的电脑启动到USB
  • 选择选项尝试不安装Ubuntu
  • 在这里搜索15.04的安装分区,它可能是/dev/sda1到n。在那里,我们需要完全替换/sbin与源代码的安装/sbin

答案2

我刚刚做了一个可引导的U盘,删除默认的/sbin

请通过root来做,就这么简单!



文件  files  BOO  引导  Ubuntu  CAN