QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 9134|回复: 9

在Win环境下访问Linux的ext2、ext3分区的工具及方法!!!

[复制链接]
发表于 2002-12-3 11:13:30 | 显示全部楼层 |阅读模式
1. EXT2 TOOLS v1.1
EXT2 TOOLS 是一组在 DOS 下可以让你读 LINUX EXT2 文件系统的工具包.它由以下程序组成:

E2CAT 类似于 Linux 的 cat 命令
E2CD 类似于 Linux 的 cd 命令
E2CP 类似于 Linux 的 cp 命令
E2LS 类似于 Linux 的 ls 命令
E2PART 列出硬盘的分区信息
E2PWD 类似于 Linux 的 pwd 命令

EXT2 TOOLS 是 GNU General Public License 软件, 版权所有
(C) 1995 Claus Tondering ([email protected]),
ext2tool_1_1.zip 可以从

ftp://sunsite.unc.edu/pub/Linux/system/filesystems/ext2/

处匿名下载.

现在所有的程序已在 GCC 下编译, (DOS下)运行时需要 GO32 DOS 扩展程序GO32.EXE. GO32.EXE 包含在 EXT2TOOLS 的发布中, 做为DJGPP 的一部分,
GO32.EXE 还可以从

ftp://oak.oakland.edu/SimTel/venders/djgpp

匿名下载.

2.1.1. 安装 EXT2 TOOLS
[MSDOS]
>mkdir c:ext2l
>pkunzip -d ext2tool_1_1.zip
>dir

2.1.2. 运行 EXT2 TOOLS

在运行前设置环境变量:

>SET E2CWD=129:5

>SET E2CWD=129:5:234
| | | |__ 目录的I节点号, 缺省为根I节点号2.
| | |_____ EXT2文件系统的LINUX分区.
| |________ 物理硬盘的代号:
| 0: A 软驱
| 1: B 软驱
| 128: 第一块硬盘
| 129: 第二块硬盘
|_____________ 环境变量

保证 GO32.EXE 在系统 PATH 中.
运行 e2ls 命令就能列出第二块硬盘的第五分区的文件系统.
运行 e2part 129 命令能列出第二块硬盘的分区情况.

2.1.3. EXT2 TOOLS 可以在 Microsoft Windows3x/9x 下运行,
Peeter Joot ([email protected],
[email protected])
把 EXT2 TOOLS 移植到 NT 上. EXT2 TOOLS 之 NT 版
ext2nt-1.06.tar.gz 可以从

ftp://sunsite.unc.edu/pub/Linux/utils/dos/

处下载,安装和使用方法类似.

2.1.4 存在的问题

第三块硬盘 (IDE) 和 SCSI 硬盘支持否因机器而异.可用与否取决于系统是否依赖中断13访问硬盘.

2.1.5 命令用法 # Will translate into chinese soon.
# Sorry for my laziness.
E2CAT
-----

SYNOPSIS
E2CAT [-bt] pathname

DESCTIPTION
The E2CAT program will copy the contents of the file
identified by ext2 pathname to the standard output.

The following options are available:

-b Binary mode. No translation performed.

-t Text mode (default). LF translated to CR/LF.



E2CD
----

SYNOPSIS
E2CD pathname

DESCRIPTION
The pathname must identify an ext2 directory. That
directory is made the current working directory.

NOTE
E2CD is a .BAT file that creates another .BAT file
(called ___E2CD.BAT) that modifies the E2CWD envir-
onment variable. It then executes ___E2CD.BAT and
deletes it. (So beware if you already have a file
called ___E2CD.BAT.)

For use with 4DOS, an E2CD.BTM file is also included.
4DOS will use that instead of E2CD.BAT.


E2CP
----

SYNOPSIS
E2CP [-bt] file1 file2

DESCTIPTION
The E2CP program will copy the contents of the file
identified by ext2 pathname 'file1' to the MSDOS file
'file2'.

The following options are available:

-b Binary mode (default). No translation performed.


-t Text mode. LF translated to CR/LF.



E2LS
----

SYNOPSIS
E2LS [-adiltr] pathname ...

DESCRIPTION
The pathnames may identify ext2 directories or files.
Wildcard characters (*, [], ?, etc.) may be used in a
manner similar to what the Linux shell allows.

The E2LS program provides a directory listing of the
specified pathnames in a manner similar to the Linux
ls program.

The following options are supported:

-a Include file names starting with . In listing.
-d List only pathname, even if it is a directory.
-I Include inode number in listing.
-l Produce a long listing.
-t Sort by modification time.
-r Reverse the sort order.




E2PART
------

SYNOPSIS
E2PART diskno

DESCRIPTION
The E2PART program lists the partitions that are
available on a particular physical disk. This program
does not use the E2CWD environment variable, instead
the disk number is given as an argument to the E2PART
program.

BUGS
The program is not very good at identifying MSDOS file
systems.



E2PWD
-----

SYNOPSIS
E2PWD

DESCRIPTION
The E2PWD program prints the current directory.

+++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++

2.2. LREAD 2.3

另一个 DOS 下读 LINUX EXT2 文件系统的软件.LREAD 是 GPL 自由软件. V1.0 由 Jason Hunter and DavidLutz开发. V2.X 由 Werner Zimmermann 修改.Lread-2.23.zip 可以从

ftp://sunsite.unc.edu/pub/Linux/utils/dos/

