CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 4 - General Support
  Trying to fo a cifs.mount or "mount -t cifs" does not work

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  gessi
      gessi
Trying to fo a cifs.mount or "mount -t cifs" does not work
#1
Newbie
Joined: 2009/11/2
From
Posts: 4
Hi there,

as I am not a centOS Guru I got stuck with trying to mount a NAS Share via mount.cifs on my CentOS 4 machine.

I figured out there's no yum or rpm installed but only dpkg...

Anyway it seems that smbclient is installed (smbclient -L works fine)!? Whyever I can't mount via cifs.mount:

# dmesg | tail
[886610.129956] Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
[886610.129956] CIFS VFS: Send error in SessSetup = -13
[886610.260023] CIFS VFS: cifs_mount failed w/return code = -13
[886619.049404] Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
[886619.049404] CIFS VFS: Send error in SessSetup = -13
[886619.193185] CIFS VFS: cifs_mount failed w/return code = -13
[886619.197181] Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
[886619.197181] CIFS VFS: Send error in SessSetup = -13
[886619.327164] CIFS VFS: cifs_mount failed w/return code = -13
[888071.906129] CIFS VFS: cifs_mount failed w/return code = -22

My command I was using:
# mount -t cifs -o username='domain\user',password='mypw' //CIFSserver/share /mnt/test/

mount: wrong fs type, bad option, bad superblock on //CIFSserver/share,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)
In some cases useful info is found in syslog - try
dmesg | tail or so

# mount.cifs
-bash: mount.cifs: command not found

Can someone help me out!? Do I need to install any package?

There's no yum AND no rpm command availiable at all on this machine.... arghh
Posted on: 2009/11/2 16:33
Create PDF from Post Print
Top
  •  gerald_clark
      gerald_clark
Re: Trying to fo a cifs.mount or "mount -t cifs" does not work
#2
Professional Board Member
Joined: 2005/8/5
From Northern Illinois, USA
Posts: 3802
CentOS will always have rpm and yum.
Sounds like you are running a VPS that is not really CentOS.
If this is the case, you probably cannot load modules.
Take this up with your provider.
Posted on: 2009/11/2 16:50
Create PDF from Post Print
Top
  •  toracat
      toracat
Re: Trying to fo a cifs.mount or "mount -t cifs" does not work
#3
Moderator
Joined: 2006/9/3
From California, US
Posts: 4234
Please follow the instructions in this Wiki article:

http://wiki.centos.org/TipsAndTricks/WindowsShares

For now, use of credential files should be deferred. There is a bug in the latest version of samba. The bug is being tracked here:

http://bugs.centos.org/view.php?id=3960
_________________
Useful links: Search Forums; Forum FAQ;CentOS Wiki
Posted on: 2009/11/2 17:36
Create PDF from Post Print
Top
  •  gessi
      gessi
Re: Trying to fo a cifs.mount or "mount -t cifs" does not work
#4
Newbie
Joined: 2009/11/2
From
Posts: 4
No, it's a physical server and collegue gave me SSH login and told me it's CentOS!?

How can I make sure/recheck???
Posted on: 2009/11/2 18:40
Create PDF from Post Print
Top
  •  michaelnel
      michaelnel
Re: Trying to fo a cifs.mount or "mount -t cifs" does not work
#5
Professional Board Member
Joined: 2006/5/29
From San Francisco, CA
Posts: 1226
Try running "/usr/bin/yum" and "/bin/rpm" just to make sure you don't have a PATH problem.

You can also "cat /etc/redhat-release"
Posted on: 2009/11/2 21:13
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: Trying to fo a cifs.mount or "mount -t cifs" does not work
#6
Moderator
Joined: 2006/12/13
From Tidewater Virginia, North America
Posts: 3404


How about "apt-get update; apt-get install yum rpm" or is it only dpkg?
_________________
Phil
Required reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2009/11/2 22:33
Create PDF from Post Print
Top
  •  AlanBartlett
      AlanBartlett
Re: Trying to fo a cifs.mount or "mount -t cifs" does not work
#7
Professional Board Member
Joined: 2007/10/22
From ~/Earth/UK/England/Suffolk
Posts: 4294
Quote:
How can I make sure/recheck???

The output returned by the following command lines are good indicators --

rpm -q centos-release
rpm -qa kernel\* | sort
_________________
Alan.

100% CentOS, Linux & Unix. Co-founder of ELRepo.
Posted on: 2009/11/3 12:08
Create PDF from Post Print
Top
  •  gessi
      gessi
Re: Trying to fo a cifs.mount or "mount -t cifs" does not work
#8
Newbie
Joined: 2009/11/2
From
Posts: 4
Upps... seems to be Debian!? Confused...

