Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> 關於 Linux

Linux 偵測、掛載與卸載第二顆硬碟完整操作流程

編輯:關於 Linux

新增硬碟後需確認系統識別、分區掛載、驗證可用。本文以實際 fdisk -l 輸出為例,示範完整流程。

1. 偵測硬碟識別

fdisk -l

輸出出現 /dev/sdb 及其分區 (sdb1~sdb7) 即表示核心已識別第二顆硬碟。

2. 掛載分區

# 建立掛載點
mkdir /opt/data/tmp1
# 掛載 sdb1
mount /dev/sdb1 /opt/data/tmp1
# 驗證
df -h
# 輸出應包含 /dev/sdb1 掛載於 /opt/data/tmp1

3. 卸載硬碟

umount /dev/sdb1

若需開機自動掛載,請將對應資訊寫入 /etc/fstab。本流程適用於實體機與虛擬機環境。

Copyright © Windows教程網 All Rights Reserved