处匿名下载.

2.2.1. 安装 LREAD

十分简单, 只要在 DOS 下把 LREAD-2.3.zip解开到相应目录,就会发现原码和二进制程序 ldir 和 lread,一般无须编译和配置就能运行.LREAD 在windows 3x/9x 能运行.

2.2.3. 命令用法

命令 ldir [-h | -v] [-s/dev/hd..] [Linux_Directory]
列出 ext2 (文件系统)目录
选项:
-h 帮助信息
-v 版本信息
-s 指定目录所在的硬盘分区,例如/dev/hda5.缺省值在 ldir.h 中指定.支持软驱:/dev/fd?.如果仅指定/dev/had 或 /dev/hdb, 不给出路经,ldir将要搜索此驱动器上的第一个 LINUX分区.须指出,若省缺选项 -s/dev/...,ldir会用它在
编译时预先指定的硬盘(通常为/dev/had).ldir支持SCSI硬 盘分区.相应上述选项可用/dev/sda和/dev/sda3.

Linux_Directory
要列出的目录名. 省略的话,则用'/'.全LINUX路经名定界符 用'/'( NOT ''), 支持匹配符,大小写敏感.

命令 lread [-h | v] [-s/dev/hd..] Linux_File [DOS_File]

列出Linux文件或复制到DOS中.
选项
-h 帮助信息
-v 版本信息
-s 参见ldir
Linux_File 合法的 UNIX 源文件名. DOS_File 合法的 DOS 目的文件名. 省略的话, 输出到 标准输出(STDOUT)上.

+++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++

2.3 目前最实用的 GPL 软件是 FSDEXT2

Copyright (C) 1997 by Peter van Sebille. 此软件只能在 win32 下运行, 可以把相应的 linux ext2 分区 mount成在windows下只读的盘,使用极为方便.

2.3.1 安装 FSDEXT2

展开 95ext2fs.zip 到一个目录比如 c:fsdext, 运行 install.bat 或直接拷贝相关驱动程序到相应目录:

vext2d.vxd -> c:windowssystem
tsdext2.vxd -> c:windowssystemiosubsys

添加 c:fsdext 到系统 PATH 后重启动.

2.3.2 Mount/Umount Linux Ext2 文件系统

运行c:fsdextmount.exe 命令就可以把 Linux ext2 分区 mount 成逻辑分区.

Mount /dev/hdb1 g 安上相应分区
| |__ DOS 逻辑盘符 d , e, f ...
|
|_________ Linux 下相应设备名*

mount /u g 卸掉相应分区

2.3.3. *存在的问题

假如你的PC有两块IDE硬盘和一个IDE光驱.

硬件 | 插槽 | M/S | Linux 设备名
----------------------------------------------------------------
第一块硬盘 IDE0 Master /dev/had
第二块硬盘 IDE1 Master /dev/hdc
光驱 IDE1 Slave /dev/hdd

想把 Linux ext2 分区 /dev/hdc1 mount 到 windows 9X 下时必须用

mount /dev/hdb1 g

而不是

mount /dev/hdc1 g !!


2.3.4. 命令用法(mount /?) :

Ext2 file system mount for Windows 95
Version 0.17 by Peter van Sebille

Usage: MOUNT [[devicename] driverletter] [options]
options:
/r: relax partition ID check when mounting
/u: unload drive (drive letter required)
/d: get current debug level
/d=value: set current debug level
/?: show usage

3. 比较

软件 Microsoft 平台 易用性 GPL
------------------------------------------------------------------
ext2 tool DOS/windows9x/NT ++ 是

lread DOS/windows9x ++ 是

95ext2fs windows9x +++ 是
发表于 2004-5-24 12:14:32 | 显示全部楼层
hao
xiexie
回复

使用道具 举报

发表于 2004-5-24 15:52:16 | 显示全部楼层
如果只是浏览和copy到win分区,最简单易用的办法是Tototal Commander,装好linux分区文件系统插件就好了

另外还有rpm文件的插件,浏览rpm文件就象rar和zip一样

最好Total能出个linux版。。。8-)
回复

使用道具 举报

发表于 2004-5-24 22:14:52 | 显示全部楼层
多谢了
回复

使用道具 举报

发表于 2004-5-24 23:05:57 | 显示全部楼层
http://uranus.it.swin.edu.au/~jn/linux/explore2fs.htm

Explore2fs
回复

使用道具 举报

发表于 2004-7-7 10:19:44 | 显示全部楼层
新出来一个WinLinux,是在Windows下访问LINUX分区的工具,地址在
http://www.linuxdby.com/showthread.php?s=&postid=28097#post28097
回复

使用道具 举报

发表于 2004-7-29 18:55:45 | 显示全部楼层
不用写这么详细的教程吧,这里有个简单到不用教程的工具,可读,可写,支持EXT2,EXT3 。而且是国产的

http://coca.anyp.cn
回复

使用道具 举报

发表于 2004-7-30 14:30:56 | 显示全部楼层
是免费的么   
回复

使用道具 举报

发表于 2004-8-20 08:54:56 | 显示全部楼层
thanks
that s cool
i need it
回复

使用道具 举报

发表于 2004-8-20 09:40:22 | 显示全部楼层
我喜欢wincmd,使用方便
要是有个linux下得就好了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-28 09:25 , Processed in 0.106179 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表