Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SID - Unstable] mkdir won't work [solved]

- - ALL UNSTABLE / TESTING THREADS SHOULD BE POSTED HERE - -
This sub-forum is the dedicated area for the ongoing Unstable/Testing releases of Debian. Advanced, or Experienced User support only. Use the software, give, and take advice with caution.
Post Reply
Message
Author
dove
Posts: 14
Joined: 2010-03-31 20:54

[SID - Unstable] mkdir won't work [solved]

#1 Post by dove »

I'm trying to add another drive but when I try to run the command [sudo mkdir /mnt/Storage] I get [mkdir /mnt/Storage command not found]. How do I make a directory I need in /mnt ? I'm using KDE.
Last edited by dove on 2023-03-18 02:37, edited 1 time in total.

CynicalDebian
Posts: 263
Joined: 2023-03-02 05:26
Location: USA
Has thanked: 50 times
Been thanked: 60 times
Contact:

Re: [SID - Unstable] mkdir won't work

#2 Post by CynicalDebian »

Code: Select all

$which mkdir
Should be in /usr/bin/mkdir

Then try

Code: Select all

$sudo which mkdir
Perhaps it is not in your path, you could try

Code: Select all

$sudo /usr/bin/mkdir -p /mnt/Storage 
From mkdir(1)
-p, --parents
no error if existing, make parent directories as needed
Incase /mnt/ does not exist for some reason.
Be seeing you...

CwF
Global Moderator
Global Moderator
Posts: 2636
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 192 times

Re: [SID - Unstable] mkdir won't work

#3 Post by CwF »

...not to side step the question but the modern method will make the mount point for you. I'd expect KDE's fm to do so, or

Code: Select all

$ systemd-mount -options /what /where
/where is not required for the command and if specified does not need to preexist.

dove
Posts: 14
Joined: 2010-03-31 20:54

Re: [SID - Unstable] mkdir won't work

#4 Post by dove »

Code: Select all

sudo /usr/bin/mkdir -p /mnt/Storage
worked like a charm

dove
Posts: 14
Joined: 2010-03-31 20:54

Re: [SID - Unstable] mkdir won't work [solved]

#5 Post by dove »

Also Thanx everyone

Post Reply