LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   can't mount my windows file system (https://www.linuxquestions.org/questions/linux-newbie-8/cant-mount-my-windows-file-system-278629/)

paul_mat 01-16-2005 07:10 PM

can't mount my windows file system
 
hi there,

i'm running fedora core 1 and i have samba-3.0.7, whenever i try to mount my windows file system like this

# mount -t smbfs -o username=****,password=******** //senior-server/d$ /home/pma/senior_main

i get this message,

mount: wrong fs type, bad option, bad superblock on \192.168.1.1d$,
or too many mounted file systems

can someone help me out ...

homey 01-16-2005 11:21 PM

Quote:

# mount -t smbfs -o username=****,password=******** //senior-server/d$ /home/pma/senior_main
The only thing I can think of is maybe it doesn't like that ( d$ ) part.

Here's from my notes....
mount -t smbfs -o uid=linuxuser,gid=linuxgroup //hostname/share /mnt/shares
or
mount -t smbfs -o username=<user>,password=<passwd> //hostname/share /mnt/shares

matt_com911 01-16-2005 11:23 PM

Alrite, the reason you can't do it is that Fedora Core dosen't intergrate ntfs support. Normally, Windows automatically sets its partition to ntfs. To fix this download a patch from this website;

http://linux-ntfs.sourceforge.net/rpm/fedora1.html

Find the patch that suits your kernel (to find out what kernel you are running [uname -r]). Try now and post back if it still dosen't work

homey 01-16-2005 11:27 PM

matt_com911
I think you are talking about accessing an NTFS partition on a dual boot system where he is trying to access a network share.

paul_mat 01-17-2005 12:45 AM

yea, thats right i am trying to access a network drive, but it is under windows 2000 server so it is a NTFS file system i'll try and download that patch and give it a go then

rsmith 01-17-2005 12:52 AM

If you're trying to access it, I did this exact thing today. Edit the fstab as follows:

/dev/(hard drive windows stuff is on) /home/win2k (mount point) ro,user,umask=000,users 0 0

That should take care of it. This will cause the windows shares to be auto-mounted and grant you access. by doing mount -t ntfs -o username="",password="" //server/share /home/folder you won't achieve the desired results and because mounting can only be done by root, only root will be able to view these files let alone access any subdir.

cs-cam 01-17-2005 02:41 AM

Quote:

Originally posted by rsmith
If you're trying to access it, I did this exact thing today. Edit the fstab as follows:

/dev/(hard drive windows stuff is on) /home/win2k (mount point) ro,user,umask=000,users 0 0

That should take care of it. This will cause the windows shares to be auto-mounted and grant you access. by doing mount -t ntfs -o username="",password="" //server/share /home/folder you won't achieve the desired results and because mounting can only be done by root, only root will be able to view these files let alone access any subdir.

He is trying to access a network share, in which case the NTFS drivers won't do anything for you so don't worry about installing them. Try dropping the dollar sign or maybe samba isn't configured right, does typing smbmount in a console output a usage page?

rsmith 01-17-2005 01:53 PM

Ah okay. Well then:

mount -t smbfs -o username=user,password=pass //server/D$ /home/rsmith/smbmount

That's what I do on my home network and I have no problems whatsoever. Windows shares are all on NTFS.

paul_mat 01-17-2005 04:19 PM

hey there, DJ P@CkMaN, you were right i installed the NTFS file and it didn't help at all i'm still having the problem, as for samba being install correctly the only install i can get to work is the install from the original fedora CD's i've download the tar.gz file uncompressed it, cd'ed into samba-3.0.10/packaging/Fedora and used the command sh makerpms.sh and then a mammoth list of file operations come up and two hours later it tells me there is an error. i'll do that again and tel you the error maybe that'll help ... see you in two hours

ps: just to tell you what kinda samba i'm running if i run the command rpm -qa | grep samba this is the result i get:

# rpm -qa | grep samba
samba-common-3.0.7-2.FC1
samba-3.0.7-2.FC1

paul_mat 01-17-2005 06:15 PM

