M HYPE SPLASH
// general

Question about sudo fdisk -1

By John Campbell

I've been trying to mount an external HDD to my ubuntu server (14.04) but when I try to use the sudo fdisk -1 function it tells me that its an invalid option, is there any way I can fix this? Or any other way i can go about to mount the external HDD and share is using Samba?

Cheers, Jarryd

1 Answer

The command you are trying to run is:

sudo fdisk -l

That last character is a lowercase L, not the number 1. A lot of commands in Linux take options that are usually specified by a hyphen and then a character, for example -l, -i, or -h. That character is usually a letter.

Sometimes, an option could also include a number, but it usually comes after a letter as well, for example:

du -d1 /path/to/folder

The command is du and the option being passed is -d1, that's a d followed by the number 1.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy