LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-22-2003, 01:28 PM   #16
dbaker
LQ Newbie
 
Registered: Jun 2003
Posts: 14

Rep: Reputation: 0

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.

Thanks again,

Darryl
 
Old 06-23-2003, 12:41 AM   #17
dbaker
LQ Newbie
 
Registered: Jun 2003
Posts: 14

Rep: Reputation: 0
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.

Thanks,

Darryl
 
Old 06-26-2003, 10:15 AM   #18
Milin
LQ Newbie
 
Registered: Jun 2003
Posts: 2

Rep: Reputation: 0
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



good luck
Francois Scheurer 2003/06/26
 
Old 06-26-2003, 10:19 AM   #19
Milin
LQ Newbie
 
Registered: Jun 2003
Posts: 2

Rep: Reputation: 0
PS: so you may try

mount -at smbfs &
sleep 2

and use in fstab sth like

//server/abc /mnt/abc smbfs rw,nosuid,nodev,noexec,auto,nouser,async,username=xxx,password=yyy,uid=xxx,gid=users,fmask=0664,dmas k=0775 0 0
 
Old 07-04-2003, 11:11 AM   #20
niverson
Member
 
Registered: Jun 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 128

Rep: Reputation: 15
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!!

Later,
Nate
 
Old 07-06-2003, 03:43 PM   #21
Halz
LQ Newbie
 
Registered: Oct 2001
Posts: 23

Rep: Reputation: 15
Are any considerations being made to some sort of time-out delay doing these auto network file system mounts if the remote machine is not reachable?
 
Old 07-17-2003, 07:32 AM   #22
WhiteHowler
LQ Newbie
 
Registered: Jul 2003
Posts: 3

Rep: Reputation: 0
Quote:
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.
 
Old 07-17-2003, 07:48 PM   #23
niverson
Member
 
Registered: Jun 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 128

Rep: Reputation: 15
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

smbmount //ion-windows2000/pictures ~niverson/pictures -o username=music,password=music,workgroup=@home


This should mount 2 directories at boot-up.

Nate
 
Old 07-21-2003, 04:47 AM   #24
nerotique
LQ Newbie
 
Registered: Jul 2003
Distribution: Slackware 11 / Ubuntu 6.06
Posts: 22

Rep: Reputation: 15
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.

//servername/sharename /mountdirectory smbfs credentials=/home/myhomedirectory/.smbpasswd 0 0

to create the .smbpasswd file just type the following while in your home directory

cd
echo username=mywindowsusername > .smbpasswd
echo password=mywindowspassword >> .smbpasswd
chmod 600 .smbpasswd

now you will have a nice clean smb mount without annoying error messages, not to mention a secure one.

Hope you guys like this.
 
Old 11-24-2003, 04:14 PM   #25
S.D.Willie
Member
 
Registered: Jan 2003
Location: NY
Distribution: Mandrake 9.2/Fedora Core 1
Posts: 63

Rep: Reputation: 15
hey nerotique , excellent post. worked like a charm and is much more secure. too bad im late here.

SD
 
  


Reply



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
Broblem mounting an smbfs in fstab without username/pass and weird names polemon Linux - Networking 6 10-25-2005 12:17 PM
mounting an smbfs share using mount vs /etc/fstab sichen Linux - Networking 4 08-13-2004 06:40 PM
smbfs in fstab cpugeniusmv Linux - Networking 2 04-03-2004 01:29 PM
can anyone with rh9 mount multiple shares with smbfs in fstab? Falafel Linux - Networking 2 11-15-2003 08:15 AM
SMBFS & FStab SWAT Linux - Software 6 09-02-2003 08:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:56 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
Open Source Consulting | Domain Registration