LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   type smb unknown when trying to mount xp mount via samba (https://www.linuxquestions.org/questions/linux-networking-3/type-smb-unknown-when-trying-to-mount-xp-mount-via-samba-497073/)

jpantone 10-30-2006 07:42 PM

type smb unknown when trying to mount xp mount via samba
 
When running Fedora Core 3 I was able to:

mount /mnt/kodiak

Now when upgraded to Fedora Core 5 the same command gives:

mount: unknown filesystem type 'smb'

My /etc/fstab line is:

//kodiak/C /mnt/kodiak smb noauto,user,rw 0 0

Any insights?

Thanks,

kstan 10-30-2006 09:52 PM

i think you must change smb to smbfs

jpantone 10-31-2006 08:50 AM

re: smb or smbfs
 
Actually I already tried that. Still unknown filesystem. The smb worked fine in FC3.

Strange...

Thanks,

okmyx 10-31-2006 12:11 PM

Have you tried vfat as the filesystem

jpantone 10-31-2006 12:32 PM

vfat vs smb/smbfs
 
I didn't expect vfat to work, since it is being shared on the Linux side by samba - and unfortunately I was correct.

The smb notation works fine on my other (FC3) machine - the problem seems to be the upgrade from FC3 to FC5 - something was left out or improperly updated.

Thanks,

caseyo2112 11-01-2006 05:51 PM

smbfs mount not working
 
I am having the same problem with a new FC5 install. Let me know if you find the solution.

Do you see smbfs listed when you type...

cat /proc/filesystems

I don't.

jpantone 11-01-2006 09:56 PM

I have found out so far that I must replace smbfs with cifs, but it only works if I:

mount -t cifs //192.168.1.100/C /mnt/kodiak

it will fail if I use

mount -t cifs //kodiak/C /mnt/kodiak

which is lame, since man mount.cifs says it should work and nmblookup (also part of samba) can find //kodiak just fine (and returns an IP of 192.168.1.100)

kstan 11-01-2006 10:40 PM

mount -t cifs //192.168.1.100/C /mnt/kodiak
you use windows 2003 server?If I not mistaken we use cifs only with this OS

about the linux linux not understand host 'kodiak', it is definitely if you don't put it at dnsserver or /etc/hosts.
please add

kodiak 192.168.1.100
in /etc/hosts

jpantone 11-02-2006 11:08 AM

Thanks - that worked, except kodiak uses DHCP, and won't always be 192.168.1.100 - samba is supposed to accept //kodiak as a share name, and resolve the IP that way.

nmblookup //kodiak (also part of samba) returns 192.168.1.100 without any changes to /etc/hosts

is cifs really unable to use windows sharenames?!

New2Linux2 11-02-2006 01:10 PM

This is probably a little late for you, but if you want to go back to mounting it as a smb share, try installing the smbfs package for your distro. I had to install that seperately from Samba on my Debian box to mount network shares from my W2K server.

kstan 11-02-2006 07:07 PM

I had never try use it, but you can try add in wins in /etc/nsswitch.conf

jpantone 11-06-2006 03:49 PM

OK - found my answer....

to mount a windows XP share in FC 5 (as root) do:

mount -t cifs //XPHostname/Sharename /mountpoint -o rw,password="password"

the -o is for options, here read/write and password=password

to unmount:

umount /mountpoint

in fstab:

//XPHostname/Sharename /mountpoint cifs noauto,rw,password="password"

then you can just

mount /mountpoint

jpantone 11-06-2006 03:51 PM

To get the //XPHostname/Sharename to resolve winbind must be running at bootup, apparently it is not running by default. Use your favorite bootup configurator to get it going automatically at boot. (I really like webmin)

jpantone 11-06-2006 03:52 PM

Can anyone point me to a page to change my Newbie to something else :-)

kstan 11-07-2006 06:49 PM

please post more. from asking question to answering question. more than 30 post than u will level up to members. Just like New2Linux2, i think he just promoted.

If you want better title, I think you need to post more than 1000.

New2Linux2 11-08-2006 06:23 PM

How about that. I hadn't even noticed that I'm no longer a Newbie. <joy>

PinBalWyz 11-26-2006 07:00 AM

Somebody else mentioned this in passing, but it's important and non-intuitive: If you're running Debian (I don't know if this applies to other linux flavors) you'll have to apt-get install smbfs in order to access 'man mount.cifs' or the "-t cifs" or "-t smbfs" options to 'mount'.

For some reason, Debian's 'sarge' doesn't include the smbfs package when you invoke apt-get install samba. I don't know why but I think it's an annoying oversight. I spent a lot of hours before I stumbled across this omission.

O(V)eGA_l2el) 11-28-2006 08:51 PM

Is there any way to continue mounting with "cifs" filesystem and be able to use windows hostnames rather than IP addresses without having to edit the "/etc/hosts" file?

IE:

mount -t cifs -o credentials=~/path/to/.smbcredentialsfile //windowspc1/share /media/share

kstan 11-28-2006 09:01 PM

1st choice is definitly using your internal dns server.

And, another alternative which i don't know working or not(I saw the option but never try and never read, please inform us if success)
edit /etc/nsswitch.conf
edit hosts entry to
hosts files winbind dns

However, don't put much hope on 2nd choice.
Regards,
Ks

O(V)eGA_l2el) 11-28-2006 09:08 PM

Quote:

Originally Posted by kstan
1st choice is definitly using your internal dns server.
Ks


What steps are involved within FC5? Currently, this is a small home network with Linksys router issuing IP addresses (DHCP).


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