日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 运维知识 > linux >内容正文

linux

window 下分linux分区,如何在windows9x下访问linux分区

發(fā)布時(shí)間:2023/12/9 linux 25 豆豆
生活随笔 收集整理的這篇文章主要介紹了 window 下分linux分区,如何在windows9x下访问linux分区 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

1. 簡(jiǎn) 介

Linux 內(nèi) 核 支 持 眾 多 的 文 件 系 統(tǒng) 類(lèi) 型, 目 前 它 可 以 讀 寫(xiě)( 至 少 是 讀) 大 部 分 的 文 件 系 統(tǒng).Linux 經(jīng) 常 與Microsoft Windows 共 存 于 一 個(gè) 系 統(tǒng) 或 者 硬 盤(pán) 中.Linux 對(duì)windows9x/NT 的 文 件 系 統(tǒng) 支 持 的 很 好, 反 之 你 想 在windows 下 用Visual C++ 編 程 的 同 時(shí) 能 看 一 看Linux 的GCC-HOWTO 則 必 須 得 費(fèi) 點(diǎn) 勁. 本 文 試 圖 給 你 一 個(gè) 簡(jiǎn) 單 的 幫 助.

這 份 HOWTO 是 免 費(fèi) 文 件(free documentation); 你 可 以 在FSF 出 版 的 GNU GPL 之 規(guī) 定 下 重 新 散 播 及/ 或 修 改 它; 您 可 以 自 由 決 定 適 用 GPL 2.0 或 之 後 的 任 何 版 本.

希 望 這 份 文 件 的 發(fā) 布 能 對(duì) 您 有 幫 助, 但 我 們 不 提 供 任 何 保 證, 即 使 是 商 業(yè) 上 或 某 特 殊 用 途 的 隱 含 保 證 亦 然. 詳 情 請(qǐng) 參 見(jiàn) GNU 一 般 公 開(kāi) 授 權(quán) 書(shū).

本 文 在 不 影 響 理 解 的 前 提 下, 不 區(qū) 分 文 件 系 統(tǒng) 和 分 區(qū) 的 概 念.

1. Linux 存 取 FAT/FAT32/NTFS 分 區(qū).

Linux 內(nèi) 核 應(yīng) 至 少 支 持 fat/msdos 文 件 系 統(tǒng)( 安 裝 后). vfat 文 件 系 統(tǒng) 一 般 編 譯 為 Module , 可 以 用 modprobe vfat 裝 入. ntfs 在 版 本 較 高 的 內(nèi) 核 里 可 以 支 持. 如 果 你 用 的 是2.0.3?, 就 需 要?下 載 一 份 回 來(lái), 然 后 patch 到 內(nèi) 核 中 再 編 譯.

fat/vfat 分 區(qū) 可 以 mount 成 可 讀 寫(xiě) 的 文 件 系 統(tǒng)(rw). ntfs 分 區(qū) 目 前 只 能mount 成 只 讀(ro) 的 文 件 系 統(tǒng).

2. Microsoft 存 取 ext2 分 區(qū).

2.1. EXT2 TOOLS v1.1

EXT2 TOOLS 是 一 組 在 DOS 下 可 以 讓 你 讀 LINUX EXT2 文 件 系 統(tǒng) 的 工 具 包. 它 由 以 下 程 序 組 成:

E2CAT 類(lèi)似于 Linux的 cat命令

E2CD 類(lèi)似于 Linux的 cd 命令

E2CP 類(lèi)似于 Linux的 cp命令

E2LS 類(lèi)似于 Linux的 ls命令

E2PART 列出硬盤(pán)的分區(qū)信息

E2PWD 類(lèi)似于 Linux的 pwd命令

EXT2 TO?? 是 GNU General Public License軟件

現(xiàn) 在 所 有 的 程 序 已 在 GCC 下 編 譯, (DOS 下) 運(yùn) 行 時(shí) 需 要 GO32 DOS 擴(kuò) 展 程 序GO32.EXE. GO32.EXE 包 含 在 EXT2TOOLS 的 發(fā) 布 中,做 為DJGPP 的 一 部 分

2.1.1. 安裝 EXT2 TOOLS

[MSDOS]

>mkdir c:\ext2l

>pkunzip -d ext2tool_1_1.zip

>dir

2.1.2. 運(yùn)行 EXT2 TOOLS

在運(yùn)行前設(shè)置環(huán)境變量:

> SET E2CWD=129:5

> SET E2CWD=129:5:234

| | | |__目錄的i節(jié)點(diǎn)號(hào),缺省為根i節(jié)點(diǎn)號(hào)2.

| | |_____ EXT2文件系統(tǒng)的LINUX分區(qū).

| |________物理硬盤(pán)的代號(hào):

| 0: A軟驅(qū)

| 1: B軟驅(qū)

| 128:第一塊硬盤(pán)

| 129:第二塊硬盤(pán)

|_____________環(huán)境變量

保 證 GO32.EXE 在 系 統(tǒng) PATH 中.

運(yùn) 行 e2ls 命 令 就 能 列 出 第 二 塊 硬 盤(pán) 的 第 五 分 區(qū) 的 文 件 系 統(tǒng).

運(yùn) 行 e2part 129 命 令 能 列 出 第 二 塊 硬 盤(pán) 的 分 區(qū) 情 況.

2.1.3. EXT2 TOOLS 可 以 在 Microsoft Windows3x/9x 下 運(yùn) 行,

Peeter Joot??把 EXT2 TOOLS移植到 NT上. EXT2 TOOLS之 NT版

ext2nt-1.06.tar.gz可以從

2.1.4 存 在 的 問(wèn) 題

第 三 塊 硬 盤(pán) (IDE) 和 SCSI 硬 盤(pán) 支 持 否 因 機(jī) 器 而 異. 可 用 與 否 取 決 于 系 統(tǒng) 是 否 依 賴(lài) 中 斷13 訪 問(wèn) 硬 盤(pán).

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

另 一 個(gè) DOS 下 讀 LINUX EXT2 文 件 系 統(tǒng) 的 軟 件. LREAD 是 GPL 自 由 軟 件. v1.0 由 Jason Hunter and David Lutz 開(kāi) 發(fā). V2.X 由 Werner Zimmermann

2.2.1. 安 裝 LREAD

十 分 簡(jiǎn) 單, 只 要 在 DOS 下 把 LREAD-2.3.zip 解 開(kāi) 到 相 應(yīng) 目 錄, 就 會(huì) 發(fā) 現(xiàn) 原 碼 和 二 進(jìn) 制 程 序 ldir 和 lread, 一 般 無(wú) 須 編 譯 和 配 置 就 能 運(yùn) 行.

LREAD 在windows 3x/9x 能 運(yùn) 行.

2.2.3. 命 令 用 法

命令 ldir [-h | -v] [-s/dev/hd..] [Linux_Directory]

列出 ext2 (文件系統(tǒng))目錄

選 項(xiàng):

-h 幫 助 信 息

-v 版 本 信 息

-s 指 定 目 錄 所 在 的 硬 盤(pán) 分 區(qū), 例 如/dev/hda5. 缺 省 值 在 ldir.h 中 指 定. 支 持 軟 驅(qū):/dev/fd?. 如 果 僅 指 定/dev/hda 或 /dev/hdb, 不 給 出 路 經(jīng),ldir 將 要 搜 索 此 驅(qū) 動(dòng) 器 上 的 第 一 個(gè)LINUX 分 區(qū). 須 指 出, 若 省 缺 選 項(xiàng) -s/dev/...,ldir 會(huì) 用 它 在 編 譯 時(shí) 預(yù) 先 指 定 的 硬 盤(pán)( 通 常 為/dev/hda).ldir 支 持SCSI 硬 盤(pán) 分 區(qū). 相 應(yīng) 上 述 選 項(xiàng) 可 用/dev/sda 和/dev/sda3.Linux_Directory 要 列 出 的 目 錄 名. 省 略 的 話, 則 用/. 全LINUX 路 經(jīng) 名 定 界 符 用/( NOT \), 支 持 匹 配 符, 大 小 寫(xiě) 敏 感.

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

列出Linux文件或復(fù)制到DOS中.

選項(xiàng)

-h幫助信息

-v版本信息

-s參見(jiàn)ldir

Linux_File 合法的 UNIX源文件名.

DOS_File 合法的 DOS目的文件名.省略的話,輸出到

標(biāo)準(zhǔn)輸出(STDOUT)上.

2.3 目 前 最 實(shí) 用 的 GPL 軟 件 是 FSDEXT2

Copyright (C) 1997 by Peter van Sebille.

此 軟 件 只 能 在 win32 下 運(yùn) 行, 可 以 把 相 應(yīng) 的 linux ext2 分 區(qū) mount 成 在windows 下 只 讀 的 盤(pán), 使 用 極 為 方 便.

2.3.1 安 裝 FSDEXT2

展 開(kāi) 95ext2fs.zip 到 一 個(gè) 目 錄 比 如 c:\fsdext, 運(yùn) 行

install.bat 或 直 接 拷 貝 相 關(guān) 驅(qū) 動(dòng) 程 序 到 相 應(yīng) 目 錄:

vext2d.vxd - > c:\windows\system

tsdext2.vxd - > c:\windows\system\iosubsys

添加 c:\fsdext到系統(tǒng) PATH后重啟動(dòng).

2.3.2 Mount/Umount Linux Ext2 文 件 系 統(tǒng)

運(yùn)行c:\fsdext\mount.exe命令就可以把 Linux ext2分區(qū)

mount成邏輯分區(qū).

mount /dev/hdb1 g 安上相應(yīng)分區(qū)

| |__ DOS邏輯盤(pán)符 d , e, f ...

|_________ Linux下相應(yīng)設(shè)備名*

mount /u g 卸掉相應(yīng)分區(qū)

2.3.3. * 存 在 的 問(wèn) 題

假 如 你 的PC 有 兩 塊IDE 硬 盤(pán) 和 一 個(gè)IDE 光 驅(qū).

硬件 | 插槽 | M/S | Linux設(shè)備名

第一塊硬盤(pán) IDE0 Master /dev/hda

第二塊硬盤(pán) IDE1 Master /dev/hdc

光驅(qū) IDE1 Slave /dev/hdd

想把 Linux ext2分區(qū) /dev/hdc1 mount到 windows 9X下時(shí)必須用

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平臺(tái) 易用性 GPL

ext2 tool DOS/windows9x/NT ++ 是

lread DOS/windows9x ++ 是

95ext2fs windows9x +++ 是

總結(jié)

以上是生活随笔為你收集整理的window 下分linux分区,如何在windows9x下访问linux分区的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。