LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Capture ntfs support in mandriva (https://www.linuxquestions.org/questions/linux-software-2/capture-ntfs-support-in-mandriva-360319/)

threedguy 09-05-2005 03:32 AM

Capture ntfs support in mandriva
 
I've been working on getting Capture to work with Mandriva for some time now. I finally got it installed; I've gone through the configuration and installed my windows xp ntfs.sys and ntoskrnl.exe files without any trouble, and I can even write new files to my ntfs hard drive, but it only works when I'm logged in as root. How can I get it to work when I'm logged in as a user? For reference, I have been following this guide from Configuring Capture down: http://gentoo-wiki.com/HOWTO_NTFS_wr...ptive_approach

and this is my fstab file:

Quote:

# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/hda1 / ext3 defaults 1 1
/dev/hda6 /home ext3 defaults 1 2
/dev/hdc /mnt/cdrom iso9660 user,iocharset=iso8859-1,noauto,ro,exec 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,sync,codepage=850 0 0
# /dev/hdd1 /mnt/win_c2 ntfs umask=0,nls=iso8859-1,ro 0 0
none /proc proc defaults 0 0
/dev/hda5 swap swap defaults 0 0
# /dev/hdd1 /mnt/captive-presario captive-ntfs defaults,noauto 0 0
/dev/hdd1 /mnt/captive-presario captive-ntfs user 0 0
any ideas?

J_K9 09-05-2005 08:36 PM

I think that just using "sudo chmod a+r" on those files should work - it'll allow read the files, which will hopefully make it work!

If that doesn't, then try "sudo chmod 774". That gives full permissions to user and group, but gives World read-only access.

One of those should've worked, although to tell you the truth I'm not entirely sure! If using "sudo chmod 774" doesn't work, then you could always try "sudo chmod 777", and give World full access as well. I hope this works! ;)

J_K9

threedguy 09-05-2005 10:08 PM

Now that I've had some sleep, I realize I called the program Capture instead of Captive... my mistake. Anyway, how does that code work? Is it a one time deal in the console or does it need to go in my fstab file? I'm still relatively new to linux, although I've seen the horrors of installing things before.


Edit: ok, I've had some other configuring to do with other issues and learned good and well about the chmod command. I tried it on my mount and it didn't work. Here's the terminal output:

Quote:

[user@ ~]$ su
[root@ user]# chmod 777 /mnt/captive-presario
chmod: changing permissions of `/mnt/captive-presario': Operation not permitted
[root@ user]#
so that didn't work... :(

Also, i've found captive is not so good at reading ntfs either, anything below the first level comes back with errors. Maybe it's only good for writing to ntfs.

threedguy 09-06-2005 01:14 AM

RAWRG!!!! ok, i've been fiddling with this for a while now and somehow i reached a point where i can't even read my hard drive as a user when I use the ntfs mount switch. i get this error when i try to access it: You do not have enough permissions to read file:/mnt/win_c2

I can still read with the captive-ntfs switch, but i still can't write as a user, and read isn't very fast with captive-ntfs. Here is my fstab:

Quote:

# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/hda1 / ext3 defaults 1 1
/dev/hda6 /home ext3 defaults 1 2
/dev/hdc /mnt/cdrom iso9660 user,iocharset=iso8859-1,noauto,ro,exec 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,sync,codepage=850 0 0
/dev/hdd1 /mnt/win_c2 ntfs ro,noauto,user,sync 0 0
none /proc proc defaults 0 0
/dev/hda5 swap swap defaults 0 0
/dev/hdd1 /mnt/captive-presario captive-ntfs rw,noauto,user,sync 0 0
sometimes i wonder if it would just be better to log in as root all the time...

threedguy 09-06-2005 05:11 PM

OK, i'm back on track now. I replaced the ntfs code in the fstab with the old version i had posted here and something in there fixed the problem. I think it was the umask=0. Oh, and I added the user switch to it so a user can mount the hard drive. So basically i changed this:

/dev/hdd1 /mnt/win_c2 ntfs ro,noauto,user,sync 0 0

to this:

/dev/hdd1 /mnt/win_c2 ntfs umask=0,nls=iso8859-1,ro,user 0 0

I still can't write in user mode though, so if anyone at all can help with this, let me know. I think i've reached the level of advanced newblet now so i'm getting better.

cowlip 09-26-2005 12:13 AM

Hi http://www.linuxquestions.org/questi...tfs+user+mount

Use that: auto,rw,gid=users,uid=emcee,users in your /etc/fstab, but replace emcee with your username


All times are GMT -5. The time now is 06:08 PM.