Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Actually, slooper, the problem I have is much more serious than "Unrecognized mount option noexec". I wish it were just that. I can't even get past the point in the linux startup where it Mounts the SMB filesystems. It just completely stops at this point and refuses to go on.
You say you have a windows ntfs filesystem that you accessing from linux. I have a vfat system, specifically win98. I wonder if this makes a difference. It shouldn't. Maybe there is some problem with this and there is a patch I have to apply to my linux kernel. Just speculating.
I notice that smbmount has a debug option to diagnose smb connection problems. Do you know where the debug info is logged in the system? If I could find out what specifically smbmount or smbfs or whatever in the smb chain does not like I could stop spinning my wheels with this.
Slooper, what version of samba did you install? I installed 2.2.8a. I'm thinking this is the culprit. I'm thinking that the first call to smbmount to mount the first share leaves "something" open so that the second call to smbmount to mount the second share hangs.
I thought for awhile the problem was with win 98 but both tcp/ip connections for each share are being made as evidenced by netstat.
i) There is no problem of file corruption with Win98 if using Fat16 or Fat32. Only NTFS (main filesystem by WinXP) has the problem, not being fully supported by linux (read is OK, read&write dangerous, especially by changing the size of files).
ii) the samba logs are in /var/log/samba/ (by me, SUSE)
You can adjust the level of details in the log with samba options.
iii) the mount problem could be caused by
-a call of mount before the network or the smbd demon are started
-too few time after the call
-or anything i do not know
if found following in /etc/init.d/nfs script:
# Mount all auto NFS devices (-> nfs(5) and mount(8) )
# NFS-Server sometime not reachable during boot phase.
# It's sometime usefull to mount NFS devices in
# background with an ampersand (&) and a sleep time of
# two or more seconds, e.g:
#
# mount -at nfs &
# sleep 2
I have an old windows 2000 machine in my basement that has all my MP3's on it. I recently decide I was going to use Linux(redhat 9) as my main operating system on a newer system which I use the most. The problem I had was in order to play MP3's I would have to 'su root' then 'mount -t smbfs //server/share mountpoint' everytime I booted up. This is what I did to get the remote MP3 share to mount to my linux box automatically at boot up.
1. 'su root' # gives you root access
2. 'cd /etc/rc.d/'
3. 'vi rc.local' # need root access to modify this file
4. added the following line to rc.local
'smbmount //SMBserver/share mountpoint -o username=ausername,password=apassword,workgroup=yourworkgroup'
here is my actual entry, so you can see a concrete example
smbmount //ion-windows2000/music ~niverson/music -o username=music,password=music,workgroup=@home
5. save changes to rc.local
6. reboot and log in to see if the share mounted
On my windows box, I created a guest account (user=music, password=music) just for the music share. I then shared the music folder for only the music login. Now I need to figure out home to access the printer on the windows system!!
Originally posted by dbaker Actually, slooper, the problem I have is much more serious than "Unrecognized mount option noexec". I wish it were just that. I can't even get past the point in the linux startup where it Mounts the SMB filesystems. It just completely stops at this point and refuses to go on.
With RedHat 9, you can hit "I" to enter Interactive Startup. When it gets to "Start netfs?", just hit "N".
Unfortunately, I still haven't found a way to mount multiple shared drives from my Windows PC's.
Last edited by WhiteHowler; 07-17-2003 at 06:22 PM.
You have to create a directory as your mountpoint. if you want to mount two shares you need two seperate directories as mountpoints on your linux machine. if you want n shares mounted, you need n unique directories as mountpoints.
example:
# done from command line
mkdir music
mkdir pictures
# lines in rc.local
smbmount //ion-windows2000/music ~niverson/music -o username=music,password=music,workgroup=@home
Putting your username and password in /etc/fstab is a big security risk. I recommend using the credentials method as below. (btw this will get rid of that annoying kernel error about noexec)
add the following line to your /etc/fstab, making the proper substitutions.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.