linux 挂载硬盘
fdisk -l命令查看磁盘信息
fdisk /dev/sdb 进行分区
根据提示,
Command (m for help): n Select (default p): p Partition number (1-4, default 1): 1 First sector (2048-209715199, default 2048): Using default value 2048 Last sector, +sectors or +size{K,M,G} (2048-209715199, default 209715199): Using default value 209715199 Command (m for help): w
重新查看磁盘分区 fdisk -l
进行格式化 mkfs -t ext4 /dev/vdb1
磁盘挂载到指定目录 mount /dev/vdb1 /usr/local/
自启动:/etc/fstab 加入行/dev/vdb1 /usr/local ext4 defaults 1 2
完毕:可以参考 http://blog.chinaunix.net/uid-25829053-id-3067619.html
相关推荐
jiangtie 2020-05-11
Attend 2020-06-27
clamzxf 2020-03-28
chenchuang 2020-03-27
Summer的小屋 2020-03-26
jiangtie 2020-01-07
ykmail 2013-07-30
小惠 2013-06-27
andylanzhiyong 2013-06-07
andylanzhiyong 2019-12-24
pointfish 2019-12-14
luther 2013-08-22
Jesuslovesme 2013-08-13
zzydy 2013-08-16
hengxie00 2014-12-05
wanggongzhen 2015-01-13
拿什么来拯救自己 2015-08-10
留百叶 2015-06-11
HeronLinuxampARM 2015-05-11