Skip to content

Conversation

@godwiniheuwa
Copy link
Contributor

@godwiniheuwa godwiniheuwa commented Nov 9, 2025

Checklist

  • The page(s) are in the correct platform directories: common, linux, osx, windows, sunos, android, etc.
  • The page description(s) have links to documentation or a homepage.
  • The page(s) follow the content guidelines.
  • The page(s) follow the style guide.
  • The PR contains at most 5 new pages.
  • The PR is authored by me, or has been human-reviewed if it was created with AI or machine translation software.
  • The PR title conforms to the recommended templates.
  • Version of the command being documented (if known):

Closes: #19275

@github-actions github-actions bot added new command Issues requesting creation of a new page or PRs adding a new page for a command. review needed Prioritized PRs marked for reviews from maintainers. labels Nov 9, 2025
@tldr-bot
Copy link

tldr-bot commented Nov 9, 2025

The build for this PR failed with the following error(s) at commit
33d687dbfc8c8a22172615ee8a91eb2c05c5e5ca:

pages/common/sgdisk.md:3: TLDR014 Page should contain no trailing whitespace
pages/common/sgdisk.md:4: TLDR014 Page should contain no trailing whitespace

Please fix the error(s) and push again.

@@ -0,0 +1,37 @@
# sgdisk

> Command-line tool for managing GUID Partition Tables (GPT) on Linux and Unix.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
> Command-line tool for managing GUID Partition Tables (GPT) on Linux and Unix.
> Manage GUID Partition Tables (GPT).


- Convert a GPT disk to MBR format using up to four partitions:

`sgdisk {{[-m|--gpttombr]}}={{1:2:3:4}} {{/dev/sdX}}`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`sgdisk {{[-m|--gpttombr]}}={{1:2:3:4}} {{/dev/sdX}}`
`sgdisk {{[-m|--gpttombr]}} {{1:2:3:4}} {{/dev/sdX}}`

Does the command work without =?


- Delete a partition entry by number (data in sectors remains untouched):

`sgdisk {{[-d|--delete]}}={{1}} {{/dev/sdX}}`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`sgdisk {{[-d|--delete]}}={{1}} {{/dev/sdX}}`
`sgdisk {{[-d|--delete]}} {{1}} {{/dev/sdX}}`

Same question here


- Save the current in-memory GPT data (protective MBR, headers, and table) to a binary backup file:

`sgdisk {{[-b|--backup]}}={{/path/to/backup.gpt}} {{/dev/sdX}}`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`sgdisk {{[-b|--backup]}}={{/path/to/backup.gpt}} {{/dev/sdX}}`
`sgdisk {{[-b|--backup]}} {{/path/to/backup.gpt}} {{/dev/sdX}}`


- Load GPT data from a backup file (restoring from a non-original disk is not recommended):

`sgdisk {{[-l|--load-backup]}}={{/path/to/backup.gpt}} {{/dev/sdX}}`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`sgdisk {{[-l|--load-backup]}}={{/path/to/backup.gpt}} {{/dev/sdX}}`
`sgdisk {{[-l|--load-backup]}} {{/path/to/backup.gpt}} {{/dev/sdX}}`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new command Issues requesting creation of a new page or PRs adding a new page for a command. review needed Prioritized PRs marked for reviews from maintainers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Page request: sgdisk

3 participants