Initializing Hard Drive - Linux: Difference between revisions

No edit summary
No edit summary
Line 6: Line 6:


<pre>Using GParted, you can do this by going into Device->Create Partition Table and select "gpt" from the list.</pre>
<pre>Using GParted, you can do this by going into Device->Create Partition Table and select "gpt" from the list.</pre>
Or parted
<pre>
sudo aptitude install parted
parted /dev/sdb
print
mkpart primary 0% 100%
<pre>

Revision as of 22:02, 29 November 2020

Use fdisk to identify new hard drive (use sudo or root)

fdisk -l

For larger disks, make sure the partition table is gpt (vs mbr). This allows for larger and more partitions. To do this:

Using GParted, you can do this by going into Device->Create Partition Table and select "gpt" from the list.

Or parted

sudo aptitude install parted
parted /dev/sdb
print
mkpart primary 0% 100%