Creating a partition larger than 2TB on an SSD on Linux
I didn’t realise that one couldn’t use fdisk
to create a partition larger than 2TB on Linux, until I was banging my head wondering why commands that I’ve used before did not work.
*Update&: apparently, fdisk
does support GPT, using g
. Oh well…
It seems that the solution is GPT: GUID Partition Table. And fdisk
can’t do that (as far as I can tell).
But parted
can. As, it seems, can an alternative to fdisk
called gdisk
.
Here’s what worked for me.
This is assuming that you are working with the disk /dev/sdb
Check that it is the disk you are expecting:
sudo fdisk -l /dev/sdb
Install parted
:
sudo apt install parted -y
Wipe the old file system:
sudo wipefs -a /dev/sdb
Run parted
:
sudo parted /dev/sdb
Within parted
, to create a partition using all available space, run:
mklabel gpt
unit TB
mkpart primary 0 0
quit
Once done, reload parted
and, within parted
, run:
print
After that, you can create a file system on it.
You may also like:
- Multiplayer Quake III Arena on Linux (client and server)
- A working wireless plug-and-play display solution for Linux laptops (and others OSs)
- Improving my laptop's battery with TLP
- Stopping music in my office automatically when I get a phone call or join an audio/video call
- Adding an Internet radio stream (such as RadioFreeFedi) to mpd
- Getting the Sierra Wireless EM7455 LTE modem working in a ThinkPad with Debian 12 Linux (with GPS)
- Fixing dropbear-initramfs '/scripts/init-premount/dropbear: cat: not found' error
- Keeping bash history in sync using atuin and a self-hosted sync server
- Keyboard shortcut for adding random albums to the playlist in ncmpcpp
- This is a test post
- Fixing Mastodon 'Error processing thumbnail for uploaded media' video uploading
- Upgrading the glitch-soc fork of Mastodon
- Very, very initial thoughts of the Xreal Air 2 Pro glasses and Debian 12
- Using Bitwarden as an AppImage on Debian with GNOME
- A web UI for label creation and printing on a Brother QL-710W on Linux