Linux文件重新启动后消失

发布于 2025-01-23 22:01:00 字数 802 浏览 2 评论 0原文

我上面有一个带有Raspbian的Raspberrypi,今天我注意到我写给服务器的文件不再持久。在对此的日志中找不到任何错误。 我唯一能找到的是使用fdisk -L,

Disk /dev/mmcblk0: 119.08 GiB, 127865454592 bytes, 249737216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xeb794bf4

Device         Boot  Start       End   Sectors   Size Id Type
/dev/mmcblk0p1        8192    532479    524288   256M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      532480 249737215 249204736 118.8G 83 Linux
The backup GPT table is corrupt, but the primary appears OK, so that will be used.

据我所知, 这应该是MBR,而不是GPT,但由于某些原因,它说GPT备份表已损坏。我尝试了TestDisk和FixParts,但是无论我在重新启动问题之后做什么,问题仍然存在。 您是否知道我可以在哪里寻找错误或修复错误?如果可能的话,我想避免重新安装

任何帮助

i got a raspberrypi with raspbian on it and today i noticed that the file i write to the server are not persistent anymore. Couldn't find any errors in the log reagarding to that. The only thing i could find was with fdisk -l

Disk /dev/mmcblk0: 119.08 GiB, 127865454592 bytes, 249737216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xeb794bf4

Device         Boot  Start       End   Sectors   Size Id Type
/dev/mmcblk0p1        8192    532479    524288   256M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      532480 249737215 249204736 118.8G 83 Linux
The backup GPT table is corrupt, but the primary appears OK, so that will be used.

As far as i know this should be mbr and not gpt but for some reason it says that the gpt backup table is corrupt. I tried testdisk and fixparts but no matter what i do after a reboot the problem persists.
Do you have any idea where i can look for errors or fix it? If possible i'd like to avoid a reinstall

Any help appreciated

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文