LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problem after kernel upgrade (https://www.linuxquestions.org/questions/linux-newbie-8/problem-after-kernel-upgrade-461817/)

kissme1 07-07-2006 10:19 AM

problem after kernel upgrade
 
well i am a novice but i searched for updates for red hat linux 9 which is the distro that i use and i installed some kernel updates from the site http://download.fedoralegacy.org/redhat/9/updates/i386/

and installed them i also installed the kernel updates and now the kernel version is upgraded to 2.4.20-46.9 now i dont remember what the previous version was...now when i try to use the command

mount -t smbfs -o username=root //path //mount dir

it says this is not surrported by the kernel whereas it worked fine before the upgrades also the smbmnt command gives the same error

any help???

Lenard 07-07-2006 12:02 PM

The use of smbfs has been deprecated use cifs (see example below) instead or download the source rpm file and rebuild with smb support added back.

http://www.digitalhermit.com/linux/K...ild-HOWTO.html


Example; mount -t cifs -o username=root //path //mount dir

kissme1 07-08-2006 05:51 AM

Quote:

Originally Posted by Lenard
The use of smbfs has been deprecated use cifs (see example below) instead or download the source rpm file and rebuild with smb support added back.

http://www.digitalhermit.com/linux/K...ild-HOWTO.html


Example; mount -t cifs -o username=root //path //mount dir

tried the cifs command but it return an error saying

mount: fs type cifs not supported by kernel

and with the smbfs i get this here is the full message with the command i use

[root@localhost root]mount -t smbfs -o username=root //192.168.0.1/dummy /home/mount
2003: session request to 192.168.0.1 failed (Called name not present)
2003: session request to 192 failed (Called name not present)
Password:
ERROR: smbfs filesystem not supported by the kernel
Please refer to the smbmnt(8) manual page
smbmnt failed: 255

Lenard 07-08-2006 08:41 AM

Try using something like;

smbmount //192.168.0.1/dummy /home/mount -o username=guest -rw

If guest is a valid user/account on the remote system or else use a user that is known on the remote system.

You may need to also do something like (as root);

chmod u+x /usr/bin/smbmnt
chmod u+x /usr/bin/smbumount


Also check if either smbfs or cifs is infact available;

ls -al /lib/modules/`uname -r`/kernel/fs/smbfs
ls -al /lib/modules/`uname -r`/kernel/fs/cifs

Note that is the backtick (above the 'Tab' key on most keyboards) and not the single quotemark ['] in the commands above.

kissme1 07-08-2006 10:35 AM

Quote:

Originally Posted by Lenard
Try using something like;

smbmount //192.168.0.1/dummy /home/mount -o username=guest -rw

If guest is a valid user/account on the remote system or else use a user that is known on the remote system.

You may need to also do something like (as root);

chmod u+x /usr/bin/smbmnt
chmod u+x /usr/bin/smbumount

still the same error not supported

Quote:

Originally Posted by Lenard
Also check if either smbfs or cifs is infact available;

ls -al /lib/modules/`uname -r`/kernel/fs/smbfs
ls -al /lib/modules/`uname -r`/kernel/fs/cifs

Note that is the backtick (above the 'Tab' key on most keyboards) and not the single quotemark ['] in the commands above.

ok i tried the ls command and it gives this message
bash: uname-r command not found

when i tried the command with spaces on both sides of `uname-r`like this

ls -al /lib/modules/ `uname -r` /kernel/fs/smbfs

it showed me a list of files with these files in it
2.4.20-42.9.legacybigmem
2.4.20-42.9.legacy
2.4.20-42.9.legacyBOOT

when i use the same command for cifs it showed not found

i also did a which smbfs but it didnt show anything when i did which smbmnt it found it in the /usr/bin/smbmnt

Lenard 07-08-2006 07:46 PM

Quote:

ok i tried the ls command and it gives this message
bash: uname-r command not found
That's uname -r not uname-r (notice the space between the command and the '-r' switch)

It seems that you may have an issue with spacing since you later stated;

Quote:

ls -al /lib/modules/ `uname -r` /kernel/fs/smbfs
If you notice you *did* put the space in this case (makes a big difference).

kissme1 07-14-2006 07:35 AM

Quote:

Originally Posted by Lenard
That's uname -r not uname-r (notice the space between the command and the '-r' switch)

It seems that you may have an issue with spacing since you later stated;



If you notice you *did* put the space in this case (makes a big difference).


it was just a typing mistake here....i used the space in my query

pazo 12-17-2007 03:23 PM

I was wondering if someone can help me out, I am experiencing a similar problem. I am trying to
Code:

mount -t cifs //server/share /mnt/net -o username=user,password=secret
I am receiving:
Code:

mount error: cifs filesystem not supported by the system
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

As recommended above I went to check if the file is supported:
Code:

ls -al /lib/modules/`uname -r`/kernel/fs/cifs
I received:
-rwxr--r-- 1 root root 249124 Jun 14 2007 cifs.ko

If anyone can help me mount the Win 2K3 File Share, it will be most appreciated.

Lenard 12-18-2007 07:35 AM

Tagging onto an old posting is not the best way to get help..........with that said;

I type something along the same lines as you;

mount -t cifs //<IP address>/share /mnt/somewhere -o credentials=/home/lenard/bin/cifs.txt -rw

Use the IP address of the Windows 2003 Server system, I keep my username and password in the cifs.txt file which reads like;

username=user
password=mypassword

You may want to look into (using google) search: Windows 2003 plain password

pazo 12-18-2007 10:36 AM

Thanks for your response. I tried both of those methods. (Tried using IP, and tried using a file to keep my credentials.) The error comes out the same:

Code:

mount error: cifs filesystem not supported by the system
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs

Thanks, I appreciate your help.


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