LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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


Closed Thread
  Search this Thread
Old 07-04-2005, 06:54 AM   #1
steve007
Member
 
Registered: Jun 2005
Distribution: Fedora Core 3
Posts: 96

Rep: Reputation: 15
network mounting


Hello peeps,
Is it possible to mount a drive in linux and if so how do i do it? this is the situation i have
Samba server as PDC and aslo sharing files
NAS - the folder on the NAS i want to share is located at
192.168.1.77/disk-1

basically i would like disk-1 mounted under the directory root directory /

i can then share it through samba.

any idea? please be as descriptive as possible because i am a newbie to linux and also never used mounting before, so if i have to create any mount points or something please explain. cheers

Steve.
 
Old 07-04-2005, 08:01 AM   #2
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
If Windows boxes are not involved I'd suggest you use NFS instead of Samba. This is a native UNIX thing and works flawlessly.
 
Old 07-04-2005, 08:04 AM   #3
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
Is it possible to mount a drive in linux and if so how do i do it?
Yes, the command mount is what you want. Check out its man page for more info

Samba server as PDC and aslo sharing files
NAS - the folder on the NAS i want to share is located at 192.168.1.77/disk-1
basically i would like disk-1 mounted under the directory root directory /

mkdir /NASfolder
mount -t filesystem //192.168.1.77/disk-1 /NASfolder

Now, it will depend largely on what type of remote connections your NAS will allow. I'm going to assume it allows SMB/CIFS connections, in which case you should replace the word filesystem with smbfs, but you didn't say what type of NAS service you have. Should the example work, you can add a line to your /etc/fstab to automount it as boot-time, but lets actually get it mounted first.
 
Old 07-04-2005, 09:38 AM   #4
steve007
Member
 
Registered: Jun 2005
Distribution: Fedora Core 3
Posts: 96

Original Poster
Rep: Reputation: 15
Sorry i should have said "Is it possible to mount a NETWORK drive...."

i get an error connecting to port 445 on the NAS, is this the port that smb uses for sharing files?

All I know about the NAS is thats a NAS Lite?? it just has some disks in it hosting files and folders, i didnt set it up so i cant tell you much about it..

Steve
 
Old 07-04-2005, 10:34 AM   #5
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
if you google "tcp port list" you find out if 445 is what samba uses. It sounds right, but I'm to tired to look.
 
Old 07-04-2005, 10:50 AM   #6
steve007
Member
 
Registered: Jun 2005
Distribution: Fedora Core 3
Posts: 96

Original Poster
Rep: Reputation: 15
your original comment did work by the way, sorry. i just saw that it failed and assumed it didnt work. however it has worked so thank you very much for your help on it mate. problem solved

if you know anything about permissions tho feel free to reply to my inheritable permissions thread, im quite stuck on that one.

thank you.
 
Old 07-05-2005, 02:37 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php
http://www.linuxquestions.org/questi...hreadid=339827

And another one ...
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Mounting across network steve007 Linux - Newbie 4 09-08-2005 07:53 AM
network mounting steve007 Linux - Networking 1 07-04-2005 07:24 AM
mounting across network vivekitbhu Linux - General 3 04-05-2005 05:02 PM
network mounting? doublefailure Linux - Software 1 03-02-2003 05:39 AM
mounting a network drive... Sonny Linux - Security 6 01-24-2002 01:08 PM


All times are GMT -5. The time now is 07:07 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration