How to access Linux partitions in Windows

xiaoxiao2021-03-06  23

1 Introduction

Linux kernel supports numerous file system types, currently read / write (at least read) Most file systems. Linux often coexist with MicrosoftWindows in a system or hard disk. Linux supports Windows9x / NT file system support very well, Violetally, you want to use Visualc to use Visualc , you can take a look at the GCC-HOWTO. This article tries to give you a simple help.

This howto is a free file (free

Document.tion; you can renew and / or modify it under the GNugPL published by FSF; you can freely decide any of the versions of the applicable GPL2.0 or later.

I hope that the release of this document can help you, but we don't provide any guarantee, even if it is a business or special purpose implicit guarantee. For details, please refer to GNU General Public Authorization.

This article does not affect the concept of file systems and partitions without affecting understanding.

1.Linux Access the FAT / FAT32 / NTFS partition.

Linux internal nuclear should support at least the FAT / MSDOS file system (after installation) .Vfat file system is generally compiled as module, you can use ModProbevfat to be loaded. NTFS can be supported in the higher version of the kernel. If you use 2.0.3 ?, Just need this

ftp://sunsite.unc.edu/pub/linux

/system/filesystems/ntfs.tar.gz

Download a copy, then patch to the kernel.

The FAT / VFAT partition can be MOUNT to be readwritten file system (RW) .NTFS partition currently can only Mount to read (RO) file system.

2. Microsoft Access EXT2 partition.

2.1.ext2toolsv1.1

Ext2Tools is a set of toolkits that allow you to read Linuxext2 file systems under DOS. It consists of the following procedures:

E2CAT is similar to the linux CAT command

E2CD Similar to Linux CD commands

E2CP is similar to Linux's CP command

E2LS is similar to Linux ls command

E2PART lists the partition information of the hard disk

E2PWD is similar to Linux's PWD command

Ext2Tools is GNUGENERALPUBLICLICENSE software, copyright

(C) 1995claustondering (ct@login.dknet.dk),

EXT2TOOL_1_1.Zip

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

Download anonymous

Now all programs have been compiled under GCC (DOS) Running requires GO32DOS extension to go32.exe.go32.exe in Ext2Tools, as part of DJGPP, Go32.exe can also

ftp://oak.oakland.edu/simtel/vender/djgpp

Anonymous download.

2.1.1. Install Ext2Tools [MSDOS]

> MKDIRC: EXT2L

> PKUNZIP-DEXT2TOOL_1_1.ZIP

> DIR

2.1.2. Run EXT2TOOLS

Set environment variables before running:

> SETE2CWD = 129: 5

or

> STE2CWD = 129: 5: 234

|||| __ directory i node, the default is the root I node number 2.

||| _____ ext2 file system Linux partition.

|| ________ Physical Hard Disk:

| 0: A floppy drive

| 1: B floppy drive

| 128: First hard disk

| 129: Second Block

| _____________ environment variable

Guaranteed Go32.exe in the system PATH.

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

Run the E2PART129 command can list the partition of the second hard disk.

2.1.3.Ext2Tools can run in MicrosoftWindows3X / 9X,

Peterjoot (peter@accessv.com,

Peter_joot@vnet.ibm.com)

Transplant ext2tools to NT. Ext2Tools NT Edition

EXT2NT-1.06.tar.gz can be from ftp://sunsite.unc.edu/pub/linux/UTILS/dos/DOS/

Similar to the download, installation and use.

2.1.4 Problems

The third hard disk (IDE) and SCSI hard drive support for the machine and different. Can be used depend on whether the system relies on interrupt 13 access to the hard disk.

2.1.5 Command usage #willtranslateInchineseSoon.

#Sorryformylaziness.

E2CAT

-

Synopsis

E2cat [-bt] pathname

Desctiption

Thee2catProgramwillcopyThecontentsofthefile

IdentifiedbyExt2PathNameTothestandardOrdoutput.

ThefollowingOptionsAreavailable:

-bbinarymode.notranslationPerformed.

-TTEXTMODE (Default) .lftranslatedToCr / LF.

E2CD

Synopsis

E2CDPATHNAME

Description

ThepathnamemustiDentInexT2Directory.that

DirectoryismAdethecurrentworkingDirectory.

Note

E2cdisa.batfileThatcreateSanother.batfile

(Called ___ e2cd.bat) ThatmodifiestheE2Cwdenvir-

OnmentVariable.itthenexecutes ___ e2cd.bata

SobewareIfyoualReadyhaveafile

Called ___ e2cd.bat.)

ForuseWith4dos, Ane2cd.btmfileisalsoinCluded.

4doswillusethatinsteadofe2cd.bat.

E2CP

Synopsis

E2CP [-bt] file1file2

Desctiption

Thee2cpprogramwillcopyTheContentSofthefile

