我需要更改 USB 闪存权限,因为我无法在其上创建新文件夹,也不想格式化它,所以我尝试使用此帖子说明这:
无需格式化闪存驱动器或删除分区。您可以转到挂载,然后更改闪存驱动器的所有权。在 ubuntu 上:
> cd /media sudo chown -R username drivename
当然,请将用户名替换为您的用户名,将驱动器名替换为您的闪存驱动器的名称。
然后您将能够像往常一样使用 nautilus 复制/移动/删除您的文件。
我已经在我的操作系统中通过以下方式完成了它:
$ sudo chown 755 $USER:$USER .
chown: cannot access 'so:so': No such file or directory
chown: changing ownership of '.': Read-only file system
顺便说一下,我的操作系统用户名是所以!!! 并通过此代码:
sudo chown -R so .
chown: changing ownership of './baba/telegram/Telegram messenger how to use2.mp4': Read-only file system
chown: changing ownership of './baba/telegram/How to Use Telegram.mp4': Read-only file system
chown: changing ownership of './baba/telegram/How to Use Telegram for Chat Support.mp4': Read-only file system
chown: changing ownership of './baba/telegram/How to Use Telegram for Chat Support [1080p].mp4': Read-only file system
...
chown: cannot access './fun/·'$'\033'':ZyÖ╕╪.≈'$'\030''7': Input/output error
chown: cannot access './fun/╓÷'$'\026''6Uuö┤.╙≤'$'\023': Input/output error
chown: changing ownership of './fun/╩Ω'$'\n''*Iiê¿.╟τ'$'\a': Read-only file system
chown: changing ownership of './fun': Read-only file system
chown: changing ownership of '.': Read-only file system
那么为什么我无法访问 Flash USB?
更新:
根据评论StrabagISS_Krall 我已经在终端上像这样写入此代码:
$ mount | grep media
/var/lib/snapd/snaps/ktube-media-downloader_6.snap on /snap/ktube-media-downloader/6 type squashfs (ro,nodev,relatime,x-gdu.hide)
/dev/sda6 on /media/so/EAD8A297D8A26215 type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)
/dev/sda5 on /media/so/ACAC8B5FAC8B2346 type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)
/dev/sdc on /media/so/09155253009 type vfat (ro,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)
第二条评论:
sudo journalctl | grep sdc
[sudo] password for so:
فوریه 11 20:49:43 so-notebook kernel: sd 3:0:0:0: [sdc] 15679488 512-byte logical blocks: (8.03 GB/7.48 GiB)
فوریه 11 20:49:43 so-notebook kernel: sd 3:0:0:0: [sdc] Write Protect is off
فوریه 11 20:49:43 so-notebook kernel: sd 3:0:0:0: [sdc] Mode Sense: 23 00 00 00
فوریه 11 20:49:43 so-notebook kernel: sd 3:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
فوریه 11 20:49:43 so-notebook kernel: sdc:
فوریه 11 20:49:43 so-notebook kernel: sd 3:0:0:0: [sdc] Attached SCSI removable disk
فوریه 11 20:49:44 so-notebook kernel: FAT-fs (sdc): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
فوریه 11 20:49:44 so-notebook udisksd[1890]: Mounted /dev/sdc at /media/so/09155253009 on behalf of uid 1000
فوریه 11 20:49:44 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 13f3d0b1)
فوریه 11 20:49:44 so-notebook kernel: FAT-fs (sdc): Filesystem has been set read-only
فوریه 11 20:49:44 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 13f3d0b1)
فوریه 11 20:49:54 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 13f3d0b1)
فوریه 11 20:49:56 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 13f3d0b1)
فوریه 11 20:50:05 so-notebook udisksd[1890]: Unmounted /dev/sdc on behalf of uid 1000
فوریه 11 20:50:36 so-notebook kernel: sd 3:0:0:0: [sdc] 15679488 512-byte logical blocks: (8.03 GB/7.48 GiB)
فوریه 11 20:50:36 so-notebook kernel: sd 3:0:0:0: [sdc] Write Protect is off
فوریه 11 20:50:36 so-notebook kernel: sd 3:0:0:0: [sdc] Mode Sense: 23 00 00 00
فوریه 11 20:50:36 so-notebook kernel: sd 3:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
فوریه 11 20:50:36 so-notebook kernel: sdc:
فوریه 11 20:50:36 so-notebook kernel: sd 3:0:0:0: [sdc] Attached SCSI removable disk
فوریه 11 20:50:36 so-notebook kernel: FAT-fs (sdc): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
فوریه 11 20:50:36 so-notebook udisksd[1890]: Mounted /dev/sdc at /media/so/09155253009 on behalf of uid 1000
فوریه 11 20:50:36 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 13f3d0b1)
فوریه 11 20:50:36 so-notebook kernel: FAT-fs (sdc): Filesystem has been set read-only
فوریه 11 20:50:36 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 13f3d0b1)
فوریه 11 20:50:40 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 13f3d0b1)
فوریه 11 20:50:43 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 13f3d0b1)
فوریه 11 20:50:54 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 13f3d0b1)
فوریه 11 20:50:54 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 13f3d0b1)
فوریه 11 20:51:03 so-notebook udisksd[1890]: Unmounted /dev/sdc on behalf of uid 1000
فوریه 11 20:51:04 so-notebook udisksd[1890]: Ignoring SCSI command SYNCHRONIZE CACHE failure (Non-GOOD SCSI status from SGIO v3 ioctl: status=2 host_status=0 driver_status=8) on /dev/sdc
فوریه 11 20:51:04 so-notebook udisksd[1890]: Successfully sent SCSI command START STOP UNIT to /dev/sdc
فوریه 11 20:51:04 so-notebook udisksd[1890]: Powered off /dev/sdc - successfully wrote to sysfs path /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/remove
فوریه 11 20:51:13 so-notebook kernel: sd 3:0:0:0: [sdc] 15679488 512-byte logical blocks: (8.03 GB/7.48 GiB)
فوریه 11 20:51:13 so-notebook kernel: sd 3:0:0:0: [sdc] Write Protect is off
فوریه 11 20:51:13 so-notebook kernel: sd 3:0:0:0: [sdc] Mode Sense: 23 00 00 00
فوریه 11 20:51:13 so-notebook kernel: sd 3:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
فوریه 11 20:51:13 so-notebook kernel: sdc:
فوریه 11 20:51:13 so-notebook kernel: sd 3:0:0:0: [sdc] Attached SCSI removable disk
فوریه 11 20:51:14 so-notebook kernel: FAT-fs (sdc): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
فوریه 11 20:51:14 so-notebook udisksd[1890]: Mounted /dev/sdc at /media/so/09155253009 on behalf of uid 1000
فوریه 11 20:51:14 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 13f3d0b1)
فوریه 11 20:51:14 so-notebook kernel: FAT-fs (sdc): Filesystem has been set read-only
فوریه 11 20:51:14 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 13f3d0b1)
فوریه 11 20:51:17 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 13f3d0b1)
فوریه 11 20:52:01 so-notebook udisksd[1890]: Unmounted /dev/sdc on behalf of uid 1000
فوریه 11 20:52:08 so-notebook kernel: sd 3:0:0:0: [sdc] 15679488 512-byte logical blocks: (8.03 GB/7.48 GiB)
فوریه 11 20:52:08 so-notebook kernel: sd 3:0:0:0: [sdc] Write Protect is off
فوریه 11 20:52:08 so-notebook kernel: sd 3:0:0:0: [sdc] Mode Sense: 23 00 00 00
فوریه 11 20:52:08 so-notebook kernel: sd 3:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
فوریه 11 20:52:08 so-notebook kernel: sdc:
فوریه 11 20:52:08 so-notebook kernel: sd 3:0:0:0: [sdc] Attached SCSI removable disk
فوریه 11 20:52:08 so-notebook kernel: FAT-fs (sdc): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
فوریه 11 20:52:08 so-notebook udisksd[1890]: Mounted /dev/sdc at /media/so/09155253009 on behalf of uid 1000
فوریه 11 20:52:09 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 13f3d0b1)
فوریه 11 20:52:09 so-notebook kernel: FAT-fs (sdc): Filesystem has been set read-only
فوریه 11 20:52:09 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 13f3d0b1)
فوریه 20 13:29:24 so-notebook kernel: sd 3:0:0:0: [sdc] 15679488 512-byte logical blocks: (8.03 GB/7.48 GiB)
فوریه 20 13:29:24 so-notebook kernel: sd 3:0:0:0: [sdc] Write Protect is off
فوریه 20 13:29:24 so-notebook kernel: sd 3:0:0:0: [sdc] Mode Sense: 23 00 00 00
فوریه 20 13:29:24 so-notebook kernel: sd 3:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
فوریه 20 13:29:24 so-notebook kernel: sdc:
فوریه 20 13:29:24 so-notebook kernel: sd 3:0:0:0: [sdc] Attached SCSI removable disk
فوریه 20 13:29:25 so-notebook kernel: FAT-fs (sdc): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
فوریه 20 13:29:25 so-notebook udisksd[1971]: Mounted /dev/sdc at /media/so/09155253009 on behalf of uid 1000
فوریه 20 13:29:25 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 13f3d0b1)
فوریه 20 13:29:25 so-notebook kernel: FAT-fs (sdc): Filesystem has been set read-only
فوریه 20 13:29:25 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 13f3d0b1)
فوریه 20 13:30:11 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 13f3d0b1)
فوریه 20 13:30:11 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start eecfac8d)
فوریه 20 13:30:11 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start b2937051)
فوریه 20 13:30:11 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 8e6f4c2d)
فوریه 20 13:30:11 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 523310f0)
فوریه 20 13:30:11 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 2e0febcc)
فوریه 20 13:30:11 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start f1d2af90)
فوریه 20 13:30:11 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start cdae8b6c)
فوریه 20 13:30:11 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 91724f30)
فوریه 20 13:30:11 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 6d4e2b0c)
فوریه 20 13:30:29 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 13f3d0b1)
فوریه 20 13:30:29 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start eecfac8d)
فوریه 20 13:30:29 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 13f3d0b1)
فوریه 20 13:30:29 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start eecfac8d)
فوریه 20 13:30:38 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 13f3d0b1)
فوریه 20 13:30:43 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 13f3d0b1)
فوریه 20 13:32:06 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 13f3d0b1)
فوریه 20 13:32:06 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start eecfac8d)
فوریه 20 13:32:06 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start b2937051)
فوریه 20 13:32:06 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 8e6f4c2d)
فوریه 20 13:32:06 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 523310f0)
فوریه 20 13:32:06 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 2e0febcc)
فوریه 20 13:32:06 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start f1d2af90)
فوریه 20 13:32:06 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start cdae8b6c)
فوریه 20 13:32:06 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 91724f30)
فوریه 20 13:32:06 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 6d4e2b0c)
فوریه 20 13:34:21 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 13f3d0b1)
فوریه 20 13:34:21 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start eecfac8d)
فوریه 20 13:34:21 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start b2937051)
فوریه 20 13:34:21 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 8e6f4c2d)
فوریه 20 13:34:21 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 523310f0)
فوریه 20 13:34:21 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 2e0febcc)
فوریه 20 13:34:21 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start f1d2af90)
فوریه 20 13:34:21 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start cdae8b6c)
فوریه 20 13:34:21 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 91724f30)
فوریه 20 13:34:21 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 6d4e2b0c)
فوریه 20 13:38:56 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 13f3d0b1)
فوریه 20 13:38:56 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start eecfac8d)
فوریه 20 13:38:56 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start b2937051)
فوریه 20 13:38:56 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 8e6f4c2d)
فوریه 20 13:38:56 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 523310f0)
فوریه 20 13:38:56 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 2e0febcc)
فوریه 20 13:38:56 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start f1d2af90)
فوریه 20 13:38:56 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start cdae8b6c)
فوریه 20 13:38:56 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 91724f30)
فوریه 20 13:38:56 so-notebook kernel: FAT-fs (sdc): error, fat_get_cluster: invalid start cluster (i_pos 0, start 6d4e2b0c)
我也收到这个错误((udisks-错误-quark,0))使用 Ubuntu 的磁盘管理器应用程序修复 USB 闪存:
新更新:
我通过使用 gparted 应用程序找到了解决方案这操作说明:
这已被报告为一个错误。但您可以尝试此解决方法,看看它是否有效。如果您尚未安装 Gparted,请安装它。如果没有,只需按键盘上的 Ctrl+Alt+T 即可打开终端。打开后,运行以下命令:
sudo apt-get 安装 gparted
安装后,打开应用程序,在格式化之前,请确保选择正确的驱动器,然后右键单击分区以卸载磁盘,然后选择卸载,然后您可以使用格式化为选项将其格式化为所需的任何类型的文件系统。完成后,单击绿色复选标记以应用更改。
像这样:
不幸的是,我没有保存结果日志文件,它可以帮助我了解发生了什么。(但基于sudo journalctl | grep sdc
它,似乎无法通过手动从 PC USB 端口移除而正确卸载...
谢谢。