Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, I've used linux for basic things in the past but I'm afraid I need to recompile a kernel and I don't even know where to get started. There's so much information on google and I'm not familiar with the terminology to even know how to effectively search for what I'm looking for.
Basically, I'm loading Ophcrack via TFTP/PXE, but I want to be able to mount one of the shares on my samba server instead of it looking for a /tables/ folder on the current device. I already know how to modify the launch.sh script to get it to do what I want, however I'm stuck on how to mount a samba share through CIFS.
Code:
modprobe mount.cifs
returns that the module is not loaded or is not found. Is there a way to add mount.cifs?
Code:
su
root
mkdir -p /mnt/tables/
mount -t cifs //10.10.2.3/pxeboot/ophcrack/tables/XP/ /mnt/tables/
and see if that helps. I think you just have the kernel module name wrong for starters. Then check this out for how to mount using cifs with the mount.cfis command:
As you can see from the above, mount.cifs is a command, not a loadable kernel module. Once you load the cifs module, you should have access to the mount.cifs command.If you google around you can probably find some examples to get you on the right track.
In my research, I've learned that the linux-cifs package does not do much by itself, but rather is a dependency of samba, so I installed samba by doing the following:
Code:
su
root
tazpkg get-install tazpkg
tazpkg get-install samba
Samba immediately complained about missing dependencies so I installed them too...
# modprobe samba
also returns an error even though I've successfully started samba. I guess I'm confused as to how to mount a networked samba share using cifs...
Last edited by nevermind04; 10-04-2010 at 02:25 PM.
Reason: formatting/readability
Samba is not a kernel module, so it has not to be loaded into the kernel. There are to possibilities why the is no kernelmodule "cifs" in your system:
1. Your kernel was built with the "cifs"-functionality built right into kernel, so there is no need to load a module.
2. Your kernel was built with the complete lack of the "cifs"-functionality. In this case you have to build a new kernel.
Looking at you mount-command (and the failure of it) from the first post I wonder if your share's name is really pxeboot/ophcrack/tables/XP/ ?
Please post your smb.conf and the full output of your mount-command from the first post.
If it helps, here's my xterm so you can see what I'm doing...
Code:
tux@slitaz:~$ su
Password:
root@slitaz:~# mkdir -p /mnt/tables
root@slitaz:~# mount.cifs //10.10.2.3/pxeboot/ohpcrack/tables/XP /mnt/tables
Password:
mount error: cifs filesystem not supported by the system
mount error(19): No such device
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
root@slitaz:~#
I did look at the manual, but it has no information relating to my specific problem.
Also, # find / smb.conf returned No such file or directory. Where would this be located?
Last edited by nevermind04; 10-04-2010 at 02:39 PM.
Yes, smbfs was loaded as one of the dependencies of samba. I force reinstalled it, but it still does not work.
I do not have access to the actual samba machine or smb.conf, but I can access it in debian with smb://10.10.2.3/pxeboot/ohpcrack/tables/XP/ and in windows with \\10.10.2.3\pxeboot\ophcrack\tables\XP\ so I do know that it is functioning.
Which version of slitaz is ophcrack using? According to their website the modprobe cifs command should work and the smbfs module should be installed to mount samba-shares. I don't know why it is not functioning.
I have no idea how to check which version of SliTaz I'm running.
Spider Menu->System tools->System Information
Doesn't seem to be working. I scoured google trying to find a command to get a version number out of this thing, but I found nothing.
There seems to be an ophcrack-package in the slitaz-repositories, maybe it is the easiest way to build your own ophcrack version from scratch with a current slitaz-kernel.
Sorry I can't give you more help.
Man, I have absolutely no idea how to do that. I have only a basic understanding of linux systems, so rebuilding a kernel sounds terrifying. Thank you for all of your help, I believe we have made at least a little progress...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.