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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-11-2009, 05:17 PM
|
#1
|
LQ Newbie
Registered: Nov 2009
Location: Honolulu, Hawaii
Distribution: Ubuntu 9.10
Posts: 4
Rep:
|
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
|
|
|
11-11-2009, 05:20 PM
|
#2
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
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
|
|
|
11-12-2009, 01:06 PM
|
#3
|
LQ Newbie
Registered: Nov 2009
Location: Honolulu, Hawaii
Distribution: Ubuntu 9.10
Posts: 4
Original Poster
Rep:
|
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 !
|
|
|
11-12-2009, 01:16 PM
|
#4
|
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,152
|
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!
|
|
|
11-12-2009, 04:23 PM
|
#5
|
LQ Newbie
Registered: Nov 2009
Location: Honolulu, Hawaii
Distribution: Ubuntu 9.10
Posts: 4
Original Poster
Rep:
|
(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
|
|
|
All times are GMT -5. The time now is 12:17 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|