LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-11-2009, 04:17 PM   #1
nosloj
LQ Newbie
 
Registered: Nov 2009
Location: Honolulu, Hawaii
Distribution: Ubuntu 9.10
Posts: 4

Rep: Reputation: 0
How do I create mount points using the terminal?


Aloha,I am in my first week with 9.10 after my two laptops running Windows XP crashed. I installed, made internet connections, and setup evolution mail accounts OK. I am now following instructions from stchman.com/share_NFS.hmtl called "share file using NFS in ubuntu". I have gotten to the point where i am to create mount points and i get the following when i enter "sudo mkdir /network/PC_2" in the terminal on PC #1 [toshiba].

john@toshiba:~$ sudo mkdir /network/PC_2
sudo: unable to resolve host toshiba
mkdir: cannot create directory `/network/PC_2': No such file or directory
john@toshiba:~$

I get the following when i enter "sudo mkdir /network/PC1" in the terminal on PC #2 [sony]

john@sony:-$ sudo mkdir /network/PC_1
[sudo] password for john:
mkdir: cannot create directory '/network/PC_1': No such file or directory
john@sony:-$

I have reviewed the newbie section and googled but i can't find what i need to do to correct my problem. i want to be able to share the files and a printer on both linux computers. I have the printer connected to PC #1.

PC #1 is a Toshiba Satellite P25-S670
PC #2 is a Sony VGN S-150

This is my first post. nosloj
 
Old 11-11-2009, 04:20 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
You need to make the /network directory (it doesn't exist by default, at least not on my 9.10 machine) before you can make any subdirectories of it. If you need to make a network and subdirectory in one shot, try:

mkdir -p /network/PC_1
 
Old 11-12-2009, 12:06 PM   #3
nosloj
LQ Newbie
 
Registered: Nov 2009
Location: Honolulu, Hawaii
Distribution: Ubuntu 9.10
Posts: 4

Original Poster
Rep: Reputation: 0
How do I create mount points using the terminal?

I entered your suggestion and got the following.

john@toshiba:~$ mkdir -p /network/PC_1
mkdir: cannot create directory `/network': Permission denied
john@toshiba:~$

How do I get permission?

Thanks for the help - I need it !
 
Old 11-12-2009, 12:16 PM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Try:

sudo mkdir -p /network/PC_1

The -p means "make parent directories if they do not already exist". You can't make PC_1 until /network exists.

or you could do it in 2 steps:

sudo mkdir /network
sudo mkdir /network/PC_1

"Permission denied" usually means you need to be root (or use sudo).

Welcome to LQ!
 
Old 11-12-2009, 03:23 PM   #5
nosloj
LQ Newbie
 
Registered: Nov 2009
Location: Honolulu, Hawaii
Distribution: Ubuntu 9.10
Posts: 4

Original Poster
Rep: Reputation: 0
(Solved) How do I create mount points using the terminal?

Thank you btmiller and tredegar.

I just got back from the library with three books;
How to Do Everything Ubuntu by Jeffrey Orloff
Ubuntu for Non-Geeks-2nd Edition by Rickford Grant
Beginning Ubuntu Linux-From Novice to Professional by Keir Thomas

This should keep me busy and out of your hair for a little while.

nosloj
 
  


Reply

Tags
file, networking, sharing



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount one device to two mount points secretlydead Linux - General 3 03-28-2007 05:30 AM
In Gnome, how can I create a menu that points to a folder HGeneAnthony Linux - General 3 08-06-2006 03:56 AM
How do I create system restore points similar to XP. MurX Linux - Software 3 10-24-2005 04:29 AM
SCRIPT: check if auto-mount mount-points are still mounted markus1982 Linux - Software 0 05-25-2003 05:48 AM
Slackware install: using cfdisk to create mount points Colonel Panic Linux - Software 3 09-28-2001 07:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration