安装新内核后出现启动错误

安装新内核后出现启动错误

我已经编译并安装了新的 Linux 内核,在尝试启动它时出现错误,错误;
1. mount.ntfs:加载共享库时出错:libfuse.so.2 无法打开共享对象文件
2. 无法挂载分区 /dev/disk/by-UUID/C0C8F4B0C8F4A5B6 ....(文件系统 ntfs,错误代码 = 127)

我已经使用命令更新了 grub更新 grub我的根文件系统似乎是/主机/ubuntu/磁盘/root.disk在 fstab 文件中。但是当我执行命令安装 -l我明白了/dev/root0作为根文件系统。我应该如何配置 grub 配置文件?第一个错误是什么?它与第二个错误有关吗?谢谢您的回答

/etc/fstab 文件;

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/host/ubuntu/disks/root.disk /               ext3    loop,errors=remount-ro 0       1
/host/ubuntu/disks/boot /boot           none    bind            0       0
/host/ubuntu/disks/swap.disk none            swap    loop,sw         0       0
/dev/sda2 /mnt/windows ntfs defaults 0 0
/dev/sda4 /mnt/backUp ntfs defaults 0 0

输出安装 -l

root@ubuntu:/# mount -l
/dev/loop0 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
/dev/sda3 on /host type fuseblk (rw) [Xubuntu]
/host/ubuntu/disks/boot on /boot type none (rw,bind)
/dev/sda2 on /mnt/windows type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096) [Sony Vaio]
/dev/sda4 on /mnt/backUp type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096) [Back Up]

/boot/gurb/菜单.lst

## ## End Default Options ##

title  Ubuntu 9.10, kernel 2.6.31.12
root  ()/ubuntu/disks
kernel  /boot/vmlinuz-2.6.31.12 root=UUID=C0C8F4B0C8F4A5B6 loop=/ubuntu/disks/root.disk ro quiet splash
initrd  /boot/initrd.img-2.6.31.12

title  Ubuntu 9.10, kernel 2.6.31.12 (recovery mode)
root  ()/ubuntu/disks
kernel  /boot/vmlinuz-2.6.31.12 root=UUID=C0C8F4B0C8F4A5B6 loop=/ubuntu/disks/root.disk ro  single
initrd  /boot/initrd.img-2.6.31.12

title  Ubuntu 9.10, kernel 2.6.31-22-generic
root  ()/ubuntu/disks
kernel  /boot/vmlinuz-2.6.31-22-generic root=UUID=C0C8F4B0C8F4A5B6 loop=/ubuntu/disks/root.disk ro quiet splash 
initrd  /boot/initrd.img-2.6.31-22-generic

title  Ubuntu 9.10, kernel 2.6.31-22-generic (recovery mode)
root  ()/ubuntu/disks
kernel  /boot/vmlinuz-2.6.31-22-generic root=UUID=C0C8F4B0C8F4A5B6 loop=/ubuntu/disks/root.disk ro  single
initrd  /boot/initrd.img-2.6.31-22-generic

title  Ubuntu 9.10, kernel 2.6.28-16-generic
root  ()/ubuntu/disks
kernel  /boot/vmlinuz-2.6.28-16-generic root=UUID=C0C8F4B0C8F4A5B6 loop=/ubuntu/disks/root.disk ro quiet splash 
initrd  /boot/initrd.img-2.6.28-16-generic

title  Ubuntu 9.10, kernel 2.6.28-16-generic (recovery mode)
root  ()/ubuntu/disks
kernel  /boot/vmlinuz-2.6.28-16-generic root=UUID=C0C8F4B0C8F4A5B6 loop=/ubuntu/disks/root.disk ro  single
initrd  /boot/initrd.img-2.6.28-16-generic

title  Ubuntu 9.10, kernel 2.6.28-11-generic
root  ()/ubuntu/disks
kernel  /boot/vmlinuz-2.6.28-11-generic root=UUID=C0C8F4B0C8F4A5B6 loop=/ubuntu/disks/root.disk ro quiet splash 
initrd  /boot/initrd.img-2.6.28-11-generic

title  Ubuntu 9.10, kernel 2.6.28-11-generic (recovery mode)
root  ()/ubuntu/disks
kernel  /boot/vmlinuz-2.6.28-11-generic root=UUID=C0C8F4B0C8F4A5B6 loop=/ubuntu/disks/root.disk ro  single
initrd  /boot/initrd.img-2.6.28-11-generic

title  Ubuntu 9.10, memtest86+
root  ()/ubuntu/disks
kernel  /boot/memtest86+.bin

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title  Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title  Windows Vista (loader)
rootnoverify (hd0,0)
savedefault
chainloader +1

答案1

所以在我看来,你的 Ubuntu 安装在 NTFS 驱动器上,并且 libfuse 不知何故损坏了。

您需要做的是启动 Ubuntu CD 或类似的东西,然后 chroot 到磁盘上的安装。这有望让您重新安装 fuse,它是允许您安装 NTFS 格式驱动器的库。

Chrooting 大致可以像这样完成:

  1. 启动 Ubuntu Live CD
  2. 安装您的设备并记下安装点
  3. 使用 -o bind 选项将 dev、proc 和 sys 挂载到上面的挂载点

    例如:mount -o bind /dev /media/ntfs/dev

  4. 现在 chroot 到您已挂载的 Ubuntu 安装:

    例如:chroot /media/ntfs /bin/bash

  5. 重新安装 libfuse 和 fuse
  6. 重新启动并查看是否有帮助,希望有帮助。

这就是我的方法,它可能对你有用。

相关内容