How to access the Linux partition _unix Linux under Windows9x

Source: Internet
Author: User
Tags valid

1. Introduction

The Linux kernel supports a large number of file system types, and currently it can read and write (or at least read) most file systems. Linux often coexists with Microsoft Windows in a system or hard Linux on the Windows9x/nt file system support is very good, conversely you want to be in Windows with Visual C + + programming while you can look at the Linux gcc-howto must be cost This article tries to give you a simple help.

This HOWTO is free documentation. You can redistribute and/or modify it under the GNU GPL published by the FSF; You are free to decide on any version that applies to the GPL 2.0 or later.

It is hoped that the publication of this document will be of assistance to you, but we do not offer any assurances, even for commercial or special purposes. For more information, see GNU general public Grant Power arrest.

This article does not distinguish between the concept of file system and partition without affecting the understanding.

1. Linux Access FAT/FAT32/NTFS partitions.

The Linux kernel should support at least the Fat/msdos file system (after installation). The Vfat file system is generally compiled as a Module and can be loaded with modprobe VFAT. NTFS can be supported in a higher-version kernel. If you're using a 2.0.3, you'll need to download a Back, and then patch into the kernel to compile.

The Fat/vfat partition can be mount into a writable file system (RW). NTFS partitions are currently only mount to a read-only (RO) file system.

2. Microsoft accesses the ext2 partition.

2.1. EXT2 TOOLS v1.1

EXT2 Tools is a set of toolkits that allow you to read LINUX EXT2 file systems in DOS. It consists of the following programs:

E2cat cat commands similar to Linux
E2CD CD command similar to Linux
E2CP the CP command similar to Linux
E2ls ls command similar to Linux
E2part lists the partition information for the hard disk
E2pwd similar to linux pwd command
EXT2 to is the GNU general Public License software

Now all programs have been compiled under GCC, and (Dos) run requires GO32 DOS extender GO32.EXE. GO32. EXE is included in Ext2tools's release as part of the DJGPP

2.1.1. Install EXT2 TOOLS
[MSDOS]
>mkdir c:\ext2l
>pkunzip-d Ext2tool_1_1.zip
>dir

2.1.2. Run EXT2 TOOLS
To set environment variables before running:

> SET e2cwd=129:5
Or
> SET e2cwd=129:5:234
The I node number of the |__ directory, the default is root I node number 2.
| | |_____ the Linux partition of the EXT2 file system.
| |________ physical hard Drive code:
| 0:a Floppy Drive
| 1:B Floppy Drive
| 128: The first hard drive
| 129: Second Hard drive
|_____________ Environment variables

Guarantee GO32. EXE is in the system PATH.

Run the E2LS command to list the file system for the fifth partition of the second hard drive.

Run the E2part 129 command to list the partitions of the second hard drive.

2.1.3. EXT2 TOOLS can be run under Microsoft windows3x/9x,

Peeter joot to transfer EXT2 tools to NT. NT version of EXT2 tools
Ext2nt-1.06.tar.gz can be from

Problems existing in 2.1.4

The third hard drive (IDE) and SCSI hard drive support does not vary by machine. Availability depends on whether the system relies on an interrupt 13 access to the hard drive.

2.1.5 Command Usage # 'll translate into Chinese soon.

# Sorry for my laziness.
E2cat
-

Synopsis
E2cat [-BT] Pathname

Desctiption
The E2CAT program would 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
The 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 would use that instead of E2CD. BAT.


E2cp

Synopsis
E2CP [-BT] file1 file2

Desctiption
The E2CP program would 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 is 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 with the E2CWD environment variable, instead
The disk number is given as a argument to the E2part
Program.

BUGS
The program isn't very good at identifying MSDOS file
Systems.

E2pwd
-

Synopsis
E2pwd

DESCRIPTION
The E2PWD program is prints the current directory.

2.2. Lread 2.3

Another DOS read LINUX EXT2 file system software. Lread is a GPL free software. v1.0 developed by Jason Hunter and David Lutz. X by Werner Zimmermann

2.2.1. Install Lread

Very simple, as long as in the DOS lread-2.3.zip to the corresponding directory, you will find the source code and binary program Ldir and lread, generally do not need to compile and configure to run.

Lread can run in Windows 3x/9x.

2.2.3. Command usage

Command LDIR [-H |-v] [-S/DEV/HD ...] [Linux_directory]
List ext2 (file system) directory

Options

-H Help Information

-V Version Information

-s Specifies the hard disk partition where the directory resides, such as/DEV/HDA5. The default value is specified in Ldir.h. Support Floppy drive:/DEV/FD? If you specify only/dev/hda or/DEV/HDB and do not give the way out, Ldir will search for the first Linux partition on this drive. It should be noted that if the lack of option-s/dev/...,ldir will use it in The hard disk (usually/dev/hda) that is specified at compile time. Ldir supports SCSI hard disk partitions. The corresponding above options can be/DEV/SDA and/dev/sda3. Linux_directory the name of the directory to be listed. If omitted, use/. Full Linux path name delimiter with/(not \), support match, case sensitive.

Command Lread [-h | v] [-S/DEV/HD ...] Linux_file [Dos_file]

List Linux files or copy to Dos.
Options
-H Help Information
-V Version Information
-S See Ldir
Linux_file valid UNIX source filename.
Dos_file valid DOS destination filename. omitted words, output to
Standard output (STDOUT).

2.3 Currently the most practical GPL software is FSDEXT2

Copyright (C) 1997 by Peter van Sebille.

This software can only run under Win32, it is very convenient to mount the corresponding Linux ext2 partition into a read-only disk in Windows.

2.3.1 Installation FSDEXT2

Expand 95ext2fs.zip to a directory like C:\fsdext, run

Install.bat or direct copy related driver to the appropriate directory:

Vext2d.vxd-> C:\Windows\System
Tsdext2.vxd-> C:\windows\system\iosubsys

Add C:\fsdext to System path and reboot.

2.3.2 Mount/umount Linux Ext2 File system

To run the C:\fsdext\mount.exe command, you can partition the Linux ext2
Mount into a logical partition.

MOUNT/DEV/HDB1 g to install the corresponding partition
| |__ DOS Logical Disk D, E, f ...

|_________ Linux under the corresponding device name *

mount/u g Remove the partition

2.3.3. * The problems that exist

Suppose your PC has two IDE hard drives and an IDE optical drive.

Hardware | Slots | M/s | Linux Device Name
                        
First hard drive IDE0 Master/dev/hda
Second hard drive IDE1 MASTER/DEV/HDC
Optical drive IDE1 SLAVE/DEV/HDD

To mount the Linux ext2 partition/DEV/HDC1 to Windows 9X, you must use the

MOUNT/DEV/HDB1 g

Instead of

MOUNT/DEV/HDC1 G!!

2.3.4. Command usage (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. Compare

Software Microsoft platform Ease of Use GPL
                      
Ext2 Tool Dos/windows9x/nt + + is
Lread Dos/windows9x + + is
95EXT2FS windows9x +++ is

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.