首页 > 编程知识 正文

linux下硬盘挂载的步骤,linux系统如何挂载硬盘

时间:2023-05-05 12:54:44 阅读:188464 作者:3758

1.先看有几块硬盘

命令:fdisk -l

 

Linux对硬盘的表示法,一般是

/dev/sd(x)

/dev/hd(x)

....

上面的x代表a/b/c/d/e/...,这里表示第几块硬盘

然后再是分区,如

/dev/sda(x)

这里的x就是数字了,如1/2/3/4/5/...,这里表示的是第几个分区

 

2.操作硬盘  分区

命令:fdisk /dev/sdb(对名为sdb的硬盘进行操作)

 

这里提示你,按m会提示一个帮助,如

Command (m for help): m

Command action

   a   toggle a bootable flag

   b   edit bsd disklabel

   c   toggle the dos compatibility flag

   d   delete a partition 删除分区

   l   list known partition types 列出所支持的所有分区类型

   m   print this menu 显示本菜单

   n   add a new partition 增加新分区

   o   create a new empty DOS partition table

   p   print the partition table 显示分区信息

   q   quit without saving changes 退出不保存

   s   create a new empty Sun disklabel

   t   change a partition's system id 改变分区类型

 

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。