View previous topic :: View next topic |
Author |
Message |
jan1024188 Tux's lil' helper
Joined: 27 Aug 2006 Posts: 79 Location: slovenia
|
Posted: Fri Oct 27, 2006 1:46 pm Post subject: make a directory???? |
|
|
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 |
|
|
lagalopex Guru
Joined: 16 Oct 2004 Posts: 564
|
Posted: Fri Oct 27, 2006 1:48 pm Post subject: |
|
|
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 |
|
|
jan1024188 Tux's lil' helper
Joined: 27 Aug 2006 Posts: 79 Location: slovenia
|
Posted: Fri Oct 27, 2006 1:52 pm Post subject: |
|
|
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 |
|
|
lagalopex Guru
Joined: 16 Oct 2004 Posts: 564
|
Posted: Fri Oct 27, 2006 1:56 pm Post subject: |
|
|
Of course, you can create them
But do it as root... |
|
Back to top |
|
|
jan1024188 Tux's lil' helper
Joined: 27 Aug 2006 Posts: 79 Location: slovenia
|
Posted: Fri Oct 27, 2006 1:57 pm Post subject: |
|
|
ok i did that |
|
Back to top |
|
|
bubbl07 Apprentice
Joined: 06 Feb 2005 Posts: 237 Location: New York City
|
Posted: Fri Oct 27, 2006 2:40 pm Post subject: |
|
|
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 |
|
|
|