extracting debug info from /var/tmp/samba-3.0.10-root/lib/libnss_wins.so
cpio: samba-3.0.10/source/getdate.c: No such file or directory
cpio: samba-3.0.10/source/getdate.y: No such file or directory
19992 blocks
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
Processing files: samba-3.0.10-1
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.65645
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd samba-3.0.10
+ DOCDIR=/var/tmp/samba-3.0.10-root/usr/share/doc/samba-3.0.10
+ export DOCDIR
+ rm -rf /var/tmp/samba-3.0.10-root/usr/share/doc/samba-3.0.10
+ /bin/mkdir -p /var/tmp/samba-3.0.10-root/usr/share/doc/samba-3.0.10
+ cp -pr README COPYING Manifest /var/tmp/samba-3.0.10-root/usr/share/doc/samba-3.0.10
+ cp -pr WHATSNEW.txt Roadmap /var/tmp/samba-3.0.10-root/usr/share/doc/samba-3.0.10
+ cp -pr docs /var/tmp/samba-3.0.10-root/usr/share/doc/samba-3.0.10
+ cp -pr examples/autofs examples/LDAP examples/libsmbclient examples/misc examples/printer-accounting /var/tmp/samba-3.0.10-root/usr/share/doc/samba-3.0.10
+ cp -pr examples/printing /var/tmp/samba-3.0.10-root/usr/share/doc/samba-3.0.10
+ exit 0
Provides: audit.so cap.so config(samba) = 3.0.10-1 default_quota.so expand_msdfs.so extd_audit.so fake_perms.so full_audit.so netatalk.so pam_smbpass.so perl(smbldap_conf) = 1.00 perl(smbldap_tools) = 1.00 readonly.so recycle.so shadow_copy.so
Requires(interp): /bin/sh /bin/sh /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(VersionedDependencies) <= 3.0.3-1
Requires(post): /bin/sh
Requires(preun): /bin/sh
Requires(postun): /bin/sh
Requires: /bin/sh /bin/sh /etc/pam.d/system-auth config(samba) = 3.0.10-1 initscripts >= 5.54-1 libacl.so.1 libacl.so.1(ACL_1.0) libattr.so.1 libattr.so.1(ATTR_1.0) libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.1.1) libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.2) libc.so.6(GLIBC_2.2.3) libc.so.6(GLIBC_2.3) libcom_err.so.2 libcrypt.so.1 libcrypto.so.4 libcups.so.2 libdl.so.2 libdl.so.2(GLIBC_2.0) libdl.so.2(GLIBC_2.1) libgssapi_krb5.so.2 libk5crypto.so.3 libkrb5.so.3 liblber.so.2 libldap.so.2 libnsl.so.1 libnsl.so.1(GLIBC_2.0) libpam.so.0 libpopt.so.0 libresolv.so.2 libssl.so.4 logrotate >= 3.4 pam >= 0.64 perl(Exporter) perl(smbldap_conf) perl(strict) perl(vars) samba-common = 3.0.10
Processing files: samba-client-3.0.10-1
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: /bin/sh /usr/bin/perl libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.2) libc.so.6(GLIBC_2.2.3) libc.so.6(GLIBC_2.3) libcom_err.so.2 libcrypt.so.1 libdl.so.2 libdl.so.2(GLIBC_2.0) libdl.so.2(GLIBC_2.1) libgssapi_krb5.so.2 libk5crypto.so.3 libkrb5.so.3 liblber.so.2 libldap.so.2 libncurses.so.5 libnsl.so.1 libnsl.so.1(GLIBC_2.0) libpopt.so.0 libreadline.so.4 libresolv.so.2 samba-common = 3.0.10
Obsoletes: smbfs
Processing files: samba-common-3.0.10-1
Provides: CP437.so CP850.so config(samba-common) = 3.0.10-1 libnss_winbind.so libnss_wins.so libsmbclient.so.0 pam_winbind.so
Requires(interp): /bin/sh /bin/sh /sbin/ldconfig
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(post): /bin/sh
Requires(preun): /bin/sh
Requires(postun): /sbin/ldconfig
Requires: /bin/sh config(samba-common) = 3.0.10-1 libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.2) libc.so.6(GLIBC_2.2.3) libc.so.6(GLIBC_2.3) libcom_err.so.2 libcrypt.so.1 libcrypto.so.4 libcups.so.2 libdl.so.2 libdl.so.2(GLIBC_2.0) libdl.so.2(GLIBC_2.1) libgssapi_krb5.so.2 libk5crypto.so.3 libkrb5.so.3 liblber.so.2 libldap.so.2 libnsl.so.1 libnsl.so.1(GLIBC_2.0) libpam.so.0 libpopt.so.0 libresolv.so.2 libssl.so.4
Processing files: samba-swat-3.0.10-1
Provides: config(samba-swat) = 3.0.10-1
Requires(interp): /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(post): /bin/sh
Requires: config(samba-swat) = 3.0.10-1 libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.2) libc.so.6(GLIBC_2.2.3) libc.so.6(GLIBC_2.3) libcom_err.so.2 libcrypt.so.1 libcrypto.so.4 libcups.so.2 libdl.so.2 libdl.so.2(GLIBC_2.0) libdl.so.2(GLIBC_2.1) libgssapi_krb5.so.2 libk5crypto.so.3 libkrb5.so.3 liblber.so.2 libldap.so.2 libnsl.so.1 libnsl.so.1(GLIBC_2.0) libpam.so.0 libpopt.so.0 libresolv.so.2 libssl.so.4 samba = 3.0.10 xinetd
Processing files: samba-debuginfo-3.0.10-1
Provides: CP437.so.debug CP850.so.debug audit.so.debug cap.so.debug default_quota.so.debug expand_msdfs.so.debug extd_audit.so.debug fake_perms.so.debug full_audit.so.debug libnss_winbind.so.debug libnss_wins.so.debug libsmbclient.so.debug netatalk.so.debug pam_smbpass.so.debug pam_winbind.so.debug readonly.so.debug recycle.so.debug shadow_copy.so.debug
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/samba-3.0.10-root
error: Installed (but unpackaged) file(s) found:
/usr/share/man/man8/pam_winbind.8.gz


RPM build errors:
Installed (but unpackaged) file(s) found:
/usr/share/man/man8/pam_winbind.8.gz
Done.

yes when i go into /usr/share/man8 i can't find this file :S i'm not sure whats going on i've tried removing the older samba packages before installing this one, i've tried doing a fresh install with no samba files being installed and then trying to install it but once again to no avail i get the same message


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