Crouton 下的 SD 卡上的 Trusty - 磁盘损坏?

Crouton 下的 SD 卡上的 Trusty - 磁盘损坏?

这个问题只与 Crouton 有关,因为我的 Chromebook 上正在运行 Ubuntu。我在 ext4 格式的 SD 卡上安装了 14.04 和 xfce。

我似乎遇到了各种各样的问题,似乎没有软件包可以正确安装。我尝试安装的软件包之一是 Firefox,尽管按照以下说明运行,但它无法通过软件中心正确gksu software-center安装这个答案。在尝试从命令行安装它时,我收到此输入/输出错误(抱歉粘贴了这么长的内容):

Preparing to unpack .../firefox_37.0.1+build1-0ubuntu0.14.04.1_amd64.deb ...
Unpacking firefox (37.0.1+build1-0ubuntu0.14.04.1) over (37.0.1+build1-0ubuntu0.14.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/firefox_37.0.1+build1-0ubuntu0.14.04.1_amd64.deb (--unpack):
 unable to create `/etc/apport/native-origins.d/firefox.dpkg-new' (while processing `./etc/apport/native-origins.d/firefox'): Input/output error
/bin/df: '/mnt/stateful_partition': No such file or directory
                                                             /bin/df: '/usr/share/oem': No such file or directory
                                 /bin/df: '/home/chronos': No such file or directory
    /bin/df: '/home/.shadow/472855b8f1a7fba3c1a1f1160e3f4f39f8236d43/mount': No such file or directory
                      /bin/df: '/home/chronos/user': No such file or directory
                                                                              /bin/df: '/home/user/472855b8f1a7fba3c1a1f1160e3f4f39f8236d43': No such file or directory
       /bin/df: '/home/chronos/u-472855b8f1a7fba3c1a1f1160e3f4f39f8236d43': No such file or directory
                     /bin/df: '/home/root/472855b8f1a7fba3c1a1f1160e3f4f39f8236d43': No such file or directory
                              /bin/df: '/run/crw': No such file or directory
                                                                            Selecting previously unselected package xul-ext-ubufox.
Preparing to unpack .../xul-ext-ubufox_3.0-0ubuntu0.14.04.1_all.deb ...
Unpacking xul-ext-ubufox (3.0-0ubuntu0.14.04.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/firefox_37.0.1+build1-0ubuntu0.14.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
(trusty)james@localhost:~$ dmesg | tail -30
[10563.225680] EXT4-fs error (device sdb1): ext4_mb_generate_buddy:742: group 464, 22958 clusters in bitmap, 22957 in gd
    (...plus ~25 more of that error...)
[10563.247003] EXT4-fs error (device sdb1): ext4_find_dest_de:1645: inode #133094: block 532849: comm dpkg: bad entry in directory: rec_len is smaller than minimal - offset=0(0), inode=0, rec_len=0, name_len=0
[10563.248966] ecryptfs_do_create: Failure to create dentry in lower fs; rc = [-5]
[10563.248979] ecryptfs_create: Failed to create file inlower filesystem
[10564.825928] EXT4-fs error (device sdb1): ext4_mb_generate_buddy:742: group 16, 24208 clusters in bitmap, 24197 in gd
[10567.444090] EXT4-fs error (device sdb1): ext4_mb_generate_buddy:742: group 387, 17420 clusters in bitmap, 18620 in gd
(trusty)james@localhost:~$ 

底部的输出dmesg这个答案,说明肯定存在文件IO错误。sdb是我的SD卡。

我的问题是:这个问题似乎与我的安装在 SD 卡上有关吗?如果这是文件 IO 的问题,那么它也可能有助于解释我遇到的其他软件包问题,例如dpkg: error: parsing file '/var/lib/dpkg/available' near line 0:损坏的文件(充满垃圾)等等files list file for package '(package name)' is missing final newline。直接在我的 SSD 上安装 Trusty 是否有助于解决这些问题?

答案1

更新,大约 10 天后:我在 Chromebook 的内置 SSD 上直接在 Crouton 下重新安装了 Trusty,之后再也没有出现任何问题。我认为上述问题与计算机进入睡眠状态后 Crouton 恢复的问题有关(请参阅问题 #288)。也可能是由于意外移除 SD 卡而未正确弹出它造成的。

相关内容