Linux——系统的磁盘管理,设备挂载和卸载,划分分区

一.本地存储设备的识别

fdisk		-l				#真实存在的设备(不一定被系统识别)
cat 	/proc/partitions  	#系统识别的设备
blkid						#系统可以使用的设备
df							#系统正在挂载的设备
df 			-h				#1k=1024    -h全称为--human-readable 以人易读的方式
df			-H				#1k=1000

例:

[root@foundation37 test]# fdisk -l		#真实存在的设备(不一定被系统识别)

Disk /dev/sda: 320.1 GB, 320072933376 bytes, 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000049d3

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   617275391   308636672   83  Linux
/dev/sda2       617275392   625141759     3933184   82  Linux swap / Solaris

Disk /dev/sdb: 15.7 GB, 15669919744 bytes, 30605312 sectors  #U盘
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x9206ae6b

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1              32    30605311    15302640    c  W95 FAT32 (LBA)

例:

[root@foundation37 test]# cat /proc/partitions 	#系统识别的设备
major minor  #blocks  name

   8        0  312571224 sda
   8        1  308636672 sda1
   8        
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值