Computing.Net > Forums > Linux > read/write to windows partion

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

read/write to windows partion

Reply to Message Icon

Name: sj
Date: May 15, 2002 at 21:16:20 Pacific
Comment:

I have winXP and RH7.2 on two different disks.
Linux root user can write to windows disk. How do we give permission others to write to windows disk?

Thanks for any help



Sponsored Link
Ads by Google

Response Number 1
Name: Barry J. Grundy
Date: May 16, 2002 at 05:29:13 Pacific
Reply:

Copied from my answer to sjU59 in the thread above this one:

Add this line to your /etc/fstab file. The option you are looking for is umask.

/dev/hda1 /mnt/windows ntfs ro,umask=000 0 0

now mount with:

mount /mnt/windows

Keep in mind that ntfs is READ ONLY in Linux. There is support for ntfs write, but it is very dangerous (data corruption). By mounting read only (ro), you avoid any problems. You will be able to see your files just fine, but not write to that partition. If you want to write to a win partition from both XP and Linux, use a fat32 file system.


0

Response Number 2
Name: sj
Date: May 16, 2002 at 09:58:22 Pacific
Reply:

Thanks Barry;

If the window partion is fat32. What would be in /etc/fstab insted of


/dev/hda1 /mnt/windows ntfs ro,umask=000 0 0


0

Response Number 3
Name: Barry J. Grundy
Date: May 16, 2002 at 11:15:34 Pacific
Reply:

change the filesystem to vfat, drop the umask option and the rw option. You can specify "defaults", and "user" if you want a normal user to be able to mount it. Also, if you dont' want it automatically mounted at boottime, use "noauto".

/dev/hda1 /mnt/windows vfat defaults,user 0 0

read "man fstab" for a full explanation


0

Response Number 4
Name: fut
Date: July 16, 2002 at 01:04:59 Pacific
Reply:

The line
"/dev/hda1 /mnt/windows vfat defaults,user 0 0"
allows users to mount the specified file system,however,users still don't have the permission to write to fat32.
Is there any other restriction preventing users from writing to fat32?
Always changing to su is troublesome.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: read/write to windows partion

Writing to FAT32 drives in Redhat 7.3 www.computing.net/answers/linux/writing-to-fat32-drives-in-redhat-73/9925.html

Writing to and reading from pipes www.computing.net/answers/linux/writing-to-and-reading-from-pipes/24297.html

Writing to DOS partition www.computing.net/answers/linux/writing-to-dos-partition/2100.html