从windows xp读取linux ext4分区的文件

用了好久的linux, firefox的插件都放在linux的ext4分区上。 想要在windows xp中读取ext4分区的文件,接着就有了一段惊心动魄的经历。

 

首先是到google上搜索“reading linux ext4 from windows”,找到好几个网页说可以用ext2fsd或者linux reader的,ext2fsd和linux reader都号称支持ext4, 但都没有成功读取。 读不了也就罢了, 用linux reader的时候, 它居然把我的一个20G的硬盘分区误认为是近300G的分区, 我试着读取, 读不了。 后来重启进入linux的时候,发现ext4分区读不了……

 

在linux下面查看分区表(fdisk -l, cfdisk), 发现原先的好几个分区已经合并成一个了, linux reader把分区表给破坏了, 汗~~~~~~

然后小心翼翼地用usb启动盘进入dos,尝试用diskman来恢复分区表, 无奈diskman能试图找到的分区表都不正确, 不能把原先的正确分区找到, 放在机器上的所有数据就这样丢了,只能扼腕痛惜,于是网上搜索恢复linux分区的工具, 找到了 R-Linux, 一个恢复ext2/ext3/ext4分区数据的软件, 用R-Linux居然能够把丢失分区的文件找回了部分, 但不能恢复所有的。 误打误撞,发现可以用R-Linux来在windows上读取ext4分区,专用的读取软件读不了ext4, 数据恢复软件竟然可以

 

后来就把硬盘上重要的数据备份了,然后打开PQ Magic, PQ说分区表有错误,提示是否要恢复, 确定几次后修复了分区表中的错误,之后居然在windows的磁盘管理器看到了正确的分区表(能看到原先的几个linux分区)。 然后点击右键创建分区, 但选择不格式化。

 

重启进入linux, fdisk -l 看到了原先的分区。 mount之后, 数据全部找到了。 回到windows xp之后, 用R-Linux轻易地把ext4分区上的firefox 插件都拷贝到xp的分区上。 这些插件都非常有用, 要么可以提升网页浏览速度, 要么方便开发调试, 要么用于内容管理。 后面我会在blog中介绍这些好用的插件。

 

可以从这里下载R-Linux : http://www.data-recovery-software.net/Linux_Recovery_Download.shtml

可以读写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.
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值