Fdisk: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 7: | Line 7: | ||
Manipulates the partition table. | Manipulates the partition table. | ||
=Create a Partition that Spans the Entire Device= | |||
<pre> | |||
fdisk /dev/sdb | |||
<pre> | |||
<pre> | |||
Command (m for help): n | |||
Partition type: | |||
p primary (0 primary, 0 extended, 4 free) | |||
e extended | |||
Select (default p): p | |||
Partition number (1-4, default 1): 1 | |||
First sector (2048-1048575, default 2048): | |||
Using default value 2048 | |||
Last sector, +sectors or +size{K,M,G} (2048-1048575, default 1048575): | |||
Using default value 1048575 | |||
Partition 1 of type Linux and of size 511 MiB is set | |||
Command (m for help): t | |||
Selected partition 1 | |||
Hex code (type L to list all codes): 8e | |||
Changed type of partition 'Linux' to 'Linux LVM' | |||
Command (m for help): w | |||
The partition table has been altered! | |||
Calling ioctl() to re-read partition table. | |||
Syncing disks. | |||
</pre> |
Revision as of 02:46, 23 May 2017
Internal
Overview
Manipulates the partition table.
Create a Partition that Spans the Entire Device
fdisk /dev/sdb <pre> <pre> Command (m for help): n Partition type: p primary (0 primary, 0 extended, 4 free) e extended Select (default p): p Partition number (1-4, default 1): 1 First sector (2048-1048575, default 2048): Using default value 2048 Last sector, +sectors or +size{K,M,G} (2048-1048575, default 1048575): Using default value 1048575 Partition 1 of type Linux and of size 511 MiB is set Command (m for help): t Selected partition 1 Hex code (type L to list all codes): 8e Changed type of partition 'Linux' to 'Linux LVM' Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks.