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
    • 最新
    • 标签
主页 / unix / 问题

问题[ntfs](unix)

Martin Hope
Syntax
Asked: 2024-04-11 04:17:04 +0800 CST

从第二个驱动器运行二进制文件时出现分段错误

  • 6

当我尝试从第二个 (NTFS) 驱动器运行任何可执行文件时,出现分段错误。如果我从我的主文件夹中运行完全相同的可执行文件,它就可以正常工作。

例如:我使用以下命令编译以下 C 程序gcc a.c:

#include <stdio.h>

int main() {
    puts("Hello");
    return 0;
}

现在我./a.out从第二个驱动器运行:

$ ./a.out
zsh: segmentation fault  ./a.out

(即使它们已启用并可用于其他用途,也不会生成核心转储。)

如果我将完全相同的文件复制到例如/home/username/(位于我的主/操作系统驱动器上),无需任何修改:

$ ./a.out
Hello

那里一切都工作得很好。

然而,在第二个驱动器上,GDB 在启动期间失败:

(gdb) starti
Starting program: /path/to/a.out 
During startup program terminated with signal SIGSEGV, Segmentation fault.

当我使用时strace,它说execve失败:

$ strace ./a.out
execve("./a.out", ["./a.out"], 0x7ffd0aa31070 /* 83 vars */) = -1 EOPNOTSUPP (Operation not supported)
+++ killed by SIGSEGV +++
zsh: segmentation fault (core dumped)  strace ./a.out

也只是ldd说not a dynamic executable在第二个驱动器上。readelf -d并且objdump -p工作得很好。

我的驱动器及其子文件夹之一像这样安装在/etc/fstab:

UUID=drive-uuid-123        /path/to/drive   ntfs3   defaults      0 2
/path/to/drive/some/path   /my/new/path     none    defaults,bind 0 2

当我从另一个不同的 NTFS 驱动器运行二进制文件时,也会出现同样的问题。

系统信息:

$ uname -a
Linux thomas-manjaro 6.6.25-1-MANJARO #1 SMP PREEMPT_DYNAMIC Thu Apr  4 20:32:38 UTC 2024 x86_64 GNU/Linux

这是 Manjaro 的全新安装,所有软件包都是最新的。

有谁知道是什么问题?我需要以不同的方式安装驱动器吗?我需要设置某种系统变量吗?

ntfs
  • 2 个回答
  • 46 Views
Martin Hope
cyqsimon
Asked: 2023-03-03 00:17:27 +0800 CST

ncdu:这个第二大小的专栏是怎么回事?

  • 14

ncdu截图

我从未见过 ncdu 这样做。S红色和超大尺寸的列有什么问题?

这是 Windows 根目录(NTFS,挂载有ntfs-3g),所以我认为它与 NTFS 有关系。但是额外列中的大小根本没有意义,我也找不到任何文档说明它的含义。

有趣的是,只有目录具有第二个大小列,但并非所有目录都有。我发现那些做和不做的人之间没有模式。


我研究过的地方:

  • man ncdu
  • 谷歌
ntfs
  • 2 个回答
  • 465 Views
Martin Hope
xpt
Asked: 2021-11-16 12:28:46 +0800 CST

无法更改安装 ntfs 驱动器的所有权

  • 0

为什么我无法更改挂载 ntfs 驱动器的所有权?

我在我的文件中给出uid=1000,gid=1000,了 etc /etc/fstab,但发现它不起作用。所以我在命令行上测试它:

root@host:~# mount | grep /mnt/tmp1 | wc
      0       0       0

root@host:~# mount -o uid=1000 /dev/nvme0n1p4 /mnt/tmp1/

root@host:~# mount | grep /mnt/tmp1
/dev/nvme0n1p4 on /mnt/tmp1 type fuseblk (rw,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)

root@host:~# umount /mnt/tmp1

root@host:~# mount -o user_id=1000 /dev/nvme0n1p4 /mnt/tmp1/

root@host:~# mount | grep /mnt/tmp1
/dev/nvme0n1p4 on /mnt/tmp1 type fuseblk (rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096)

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 21.10
Release:        21.10
Codename:       impish

$ apt-cache policy mount
mount:
  Installed: 2.36.1-8ubuntu1
  Candidate: 2.36.1-8ubuntu2
  Version table:
     2.36.1-8ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu impish-updates/main amd64 Packages
 *** 2.36.1-8ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu impish/main amd64 Packages
        100 /var/lib/dpkg/status

我错过了什么吗?
为什么我无法更改挂载 ntfs 驱动器的所有权?

mount ntfs
  • 1 个回答
  • 269 Views
Martin Hope
SageCat
Asked: 2019-12-22 12:14:45 +0800 CST

Gparted:主分区太多

  • 0

我正在尝试创建一个带有 NTFS 部分的外部硬盘驱动器以获取信息和隐藏的可引导 fat32 部分。

分开的

这是一个错误

错误.

linux-mint ntfs
  • 1 个回答
  • 2194 Views
Martin Hope
viuser
Asked: 2019-04-22 15:25:53 +0800 CST

为什么 mkntfs 需要这么长时间?

  • 1

在 FreeBSD 12.0 下,对于 1 TB 硬盘驱动器,该命令mkntfs -Q /dev/da3s1(带有快速格式化标志)仍然需要很长时间(几个小时后仍未完成)。

它给出以下警告:

