今天我打开笔记本电脑,发现我无法向/media/data
我的/dev/nvme0n1p6
分区写入任何内容。我试过了
sudo chown username:root /media/data
sudo chmod 700 /media/data
两者都导致
changing permissions of '/media/data': Read-only file system
我的/etc/fstab
文件配置如下:
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/nvme0n1p5 during installation
UUID=33fb895b-1070-4b0d-b46f-16faea98e719 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/nvme0n1p2 during installation
UUID=E01B-2131 /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
UUID=70D3E01334D0FA8A /media/data ntfs defaults 0 2
输出sudo blkid
为:
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/loop4: TYPE="squashfs"
/dev/loop5: TYPE="squashfs"
/dev/loop6: TYPE="squashfs"
/dev/loop7: TYPE="squashfs"
/dev/nvme0n1p1: LABEL="Odzyskiwanie" UUID="0CEA1923EA190A9A" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="f1348084-e57c-44e1-947f-398979b8d4d3"
/dev/nvme0n1p2: UUID="E01B-2131" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="3916c15a-c6c6-47ca-9b94-2ade6f932000"
/dev/nvme0n1p4: UUID="4FAB6EAE728682F0" TYPE="ntfs" PTTYPE="dos" PARTLABEL="Basic data partition" PARTUUID="217770cc-5238-438f-b1fc-93c9f37f4824"
/dev/nvme0n1p5: UUID="33fb895b-1070-4b0d-b46f-16faea98e719" TYPE="ext4" PARTUUID="77762ece-89b6-4092-ad22-e9b5ba1167ba"
/dev/nvme0n1p6: UUID="70D3E01334D0FA8A" TYPE="ntfs" PTTYPE="dos" PARTLABEL="data" PARTUUID="202ad57b-2bdb-48eb-949e-a3a2d9d403b9"
/dev/loop8: TYPE="squashfs"
/dev/loop9: TYPE="squashfs"
/dev/loop10: TYPE="squashfs"
/dev/loop11: TYPE="squashfs"
/dev/loop12: TYPE="squashfs"
/dev/loop13: TYPE="squashfs"
/dev/loop14: TYPE="squashfs"
/dev/loop15: TYPE="squashfs"
/dev/loop16: TYPE="squashfs"
/dev/nvme0n1: PTUUID="4cbb7e4c-247b-4621-9aa9-66f332ee2907" PTTYPE="gpt"
/dev/nvme0n1p3: PARTLABEL="Microsoft reserved partition" PARTUUID="09e7215b-b10c-45d6-b28d-f45a5281d5f5"
什么可能导致了这种意外的变化(/etc/fstab
之前在文件中按上述方式安装工作正常)以及我该如何修复它?
答案1
对我来说最终有效的是从 USB 启动 Ubuntu 并执行以下操作:
sudo ntfsfix /dev/nvme0n1p6