#adsense(728x90)
説明 | ||
hda- sda- | ディスク | IDEはhd、SCSIはsd |
1-16 | パーティション | パーティションはディスク全体を指す |
論理パーティション hda5〜hda16 | 論理パーティション hdb5〜hdb16 | ||
基本パーティション | 拡張パーティション | 基本パーティション | 拡張パーティション |
hda1〜hda4 | hdb1〜hdb4 | ||
IDE プライマリ マスタ ディスク hda | IDE プライマリ マスタ ディスク hdb |
# fdisk [option] device
# fdisk -l /dev/sda Disk /dev/sda: 8589 MB, 8589934592 bytes, 16777216 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: 0x000c2a18 Device Boot Start End Blocks Id System /dev/sda1 * 2048 2099199 1048576 83 Linux /dev/sda2 2099200 16777215 7339008 8e Linux LVM
# sfdisk [option] device
# parted -l Error: /dev/vdb: unrecognised disk label Model: Virtio Block Device (virtblk) Disk /dev/vdb: 107GB Sector size (logical/physical): 512B/512B Partition Table: unknown Disk Flags:
# parted GNU Parted 3.2 Using /dev/vdb Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) select /dev/vdb Using /dev/vdb
(parted) mklabel gpt
(parted) p Model: Virtio Block Device (virtblk) Disk /dev/vdb: 107GB Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags
(parted) mkpart Partition name? []? File system type? [ext2]? xfs Start? 0% End? 100%
(parted) p Model: Virtio Block Device (virtblk) Disk /dev/vdb: 107GB Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 1049kB 107GB 107GB xfs
(parted) quit
# parted -l /dev/sda Model: ATA VBOX HARDDISK (scsi) Disk /dev/sda: 8590MB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 1075MB 1074MB primary xfs boot 2 1075MB 8590MB 7515MB primary lvm
# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 8G 0 disk tqsda1 8:1 0 1G 0 part /boot mqsda2 8:2 0 7G 0 part tqrhel-root 253:0 0 6.2G 0 lvm / mqrhel-swap 253:1 0 820M 0 lvm [SWAP] sr0 11:0 1 1024M 0 rom
# mkfs -t type device
# fdisk /dev/hda↵
# fdisk /dev/hdb↵ Command (m for help): p↵
# mkfs -t ext3 /dev/hdb1↵
# mount [option]↵
# volname [device]↵
# pvs [option] [physical-device]
# pvdisplay
# vgs
# vgdisplay
# lvs
# lvdisplay
#adsense(728x90)