1 / 18

磁碟管理

磁碟管理. 磁碟管理基本指令與工具 系統掛載- mount 磁碟空間管理 軟碟的使用 光碟的使用. 磁碟管理基本指令與工具. 轉換軟碟資料- dd. 可將軟碟資料寫成一個檔案 也可將硬碟檔案寫入軟碟 以下範例可將軟碟資料存成名為 floppyfile 檔案: [ root@ns1 ~]# dd if=/dev/fd0 of=floppyfile 「 if」 表示輸入的檔案( Input File), /dev/fd0 指第一部軟碟機,而「 of」 表示輸出的檔案( Output File)。. 顯示磁碟使用空間- du.

Télécharger la présentation

磁碟管理

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 磁碟管理 • 磁碟管理基本指令與工具 • 系統掛載-mount • 磁碟空間管理 • 軟碟的使用 • 光碟的使用

  2. 磁碟管理基本指令與工具

  3. 轉換軟碟資料-dd • 可將軟碟資料寫成一個檔案 • 也可將硬碟檔案寫入軟碟 • 以下範例可將軟碟資料存成名為floppyfile檔案: [root@ns1 ~]# dd if=/dev/fd0 of=floppyfile • 「if」表示輸入的檔案(Input File), /dev/fd0指第一部軟碟機,而「of」表示輸出的檔案(Output File)。

  4. 顯示磁碟使用空間-du • 用來顯示目前磁碟空間使用情形 • 可以選擇列出每一個檔案的大小 • 或是全部檔案的大小 • 預設檔案大小以K Bytes為單位 • 若沒使用任何參數,則會顯示目前目錄下所有子目錄大小,但並不包含檔案。

  5. 檢查ext2-e2fsck 用來檢查或修復Linux檔案系統,並由回傳值顯示目前系統現況。以下是回傳值的代表意義: • 0:沒有發生任何錯誤 • 1 : 檔案發生錯誤但已自行修復 • 2 :檔案有發生錯誤但已自行修復 • 4 :檔案發生錯誤但沒有自行修復 • 8 : 執行時發生錯誤 • 16 : 語法錯誤 • 128 : 共用函式庫錯誤

  6. 建立ext2-mke2fs • 與format指令有相同功能 • 可以使用「-c」參數來檢查是否有壞軌的分割區 • 「-L」參數是用以設定檔案系統標籤

  7. 系統掛載-mount

  8. 常用掛載系統類型 • auto:自動偵測檔案系統 • ext2 : Linux常使用的檔案系統 • ext3 :最新版Linux使用的檔案系統 • hpfs : OS/2以及Windows NT 3.51之前版本使用的檔案系統 • iso9660 : CD-ROM使用的標準檔案系統

  9. 常用掛載系統類型(Contd.) • minix : Linux早期版本使用的檔案系統 • msdos : MS-DOS使用的FAT檔案系統 • nfs :網路檔案系統 • ntfs : Windows NT使用的檔案系統 • vfat : Windows 95/98/NT/2000通用的檔案系統

  10. etc/fstab包含欄位 • 裝置名稱 • 掛載目錄 • 檔案系統 • 選項 • Dump • Pass

  11. 磁碟空間管理

  12. 使用空間限制步驟 • 編輯/etc/fstab檔案 • 重新開機 • 執行quotacheck • 執行edquota指令 • 啟動與關閉quota

  13. 軟碟的使用

  14. 軟碟掛載 • 軟碟在使用前必須先行掛載 • 安裝時系統會建立「/mnt/floppy」目錄,通常用來掛載軟碟 • 以下指令可用來進行軟碟掛載: [root@ns1 ~]# mount /mnt/floppy

  15. 軟碟機指令-mtools • mtools是一些類似MS-DOS的工具程式 • 可模擬MS-DOS下執行的指令 • 直接輸入「mtools」指令可查閱目前提供的各項指令名稱

  16. 磁片格式化方法 • mformat指令 • mke2fs指令 • 「軟碟格式化程式」圖形工具

  17. 光碟的使用

  18. 光碟掛載 • 將光碟置入CD-ROM應可自動進行偵測 • 安裝期間系統會建立「/mnt/cdrom」目錄,通常用來掛載光碟 • 光碟掛載只需輸入以下指令: [root@ns1 ~]# mount /mnt/cdrom

More Related