Linux运维系统工程师系列---21
2015-07-02 08:13
645 查看
磁盘管理---分区---parted命令 实验举例:
[root@server254 devices]# parted /dev/sdb
(parted) help
(parted) print
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sdb: 42.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 214MB 214MB primary
(parted) print
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sdb: 42.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
(parted) mkpart
创建分区 :
Partition type? primary/extended? primary
File system type? [ext2]? ext4
Start? 1
End? 200M
(parted) print
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sdb: 42.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 200MB 199MB primary
(parted) mkpart
Partition type? primary/extended? primary
File system type? [ext2]? ext4
Start?
Start? 200M
End? 2000M
(parted) print
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sdb: 42.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 200MB 199MB primary
2 200MB 2000MB 1799MB primary
(parted) mkpart
Partition type? primary/extended? p
File system type? [ext2]? ext4
Start? 2000M
End? 2013M
(parted) print
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sdb: 42.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 200MB 199MB primary
2 200MB 2000MB 1799MB primary
3 2000MB 2013MB 13.6MB primary
Partition type? [logical]? logical
File system type? [ext2]? ext4
Start? 2015M
End? 2200M
Warning: The resulting partition is not properly aligned for best performance.
Ignore/Cancel? Ignore
(parted) print
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sdb: 42.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 200MB 199MB primary
2 200MB 2000MB 1799MB primary
3 2000MB 2013MB 13.6MB primary
4 2015MB 10.0GB 7985MB extended lba
5 2015MB 2200MB 185MB logical
(parted) rm 5
(parted) quit
[root@server254 devices]# fdisk -l /dev/sdb
Disk /dev/sdb: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 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: 0x000b6e12
Device Boot Start End Blocks Id System
/dev/sdb1 1 25 194560 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sdb2 25 244 1757184 83 Linux
Partition 2 does not end on cylinder boundary.
/dev/sdb3 244 245 13312 83 Linux
Partition 3 does not end on cylinder boundary.
/dev/sdb4 246 1216 7797760 f W95 Ext'd (LBA)
[root@server254 devices]# parted /dev/sdb
(parted) help
(parted) print
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sdb: 42.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 214MB 214MB primary
(parted) print
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sdb: 42.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
(parted) mkpart
创建分区 :
Partition type? primary/extended? primary
File system type? [ext2]? ext4
Start? 1
End? 200M
(parted) print
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sdb: 42.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 200MB 199MB primary
(parted) mkpart
Partition type? primary/extended? primary
File system type? [ext2]? ext4
Start?
Start? 200M
End? 2000M
(parted) print
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sdb: 42.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 200MB 199MB primary
2 200MB 2000MB 1799MB primary
(parted) mkpart
Partition type? primary/extended? p
File system type? [ext2]? ext4
Start? 2000M
End? 2013M
(parted) print
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sdb: 42.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 200MB 199MB primary
2 200MB 2000MB 1799MB primary
3 2000MB 2013MB 13.6MB primary
Partition type? [logical]? logical
File system type? [ext2]? ext4
Start? 2015M
End? 2200M
Warning: The resulting partition is not properly aligned for best performance.
Ignore/Cancel? Ignore
(parted) print
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sdb: 42.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 200MB 199MB primary
2 200MB 2000MB 1799MB primary
3 2000MB 2013MB 13.6MB primary
4 2015MB 10.0GB 7985MB extended lba
5 2015MB 2200MB 185MB logical
(parted) rm 5
(parted) quit
[root@server254 devices]# fdisk -l /dev/sdb
Disk /dev/sdb: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 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: 0x000b6e12
Device Boot Start End Blocks Id System
/dev/sdb1 1 25 194560 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sdb2 25 244 1757184 83 Linux
Partition 2 does not end on cylinder boundary.
/dev/sdb3 244 245 13312 83 Linux
Partition 3 does not end on cylinder boundary.
/dev/sdb4 246 1216 7797760 f W95 Ext'd (LBA)
相关文章推荐
- vivi下重新调整分区
- 逻辑卷管理(LVM) Linux 用户指南
- 建议的服务器分区办法
- 学习YUI.Ext第七日-View&JSONView Part Two-一个画室网站的案例
- 建议的分区办法
- 恢复主引导分区
- SQLServer 通用的分区增加和删除的算法
- C#判断指定分区是否是ntfs格式的方法
- mysql分表和分区的区别浅析
- 阿里云主机Windows 2008服务器硬盘分区和格式化图文教程
- 移动硬盘分区合并
- Linux查看磁盘分区等命令和相关工具
- 解决分区魔术师与Vista分区管理的冲突
- 将mbr的分区改为gpt分区
- 主引导分区VS超级块
- 如何解决安装CentOS时遇到引导分区位于一个GPT分区方案的错误提示问题
- windows分区的理解
- 分区表问题
- 硬盘分区
- 如何删除笔记本影藏分区