LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   What is Captive-NTFS? (https://www.linuxquestions.org/questions/mandriva-30/what-is-captive-ntfs-253519/)

allforcarrie 11-11-2004 02:09 AM

What is Captive-NTFS?
 
I can brows my NFTS drives just fine with Mandrake 10 ...

opjose 11-11-2004 02:26 AM

Captive permits you to safely WRITE to the NTFS partitions in Linux.

It works by utilizing Microsoft's own drivers for NTFS, so there are few, if any problems.

allforcarrie 11-11-2004 07:01 AM

THAT IS GREAT! How do i get it working?

opjose 11-11-2004 05:22 PM

The captive web site explains it best.

http://www.jankratochvil.net/project/captive/

It's REALLY easy to do.

The installer is very smart as well, it will go out and search for drivers in any Windows partition.

Under 10.1 Official, using the provided RPM's for some reason this process hung on my laptop.

I rebooted and ran the installer again and told it to skip the search of my existing Windows XP partition.

When I did this, it connected to Microsoft and downloaded the correct drivers from MS. Very nice.

You do need the LUFS modules installed prior to installing captive.

If you don't already have them or suspect you don't try

urpmi lufs

to get them in place.

opjose 11-11-2004 05:24 PM

Also there is a utility called captive-install-fstab that modifies the /etc/fstab file to use the captive drivers instead of the Linux ones.

Save off your existing /etc/fstab file...

e.g.

cp /etc/fstab /etc/fstab.sav

then run this utility AFTER installing captive as indicated.

Reboot and you can read and write to the NTFS partitions from Linux.

allforcarrie 11-11-2004 11:18 PM

i installed that but nothing happened, is there a setting i have to change?

opjose 11-12-2004 12:39 AM

Did you UNMOUNT your windows partition?

Then did you type mount -a or cat the /etc/fstab file to see if the captive-acquire-fstab made the proper changes?

Did the installation via captive-aquire-install work?

allforcarrie 11-12-2004 05:33 AM

I didnt try that, i'll check it out when i get home.

allforcarrie 11-12-2004 08:36 AM

Quote:

[root@localhost paul]# mount -a/mnt/win_c
mount: invalid option -- /
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say man 8 mount .
[root@localhost paul]#
I am completely lost.... :scratch:

Quote:

[root@localhost paul]# umount /mnt/win_c
umount: /mnt/win_c: device is busy
umount: /mnt/win_c: device is busy

opjose 11-12-2004 01:55 PM

Nah, just a little bit confused and missing a space or two in your syntax.

First print out the /etc/fstab and post it here so I can have a peek.

Then we'll take it further.

allforcarrie 11-14-2004 06:45 AM

so I did a clean install of 10.1 and unmounter my drive, i installed the captive RPM. here is the file:


Quote:

/dev/hde5 / ext2 defaults 1 1
/dev/hda /mnt/cdrom auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec,users 0 0
/dev/hdb /mnt/cdrom2 auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec,users 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,sync,codepage=850 0 0
/dev/hde1 /mnt/win_c ntfs umask=0,nls=iso8859-1,ro 0 0
/dev/hdf1 /mnt/win_c2 ntfs umask=0,nls=iso8859-1,ro 0 0
none /proc proc defaults 0 0
/dev/hdf1 /mnt/captive-music captive-ntfs defaults,noauto 0 0
/dev/hde1 /mnt/captive-noname captive-ntfs defaults,noauto 0 0

opjose 11-14-2004 06:56 AM

Does it work properly now?

allforcarrie 11-14-2004 07:21 AM

I have no idea. I cant open any directorys to get to the mnt Dir. I ushualy open home then hit the up botton but home keeps crashing..... the only way i can see anything is to use nautalas directly

opjose 11-14-2004 07:33 AM

Open a console, and su to root.

Enter the root password when prompted.

type

umount /mnt/win_c
umount /mnt/win_c2
umount /mnt/captive-music
umount /mnt/captive-noname

Disregard any errors about the device not being mounted...

Now edit the /etc/fstab file using whatever editor you know.

At worst use kwrite

e.g.

kwrite /etc/fstab

Delete the following lines

/dev/hde1 /mnt/win_c ntfs umask=0,nls=iso8859-1,ro 0 0
/dev/hdf1 /mnt/win_c2 ntfs umask=0,nls=iso8859-1,ro 0 0

These are redundant and will only act to screw up captive.

Save the file.

Now type

mount /mnt/captive-music
mount /mnt/captive-noname

Now go to the directory...

cd /mnt/captive

and display it's contents

ls -l

Do you see your NTFS files?

If so captive is working fine.

allforcarrie 11-14-2004 08:00 AM

all i can see now is empty folders, before i could see everything fine.

allforcarrie 11-14-2004 11:56 AM

Quote:

Originally posted by opjose
[You do need the LUFS modules installed prior to installing captive.

urpmi lufs/B]
Quote:

[root@localhost paul]# /home/paul/Desktop/lufs-0.9.7/configure
checking build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
checking target system type... i686-redhat-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking OS... configure: error: Linux - not supported!
Quote:

[root@localhost paul]# urpmi lufs
no package named lufs
[root@localhost paul]#

opjose 11-14-2004 05:52 PM

What happened when you tried to MOUNT the drives AFTER making the indicated changes?

What message did you get?

Also post the output of the "mount" command by itself.

opjose 11-14-2004 11:30 PM

BTW: On my 10.1 system I tried the RPM distribution of captive which was posted.

I had some problems with it so I downloaded the source code.

When I initially tried to compile it, the ./configure command reported that gnome-vfs-modules was missing from my system.

I then

urpmi libgnome-vfs2_2-devel (or something very similiar)

and the ./configure command would run.

I reran it with ./configure --prefix=/usr and it took off.

When done I typed

make

then

make install

Again I ran captive-install-acquire to make sure that it had the windows drivers loaded (it did) and it complained that there were no NTFS partitions around. I clicked FINISH.

I checked my fstab to be sure that the NTFS partitions were correct, then I umounted them

umount /mnt/windows

and then

captive-install-fstab

After doing this I edited /etc/fstab again and commented OUT the /mnt/windows line

I then typed

mount /mnt/captive-system

(BTW: SYSTEM is the name I gave my drive under WINDOWS...)

And off it went without any problems whatsoever.

I've moved gigs of files back and forth with no issues.

foxy123 12-08-2004 03:30 PM

When I try to mount ntfs drive it gives me the following error. What does it mean?

Preparing LUFS kernel module... Run /usr/share/lufs/prepmod if problems occur.
Kernel sources /lib/modules/2.6.8-24-default/build do not contain 'include' subdirectory at /usr/bin/captive-lufsd line 194
main::build_gcc('/lib/modules/2.6.8-24-default/build', '2.6.8-24-default', '/var/lib/lufs/lufs.ko') called at /usr/bin/captive-lufsd line 292
main::build('/lib/modules/2.6.8-24-default/build', '2.6.8-24-default', '/var/lib/lufs/lufs.ko') called at /usr/bin/captive-lufsd line 156

I've got SuSE 9.2 btw....

opjose 12-08-2004 07:30 PM

This is a Mandrake forum.

foxy123 12-09-2004 07:23 AM

I just thought that the question might be not distribution specific and someone could have an answer...

opjose 12-09-2004 07:28 AM

Ok, it's not quite distro specific... but the specifics of the distro change the answer here.


You are missing the lufs kernel modules.

These are provided in Mandrake on a seperate RPM.

Once installed these will be autoloaded by the attempt to run captive.

This: "run /usr/share/lufs/prepmod "

Is a generic message which assumes you have compiled the captive stuff from source, and is now telling you how to fix the problem...

However it doesn't apply to Mandrake.

So the above doesn't help you much.

foxy123 12-09-2004 07:39 AM

Thanks for the response. I've got a feeling that not many use a captive anyway and are happy without ntfs writing. However, it is quite painful to migrate from Windows to Linux without this feature. Actually I was trying to avoid converting my ntfs partitions into fat32, because to do it I would have to move the stuff I keep there somewhere. Well, it's a drag. Since the project is abandoned it is very difficult to find any help on installing and running it.

opjose 12-09-2004 07:54 AM

Support for it is falling by the wayside now that the newer kernels are starting to support NTFS writing.

However I'll wait to the next kernel rev before I trust it...

foxy123 12-09-2004 07:58 AM

Quote:

[i]However I'll wait to the next kernel rev before I trust it... [/B]
So I heard and completely agree.


All times are GMT -5. The time now is 04:37 AM.