Linux下添加新硬盘的操作步骤如下:
fdisk /dev/sdc
2.Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-2610, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-2610, default 2610):
Using default value 2610
3.Command (m for help): w
The partition table has been altered!
sudo mkfs -t ext4 /dev/sdc1
sudo vim /etc/fstab
add:/dev/sdc1 /home/a/work/disk2 ext4 defaults 1 0
sudo reboot
阅读(1619) | 评论(1) | 转发(1) |