Quote:

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Nov 2 16:33:09 2009 from 10.1.4.7

iotest01:~# /usr/bin/yum
-bash: /usr/bin/yum: No such file or directory
iotest01:~# /bin/rpm
-bash: /bin/rpm: No such file or directory
iotest01:~# apt-get update


0% [Working]

Get: 1 http://volatile.debian.org lenny/volatile Release.gpg [189B]


96% [Connecting to ftp.uk.debian.org] [Connecting to security.debian.org (212.211.132.32)] [Waiting for headers]

Ign http://volatile.debian.org lenny/volatile/main Translation-en_GB


97% [Connecting to ftp.uk.debian.org] [Connecting to security.debian.org (212.211.132.32)]

Get: 2 http://volatile.debian.org lenny/volatile Release [40.7kB]


3% [Connecting to ftp.uk.debian.org] [Waiting for headers] [2 Release 1088/40.7kB 2%]

Get: 3 http://security.debian.org lenny/updates Release.gpg [835B]


Ign http://security.debian.org lenny/updates/main Translation-en_GB


24% [Connecting to ftp.uk.debian.org] [2 Release 9296/40.7kB 22%]

Get: 4 http://security.debian.org lenny/updates Release [40.8kB]


32% [Connecting to ftp.uk.debian.org] [4 Release 1095/40.8kB 2%] [2 Release 24344/40.7kB 59%]

66% [Connecting to ftp.uk.debian.org] [4 Release 13407/40.8kB 32%]

68% [2 Release gpgv 40723] [Connecting to ftp.uk.debian.org] [4 Release 14775/40.8kB 36%]

78% [Connecting to ftp.uk.debian.org] [4 Release 22983/40.8kB 56%]

Ign http://volatile.debian.org lenny/volatile/main Packages/DiffIndex

93% [Connecting to ftp.uk.debian.org] [4 Release 35295/40.8kB 86%]

99% [Connecting to ftp.uk.debian.org (83.142.228.128)] [Waiting for headers]

99% [4 Release gpgv 40771] [Connecting to ftp.uk.debian.org (83.142.228.128)] [Waiting for headers]

99% [Connecting to ftp.uk.debian.org (83.142.228.128)] [Waiting for headers]

Ign http://volatile.debian.org lenny/volatile/main Sources/DiffIndex

99% [Connecting to ftp.uk.debian.org (83.142.228.128)] [Waiting for headers]

Get: 5 http://ftp.uk.debian.org lenny Release.gpg [1032B]


98% [5 Release.gpg 0/1032B 0%] [Waiting for headers] [Waiting for headers]

Ign http://ftp.uk.debian.org lenny/main Translation-en_GB


99% [Waiting for headers] [Waiting for headers]

Ign http://security.debian.org lenny/updates/main Packages/DiffIndex

99% [Waiting for headers] [Waiting for headers]

Get: 6 http://volatile.debian.org lenny/volatile/main Packages [7493B]


92% [Waiting for headers] [Waiting for headers] [6 Packages 1080/7493B 14%]

99% [Waiting for headers] [Waiting for headers]

99% [6 Packages bzip2 0] [Waiting for headers] [Waiting for headers] [Waiting for headers]

Get: 7 http://ftp.uk.debian.org lenny Release [73.6kB]


55% [6 Packages bzip2 0] [7 Release 0/73.6kB 0%] [Waiting for headers] [Waiting for headers]

55% [7 Release 0/73.6kB 0%] [Waiting for headers] [Waiting for headers]

Ign http://security.debian.org lenny/updates/main Sources/DiffIndex


56% [7 Release 2736/73.6kB 3%] [Waiting for headers]

Get: 8 http://volatile.debian.org lenny/volatile/main Sources [2368B]


59% [7 Release 6840/73.6kB 9%] [Waiting for headers] [8 Sources 1081/2368B 45%]

60% [7 Release 6840/73.6kB 9%] [Waiting for headers]

60% [8 Sources bzip2 0] [7 Release 6840/73.6kB 9%] [Waiting for headers]

60% [7 Release 6840/73.6kB 9%] [Waiting for headers]

Get: 9 http://security.debian.org lenny/updates/main Packages [236kB]


27% [7 Release 15048/73.6kB 20%] [9 Packages 1084/236kB 0%]

66% [9 Packages 102316/236kB 43%]

66% [7 Release gpgv 73630] [9 Packages 102316/236kB 43%]

67% [9 Packages 103684/236kB 43%]

Ign http://ftp.uk.debian.org lenny/main Packages/DiffIndex

71% [9 Packages 120100/236kB 50%]

Ign http://ftp.uk.debian.org lenny/main Sources/DiffIndex