Identifiedbyext2pathname'File1'tothemsdosfile

'file2'.

ThefollowingOptionsAreavailable:

-bbinarymode (default) .NotranslationPerformed.

-TTEXTMODE.LFTRANSLATEDTOCR / LF.

E2LS

Synopsis

E2LS [-adiltr] Pathname ...

Description

ThepathnameSmayIdentifyext2directoriesorfiles.

Wildcardcharacters (*, [],?, Etc.) Maybeusedina

MannersimilartowhatthelinuxShellalLower.

Thee2lsprogramProvidesadirectoryListingoftofthe

SpecifiedPathnamesinamannersimilartothelinux

Lsprogram.

ThefollowingOptionsareSupported:

-AincludefilenamesStartingWith.INLISTING.

-dlistonlypathname, EvenifitiSadirectory.

-iincludeinodenumberinlistic.

-lproducealonglistic.

-TSORTBYMODIFICATIONTIME.

-RRRREVERSETHESORTORDER.

E2PART

-

Synopsis

E2PARTDiskno

Description

Thee2PartProgramListSthePartitionSthatareavailableonaParticularPhysicalDisk.Thisprogram

DoesNotusethee2cwdenvironmentVariable, Instead

ThediskNumberisgiveNasanArgumenttothee2Part

PROGRAM.

Bugs

TheprogramisNotveryGoodAdayAtiFyingMsdosfile

Systems.

E2PWD

-

Synopsis

E2PWD

Description

Thee2PwdProgramPrintSthecurrentDirectory.

2.2.lread2.3

Another software reading Linuxext2 file system software .lread is GPL free software. V1.0 is developed by JasonHunterandDavidlutz .v2.x is modified by Wernerzimmermann .lread-2.23.zip

ftp://sunsite.unc.edu/pub/linux/UTILS/dos/

Download anonymous

2.2.1. Installing LREAD

Very simple, as long as LREAD-2.3.zip is unwartnwart in DOS, you will find the original code and binary LDIR and LREAD, which is generally not necessary to compile and configure.

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

Option:

-H Help information

-v version information

-s Specifies the hard disk partition where the directory is located, for example / dev / hda5. The default value is specified in LDIR.H. Support software drive: / dev / fd ?. If only / dev / hda or / dev / hdb is specified, do not give the way After the LDIR, LDIR will search for the first Linux partition on this drive. It should be noted that if the provision of options -s / dev / ..., LDIR will use it in pre-specified hard drive at compile time (usually / dev / hda) .ldir supports the SCSI hard drive partition. The above option is available / dev / sda and /dev/sda3.linux_directory to list the directory name to list. (Not ''), support matching characters, sensitive.

Command Lread [-h | V] [- s / dev / hd ..] Linux_file [dos_file]

List Linux files or copied to DOS.

Option

-H Help information

-v version information

-S See LDIR

Linux_file legal UNIX source file name.

DOS_FILE legal DOS destination file name. 省 省 略, output to

Standard output (STDOUT).

2.3 The most practical GPL software is fsdext2

CopyRight (c) 1997Bypetervansebille.

This software can only be run under Win32, you can use the corresponding Linuxext2 partition Mount to read only the disk under Windows, which is extremely convenient to use.

2.3.1 Installing FSDext2

Expand 95EXT2FS.ZIP to a directory such as C: fsdext, run

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

Vext2d.vxd-> C: WindowsSystem

TSDext2.vxd-> C: Windowssystemiosubsys

Add c: fsdext to the system Path and start.

2.3.2mount / umountlinuxext2 file system

Run the c: fsdextMount.exe command can take Linuxext2 partition

MOUNT is logical partition.

Mount / dev / hdb1g

|| __DOS logical letter D, E, F ...

|

| _________ linux, the corresponding device name *

Mount / UG removes the corresponding partition

2.3.3. * Existence

If your PC has two IDE hard drives and an IDE drive.

Hardware | Slot | M / S | Linux device name

First hard disk IDE0Master / dev / hda

Second block IDE1MASTER / DEV / HDC optical drive IDE1SLAVE / DEV / HDD

Want to use Linuxext2 partition / dev / hdc1mount to Windows 9x

Mount / dev / hdb1g

Instead of

Mount / dev / hdc1g !!

2.3.4. Command usage (MOUNT /?):

Ext2FileSystemMountforWindows95

Version0.17Bypetervansebille

USAGE: MOUNT [DeviceName] Driverletter] [Options]

Options:

/ R: RelaxPartitionIdcheckwhenmounting

/ u: unloadDrive (DriveletterRequired)

/ d: getcurrentdebuglevel

/ d =

Value: SetCurrentDebuglevel

/ ?: showusage

转载请注明原文地址:https://www.9cbs.com/read-40896.html

New Post(0)