从Windows下的linux usb驱动器读取文件

2024-05-15 07:43:14 发布

您现在位置:Python中文网/ 问答频道 /正文

我用psutil,但是可以看到F:drive的接缝。。。在

>>> psutil.disk_partitions()
[sdiskpart(device='C:\\', mountpoint='C:\\', fstype='NTFS', opts='rw,fixed'), sdiskpa
drom'), sdiskpart(device='E:\\', mountpoint='E:\\', fstype='', opts='cdrom'), sdiskpa
s='rw,removable'), sdiskpart(device='G:\\', mountpoint='G:\\', fstype='NTFS', opts='r

Tags: devicedrivepsutilfixedrwdiskoptsntfs
1条回答
网友
1楼 · 发布于 2024-05-15 07:43:14

你的驱动器是如何格式化的?Windows只能读取ntfsfat格式。您可以使用windows磁盘管理工具进行检查:

来自http://pcsupport.about.com/od/windows7/ht/disk-management-windows-7.htm

How To Access Disk Management in Windows 7

Click on the Start button and then choose Control Panel.

Click on the System and Security link.

Note: If you're viewing the Large icons or Small icons view of Control Panel, you won't see this link so just click on the Administrative Tools icon and skip to Step 4.

In the System and Security window, click on the Administrative Tools heading located near the bottom of the window.

In the Administrative Tools window, double-click on the Computer Management icon.

When Computer Management opens, click on Disk Management on the left side of the window, located under Storage.

After a brief loading period, Disk Management should now appear on the right side of the Computer Management window.

Note: If you don't see Disk Management listed, you may need to click on the |> icon to the left of the Storage icon.

You can now partition a hard drive, format a hard drive, change a drive's letter, or do whatever else you need to do in Windows 7's Disk Management tool.

查找驱动器F并检查格式。如果不是ntfsfat,则需要重新格式化并再次复制数据,或者安装Ext2Read或其他可以在windows下读取linux格式驱动器的程序(请参见:https://superuser.com/questions/37512/how-to-read-ext4-partitions-on-windows)。在

相关问题 更多 >