AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1295737
Accepted
Potatoes
Potatoes
Asked: 2020-11-28 10:11:06 +0800 CST2020-11-28 10:11:06 +0800 CST 2020-11-28 10:11:06 +0800 CST

只读文件系统 (/dev/sda7) 并启动到 intrafms。(Windows 10 双启动)

  • 772

每当我尝试启动 Ubuntu 时,我都会收到Intrafms提示。我发现我可以使用 修复它 fsck /dev/sda7,对所有故障排除提示说“是”,然后在完成后使用exit. 大多数情况下,这往往会让我进入 Ubuntu。但是有时我会收到多条错误消息,说 {file} 不可写​​,请联系您的管理员了解详细信息,当我尝试启动 Discord 时(Discord 已成为我的文件系统程序的“金丝雀”,因为它喜欢编写临时目录)终端回应说它无法创建必要的目录,因为 /dev/sda7 是只读的。


我试过的

  1. 启动进入恢复模式。 当我启动到恢复模式时,我首先遇到intrafms提示,/dev/sda7 contains a filesystem with errors. preforming check /dev/sda7 |=========> | 25% complete 然后当它完成检查时,它告诉我 /de/sda7 需要手动 fsck。然后我继续,就好像我正在启动进入正常模式一样。然后我遇到了一个典型的恢复模式屏幕,它经常告诉我我的文件系统是只读的。幸运的是,我可以使用恢复菜单中的检查文件系统工具以读/写方式挂载 /dev/sda7。然后我继续启动,但是当我重新启动以获取完整的图形驱动程序时,我又回到了开始的地方
  2. 使用磁盘实用程序。我曾尝试查看 Ubuntu 中的磁盘工具,结果如下:
Model: TOSHIBA MQ04ABF100 (JU001C)
Size: 1.0 TB (1,000,204,886,016 bytes)
Partitioning: GUID Partition Table
Serial Number: 6827CUSFT
Assessment: Disk is OK, 4264 bad sectors (35° C / 95° F)

它还告诉我 /dev/sda7 正在使用ext4 (Version 1.0),并且我还有一个未使用的 225GB 分区 (/dev/sda6)。

当我尝试新的修复或获取新的重要信息时,我会更新这个问题。

编辑 1:即使其他程序正在运行,我也会反复收到以下通知:

Configuration file "/home/asher/.config/kio_httprc" not writable.
Please contact your system administrator.
Configuration file "/home/potatoes/.config/kded5rc" not writable.
Please contact your system administrator.

我还做了拼写和语法检查

编辑 2:在正常的 Ubuntu 中一段时间​​后,文件系统恢复为只读。我不知道为什么会这样。

编辑 3:

SMART测试结果:

这是输出 grep -i FPDMA /var/log/syslog*

Binary file /var/log/syslog matches
/var/log/syslog.1:Nov 22 11:22:37 asher-HP-Pavilion-x360-Convertible-14-ba1xx kernel: [33451.806034] ata3.00: failed command: READ FPDMA QUEUED
/var/log/syslog.1:Nov 22 11:22:37 asher-HP-Pavilion-x360-Convertible-14-ba1xx kernel: [33451.806059] ata3.00: failed command: READ FPDMA QUEUED
/var/log/syslog.1:Nov 22 11:22:37 asher-HP-Pavilion-x360-Convertible-14-ba1xx kernel: [33451.806079] ata3.00: failed command: READ FPDMA QUEUED
/var/log/syslog.1:Nov 22 16:33:43 asher-HP-Pavilion-x360-Convertible-14-ba1xx kernel: [50291.446008] ata3.00: failed command: READ FPDMA QUEUED
/var/log/syslog.1:Nov 22 16:33:49 asher-HP-Pavilion-x360-Convertible-14-ba1xx kernel: [50297.493682] ata3.00: failed command: READ FPDMA QUEUED
/var/log/syslog.1:Nov 22 16:33:50 asher-HP-Pavilion-x360-Convertible-14-ba1xx kernel: [50297.885180] ata3.00: failed command: READ FPDMA QUEUED
/var/log/syslog.1:Nov 22 17:23:44 asher-HP-Pavilion-x360-Convertible-14-ba1xx kernel: [53291.812459] ata3.00: failed command: READ FPDMA QUEUED
/var/log/syslog.1:Nov 22 17:23:44 asher-HP-Pavilion-x360-Convertible-14-ba1xx kernel: [53291.812483] ata3.00: failed command: READ FPDMA QUEUED
/var/log/syslog.1:Nov 22 17:23:44 asher-HP-Pavilion-x360-Convertible-14-ba1xx kernel: [53291.812503] ata3.00: failed command: READ FPDMA QUEUED
/var/log/syslog.1:Nov 22 17:23:44 asher-HP-Pavilion-x360-Convertible-14-ba1xx kernel: [53291.812516] ata3.00: failed command: READ FPDMA QUEUED
/var/log/syslog.1:Nov 22 17:23:44 asher-HP-Pavilion-x360-Convertible-14-ba1xx kernel: [53291.812534] ata3.00: failed command: READ FPDMA QUEUED
/var/log/syslog.1:Nov 22 17:39:42 asher-HP-Pavilion-x360-Convertible-14-ba1xx kernel: [54250.146483] ata3.00: failed command: READ FPDMA QUEUED
grep: /var/log/syslog.1: Input/output error

