LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   how to "map network resource" in linux (https://www.linuxquestions.org/questions/linux-networking-3/how-to-map-network-resource-in-linux-17313/)

shassouneh 03-29-2002 05:41 PM

how to "map network resource" in linux
 
Is there any way to automatically map some network resource to a specific directory every time linux starts up? I edited /etc/rc.config and added the following:

SMB_START="yes"

The reason I ask is that I wish to map my mp3s to be accessible every time i boot linux.

Oh, There is a user name and password as such:

username: suse
password: suse


My Windows Machine (that has the mp3 hard drive) is set up to accept the login above and give full read/write/execute access with that login.

Here's the setup

Server machine: Windows 2000 Advanced Server (hostname: linuxsux)
Client machinr: Suse Linux Professional 7.3 (hostname: fallasteenilinux) kernel: 2.4.10

Can anyone help? Thanx.

NOTE: I edited /etc/fstab and that didnot help at all! :(

NOTE 2: Samba is installed and running! :) Shares are to be done by SMB

Sixpax 03-29-2002 06:07 PM

What did your entry in /etc/fstab look like?

Try something like this (in /etc/fstab):

//windozebox/share /mountpoint smbfs username=suse,password=suse 0 0

Then to test it, just type: mount /mountpoint

If that works, it should work during bootup.

shassouneh 03-29-2002 06:27 PM

oh wow!
 
oh wow! IT WORKED! Thanx a bunch 6pack! i owe ya one! I have no idea why it dodn't work for me before! :)

Sixpax 03-29-2002 08:04 PM

no problem shassouneh... beer's on you :)

shassouneh 03-29-2002 08:15 PM

beer?
 
Quote:

beer's on you
Can it be juice instead? LOL. I don't drink! :)

shassouneh 04-03-2002 04:20 PM

UPDATE! Someone Please help!
 
Dear All,
For some reason it is NOT working any more. If I try to use the commmand mount /mp3 to mount the resource, it gives me the following un-descipherable error:

tdb(/var/lib/samba/unexpected.tdb): rec_read bad magic 0xd9fee666 at offset=8656
tdb(/var/lib/samba/unexpected.tdb): rec_read bad magic 0xd9fee666 at offset=8656
tdb(/var/lib/samba/unexpected.tdb): rec_read bad magic 0xd9fee666 at offset=8656
Can't get /etc/mtab~ lock filesmbmnt failed: 1


Also, it does NOT seem to mount them every time the machine boots up! I STILL have to manually mount the resource! Someone please help!


NOTE: The resource is available at //linuxsux/mp3z and the username and password are "suse" in lower case. Someone Please help! :(

Sixpax 04-04-2002 07:52 PM

Please post the output from the command: smbclient -L //linuxsux

Also, post your smb.conf file.

Thanks.


All times are GMT -5. The time now is 05:09 PM.