lookcoins / lookcoins/lookcoins.github.io

Linux系统添加新硬盘

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
documentation
Dominant language
No language data
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

# 检测硬盘
lsblk

# 假设新硬盘识别为 /dev/sdb,分区硬盘
sudo fdisk /dev/sdb

# 在fdisk提示下创建新分区
# 输入 'n' 创建新分区
# 输入 'w' 写入并退出fdisk

# 格式化新分区为ext4文件系统
sudo mkfs.ext4 /dev/sdb1

# 创建挂载点
sudo mkdir /mnt/newdisk

# 挂载新分区
sudo mount /dev/sdb1 /mnt/newdisk

# 为了使得开机自动挂载,需要编辑 /etc/fstab 文件
# 添加一行如下:
echo '/dev/sdb1 /mnt/newdisk ext4 defaults 0 0' | sudo tee -a /etc/fstab

Contributor guide

No contributing guide indexed for this repository

Research direction

The payload names no repository file or entry point; it only provides Linux commands involving lsblk, fdisk, mkfs.ext4, mount, and /etc/fstab. First locate the project's documentation entry point and compare similar pages, then verify the procedure against its conventions. Completion requires an identified page and an agreed documentation change.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, shell
Domain
documentation, operating-systems
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.