编辑 4:建议有效,但我会在 SMART 测试中留下一条临别信息: Overall Assessment: Disk is OK, 4663 bad sectors感谢您的帮助!

filesystem boot dual-boot mount read-only
  • 1 1 个回答
  • 130 Views

1 个回答

  • Voted
  1. Best Answer
    heynnema
    2020-11-28T13:45:37+08:002020-11-28T13:45:37+08:00

    初始化文件

    在initramfs提示符下,键入fsck -f /dev/sda7。

    NCQ

    您在磁盘上收到 ncq 错误。让我们尝试一个快速补丁。

    /var/log/syslog.1:Nov 22 11:22:37 asher-HP-Pavilion-x360-Convertible-14-ba1xx kernel: [33451.806034] ata3.00: failed command: READ FPDMA QUEUED
    

    本机命令队列 (NCQ) 是串行 ATA 协议的扩展,允许硬盘驱动器在内部优化接收到的读取和写入命令的执行顺序。

    编辑sudo -H gedit /etc/default/grub并更改以下行以包含此额外参数。然后sudo update-grub将更改写入磁盘。重启。监视器挂起,并观察/var/log/syslog或dmesg继续出现错误消息。

    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash libata.force=noncq"
    

    阻塞不良

    如果 NCQ 补丁没有帮助......如果失败,那么你的磁盘是坏的......

    注意:不要中止坏块扫描!

    注意:请勿对 SSD 进行坏块

    注意:首先备份您的重要文件!

    注意:这将需要几个小时

    注意:您可能有待处理的 HDD 故障

    以“试用 Ubuntu”模式启动到 Ubuntu Live DVD/USB。

    在terminal...

    sudo fdisk -l# 识别所有“Linux 文件系统”分区

    sudo e2fsck -fcky /dev/sdXX# 只读测试

    或者

    sudo e2fsck -fccky /dev/sdXX# 无损读/写测试(推荐)

    -k 很重要,因为它保存了以前的坏块表,并将任何新的坏块添加到该表中。如果没有 -k,您将丢失所有先前的坏块信息。

    -fccky 参数...

       -f    Force checking even if the file system seems clean.
    
       -c    This option causes e2fsck to use badblocks(8) program to do
             a read-only scan of the device in order to find any bad blocks.
             If any bad blocks are found, they are added to the bad block
             inode to prevent them from being allocated to a file or direc‐
             tory.  If this option is specified twice, then the bad block scan
             will be done using a non-destructive read-write test.
    
       -k    When combined with the -c option, any existing bad blocks in the
             bad blocks list are preserved, and any new bad blocks found by
             running badblocks(8) will be added to the existing bad blocks
             list.
    
       -y    Assume an answer of `yes' to all questions; allows e2fsck to be
             used non-interactively. This option may not be specified at the
             same time as the -n or -p options.
    
    • 0

相关问题

  • 为什么 Ubuntu 不再将文件大小单位测量为字节、兆字节、千兆字节等?

  • 如何从双启动计算机访问加密的主文件夹?

  • 如何在 Ubuntu 启动时显示或隐藏启动消息?

  • 如何避免启动时出现“S to Skip”消息?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve