Add new usb disk as ext4

From Andreida
Revision as of 11:43, 16 February 2016 by Andreas (talk | contribs) (Created page with "search for the disk: fdisk -l create a partition on it: fdisk /dev/sdx <--- change x to a,b,c or whatever p - print the partition table d - delete the current partitions...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

search for the disk:

fdisk -l

create a partition on it:

fdisk /dev/sdx   <--- change x to a,b,c or whatever
p - print the partition table
d - delete the current partitions
m - menu
n - new partition -> extended 
n - new partition -> logical
w - write changes to disk

look at your new partitions:

fdisk -l

format the partition:

mkfs.ext4 /dev/sdx5