Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
make a directory????
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
jan1024188
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2006
Posts: 79
Location: slovenia

PostPosted: Fri Oct 27, 2006 1:46 pm    Post subject: make a directory???? Reply with quote

here is my problem

Quote:
jan@localhost ~ $ mkdir lala
jan@localhost ~ $ mkdir /mnt/ubuntu
mkdir: cannot create directory `/mnt/ubuntu': No such file or directory
jan@localhost ~ $ mkdir /media/ubuntu
mkdir: cannot create directory `/media/ubuntu': No such file or directory
jan@localhost ~ $ cd /media
bash: cd: /media: No such file or directory
jan@localhost ~ $ cd /
jan@localhost / $ cd /mnt
bash: cd: /mnt: No such file or directory
jan@localhost / $ mkdir /mnt/ubuntu
mkdir: cannot create directory `/mnt/ubuntu': No such file or directory
jan@localhost / $
[/code]
Back to top
View user's profile Send private message
lagalopex
Guru
Guru


Joined: 16 Oct 2004
Posts: 562

PostPosted: Fri Oct 27, 2006 1:48 pm    Post subject: Reply with quote

What does "ls -Ahl /" print?
You obviously have no /mnt and /media directory... try to make them or use the "-p" switch for mkdir.
Back to top
View user's profile Send private message
jan1024188
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2006
Posts: 79
Location: slovenia

PostPosted: Fri Oct 27, 2006 1:52 pm    Post subject: Reply with quote

jan@localhost ~ $ ls -Ahl /
total 22M
drwxr-xr-x 2 root root 4.0K Oct 26 23:02 bin
drwxr-xr-x 2 root root 4.0K Oct 26 23:04 boot
drwxr-xr-x 14 root root 3.3K Oct 27 14:25 dev
drwxr-xr-x 56 root root 4.0K Oct 27 15:45 etc
drwxr-xr-x 3 root root 4.0K Oct 26 23:07 home
drwxr-xr-x 9 root root 4.0K Oct 27 00:30 lib
drwx------ 2 root root 16K Oct 26 20:40 lost+found
-rw-r--r-- 1 root root 144K Oct 26 23:04 metadata.tar.bz2
drwxr-xr-x 2 root root 4.0K Oct 26 22:57 opt
-rw-r--r-- 1 root root 22M Oct 26 23:03 portage-20060123.tar.bz2
dr-xr-xr-x 86 root root 0 Oct 27 2006 proc
drwx------ 7 root root 4.0K Oct 27 15:47 root
drwxr-xr-x 2 root root 4.0K Oct 27 00:30 sbin
drwxr-xr-x 10 root root 0 Oct 27 2006 sys
drwxrwxrwt 10 root root 4.0K Oct 27 15:50 tmp
drwxr-xr-x 16 root root 4.0K Oct 27 00:36 usr
drwxr-xr-x 12 root root 4.0K Oct 27 00:25 var
jan@localhost ~ $


yes i do not have that directories

can i make them????
Back to top
View user's profile Send private message
lagalopex
Guru
Guru


Joined: 16 Oct 2004
Posts: 562

PostPosted: Fri Oct 27, 2006 1:56 pm    Post subject: Reply with quote

Of course, you can create them :roll:
But do it as root...
Back to top
View user's profile Send private message
jan1024188
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2006
Posts: 79
Location: slovenia

PostPosted: Fri Oct 27, 2006 1:57 pm    Post subject: Reply with quote

ok i did that
Back to top
View user's profile Send private message
bubbl07
Apprentice
Apprentice


Joined: 06 Feb 2005
Posts: 237
Location: New York City

PostPosted: Fri Oct 27, 2006 2:40 pm    Post subject: Reply with quote

jan1024188 wrote:
jan@localhost ~ $ ls -Ahl /
total 22M
drwxr-xr-x 2 root root 4.0K Oct 26 23:02 bin
drwxr-xr-x 2 root root 4.0K Oct 26 23:04 boot
drwxr-xr-x 14 root root 3.3K Oct 27 14:25 dev
drwxr-xr-x 56 root root 4.0K Oct 27 15:45 etc
drwxr-xr-x 3 root root 4.0K Oct 26 23:07 home
drwxr-xr-x 9 root root 4.0K Oct 27 00:30 lib
drwx------ 2 root root 16K Oct 26 20:40 lost+found
-rw-r--r-- 1 root root 144K Oct 26 23:04 metadata.tar.bz2
drwxr-xr-x 2 root root 4.0K Oct 26 22:57 opt
-rw-r--r-- 1 root root 22M Oct 26 23:03 portage-20060123.tar.bz2
dr-xr-xr-x 86 root root 0 Oct 27 2006 proc
drwx------ 7 root root 4.0K Oct 27 15:47 root
drwxr-xr-x 2 root root 4.0K Oct 27 00:30 sbin
drwxr-xr-x 10 root root 0 Oct 27 2006 sys
drwxrwxrwt 10 root root 4.0K Oct 27 15:50 tmp
drwxr-xr-x 16 root root 4.0K Oct 27 00:36 usr
drwxr-xr-x 12 root root 4.0K Oct 27 00:25 var
jan@localhost ~ $


yes i do not have that directories

can i make them????

It doesn't appear that you have the /mnt or /media directories created. When you try to create a folder inside a nonexistent folder, it'll give you an error.

You can either make the directories sequentially with
Code:
mkdir /mnt
mkdir /mnt/ubuntu
or you can use
Code:
mkdir -p /mnt/ubuntu
which will create all the parent folders necessary to create the final folder you need.


Hope that helps.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum