如何从Windows中访问EXT4格式的Linux硬盘

硬件:Windows计算机,USB3.0硬盘盒,西数硬盘;
软件
DiskGenuis,用于将硬盘格式化为Windows识别的NTFS,FAT32,exFAT以及Linux识别的EXT2,3,4格式。
Ext2Fsd,用于挂载和格式化EXT4格式硬盘。
在安装目录下(C:\Program Files\Ext2Fsd)有多个可执行程序:Mount.exe和mke2fs.exe,用于在命令行中执行挂载和格式化。
挂载命令:mount 'disk number' 'partition number', 'driver_letter',example: mount 0 1 f:。通过cmd中键入diskmgmt.msc来查看disk number和partition number。
格式化命令:mke2fs -t ext4 \Device\HarddiskVolume6 最后一部分字符串来自于Ext2 Volume Manager中的Physical object栏。

遇到的问题
1.在Ext2Fsd 0.69版本中,“Ext2Fsd is not started".
2.在Ext2Fsd中加载硬盘,指定盘符后,仍然无法访问硬盘
解决方法:Doesn’t work after windows 10 creators update
可以使用Ext2Fsd 0.53版本来避免这些问题。
3.Error: mke2fs 1.42.13 (17-May-2015) The file \Device\HarddiskVolume8 does not exist and no size was specified.
解决方法:The file /dev/sda1 does not exist and no size was specified. Windows下Run CMD as Administriator; Linux need “sudo”.

操作记录

Press ENTER to format \Device\HarddiskVolume15
Creating filesystem with 121986816 4k blocks and 30498816 inodes
Filesystem UUID: e88e9cb9-91ee-497b-ace2-b2cf99ee810d
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
	4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 
	102400000

Allocating group tables:    0/3723 done                            
Writing inode tables:    0/3723 done                            
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information:    0/3723  4/3723         done
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
可以读写Ext2,以Ext2方式挂载Ext3文件系统(不支持Ext3日志),不支持文! It provides Windows NT4.0/2000/XP/2003/Vista/2008 with full access to Linux Ext2 volumes (read access andwrite access). This may be useful if you have installed both Windows and Linux as a dual boot environment on your computer. What features are supported? Complete reading and writing access to files and directories of volumes with theExt2 orExt3 file system. Supports features which are specific to the I/O-system of Windows: Byte Range Locks, Directory Notfication (so the Explorer updates the view of a directory on changes within that directory), Oplocks (so SMB clients are able to cache the content of files). Allows Windows to run with paging files on Ext2 volumes. UTF-8 encoded file names are supported. The driver treats files with file names that start with a dot "." character ashidden. Supports GPT disks if the Windows version used also does. Supports use of the Windows mountvol utility to create or delete drive letters for Ext2 volumes (except on Windows NT 4.0). See also section"Can drive letters also be configured from scripts?". What features are *not* supported? Inodes that are larger than 128 bytes are not supported. Access rights are not maintained. All users can access all the directories and files of an Ext2 volume. If a new file or directory is created, it inherits all the permissions, the GID and the UID from the directory where it has been created. There is one exception to this rule: a file (but not a directory) the driver has created always has cleared "x" permissions, it inherits the "r" and the "w" permissions only. See also section"What limitations arise from not maintaining access rights?". The driver does not allow accessing special files at Ext2 volumes, the access will be always denied. (Special files are sockets, soft links, block devices, character devices and pipes.) Alternate 8.3-DOS names are not supported (just because there is no place to store them in an Ext2 file system). This can prevent legacy DOS applications, executed by the NTVDM of Windows, from accessing some files or directories. Currently the driver does not implement defragging support. So defragmentation applications will neither show fragmentation information nor defragment any Ext2 volume. This software does not achieve booting a Windows operating system from an Ext2 volume. LVM volumes are not supported, so it is not possible to access them.
很多从Windows平台转到Linux下的朋友都不会只在机器上装一个Linux,而是保留着Windows。这样,如果对Linux不习惯,偶尔还可以切换回来。毕竟Windows的桌面系统还是很人性化的。在Linux访问Windows分区,特别是对老的Fat分区是非常容易的,只需要mount一下即可,访问ntfs分区稍微复杂一点,需要驱动支持。但有时,我们也会需要从Windows系统下访问Linux分区,比如当启动Windows过后,忽然想查看一下Linux下的某个文件而又不想重启系统等。下面简单介绍一下从Windows系统访问Linux的方法。 最常用的是一个叫做explore2fs的工具。这个工具可以免费下载,并且提供接口以方便扩展。explore2fs操作是图形化界面,只要运行就知道怎么用了。该工具支持ext2,ext3,还可以将Linux分区上的文件拷贝出来,通常用来备份文件。不过一般来说,访问Linux分区的工具都不会提供写操作,有的即使支持写也不会将其作为默认选项。explore2fs说明是支持写操作的,不过我按照要求更改设置后仍然没有成功写入过。 第二款工具是Ext2IFS。与explore2fs不同的是,Ext2IFS不是直接从其界面访问Linux分区,而是作为一个windows服务运行。它的设置界面是图形化的,支持ext2和ext3。按照操作步骤设置完成后启动服务,将会在我的电脑里出现几个新的分区,它们就是Linux分区的映射。此后就可以如访问Windows文件系统一样访问它们。这个工具也不支持写操作。下载地址(另存为) 另一个工具叫做Ext2Fsd,这是我用过的工具里面唯一写操作成功的,并且它直接提供源码。和Ext2IFS一样,Ext2Fsd也是作为一个服务在后台运行,访问Linux分区时也是通过我的电脑里的虚拟分区映射访问。不过其启动要通过命令行,而且要知道某个分区的具体位置。比如有一个分区在第一块硬盘的第三个分区上,现在我想把它映射为f:盘,那么就执行命令mount 0 1 f:。不过在这之前记得要运行setup,要不服务就没运行。Ext2Fsd默认也不会将写操作打开,需要修改注册表文件Ext2fsd.reg,将WritingSupport改为00000001,另外要修改配置文件ext2fsd.inf,将里面WritingSupport改为1。重新导入注册表并启动服务,写操作就可以顺利完成了。下载地址(另存为) 在Windows访问Linux分区会带来很多方便,比如有一次我不小心吧fstab文件修改错了,以致Linux无法启动,其实只需吧fstab文件修改一点即可,于是用Ext2Fsd打开写操作修改了fstab,系统就成功恢复了。不过,写操作是非常危险的,这些软件的作者都不建议使用,如果一定要用也要小心操作哦。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值