linux磁盘分区的删除和新建

[root@sctest 桌面]# 
[root@sctest 桌面]# 
[root@sctest 桌面]# df -hl
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2       385G  5.0G  360G   2% /
tmpfs           1.9G  144K  1.9G   1% /dev/shm
/dev/sda1       477M   45M  407M  10% /boot
/dev/sda5        99G   60M   94G   1% /home
/dev/sr0        3.7G  3.7G     0 100% /media/RHEL-6.9 Server.x86_64
/dev/sdb1        15G  7.3G  7.7G  49% /media/2841-55F7
[root@sctest 桌面]# fdisk -l

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x0009ecf4

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              64       51057   409600000   83  Linux
/dev/sda3           51057       53224    17408000   82  Linux swap / Solaris
/dev/sda4           53224      121601   549239008+   5  Extended
/dev/sda5           53225       66280   104864288   83  Linux
/dev/sda6           66281       79336   104864288   83  Linux

Disk /dev/sdb: 16.0 GB, 16008609792 bytes
255 heads, 63 sectors/track, 1946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x06b044db

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1947    15633392    c  W95 FAT32 (LBA)
[root@sctest 桌面]# 
[root@sctest 桌面]# 
[root@sctest 桌面]# 
[root@sctest 桌面]# fdisk /dev/sda

The device presents a logical sector size that is smaller than
the physical sector size. Aligning to a physical sector (or optimal
I/O) size boundary is recommended, or performance may be impacted.

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
         switch off the mode (command 'c') and change display units to
         sectors (command 'u').

Command (m for help): p

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x0009ecf4

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              64       51057   409600000   83  Linux

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值