当前位置: 首页 > news >正文

苏州园区一站式服务中心linux运维是必死之路

苏州园区一站式服务中心,linux运维是必死之路,网站的搜索功能,国内优秀网站推荐错误: Resize inode not valid 对于gpt分区的硬盘一般fsck只能检查分区, 不能用于检查整个硬盘, 但是如果对硬盘设备运行时遇到这样的错误 $ sudo fsck -n /dev/sdc fsck from util-linux 2.37.2 e2fsck 1.46.5 (30-Dec-2021) GW1.5T was not cleanly unmounted, check force…

错误: Resize inode not valid

对于gpt分区的硬盘一般fsck只能检查分区, 不能用于检查整个硬盘, 但是如果对硬盘设备运行时遇到这样的错误

$ sudo fsck -n /dev/sdc
fsck from util-linux 2.37.2
e2fsck 1.46.5 (30-Dec-2021)
GW1.5T was not cleanly unmounted, check forced.
Resize inode not valid.  Recreate? no

用 gdisk检查一下分区表, 可能会提示下面的信息

$ sudo gdisk /dev/sdc
GPT fdisk (gdisk) version 1.0.8Partition table scan:MBR: MBR onlyBSD: not presentAPM: not presentGPT: not present***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by
typing 'q' if you don't want to convert your MBR partitions
to GPT format!
***************************************************************Warning! Secondary partition table overlaps the last partition by
33 blocks!
You will need to delete this partition or resize it in another utility.

对于这种情况, 需要清空GPT和MBR, 命令 x -> z -> y * 2

Command (? for help): xExpert command (? for help): z
About to wipe out GPT on /dev/sdc. Proceed? (Y/N): y
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
Blank out MBR? (Y/N): y

之后再看就正常了

$ sudo gdisk /dev/sdc
GPT fdisk (gdisk) version 1.0.8Partition table scan:MBR: not presentBSD: not presentAPM: not presentGPT: not present

用gdisk分区

Command (? for help): n
Partition number (1-128, default 1): 
First sector (34-2813066894, default = 2048) or {+-}size{KMGTP}: 
Last sector (2048-2813066894, default = 2813066894) or {+-}size{KMGTP}: 
Current type is 8300 (Linux filesystem)
Hex code or GUID (L to show codes, Enter = 8300): 
Hex code or GUID (L to show codes, Enter = 8300): 
Changed type of partition to 'Linux filesystem'
Command (? for help): wFinal checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/sdc.
The operation has completed successfully.

分区之后, 会显示GPT信息

$ sudo gdisk /dev/sdc
GPT fdisk (gdisk) version 1.0.8Partition table scan:MBR: protectiveBSD: not presentAPM: not presentGPT: presentFound valid GPT with protective MBR; using GPT.

错误: Bad magic number in super-block

如果用fsck直接检查GPT分区的硬盘时就会报这个错误

$ sudo fsck -n /dev/sdc
fsck from util-linux 2.37.2
e2fsck 1.46.5 (30-Dec-2021)
ext2fs_open2: Bad magic number in super-block
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/sdc

需要指定文件系统对应的分区进行检查

$ sudo fsck -n /dev/sdc1
fsck from util-linux 2.37.2
e2fsck 1.46.5 (30-Dec-2021)
1T4B: clean, 11/87908352 files, 5800552/351633105 blocks

如果需要检查硬盘, 用 gdisk /dev/sdc, 然后在里面用 v 命令

错误 ata1: irq_stat 0x00400000, PHY RDY changed

在N2 NS-1 (CPU:hi3798mv200)上挂载一块 SanDisk ECO 1.92T SSD 时, 在dmesg中每隔100秒出现如下错误

[  360.673489] ata1: exception Emask 0x10 SAct 0x0 SErr 0x10000 action 0xe frozen
[  360.679463] ata1: irq_stat 0x00400000, PHY RDY changed
[  360.683343] ata1: SError: { PHYRdyChg }
[  360.685977] ata1: hard resetting link
[  370.720684] ata1: softreset failed (device not ready)
[  370.724476] ata1: hard resetting link
[  375.681723] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[  375.684718] ata1.00: configured for UDMA/133
[  375.684745] ata1: EH complete

根据网上搜索到的结果, 大部分原因为: 供电问题, 硬盘硬件问题, 以及文件格式错误. 参考 https://forums.gentoo.org/viewtopic-t-815278.html
将整块SSD重新格式化为ext4后, 未再报错.

http://www.yayakq.cn/news/77923/

相关文章:

  • 简述营销型网站开发流程wordpress看文网站
  • 做网站推广可行吗wordpress发邮件功能
  • 好点的网站建设公司德州制作网站哪家最专业
  • 网站管理人员队伍建设说明材料赣州网站建设新闻
  • 做静态网站用什么软件观澜做网站
  • 在自己的电脑做网站空间凡科平台登录平台
  • 郑州微盟网站建设公司wordpress多站点 主题
  • 无锡专业网站排名推广杨浦建设机械网站
  • 设计欣赏心得体会关键词推广seo
  • 手机网站模板下载免费软文推广的作用
  • 网站开发如何跟客户沟通需求拍摄制作公司宣传片
  • 顺德网站建设怎么样做期货网站违法的吗
  • asp.net 个人网站logo图案素材免费网站
  • 阿里巴巴官网招聘网站wordpress如何调用js
  • 网站建设急单个人网站搭建步骤
  • 淮滨网站建设加盟做网站
  • 想开个小说网站怎么做养老网站备案必须做前置审批吗
  • 杭州专业做网站的如何做线上营销
  • 凡科网站建设怎么去掉极速建站网络设计师培训平台
  • 网站模板怎么上传俄罗斯乌克兰战争
  • frp可以做网站吗漳州做网站最便宜
  • 建设网站北京市连锁品牌网站建设
  • 东莞地产公司网站建设中国铁建网站
  • 济南企业做网站推广网站企业介绍微网站怎么做
  • 找个人给我做电影网站好最全微信小程序名单
  • 网页设计素材为什么拖不进psseo网站关键词优化哪家好
  • 南昌师范学院网站建设的意义和目的网站建设费用计入管理费用的哪个科目
  • 自建网站去除htmlwordpress双首页
  • 百度高级搜索怎么用深圳搜索优化排名公司
  • 装修网站cms标书制作培训课程