Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
08-14-2005, 03:45 PM
|
#1
|
Member
Registered: Apr 2003
Distribution: SuSe 10
Posts: 55
Rep:
|
Need Help With Captive-ntfs on Suse 9.3
Well i found this captive program and thoguht I'd might give it a try to mount my windows hdd as rw
So I installed the rpm, worked perfectly, ran the install-acquire, and it fetched the ntfs file from the sp1.
But I still get an error when mounting:
Code:
linux:/usr/share/lufs # mount.captive-ntfs /dev/sdb1 /mnt/captive-noname2
Captive NTFS v1.1.5. Check a new version at: http://www.jankratochvil.net/
Preparing LUFS kernel module... Run /usr/share/lufs/prepmod if problems occur.
lufs module not loaded: Try running /usr/share/lufs/prepmod to see more. at /usr/bin/captive-lufsd line 180
and when I run /usr/share/lufs/prepmod it gives me this:
Code:
linux:/usr/share/lufs # /usr/share/lufs/prepmod
+ /sbin/modprobe lufs 2>/dev/null
Preparing LUFS kernel module... Run /usr/share/lufs/prepmod if problems occur.
Running kernel version: 2.6.11.4-21.8- (base version 2.6.11.4)
Destination module directory: /lib/modules/2.6.11.4-21.8-smp/kernel/fs/lufs
Using kernel sources: /usr/src/linux
+ set -e; /bin/mkdir -p `dirname /var/lib/lufs/lufs.ko`; /bin/rm -f /var/lib/lufs/lufs.ko; cd /var/lib/lufs; /usr/bin/gcc -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -D__KERNEL__ -DMODULE -DLINUX -DKBUILD_MODNAME=lufs -I/usr/src/linux/include -I/usr/src/linux/include/asm-i386/mach-default -DMODVERSIONS -include /usr/src/linux/include/linux/version.h -include /usr/src/linux/include/linux/modversions.h -c /usr/share/lufs/2.6/proc.c /usr/share/lufs/2.6/inode.c /usr/share/lufs/2.6/dir.c /usr/share/lufs/2.6/file.c /usr/share/lufs/2.6/symlink.c; /usr/bin/ld -r -o /var/lib/lufs/lufs.ko proc.o inode.o dir.o file.o symlink.o; /bin/rm -f proc.o inode.o dir.o file.o symlink.o
+ rm -f /usr/src/linux/.config
+ /bin/rm -rf /lib/modules/2.6.11.4-21.8-smp/kernel/fs/lufs; /bin/mkdir -p /lib/modules/2.6.11.4-21.8-smp/kernel/fs/lufs; /bin/ln -s /var/lib/lufs/lufs.ko /lib/modules/2.6.11.4-21.8-smp/kernel/fs/lufs/lufs.ko
+ /sbin/rmmod lufs 2>/dev/null; /sbin/insmod /lib/modules/2.6.11.4-21.8-smp/kernel/fs/lufs/lufs.ko 2>/dev/null
Failed to prepare lufs.ko module for your Linux kernel 2.6.11.4-21.8-.
Detected Linux kernel sources "/usr/src/linux" do not appear to be valid.
Please install kernel-source-x.y.z.i386.rpm or kernel-headers_x.y.z_i386.deb.
The following directory paths were search (first existing directory used):
/lib/modules/2.6.11.4-21.8-/build
/usr/src/kernel-headers-2.6.11.4-21.8-
/usr/src/linux-2.6.11.4-21.8-
/usr/src/linux-2.6.11.4
/usr/src/linux
/usr/src/kernel-source-2.6.11.4-21.8-
at /usr/share/lufs/prepmod line 181
My kernel sources are installed correctly though.
Here's my fstab btw:
Code:
/dev/sda3 / reiserfs acl,user_xattr 1 1
/dev/sda1 /data reiserfs acl,user_xattr 0 0
/dev/sda2 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
sysfs /sys sysfs noauto 0 0
/dev/dvd /media/dvd subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/dvdrecorder /media/dvdrecorder subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/fd0 /media/floppy subfs noauto,fs=floppyfss,procuid,nodev,nosuid,sync 0 0
/dev/cdrom /media/cdrom subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/sda4 /data2 reiserfs acl,user_xattr 1 2
/dev/sdb5 /mnt/captive-noname captive-ntfs defaults,noauto 0 0
/dev/sdb1 /mnt/captive-noname2 captive-ntfs defaults,noauto 0 0
Anyone have an idea of how I could fix this? I'm sure it's something simple, maybe some file which should be copied to a different dir or smth.
P.S. "modprobe lufs" gives me:
Code:
FATAL: Error inserting lufs (/lib/modules/2.6.11.4-21.8-smp/kernel/fs/lufs/lufs.ko): Invalid module format
|
|
|
08-16-2005, 04:06 AM
|
#2
|
Member
Registered: Apr 2003
Distribution: SuSe 10
Posts: 55
Original Poster
Rep:
|
I searched a bit on google and someone said that you need to type the following to get it working under suse 9.2:
"make cloneconfig modules modules_install" so I did that (inside of /lib/modules/....) and now the error message is slightly different:
Code:
linux:/home/koy # /usr/share/lufs/captive-prepmod
+ /sbin/modprobe lufs 2>/dev/null
Preparing LUFS kernel module... Run /usr/share/lufs/prepmod if problems occur.
Running kernel version: 2.6.11.4-21.8- (base version 2.6.11.4)
Destination module directory: /lib/modules/2.6.11.4-21.8-smp/kernel/fs/lufs
Using kernel sources: /usr/src/linux
+ set -e; /bin/mkdir -p `dirname /var/lib/lufs/lufs.ko`; /bin/rm -f /var/lib/lufs/lufs.ko; make -C /usr/src/linux SUBDIRS="/usr/share/lufs/2.6" modules EXTRA_CFLAGS=""; /bin/mv -f /usr/share/lufs/2.6/lufs.ko /var/lib/lufs/lufs.ko; /bin/rm -f /usr/share/lufs/2.6/proc.o /usr/share/lufs/2.6/.proc.o.flags /usr/share/lufs/2.6/.proc.o.cmd /usr/share/lufs/2.6/inode.o /usr/share/lufs/2.6/.inode.o.flags /usr/share/lufs/2.6/.inode.o.cmd /usr/share/lufs/2.6/dir.o /usr/share/lufs/2.6/.dir.o.flags /usr/share/lufs/2.6/.dir.o.cmd /usr/share/lufs/2.6/file.o /usr/share/lufs/2.6/.file.o.flags /usr/share/lufs/2.6/.file.o.cmd /usr/share/lufs/2.6/symlink.o /usr/share/lufs/2.6/.symlink.o.flags /usr/share/lufs/2.6/.symlink.o.cmd /usr/share/lufs/2.6/lufs.mod.o /usr/share/lufs/2.6/.lufs.mod.o.flags /usr/share/lufs/2.6/.lufs.mod.o.cmd /usr/share/lufs/2.6/lufs.o /usr/share/lufs/2.6/.lufs.o.flags /usr/share/lufs/2.6/.lufs.o.cmd /usr/share/lufs/2.6/lufs.mod.c /usr/share/lufs/2.6/.lufs.ko.cmd;
make: Entering directory `/usr/src/linux-2.6.11.4-21.8'
CC [M] /usr/share/lufs/2.6/dir.o
CC [M] /usr/share/lufs/2.6/file.o
CC [M] /usr/share/lufs/2.6/inode.o
CC [M] /usr/share/lufs/2.6/proc.o
CC [M] /usr/share/lufs/2.6/symlink.o
LD [M] /usr/share/lufs/2.6/lufs.o
Building modules, stage 2.
MODPOST
CC /usr/share/lufs/2.6/lufs.mod.o
LD [M] /usr/share/lufs/2.6/lufs.ko
make: Leaving directory `/usr/src/linux-2.6.11.4-21.8'
+ /bin/rm -rf /lib/modules/2.6.11.4-21.8-smp/kernel/fs/lufs; /bin/mkdir -p /lib/modules/2.6.11.4-21.8-smp/kernel/fs/lufs; /bin/ln -s /var/lib/lufs/lufs.ko /lib/modules/2.6.11.4-21.8-smp/kernel/fs/lufs/lufs.ko
+ /sbin/rmmod lufs 2>/dev/null; /sbin/insmod /lib/modules/2.6.11.4-21.8-smp/kernel/fs/lufs/lufs.ko 2>/dev/null
Failed to prepare lufs.ko module for your Linux kernel 2.6.11.4-21.8-.
Detected Linux kernel sources "/usr/src/linux" do not appear to be valid.
Please install kernel-source-x.y.z.i386.rpm or kernel-headers_x.y.z_i386.deb.
The following directory paths were search (first existing directory used):
/lib/modules/2.6.11.4-21.8-/build
/usr/src/kernel-headers-2.6.11.4-21.8-
/usr/src/linux-2.6.11.4-21.8-
/usr/src/linux-2.6.11.4
/usr/src/linux
/usr/src/kernel-source-2.6.11.4-21.8-
at /usr/share/lufs/captive-prepmod line 181
as you can see, it's actually compiling or doing something to the files, but then stops without a detailed error message :/
P.S. "modprobe lufs" now gives me:
Code:
FATAL: Error inserting lufs (/lib/modules/2.6.11.4-21.8-smp/kernel/fs/lufs/lufs.ko): Unknown symbol in module, or unknown parameter (see dmesg)
Last edited by koy; 08-16-2005 at 04:20 AM.
|
|
|
09-06-2005, 06:58 PM
|
#3
|
Member
Registered: Sep 2005
Location: irving TX
Distribution: SuSe, Kubuntu, Win$ucks
Posts: 50
Rep:
|
i reached this page several times finding a way to solve this thing....
so i figured others too will reach this page & i m posting the solution here..
we are going to tweak some stuff...(thas right..now u can brag to ur frnds..that u hacked ur OS...LOL)...
x.y.z is ur current kernel version....
1. make sure you got all kernel sources in place (usually /usr/src/linux-x.y.z)
2. edit /usr/src/linux-x.y.z/kernel/signal.c in ur fav editor
goto the place where u see somethin like this ..shortcut is Use find option of editor & find for EXPORT
EXPORT_SYMBOL(recalc_sigpending);
EXPORT_SYMBOL_GPL(dequeue_signal);
EXPORT_SYMBOL(flush_signals);
EXPORT_SYMBOL(force_sig);
EXPORT_SYMBOL(kill_pg);
EXPORT_SYMBOL(kill_proc);
3. add this line at the end of all those EXPORTs
EXPORT_SYMBOL(kill_proc_info);
save & close out.
4. goto /usr/src/linux-x.y.z & do
$make bzImage
( i am not sure about <make modules modules_install> ,whether u should do it or no....)
5. issue the following still in same dir
cp arch/i386/boot/bzImage /boot/vmlinuz-x.y.z
(/boot/vmlinuz-x.y.z should already be existing unless u r doing a fresh kernel compile..go ahead & overwrite it)
restart & enjoy
possibly u might have to do /usr/share/lufs/prepmod again..but this time it will be clean
|
|
|
09-07-2005, 05:58 AM
|
#4
|
Member
Registered: Apr 2003
Distribution: SuSe 10
Posts: 55
Original Poster
Rep:
|
Wow, that worked!
Tanx a lot mayhemt, I had almost given up on this, and now you come and fix my problem with a simple line to edit 
---
Btw, could you explain me why it worked with that line in that file?
and is captive secure for writing to ntfs without it messing up the partition?
|
|
|
09-07-2005, 06:30 PM
|
#5
|
Member
Registered: Sep 2005
Location: irving TX
Distribution: SuSe, Kubuntu, Win$ucks
Posts: 50
Rep:
|
hehe..i m not that hardcore linux geek....(i do most stuff on mainframes..LOL)
but my idea is this
captive had been in development & support for a while when kernel was in 2.4 stages & in early 2.6 stages... the author Jan finally stopped working on it. Meanwhile Linus & others working on kernels..dropped the dreadful kill_proc_info (which is still needed by lufs modules) from the code post kernel 2.6.6 (or earlier..dont know when it exactly happnd) ...so we hacked kernel to export this variable...dats all
is captive secure? captive is written basically around windows NTFS drivers itself...so it should be pretty safe according to the author of captive. However its slow to write huge files atleast on my linux box. its safer than the kernel's in-built ntfs-write support module.
|
|
|
09-08-2005, 04:00 AM
|
#6
|
Member
Registered: Apr 2003
Distribution: SuSe 10
Posts: 55
Original Poster
Rep:
|
Tanx for the info, you really helped me out 
|
|
|
09-26-2005, 12:09 AM
|
#7
|
LQ Newbie
Registered: Sep 2005
Posts: 3
Rep:
|
Hi, instead of editing the kernel, you can do it this way, editing only prepmod:
sudo gedit /usr/share/lufs/2.6/inode.c
Search for:
/* notify the daemon that we're going bye-bye */
and then change "kill_proc_info" to just "kill_proc" and its good.
|
|
|
11-25-2005, 06:18 PM
|
#8
|
LQ Newbie
Registered: Nov 2005
Posts: 11
Rep:
|
thanks cowlip, it works nicely.
|
|
|
04-01-2006, 08:21 PM
|
#9
|
Member
Registered: Apr 2004
Location: Ohio
Distribution: Ubuntu 6.06 LTS (Ubuntu, Edubuntu, Ubuntu Server)
Posts: 77
Rep:
|
Works for me now too on Ubuntu 5.10
Same problem, same solution
(edit inode.c)
|
|
|
All times are GMT -5. The time now is 02:58 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|