找到你要的答案

Q:read files from linux usb drive under Windows

Q:从Linux的USB驱动器的文件在Windows

I use psutil , but seam the F: drive can be seen ...

>>> 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

我用psutil,但煤层F:驱动可以看出…

>>> 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
answer1: 回答1:

How is your drive formatted? Windows can only read ntfs and fat formats. You can check this using the windows disk management tool:

From 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.

Look for drive F and check the formatting. If it is not ntfs or fat, you will need to reformat it and copy the data again, or install Ext2Read or another program that can read linux-formatted drives under windows (see: http://superuser.com/questions/37512/how-to-read-ext4-partitions-on-windows).

你的驱动器格式化了吗?Windows只能读取FAT和NTFS格式。您可以使用Windows磁盘管理工具检查此:

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

How To Access Disk Management in Windows 7

单击“开始”按钮,然后选择“控制面板”。

点击系统和安全链接。

注意:如果您正在查看控制面板的大图标或小图标视图,您将无法看到此链接,只需单击“管理工具”图标,跳过步骤4。

在系统和安全窗口中,单击位于窗口底部附近的管理工具标题。

在“管理工具”窗口中双击“计算机管理”图标。

当计算机管理打开时,单击位于存储区左侧的窗口左侧的磁盘管理。

在一个简短的加载周期之后,磁盘管理应该出现在计算机管理窗口的右侧。

注:如果您没有看到磁盘管理上市,你可能需要点击| >;图标图标左边的存储。

现在可以分区硬盘,格式化硬盘驱动器,更改驱动器的信,或做任何其他你需要做的Windows 7的磁盘管理工具。

寻找驱动器f并检查格式化。如果不是NTFS或FAT,你将需要格式化和复制数据,或安装Ext2Read它或另一个程序能够读取Windows下的Linux格式化硬盘(见:HTTP:/ /超级用户。COM /问题/ 37512 / how-to-read-ext4-partitions-on-windows)。

python  python-3.x  psutil