78% [9 Packages 147460/236kB 62%]

Get: 10 http://ftp.uk.debian.org lenny/main Packages [5294kB]


5% [10 Packages 0/5294kB 0%] [9 Packages 155668/236kB 66%]

9% [10 Packages 142272/5294kB 2%]

9% [9 Packages bzip2 0] [10 Packages 142272/5294kB 2%]

Get: 11 http://security.debian.org lenny/updates/main Sources [61.6kB]


10% [9 Packages bzip2 901120] [10 Packages 222984/5294kB 4%] [11 Sources 3822/61.6kB 6%]

11% [10 Packages 229824/5294kB 4%] [11 Sources 24342/61.6kB 39%]

19% [10 Packages 671688/5294kB 12%]

19% [11 Sources bzip2 0] [10 Packages 671688/5294kB 12%]

20% [10 Packages 699048/5294kB 13%]

29% [10 Packages 1231200/5294kB 23%]
38% [10 Packages 1757360/5294kB 33%]
47% [10 Packages 2269248/5294kB 42%]
56% [10 Packages 2778488/5294kB 52%]
64% [10 Packages 3267336/5294kB 61%]
65% [10 Packages 3284992/5294kB 62%]
71% [10 Packages 3678208/5294kB 69%]
75% [10 Packages 3862888/5294kB 72%]

83% [10 Packages 4358104/5294kB 82%] 792kB/s 1s
92% [10 Packages 4861528/5294kB 91%] 792kB/s 0s
99% [Working] 792kB/s 0s
99% [10 Packages bzip2 0] [Waiting for headers] 792kB/s 0s

Get: 12 http://ftp.uk.debian.org lenny/main Sources [2307kB]

71% [10 Packages bzip2 0] [12 Sources 0/2307kB 0%] 792kB/s 2s
78% [10 Packages bzip2 6799360] [12 Sources 555024/2307kB 24%] 792kB/s 2s
84% [10 Packages bzip2 13492224] [12 Sources 1062552/2307kB 46%] 792kB/s 1s
90% [10 Packages bzip2 19795968] [12 Sources 1555032/2307kB 67%] 792kB/s 0s
95% [12 Sources 1929864/2307kB 83%] 792kB/s 0s
99% [Working] 792kB/s 0s
99% [12 Sources bzip2 0] 792kB/s 0s
99% [12 Sources bzip2 6529024] 792kB/s 0s
100% [Working] 792kB/s 0s

Fetched 8065kB in 10s (800kB/s)

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 1%

Reading package lists... 91%

Reading package lists... 91%

Reading package lists... 96%

Reading package lists... 96%

Reading package lists... 96%

Reading package lists... 96%

Reading package lists... 97%

Reading package lists... Done

iotest01:~# apt-get install yum rpom

Reading package lists... 0%

Reading package lists... 100%

Reading package lists... Done


Building dependency tree... 0%

Building dependency tree... 0%

Building dependency tree... 50%

Building dependency tree... 50%

Building dependency tree


Reading state information... 0%

Reading state information... 0%

Reading state information... Done

The following extra packages will be installed:
libbeecrypt6 librpm4.4 libsqlite0 python-celementtree python-pyme python-rpm python-sqlite python-sqlitecachec python-urlgrabber
Suggested packages:
python-celementtree-dbg python-pyme-doc python-sqlite-dbg alien
The following NEW packages will be installed
libbeecrypt6 librpm4.4 libsqlite0 python-celementtree python-pyme python-rpm python-sqlite python-sqlitecachec python-urlgrabber rpm yum
0 upgraded, 11 newly installed, 0 to remove and 86 not upgraded.
Need to get 3462kB of archives.
After this operation, 10.8MB of additional disk space will be used.
Do you want to continue [Y/n]? Y


0% [Working]

Get: 1 http://ftp.uk.debian.org lenny/main libbeecrypt6 4.1.2-7 [107kB]


0% [1 libbeecrypt6 0/107kB 0%]

Get: 2 http://ftp.uk.debian.org lenny/main librpm4.4 4.4.2.3-1 [948kB]


3% [2 librpm4.4 0/948kB 0%]

18% [2 librpm4.4 519840/948kB 54%]

30% [Working]

Get: 3 http://ftp.uk.debian.org lenny/main libsqlite0 2.8.17-4 [174kB]


30% [3 libsqlite0 0/174kB 0%]

35% [Working]

Get: 4 http://ftp.uk.debian.org lenny/main python-celementtree 1.0.5-10 [23.7kB]


35% [4 python-celementtree 0/23.7kB 0%]

36% [Working]

