Cifs for whitelight
Started by: promitheuspromitheus
On: 1257521878|%e %b %Y, %H:%M %Z|agohover
Number of posts: 4
rss icon RSS: New posts
Summary:
mount -t cifs //192.168.XX.YY/XXXX/
Cifs for whitelight
promitheuspromitheus 1257521878|%e %b %Y, %H:%M %Z|agohover

Tried
Cifs For Whitelight

Insturctions for adding CIFS (Samba) support for White Light. This will allow your MyBookj to mount folder shared by Windows Stations.

* Login as root.
* mkdir -p /lib/modules/2.6.24.4/kernel/fs/cifs/

The next two lines downloads the file cifs.fo attached to this page and places it in /lib/modules/2.6.24.4/kernel/fs/cifs/:

* cd /lib/modules/2.6.24.4/kernel/fs/cifs/
* wget http://mybookworld.wikidot.com/local--files/cifs-for-whitelight/cifs.ko

* echo "/lib/modules/2.6.24.4/kernel/fs/cifs/cifs.ko:"» /lib/modules/2.6.24.4/modules.dep
* insmod cifs.ko

Now you can mount Windows directories. For example

mkdir /mnt/xp_machine
mount -t cifs //`net lookup x`/y /xp_machine

where x is your windows box name, and y is the share name. There are many options for the mount command, see for example here, but you should use mount , not mount.cifs.

I get

[root@MyBookWorld 2.6.24.4]# mount -t cifs //192.168.XX.YY/XXXX/ /mnt/old/
mount: wrong fs type, bad option, bad superblock on //192.168.XX.YY/XXXXX/,
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

any help appreciated

unfold Cifs for whitelight by promitheuspromitheus, 1257521878|%e %b %Y, %H:%M %Z|agohover
Re: Cifs for whitelight
puppy33puppy33 1257579326|%e %b %Y, %H:%M %Z|agohover

Hi

Please try mounting again and then post the result of these commands

dmesg | tail -20
cat /proc/version
cat /proc/modules

Also try mounting the windows system with smbclient, and see if it works. smbclient does not rely on cifs.ko.

smbclient -L WindowsHostName
smbclient //hostname/share

Also also if the windows box is not all-English, please write which languages are used.

unfold Re: Cifs for whitelight by puppy33puppy33, 1257579326|%e %b %Y, %H:%M %Z|agohover
Re: Cifs for whitelight
promitheuspromitheus 1257582066|%e %b %Y, %H:%M %Z|agohover

[root@MyBookWorld ~]# dmesg | tail -20
oxnas_wd810_leds_state state=1
oxnas_wd810_leds_state state=14
oxnas_wd810_leds_state state=1
oxnas_wd810_leds_state state=1
oxnas_wd810_leds_state state=1
oxnas_wd810_leds_state state=0
oxnas_wd810_leds_state state=1
CIFS VFS: cifs_mount failed w/return code = -22
CIFS VFS: cifs_mount failed w/return code = -22
CIFS VFS: cifs_mount failed w/return code = -22
CIFS VFS: cifs_mount failed w/return code = -22
CIFS VFS: cifs_mount failed w/return code = -22
CIFS VFS: cifs_mount failed w/return code = -22
CIFS VFS: cifs_mount failed w/return code = -22
CIFS VFS: cifs_mount failed w/return code = -22
CIFS VFS: cifs_mount failed w/return code = -22
CIFS VFS: cifs_mount failed w/return code = -22
nfsd: last server has exited
nfsd: unexporting all filesystems
CIFS VFS: cifs_mount failed w/return code = -22

[root@MyBookWorld ~]# cat /proc/version
Linux version 2.6.24.4 (brian@dualla) (gcc version 4.2.4) #1 Tue Feb 10 11:00:22 GMT 2009

[root@MyBookWorld ~]# cat /proc/modules
cifs 241060 0 - Live 0xbf130000
nfsd 101460 0 - Live 0xbf116000
exportfs 3840 1 nfsd, Live 0xbf114000
lockd 66008 1 nfsd, Live 0xbf102000
nfs_acl 3232 1 nfsd, Live 0xbf100000
sunrpc 175292 5 nfsd,lockd,nfs_acl, Live 0xbf0d4000
wixevent 5800 0 - Live 0xbf0d1000
rtc_ds1307 5024 0 - Live 0xbf0ce000
rtc_core 14840 1 rtc_ds1307, Live 0xbf0c9000
i2c_oxnas_bitbash 2400 0 - Live 0xbf0c7000
i2c_algo_bit 5828 1 i2c_oxnas_bitbash, Live 0xbf0c4000
i2c_core 19216 3 rtc_ds1307,i2c_oxnas_bitbash,i2c_algo_bit, Live 0xbf0be000
ufsd 445668 0 - Live 0xbf050000 (P)
vfat 10240 0 - Live 0xbf04c000
nls_iso8859_1 3904 0 - Live 0xbf04a000
nls_cp437 5568 0 - Live 0xbf047000
ehci_hcd 28972 0 - Live 0xbf03e000
usb_storage 35936 0 - Live 0xbf034000
usbcore 120212 3 ehci_hcd,usb_storage, Live 0xbf015000
user_recovery_button 3160 0 - Live 0xbf013000
power_button 3388 0 - Live 0xbf011000
thermAndFan 7140 0 - Live 0xbf00e000
gmac 26352 0 - Live 0xbf006000
mii 6144 1 gmac, Live 0xbf003000
oxnas_wd810_leds 7496 0 - Live 0xbf000000

[root@MyBookWorld ~]# smbclient -L 192.168.1.67 (the server is mybook world blue rings)
Password: i did not put any password
Domain=[MYBOOK] OS=[Unix] Server=[Samba 3.0.23c]

Sharename Type Comment
-— -- -
PUBLIC Disk
PAIDIKA Disk
TORRENTS Disk
SERIES Disk
IPC$ IPC IPC Service (mybook)
Domain=[MYBOOK] OS=[Unix] Server=[Samba 3.0.23c]

Server Comment
-— -——

Workgroup Master
-— -——
DREAM DREAMBOX
WORKGROUP MYBOOK

[root@MyBookWorld ~]# smbclient //192.168.1.67/paidika
Password:
Domain=[MYBOOK] OS=[Unix] Server=[Samba 3.0.23c]
smb: \>

Thnx again for fast reply

unfold Re: Cifs for whitelight by promitheuspromitheus, 1257582066|%e %b %Y, %H:%M %Z|agohover
Re: Cifs for whitelight
promitheuspromitheus 1257582622|%e %b %Y, %H:%M %Z|agohover

finally worked with
mount -t cifs -o username=admin,workgroup=workgroup //192.168.1.67/paidika /mnt/old

Don't know why but it worked
Thnx

unfold Re: Cifs for whitelight by promitheuspromitheus, 1257582622|%e %b %Y, %H:%M %Z|agohover
New post
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License