Linux - NewbieThis 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.
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.
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
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.
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..
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.