*

Welcome, Guest. Please login or register.

Get your own OLPC - Buy an XO laptop on eBay!
Pages: 1 [2]
Print
Author Topic: Mounting CIFS (windows) shares? Problems  (Read 19254 times)

#15 Re: Mounting CIFS (windows) shares? Problems

cathersal
New

Posts: 1


March 15, 2008, 08:37:51 AM

OK I think I am getting close after reading all these posts. I set up a windows NFS server on my vista box (using NFSAxe 3.5), opened the vista firewall and exported a windows folder. I also set up the NFS-Utils on the XO. My question is what do I do about the userid?  There doesn't seem to be a way to define users on the NFSAxe software and I don't see a way to send a windows userid using the mount command.   Anyone know what I am missing?
Logged

#16 Re: Mounting CIFS (windows) shares? Problems

chip
New

Posts: 1


March 04, 2009, 11:07:57 PM

As stevef-samba-team said earlier in this thread, the only things really needed to access CIFS shares are cifs.ko and mount.cifs. yum install samba-client.i386 installs mount.cifs. I got cifs.ko by downloading olpc source and building it on the XO itself!

That process is more or less as follows. I have the 8.2.0 (Build 767) build on my XO. You'll probably need an SD card or USB key, I don't think there is enough space otherwise. Italics in the instruction are places where you supply the info. (There may be errors here, I'm doing this from memory)

1. Determine which build your XO has. If you go to the Control Panel and select About My XO, it will show the build number. (This page may help: http://wiki.laptop.org/go/OS_images).
2. Get the source for the kernel, to match the kernel version your XO is running. I went to this page: http://dev.laptop.org/git?p=olpc-2.6;a=summary, toward the bottom and clicked "log" next to my build. From there I clicked the little yellow box containing my build number. And from there I clicked "snapshot". (For build 767, the snapshot is here: http://dev.laptop.org/git?p=olpc-2.6;a=snapshot;h=f10b654367d7065d50e7d5e3649933453cea3102)
3. Whew! Take a break.
4. Install some tools:
 a. yum install gcc.i386
 b. yum install make.i386
 c. yum install ncurses.i386
5. I didn't have enough room on my XO's main flash, so I used a 4GB SD card. However the SD card has to be reformatted (a FAT file system won't work, because you need softlinks - although with some tweaks (copy files instead of softlink) you could probably work around that). Here are the steps:
  a. umount /media/label-of-SD-card-here (ls /media should show you this if you don't know it)
  b. mkfs -t ext2 /dev/mmcblk0 (or you can use mkfs -t ext2 -L sd-label-here /dev/mmcblk0 to give the SD card a friendlier label).
  c. remove and reinsert smart card
6. Unpack the source. I downloaded the source (in step #2 above) on a Windows machine and unpacked it with Peazip, then copied it to a USB key, moved the USB key to the XO, and then copied it to the SD card, like this: cp -R /media/my-usb-key-label/olpc-2.6 /media/sd-label. If you download the source directly to your XO (might be slower), then you'll have to use gunzip, then tar.
7. cp /boot/config-kernel-version /media/sd-label/olpc-2.6/.config
8. make menuconfig Arrow down to the File systems submenu, press space bar, then down to the Network File Systems, then press M, then enter, arrow down to CIFS, press M, and then keep pressing escape until it asks you if you want to save, then press enter.
9. make prepare If you didn't reformat your SD card above, I think you'll have trouble here.
10. make M=fs/cifs (I got a warning about Module.symvers which I successfully ignored)
11. make M=fs/cifs modules_install
12. depmod
13. I had to copy cifs.ko to the correct location. It ended up in /lib/modules/2.6.25.15 but it need to be in /lib/modules/2.6.25-20080925.1.olpc.f10b654367d7065/kernel/fs/cifs for modprobe to work.
14. modprobe cifs

To access a share do something like:
mount.cifs //myserver/myshare /mnt/mymountpoint -o user=myname
Logged
Pages: 1 [2]
Print
Jump to:  

Members
Total Members: 2405
Latest: sembik
Stats
Total Posts: 31943
Total Topics: 3843
Online Today: 27
Online Ever: 238
(April 18, 2011, 09:48:50 PM)
Users Online
Users: 0
Guests: 14
Total: 14