Re: [opensuse] mounting my ntfs drive dual boot system
ayan sengupta wrote:
Now It seems like your Windows C drive is on part2 (/dev/sda2) or part3 (/dev/sda3) of your hard disk. I am assuming that it is part2 for the time being. What I suggest is that you su root and make a folder /windows/C. Then add this following line to your /etc/fstab file at the beginning. Be careful about the syntax. Just replace the <space> part with an actual space. Save the file. Restart the machine and navigate to /windows/C to see if the partition mounted or not.
/dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part2<space>/windows/C<space>ntfs-3g<space>users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8<space>0<space>0
Let me know what happened.
Ok, I added these 2 lines (I got the info about fmask and dmask from an older email and it worked with my other computer): /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part1 /windows/C ntfs-3g users,gid=users,fmask=002,dmask=002,locale=en_US.UTF-8 0 0 /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part2 /windows/D ntfs-3g users,gid=users,fmask=002,dmask=002,locale=en_US.UTF-8 0 0 I rebooted, and I tried to access the device with the label "DATA" through dolphin, and I got an error that said: An error occurred while accessing 'DATA', the system responded: Error opening '/dev/sda2': Permission denied Failed to mount '/dev/sda2': Permission denied Please check '/dev/sda2' and the ntfs-3g binary permissions, and the mounting user ID. More privilged explanation is provided at http://ntfs-3g.org/support.html#unprivileged So I went to that website and copied the following information down: ******************************* Why can't unprivileged users mount block devices? or Why do I get "fusermount: option blkdev is privileged" error? Unprivileged block device mounts work only if all the below requirements are met: 1. ntfs-3g is compiled with integrated FUSE support 2. the ntfs-3g binary is at least version 1.2506 3. the ntfs-3g binary is set to setuid-root 4. the user has access right to the volume 5. the user has access right to the mount point The root user can make an ntfs-3g binary setuid-root as shown below chown root $(which ntfs-3g) chmod 4755 $(which ntfs-3g) In such case the driver will also be able * to fix common FUSE kernel module loading problems * to create the required but sometimes incorrectly removed or missing FUSE device file Please note that using setuid-root can result unforeseen privilege escalation and its usage is discouraged. Only the absolutely trusted users must be granted such access. Below is an example how this can be done for users in the ntfsuser group to be able to mount any NTFS volume if they have also the needed volume access rights. chown root.ntfsuser $(which ntfs-3g) chmod 4750 $(which ntfs-3g) The setuid-root ntfs-3g driver applies the principle of least privilege during its lifetime as a safety measure. ************************************* So can anyone tell me what this is about, sort of? How do I find out if my volume is compled "with integrated FUSE support"? How do I find out if my volume is "at least version 1.2506?" How do I set the ntfs-3g binary to "setuid-root"? Where do I type in the commands "chown root $(which ntfs-3g)" and "chmod 4755 $(which ntfs-3g)"? In those commands do I actually type in the word "which", or am I supposed to substitute something else? thanks George Olson -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday, 2009-08-03 at 03:56 +0800, George Olson wrote:
Ok, I added these 2 lines (I got the info about fmask and dmask from an older email and it worked with my other computer): /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part1 /windows/C ntfs-3g users,gid=users,fmask=002,dmask=002,locale=en_US.UTF-8 0 0 /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part2 /windows/D ntfs-3g users,gid=users,fmask=002,dmask=002,locale=en_US.UTF-8 0 0
I rebooted,
WHY? Why do you reboot? This is linux. Just mount them. At worst, log out-in.
and I tried to access the device with the label "DATA"
There is no "data". You access /windows/C and /windows/D. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkp3c0EACgkQtTMYHG2NR9UejACfVGIngUFQhmtuN9BoavIxuO0w aAUAn0TH4efqWbjbZvZU7D5RY4zaqtvC =lEOY -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
On Monday, 2009-08-03 at 03:56 +0800, George Olson wrote:
Ok, I added these 2 lines (I got the info about fmask and dmask from an older email and it worked with my other computer): /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part1 /windows/C ntfs-3g users,gid=users,fmask=002,dmask=002,locale=en_US.UTF-8 0 0 /dev/disk/by-id/ata-ST9250827AS_5RG0CMC3-part2 /windows/D ntfs-3g users,gid=users,fmask=002,dmask=002,locale=en_US.UTF-8 0 0
I rebooted,
WHY? Why do you reboot? This is linux. Just mount them. At worst, log out-in.
When I try to mount the drives, even after adding those lines above to fstab, I get the following response: ntfs-3g-mount: bad mount point /windows/C: No such file or directory ntfs-3g-mount: bad mount point /windows/D: No such file or directory
and I tried to access the device with the label "DATA"
There is no "data". You access /windows/C and /windows/D.
When I try to cd to either of those drives I get the following response: linux-kwqm:/home/george # cd /windows/C bash: cd: /windows/C: No such file or directory linux-kwqm:/home/george # cd /windows/D bash: cd: /windows/D: No such file or directory
-- Cheers, Carlos E. R.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
George Olson pecked at the keyboard and wrote:
and I tried to access the device with the label "DATA" There is no "data". You access /windows/C and /windows/D. When I try to cd to either of those drives I get the following response:
WHY? Why do you reboot? This is linux. Just mount them. At worst, log out-in. When I try to mount the drives, even after adding those lines above to fstab, I get the following response: ntfs-3g-mount: bad mount point /windows/C: No such file or directory ntfs-3g-mount: bad mount point /windows/D: No such file or directory linux-kwqm:/home/george # cd /windows/C bash: cd: /windows/C: No such file or directory linux-kwqm:/home/george # cd /windows/D bash: cd: /windows/D: No such file or directory
You need to create the mount points before you can mount them. That's what it the error says: "No such file or directory" as root: md /windows/C /windows/D and then try: mount -a -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Ken Schneider - openSUSE wrote:
George Olson pecked at the keyboard and wrote:
WHY? Why do you reboot? This is linux. Just mount them. At worst, log out-in.
When I try to mount the drives, even after adding those lines above to fstab, I get the following response: ntfs-3g-mount: bad mount point /windows/C: No such file or directory ntfs-3g-mount: bad mount point /windows/D: No such file or directory
and I tried to access the device with the label "DATA"
There is no "data". You access /windows/C and /windows/D.
When I try to cd to either of those drives I get the following response: linux-kwqm:/home/george # cd /windows/C bash: cd: /windows/C: No such file or directory linux-kwqm:/home/george # cd /windows/D bash: cd: /windows/D: No such file or directory
You need to create the mount points before you can mount them. That's what it the error says: "No such file or directory"
as root:
md /windows/C /windows/D
and then try: mount -a
It worked!! Great! thanks! One thing that has happened now. I have set the permissions so that I can read AND write to the /windows/D/ drive. I am able to paste a file or save a file to that drive. When I do paste or save, I get the following error message: Could not change permissions for /windows/D/CurrentDocs/Other/testsave.odt the message changes depending on which subdirectory I am saving to, but it is the same message. Nevertheless, the file is saved in that drive just fine and I am able to access it. So it is like I get an error message but I cannot tell if there is really any problem with saving the file. Any suggestions? Thanks George Olson -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
In <4A78FCD6.9020202@gmail.com>, George Olson wrote:
It worked!! Great! thanks!
One thing that has happened now. I have set the permissions so that I can read AND write to the /windows/D/ drive. I am able to paste a file or save a file to that drive. When I do paste or save, I get the following error message: Could not change permissions for /windows/D/CurrentDocs/Other/testsave.odt
IIRC, this is a message that is generated by the NTFS file system module/driver. It is something you can generally ignore, but it does get annoying. I don't use NTFS enough to know if there is a way to permanently quash the message. -- Boyd Stephen Smith Jr. ,= ,-_-. =. bss@iguanasuicide.net ((_/)o o(\_)) ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-' http://iguanasuicide.net/ \_/
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday, 2009-08-05 at 11:30 +0800, George Olson wrote:
It worked!! Great! thanks!
One thing that has happened now. I have set the permissions so that I can read AND write to the /windows/D/ drive. I am able to paste a file or save a file to that drive. When I do paste or save, I get the following error message: Could not change permissions for /windows/D/CurrentDocs/Other/testsave.odt
Ignore it.
the message changes depending on which subdirectory I am saving to, but it is the same message. Nevertheless, the file is saved in that drive just fine and I am able to access it. So it is like I get an error message but I cannot tell if there is really any problem with saving the file. Any suggestions?
The message happens because the ntfs partition can not store the same ownership and permission information you have on the linux side of the filesystem, and it is given when the application program tries to save the file. IMO, the app should know it is dealing with such a filesystem and not attempt to match all the permissions. You will get less messages if you mount that device by the same user which owns the linux files. Or change the mount options to match (user= and gid= options, and perhaps fmask). - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkp52OwACgkQtTMYHG2NR9WIWwCfQNhjBbQ7U/f35EjwZwK8+nGD evIAoJToQa1yq06YbqBDz4Fd6BsU8sXP =hG09 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday, 2009-08-04 at 19:06 +0800, George Olson wrote:
When I try to mount the drives, even after adding those lines above to fstab, I get the following response: ntfs-3g-mount: bad mount point /windows/C: No such file or directory ntfs-3g-mount: bad mount point /windows/D: No such file or directory
Then, create those directories! The error message is clear enough. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkp4Q1oACgkQtTMYHG2NR9UjNACdFgAUZ2Gyf8alowpl2n66N1U3 7mEAni47x6PpYrcEcv/ZUSOM/6WlVJjq =PbVt -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Boyd Stephen Smith Jr.
-
Carlos E. R.
-
George Olson
-
Ken Schneider - openSUSE