sudo fdisk /dev/sdb4
Welcome to fdisk (util-linux 2.27.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
コマンド (m でヘルプ): m
Help:
DOS (MBR)
a toggle a bootable flag
b edit nested BSD disklabel
c toggle the dos compatibility flag
Generic
d delete a partition
F list free unpartitioned space
l list known partition types
n add a new partition
p print the partition table
t change a partition type
v verify the partition table
i print information about a partition
Misc
m print this menu
u change display/entry units
x extra functionality (experts only)
Script
I load disk layout from sfdisk script file
O dump disk layout to sfdisk script file
Save & Exit
w write table to disk and exit
q quit without saving changes
Create a new label
g create a new empty GPT partition table
G create a new empty SGI (IRIX) partition table
o create a new empty DOS partition table
s create a new empty Sun partition table
コマンド (m でヘルプ): p
Disk /dev/sdb4: 71.8 GiB, 77120851968 bytes, 150626664 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
Disklabel type: dos
...
デバイス 起動 Start 最後から セクタ Size Id タイプ
/dev/sdb4p1 1920221984 3736432267 1816210284 866G 72 不明
/dev/sdb4p2 1936028192 3889681299 1953653108 931.6G 6c 不明
/dev/sdb4p3 0 0 0 0B 0 空
/dev/sdb4p4 27722122 27722568 447 223.5K 0 空
Partition table entries are not in disk order.
コマンド (m でヘルプ): d
パーティション番号 (1-4, default 4):
Partition 4 has been deleted.
コマンド (m でヘルプ): d
パーティション番号 (1-3, default 3):
Partition 3 has been deleted.
コマンド (m でヘルプ): d
パーティション番号 (1,2, default 2):
Partition 2 has been deleted.
コマンド (m でヘルプ): d
Selected partition 1
Partition 1 has been deleted
コマンド (m でヘルプ): p
Disk /dev/sdb4: 71.8 GiB, 77120851968 bytes, 150626664 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
Disklabel type: dos
...
コマンド (m でヘルプ): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): p
パーティション番号 (1-4, default 1):
First sector (2048-150626663, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-150626663, default 150626663):
Created a new partition 1 of type 'Linux' and of size 71.8 GiB.
コマンド (m でヘルプ): p
Disk /dev/sdb4: 71.8 GiB, 77120851968 bytes, 150626664 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
Disklabel type: dos
...
デバイス 起動 Start 最後から セクタ Size Id タイプ
/dev/sdb4p1 2048 150626663 150624616 71.8G 83 Linux
コマンド (m でヘルプ): t
Selected partition 1
Partition type (type L to list all types): L
0 空 24 NEC DOS 81 Minix / 古い Li bf Solaris
1 FAT12 27 Hidden NTFS Win 82 Linux スワップ c1 DRDOS/sec (FAT-
2 XENIX root 39 Plan 9 83 Linux c4 DRDOS/sec (FAT-
3 XENIX usr 3c PartitionMagic 84 OS/2 hidden or c6 DRDOS/sec (FAT-
4 FAT16 <32M 40 Venix 80286 85 Linux 拡張領域 c7 Syrinx
5 拡張領域 41 PPC PReP Boot 86 NTFS ボリューム da 非 FS データ
6 FAT16 42 SFS 87 NTFS ボリューム db CP/M / CTOS / .
7 HPFS/NTFS/exFAT 4d QNX4.x 88 Linux プレーン de Dell ユーティリ
8 AIX 4e QNX4.x 第2パー 8e Linux LVM df BootIt
9 AIX 起動可能 4f QNX4.x 第3パー 93 Amoeba e1 DOS access
a OS/2 ブートマネ 50 OnTrack DM 94 Amoeba BBT e3 DOS R/O
b W95 FAT32 51 OnTrack DM6 Aux 9f BSD/OS e4 SpeedStor
c W95 FAT32 (LBA) 52 CP/M a0 IBM Thinkpad ハ ea Rufus alignment
e W95 FAT16 (LBA) 53 OnTrack DM6 Aux a5 FreeBSD eb BeOS fs
f W95 拡張領域 (L 54 OnTrackDM6 a6 OpenBSD ee GPT
10 OPUS 55 EZ-Drive a7 NeXTSTEP ef EFI (FAT-12/16/
11 隠し FAT12 56 Golden Bow a8 Darwin UFS f0 Linux/PA-RISC
12 Compaq 診断 5c Priam Edisk a9 NetBSD f1 SpeedStor
14 隠し FAT16 <32M 61 SpeedStor ab Darwin ブート f4 SpeedStor
16 隠し FAT16 63 GNU HURD または af HFS / HFS+ f2 DOS セカンダリ
17 隠し HPFS/NTFS 64 Novell Netware b7 BSDI fs fb VMware VMFS
18 AST SmartSleep 65 Novell Netware b8 BSDI スワップ fc VMware VMKCORE
1b 隠し W95 FAT32 70 DiskSecure Mult bb 隠し Boot Wizar fd Linux raid 自動
1c 隠し W95 FAT32 75 PC/IX bc Acronis FAT32 L fe LANstep
1e 隠し W95 FAT16 80 古い Minix be Solaris ブート ff BBT
Partition type (type L to list all types):
Partition type (type L to list all types): 83
Changed type of partition 'Linux' to 'Linux'.
コマンド (m でヘルプ): p
Disk /dev/sdb4: 71.8 GiB, 77120851968 bytes, 150626664 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
Disklabel type: dos
...
デバイス 起動 Start 最後から セクタ Size Id タイプ
/dev/sdb4p1 2048 150626663 150624616 71.8G 83 Linux
コマンド (m でヘルプ): w
The partition table has been altered.
|