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.
dyn189:/mnt # mkdir win
dyn189:/mnt # ls
win
dyn189:/mnt # mount -t ntfs /dev/sda1 /mnt/win/
dyn189:/mnt # cd win
dyn189:/mnt/win # l
insgesamt 1572320
dr-x------ 1 root root 4096 31. Okt 18:26 ./
drwxr-xr-x 3 root root 4096 2. Nov 16:42 ../
-r-------- 1 root root 0 6. Aug 13:02 AUTOEXEC.BAT
-r-------- 1 root root 211 31. Okt 18:21 boot.ini
-r-------- 1 root root 0 6. Aug 13:02 CONFIG.SYS
dyn189:/mnt/win # cd ..
dyn189:/mnt # chown -R kerem win
chown: Ändern des Eigentümers von „win/AUTOEXEC.BAT“: Das Dateisystem ist nur lesbar
chown: Ändern des Eigentümers von „win/boot.ini“: Das Dateisystem ist nur lesbar
chown: Ändern des Eigentümers von „win/CONFIG.SYS“: Das Dateisystem ist nur lesbar
I have mounted my windows partition on win directory..it belongs to root and as a normal user i cannot read it. wenn i try to change the ownership of the directory, i am getting an error message saying "filesystem could not be read". how can i deal with it?
Unmount the partition, and check the permissions on the mount-point dir... "ls -l /mnt/win". If it's not fully accessible to users, you can change the permission on it with chmod. When you mount it, it should then be readable by users.
As for writing, that's another story. Most distros come with the ability to read an NTFS partition; few come with the ability to write to one. You'd have to search Google, or hope somebody who's done it replies.
It is shipped with ntfs-3g, will mount every partition you have got, give you the root privilege and allow you to drag and drop files in the desktop exactly as though you are in a MS Windows.
It's just a package that allows you to write to ntfs-formatted drives. ntfs is a Windows filesystem, and by default, linux can only read it, not write to it. Installing the ntfs-3g package allows you to write as well as read.
mount -t ntfs -o uid=yourusername /dev/sda1 /mnt/win/
(or possibly uid=youruid ... don't have an nfs folder to mount right now to check it)
You don't need ntfs3g or any other read-write functionality if you're just trying to read from the partition. ntfs3g is a new-generation linux ntfs driver that has vastly improved support for writing, compared to previous ntfs linux support.
For reliable read/write support, you really need ntfs-3g. Look through the software manager under Yast, I'm sure you'll find it.
As for permissions, one of the earlier posters was right to point out that permissions under windows do not quite work the way they do under Linux. In order to make it work, you have to put these option in fstab:
So if your uid=1000 and your gid=1000, those are the values that need to be inserted.
I see that Ubuntu does it as simply as this: defaults,umask=007, gid=46 (gid here points to the plugdev group, which includes any users who have permissions to mount/umount disks). It may not be that simple on Suse (it may require some extra editing) so it is probably better to choose the first option.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.