Get: 5 http://ftp.uk.debian.org lenny/main python-pyme 0.8.1+clean-1 [189kB]


36% [5 python-pyme 0/189kB 0%]

41% [Working]

Get: 6 http://ftp.uk.debian.org lenny/main python-sqlite 1.0.1-7 [35.2kB]


41% [6 python-sqlite 0/35.2kB 0%]

42% [Working]

Get: 7 http://ftp.uk.debian.org lenny/main python-urlgrabber 3.1.0-4 [56.6kB]


42% [7 python-urlgrabber 0/56.6kB 0%]

44% [Working]

Get: 8 http://ftp.uk.debian.org lenny/main rpm 4.4.2.3-1 [1090kB]


44% [8 rpm 0/1090kB 0%]

59% [8 rpm 524288/1090kB 48%]

74% [8 rpm 1057808/1090kB 97%]

75% [Working]

Get: 9 http://ftp.uk.debian.org lenny/main python-rpm 4.4.2.3-1 [427kB]


75% [9 python-rpm 0/427kB 0%]

88% [Working]

Get: 10 http://ftp.uk.debian.org lenny/main python-sqlitecachec 1.1.2-1 [37.8kB]


88% [10 python-sqlitecachec 0/37.8kB 0%]

89% [Working]

Get: 11 http://ftp.uk.debian.org lenny/main yum 3.2.12-1.2 [374kB]


89% [11 yum 0/374kB 0%]

100% [Working]

Fetched 3462kB in 3s (1017kB/s)
Selecting previously deselected package libbeecrypt6.
(Reading database ... 92164 files and directories currently installed.)
Unpacking libbeecrypt6 (from .../libbeecrypt6_4.1.2-7_i386.deb) ...
Selecting previously deselected package librpm4.4.
Unpacking librpm4.4 (from .../librpm4.4_4.4.2.3-1_i386.deb) ...
Selecting previously deselected package libsqlite0.
Unpacking libsqlite0 (from .../libsqlite0_2.8.17-4_i386.deb) ...
Selecting previously deselected package python-celementtree.
Unpacking python-celementtree (from .../python-celementtree_1.0.5-10_i386.deb) ...
Selecting previously deselected package python-pyme.
Unpacking python-pyme (from .../python-pyme_0.8.1+clean-1_i386.deb) ...
Selecting previously deselected package python-sqlite.
Unpacking python-sqlite (from .../python-sqlite_1.0.1-7_i386.deb) ...
Selecting previously deselected package python-urlgrabber.
Unpacking python-urlgrabber (from .../python-urlgrabber_3.1.0-4_all.deb) ...
Selecting previously deselected package rpm.
Unpacking rpm (from .../rpm_4.4.2.3-1_i386.deb) ...
Selecting previously deselected package python-rpm.
Unpacking python-rpm (from .../python-rpm_4.4.2.3-1_i386.deb) ...
Selecting previously deselected package python-sqlitecachec.
Unpacking python-sqlitecachec (from .../python-sqlitecachec_1.1.2-1_i386.deb) ...
Selecting previously deselected package yum.
Unpacking yum (from .../yum_3.2.12-1.2_all.deb) ...
Processing triggers for man-db ...
Setting up libbeecrypt6 (4.1.2-7) ...
Setting up librpm4.4 (4.4.2.3-1) ...
Setting up libsqlite0 (2.8.17-4) ...
Setting up python-celementtree (1.0.5-10) ...
Setting up python-pyme (0.8.1+clean-1) ...
Setting up python-sqlite (1.0.1-7) ...
Setting up python-urlgrabber (3.1.0-4) ...
Setting up rpm (4.4.2.3-1) ...
Setting up python-rpm (4.4.2.3-1) ...
Setting up python-sqlitecachec (1.1.2-1) ...
Setting up yum (3.2.12-1.2) ...
Starting yum-updatesd: yum-updatesd.
Processing triggers for python-support ...

iotest01:~# rpm -q centos-release
package centos-release is not installed
iotest01:~# rpm -qa kernel\* | sort
iotest01:~# cat /etc/redhat-release
cat: /etc/redhat-release: No such file or directory
iotest01:~#
Posted on: 2009/11/5 18:09
Create PDF from Post Print
Top
  •  AlanBartlett
      AlanBartlett
Re: Trying to fo a cifs.mount or "mount -t cifs" does not work
#9
Professional Board Member
Joined: 2007/10/22
From ~/Earth/UK/England/Suffolk
Posts: 4294
It's certainly not a CentOS server.

You'll obviously have more success in posting your question to a Debian forum.
_________________
Alan.

100% CentOS, Linux & Unix. Co-founder of ELRepo.
Posted on: 2009/11/5 18:23
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com