0

This question already has an answer here:

I tried to mount an external HDD but, It seems that there's no partition in there.

fdisk -l

shows that

Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors

but there's no /dev/sda1 or sda2 etc.

Could you tell me CLI command for making it to /dev/sda1 as a whole?

Thanks!

marked as duplicate by muru, Melebius, Rinzwind command-line Jun 27 '18 at 11:18

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1

Use the fdisk tool example would be something like the following

fdisk /dev/sda
#### In fdisk #####
o  #blanks out drive
n  # creates a new partition
<enter> #partition number
<enter> #first sector
<enter> #last sector (enter assuming you only want a single partition
w       # writes all the changes
#### end fdisk ####
fdisk -l  #This is a check to see you made lasting changes
mkfs.ext4 /dev/sda1  #format the filesystem

hope this helps

Not the answer you're looking for? Browse other questions tagged or ask your own question.