Initializing Hard Drive - Linux: Difference between revisions
No edit summary |
No edit summary |
||
Line 13: | Line 13: | ||
print | print | ||
mklabel gpt | mklabel gpt | ||
mkpart primary 0% 100% | mkpart primary ext4 0% 100% | ||
</pre> | </pre> | ||
To view all disks | |||
<pre>lsblk</pre> |
Revision as of 22:06, 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 mklabel gpt mkpart primary ext4 0% 100%
To view all disks
lsblk