The partition start sector was not specified for /dev/da3s1 and it could not be obtained automatically.  It has been set to 0.
The number of sectors per track was not specified for /dev/da3s1 and it could not be obtained automatically.  It has been set to 0.
The number of heads was not specified for /dev/da3s1 and it could not be obtained automatically.  It has been set to 0.
Cluster size has been automatically set to 4096 bytes.
To boot from a device, Windows needs the 'partition start sector', the 'sectors per track' and the 'number of heads' to be set.
Windows will not be able to boot from this device.
Creating NTFS volume structures.

如何获得与 Windows 中类似的速度以进行快速格式化?

freebsd ntfs
  • 1 个回答
  • 2685 Views
Martin Hope
het.oosten
Asked: 2019-01-04 00:18:26 +0800 CST

带有 ddrescue 文件位置的 Datarescue

  • 1

我正在恢复一个带有 ddrescue 的 NTFS 分区的 2TB 硬盘。仅使用了 2TB 中的 300GB(主要是照片)。

我的问题是救援电脑上没有 2TB 可用空间。我可以假设文件位于硬盘的前半部分吗?或者我应该对整个磁盘进行映像(我可以使用日志文件分割映像)

恢复过程真的很慢。现在 ddrescue 还剩 62 天。到目前为止,我恢复了 250GB。

我使用的精确命令是

ddrescue -r 3 -C /dev/sda ./extschijf2 ./log.txt
ntfs ddrescue
  • 1 个回答
  • 209 Views
Martin Hope
kurokirasama
Asked: 2018-10-20 09:29:11 +0800 CST

无法在 /dev/sdb 格式化 USB 存储

  • 1

我有一个 8GB 的​​ USB 存储,lsblk显示它可以在 /dev/sdb 访问。

当试图:

sudo mkfs.ntfs -L "label" /dev/sdb

我有:

/dev/sdb is entire device, not just one partition.
Refusing to make a filesystem here!

该怎么办?

我在 Ubuntu 18.04 上。

linux ntfs
  • 2 个回答
  • 1877 Views
Martin Hope
Alexei Martianov
Asked: 2018-04-30 20:09:09 +0800 CST

NTFS $MFTMirr 与 $MFT 不匹配

  • 4

移动笔记本电脑时,我正在将文件复制Linux Mint到NTFS外部USB磁盘,可能 USB 连接丢失,现在出现错误$MFTMirr does not match $MFT。挂载错误消息是使用 Windows 修复驱动器错误。但是,我想使用 Linux 来修复那个恕我直言的常见错误。

mount ntfs
  • 2 个回答
  • 4205 Views
Martin Hope
Michael Goldshteyn
Asked: 2018-03-06 07:48:54 +0800 CST

如何使用 mkntfs 在文件上创建 Windows 文件系统?

  • 0

根据手册页:

MKNTFS(8)
...

mkntfs 用于在设备(通常是磁盘分区)或文件上创建 NTFS 文件系统。

问题是,当我给它一个预先创建的 64GB 文件作为参数时,它需要一个设备:

] mkntfs share1.dat # share1.dat is a pre-created 64 GB file

share1.dat is not a block device.
Refusing to make a filesystem here!

如何让它接受 share1.dat 文件作为文件并在该文件上创建一个 NTFS 文件系统,以便以后挂载和共享?

linux ntfs
  • 1 个回答
  • 1614 Views
Martin Hope
shirish
Asked: 2017-12-06 09:33:59 +0800 CST

在 MS-Windows 7 下对外部磁盘进行分区时,ntfs 的版本是什么

  • 1

这与Looking for 4 TB cross-platform filesystem for standalone disk有点相关

目前我正在使用 2 TB 外部硬盘,有时内部 ntfs 索引会损坏,因此我不得不求助于此 -

> sudo ntfsfix -d /dev/sdb1                                                                                                        [95%]
Mounting volume... $MFTMirr does not match $MFT (record 28).
FAILED
Attempting to correct errors... 
Processing $MFT and $MFTMirr...
Reading $MFT... OK
Reading $MFTMirr... OK
Comparing $MFTMirr to $MFT... FAILED
Correcting differences in $MFTMirr record 28...OK
Correcting differences in $MFTMirr record 29...OK
Correcting differences in $MFTMirr record 30...OK
Correcting differences in $MFTMirr record 31...OK
Correcting differences in $MFTMirr record 32...OK
Correcting differences in $MFTMirr record 33...OK
Correcting differences in $MFTMirr record 34...OK
Correcting differences in $MFTMirr record 35...OK
Correcting differences in $MFTMirr record 36...OK
Correcting differences in $MFTMirr record 37...OK
Correcting differences in $MFTMirr record 38...OK
Correcting differences in $MFTMirr record 39...OK
Processing of $MFT and $MFTMirr completed successfully.
Setting required flags on partition... OK
Going to empty the journal ($LogFile)... OK
Checking the alternate boot sector... OK
NTFS volume version is 3.1.
NTFS partition /dev/sdb1 was processed successfully.

现在我不确定这个硬盘是否在 Windows XP 或 Windows 7 期间被正式分区,甚至在 Windows 7 下它被称为 NTFS 3.1(尽管根据维基百科非正式地称为 NTFS 5.0。)

我可以使用 smartctl 接口获取更多关于驱动器可能何时制造、剩余寿命等的详细信息。我认为无论如何都不知道,因为它们是预先格式化的硬盘(希捷超薄备份)

是否有人在 Windows 7 中格式化了外部硬盘驱动器并且可以共享是否有任何元数据显示了在 Windows x0 和 Windows 7 期间创建的外部硬盘驱动器之间的差异这可能让我对磁盘有更多的了解,特别是它使用的 nfs 版本。

hard-disk ntfs
  • 1 个回答
  • 328 Views

Sidebar

Stats

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

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

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

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve