linux下設備或資源忙,linux刪除文件目錄 目錄設備或資源忙怎么辦

linux刪除文件目錄 目錄設備或資源忙怎么辦

來源:未知

作者:老黑

時間:09-09-21

【打印】

[root@rs swms]# rmdir zpgg

rmdir: ‘zpgg’: 設備或資源忙

相關服務都已經停止掉了,有什么辦法強制刪除嗎?

你可以在有windows的硬盤上分出一個fat32的分區,用來做兩個系統的共享分區,先在linux下將你要拷貝的文件復制到fat32的分區上,然后到windows下讀取了,但是如果你就非得在windows下讀取linux分區的話,可能難以實現,至少我不知道如何處理或借助那個軟件,你可以到http://www.linuxsir.org/bbs/上發帖,那上面有很多高手可以回答你。

在window下不能把裝有linux系統的盤里的內容拷貝出來的

因為,window不支持,liunx的文件格式

但是,反過來的話,用liunx的系統就可以訪問window下的文件

這就是liunx采用了虛擬文件系統,可以像掛載硬件一樣,來掛載文件系統,把不支持的文件系統掛載上去

所以,不行。

如果你真想要liunx下的文件的話

fef

可以用移動硬盤來轉一下,或者,把這個那個linux的硬盤掛到別的機器上,在上面做個服務器,用你的2003的機器去訪問他,從上面下載!!

局域網的話,還是挺快的!!

但是,即使是你拷過來了,也是,顯示的不完整,或有亂碼的!

把linux裝個samba服務,然后在其他機器里從網上鄰居拷貝 knoppix ?,用這個系統 如 何 在windows9x 下 訪 問linux 分 區

-- 1. 簡 介

---- Linux 內 核 支 持 眾 多 的 文 件 系 統 類 型, 目 前 它 可 以 讀 寫( 至 少 是 讀) 大 部 分 的 文 件 系 統.Linux 經 常 與Microsoft Windows 共 存 于 一 個 系 統 或 者 硬 盤 中.Linux 對windows9x/NT 的 文 件 系 統 支 持 的 很 好, 反 之 你 想 在windows 下 用Visual C 編 程 的 同 時 能 看 一 看Linux 的GCC-HOWTO 則 必 須 得 費 點 勁. 本 文 試 圖 給 你 一 個 簡 單 的 幫 助.

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

---- 希 望 這 份 文 件 的 發 布 能 對 您 有 幫 助, 但 我 們 不 提 供 任 何 保 證, 即 使 是 商 業 上 或 某 特 殊 用 途 的 隱 含 保 證 亦 然. 詳 情 請 參 見 GNU 一 般 公 開 授 權 書.

---- 本 文 在 不 影 響 理 解 的 前 提 下, 不 區 分 文 件 系 統 和 分 區 的 概 念.

---- 1. Linux 存 取 FAT/FAT32/NTFS 分 區.

---- Linux 內 核 應 至 少 支 持 fat/msdos 文 件 系 統( 安 裝 后). vfat 文 件 系 統 一 般 編 譯 為 Module , 可 以 用 modprobe vfat 裝 入. ntfs 在 版 本 較 高 的 內 核 里 可 以 支 持. 如 果 你 用 的 是2.0.3?, 就 需 要 到 這

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

/system/filesystems/ntfs.tar.gz

---- 下 載 一 份 回 來, 然 后 patch 到 內 核 中 再 編 譯.

---- fat/vfat 分 區 可 以 mount 成 可 讀 寫 的 文 件 系 統(rw). ntfs 分 區 目 前 只 能mount 成 只 讀(ro) 的 文 件 系 統.

---- 2. Microsoft 存 取 ext2 分 區.

---- 2.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 (ct@login.dknet.dk),

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

fef

:第一塊硬盤

| ? ? ? ?129:第二塊硬盤

|_____________環境變量

---- 保 證 GO32.EXE 在 系 統 PATH 中.

---- 運 行 e2ls 命 令 就 能 列 出 第 二 塊 硬 盤 的 第 五 分 區 的 文 件 系 統.

---- 運 行 e2part 129 命 令 能 列 出 第 二 塊 硬 盤 的 分 區 情 況.

---- 2.1.3. EXT2 TOOLS 可 以 在 Microsoft Windows3x/9x 下 運 行,

Peeter Joot (peeter@accessv.com,

peeter_joot@vnet.ibm.com)

把 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 David Lutz 開 發. V2.X 由 Werner Zimmermann 修 改. lread-2.23.zip 可 以 從

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

fef

名 下 載.

---- 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/hda 或 /dev/hdb, 不 給 出 路 經,ldir 將 要 搜 索 此 驅 動 器 上 的 第 一 個LINUX 分 區. 須 指 出, 若 省 缺 選 項 -s/dev/...,ldir 會 用 它 在 編 譯 時 預 先 指 定 的 硬 盤( 通 常 為/dev/hda).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:\windows\system

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

添加 c:\fsdext到系統 PATH后重啟動.

---- 2.3.2 Mount/Umount Linux Ext2 文 件 系 統

運行c:\fsdext\mount.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/hda

第二塊硬盤 ?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 ? ?是

編輯歷史

類似aix 的 ?fuser ?試試 ; ?或者你有mount 文件系統 ?!

rm -rf都試過了也不行的,fuser 這個事AIX的吧~~~能具體說說怎么操作嗎?

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/278960.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/278960.shtml
英文地址,請注明出處:http://en.pswp.cn/news/278960.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

Codeforces 1066 C(思維)

傳送門: 題面: C. Books Queries time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You have got a shelf and want to put some books on it. You are given qq queries of three type…

outlook默認簽名設置_如何將默認簽名添加到Outlook會議請求

outlook默認簽名設置An odd quirk in Outlook is the inability to add a default signature to meeting requests. Here’s a quick and simple way to set up a one-click solution that avoids cutting and pasting every time you create a meeting. Outlook中的一個奇怪問…

技嘉 linux設置u盤啟動項,技嘉主板bios設置u盤啟動教程

對于想要重裝系統的朋友來說,進bios一直是最大的難關,對于技嘉主板來說尤為復雜,下面小編就詳細給大家介紹一下技嘉主板bios設置u盤啟動的方法。方法一:使用u盤啟動快捷鍵直接進入u盤裝系統1、技嘉主板u盤啟動快捷鍵是F12&#xf…

uefi模式下win10安裝雙系統ubuntu18.04LTS

自己折騰了半天,血與淚啊(難得一個可愛的周末 wwww我一定要寫下來 跟這個博客幾乎一模一樣了 https://blog.csdn.net/xrinosvip/article/details/80428133 我的電腦型號:戴爾G3 默認uefi模式,按f2進入的bios界面是新版跟教程上的不…

outlook日歷不顯示_如何在Outlook Online中突出顯示不同的日歷

outlook日歷不顯示If you’ve ever displayed multiple calendars in one view in Outlook Online, you’ll know how useful it is but also how confusing it can get. Use colors and charms to know at a glance which appointment belongs to which calendar. 如果您曾經在…

WinRAR 5.40 4.20 3.93 的注冊碼 - rarreg.key

把下面的數據復制到“記事本”中,用文件名“rarreg.key”命名該文件,保存到WinRAR安裝文件夾即完成注冊。以下4個Key隨便選一個復制都可以。WinRAR 5.40 版Key,復制箭頭中間內容,上下無空格。(5.00版的Key 4.X和之前的3.X版本也能…

linux 下eclipse調試程序,文章2 Linux安裝Eclipse閱讀及調試程序

由于安裝Eclipse需要Java環境,還需要配置環境,非常復雜,建議安裝系統時,選擇上Eclipse開發工具但是安裝的Eclipse中沒有CDT。首先給Eclipse安裝一個CDT。1.安裝CDTEclipse菜單欄help----Install New Software.從Available Softwar…

Redis學習筆記~分布式的Pub/Sub模式

redis的客戶端有很多,這次用它的pub/sub發布與訂閱我選擇了StackExchange.Redis,發布與訂閱大家應該很清楚了,首先一個訂閱者,訂閱一個服務,服務執行一些處理程序(可能是寫個日志,插入個數據&am…

django自定義用戶表

django自帶了用戶表。 -- auto-generated definition create table auth_user (id int auto_incrementprimary key,password varchar(128) not null,last_login datetime(6) null,is_superuser tinyint(1) not null,username varchar(150) not null,fir…

easyui關機圖標_如何在Windows 10中創建關機圖標

easyui關機圖標It’s true that shutting down your Windows 10 PC the old-fashioned way only takes three clicks. But why spend the extra energy when you can do it in two? All you have to do is create a shutdown icon, and you’ll save yourself some time. 的確…

Struts2+JFreeChart

下面以邊帖圖片和代碼的方式來講解Struts2與JFreeChart的整合。搭建環境:首先帖一張工程的目錄結構以及所需的jar包。注意:如果你不打算自己寫ChartResult的話只需要引入struts2-jfreechart-plugin-2.0.6.jar(這個在struts-2.0.6-all.zip可以找到了): …

STM32的FLASH ID加密

#define FLASH_ID_OFFSET 30000 //任意定義一個數 //把地址直接減去或者加上一個數是不要程序中直接出現這個地址 volatile u32 Flash_ID_addr[3]{ 0x1FFFF7E8 - FLASH_ID_OFFSET, 0x1FFFF7EC FLASH_ID_OFFSET, 0x1FFFF7F0 - FLASH_ID_OFFSET }; /**讀取STM32 FLASH ID*…

linux c視頻如何加水印,如何在Kdenlive的視頻上進行水印 | MOS86

如果你這些東西被稱為水印。他們So,你如何在Linux中創建水印?嗯,你這可能是Linux上最強大的開源視頻編輯器。Installation如果您尚未安裝Kdenlive,您應該可以在包裹管理器中找到它。在Ubuntu中,您還可以使用命令:sudo …

mac觸控板手勢無法使用_如何在iPad上使用觸控板手勢

mac觸控板手勢無法使用Apple蘋果Apple’s new floating Magic Keyboard case for the iPad Pro looks fantastic, but you don’t need to spend $299 to use a trackpad. Simply connect a Magic Trackpad or a third-party multi-touch trackpad to get access to all of iPa…

02.并發編程(2)Thread類源碼分析

概述 在說線程之前先說下進程,進程和線程都是一個時間段的描述,是CPU工作時間段的描述。 進程,是并發執行的程序在執行過程中分配和管理資源的基本單位,是一個動態概念,竟爭計算機系統資源的基本單位。每一個進程都有一…

安裝SQLserver2008

雙擊點擊setup,以管理員身份運行; 點擊安裝-》全新SQLServer獨立安裝或向現有安裝添加功能 選擇下一步,然后點擊具有高級服務的express版本,點擊下一步; 點擊選擇我接受許可條款,然后繼續點擊下一步&#x…

如何在沒有Word的情況下打開Microsoft Word文檔

Microsoft Word is part of Microsoft Office and requires an up-front purchase or a Microsoft 365 subscription. If you’re using a computer without Word installed, there are other ways to view that DOCX or DOC file. Microsoft Word是Microsoft Office的一部分&a…

redhat9Linux解壓gz,linux (redhat9)下subversion 的安裝

搞了一個subversion 花費了我兩天的時間,其間雖然有干其他的事情,但是來來回回的裝,搞的我是一點脾氣都沒有了,俗話說不經歷風雨真的見不到彩虹。就是這個意思. 原本本的下來一.準備好安裝包打算使用apache來瀏覽subversion &…

數組去重的4種方法(Which one is the fastest???嘻嘻嘻....)

<!DOCTYPE html> <html lang"en"> <head> <meta charset"UTF-8"> <title>Document</title> </head> <body> <input type"button" value"數組去重1" οnclick"show()"&g…

flask中的模型

1.什么是模型   模型&#xff0c;是根據數據庫中表的結構而創建出來的class。每一張表對應到編程語言中&#xff0c;就是一個class表中的每一個列對應到編程語言中就class中的一個屬性。 2.ORM的三大特征   1.數據表(table)到編程類(class)的映射     數據庫中的每一張…