fdisk & gdisk Flashcards

1
Q

fdisk

A

fdisk is a dialog-driven program for creation and manipulation of partition tables. It understands GPT, MBR, Sun, SGI and BSD partition tables.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

fdisk

  • b
  • B
  • c
  • L
  • l
  • o
A
  • b, –sector-size <size>, Physical and logical sector size.</size>
  • B, –protect-boot, Don’t erase bootbits when creating a new label.
  • c, –compatibility [=<mode>], Mode is 'dos' or 'nondos' (default)</mode>
  • L, –color [=<when>], Colorize output (auto, always, or never)</when>
  • l, list, Display partitions and exit.
  • o, –output <list>, Output columns.</list>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

fdisk

  • t
  • u
  • s

–bytes

  • w
  • W
A
  • t, –type <type> recognize specified partition table type only.</type>
  • u, –units [=<unit>], Display units: 'cylinders' or 'sectors' (default).</unit>
  • s, –getsz, Display size in 512-byte sectors.

–bytes, Print SIZE in bytes rather than in human readable format.

  • w, –wipe <mode>, Wipe signatures (auto, always, or never).</mode>
  • W, –wipe-partitions <mode>, Wipe signatures from new partitions (auto, always, or never).</mode>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

fdisk

  • C
  • H
  • S
A
  • C, –cylinders <number>, Specify the number of cylinders.</number>
  • H, –heads <number>, Specify the number of heads.</number>
  • S, –sectors <number>, Specify the number of sectors per track.</number>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

fdisk -o, –output [OUTPUT COLUMNS]

gpt

dos

bsd

sgi

sun

A

gpt: Device Start End Sectors Size Type Type-UUID Attrs Name UUID
dos: Device Start End Sectors Cylinders Size Type Id Attrs Boot End-C/H/S Start-C/H/S
bsd: Slice Start End Sectors Cylinders Size Type Bsize Cpg Fsize
sgi: Device Start End Sectors Cylinders Size Type Id Attrs
sun: Device Start End Sectors Cylinders Size Type Id Flags

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

gdisk -l /dev/sda

A

-l, List the partition table for the specified device and then exit.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

gdisk

A

GPT fdisk (aka gdisk) is a text-mode menu-driven program for creation and manipulation of partition tables.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly