PDA

View Full Version : How to: Set up access to a Windows partition



daniel2501
Oct 27th 2005, 05:26 PM
To set up access to a Windows partition, edit your /etc/fstab (as root) :
Add a line like:

/dev/hda2 /mnt/win ntfs ro,umask=0000,user,gid=users 0 0

Replace /dev/hda2 with the location of your windows partition.
/mnt/win is the place where you want the contents of the Windows partition to
be mounted.
The other settings asign read-only access and assure that non-root users have access
to the partition.
When done editing and saving fstab, you will need to reboot.
Afterward, your Windows partition should be accessable by going into /mnt/win.
-D

Downtown
Nov 9th 2005, 01:40 AM
How do I know where my windows partition is? I know it showed it when I was installing Kubuntu, but I forgot what it was? Is there any way to check now?

Downtown
Nov 9th 2005, 01:43 AM
Never mind.* I found out how right after I posted above.* And I mean right after.

daniel2501
Nov 9th 2005, 02:57 AM
So everything worked for you?

iamnewbie
Dec 27th 2006, 02:34 PM
How to: Set up access to a Windows partition
« on: October 27, 2005, 12:26:04 pm » Reply with quote
To set up access to a Windows partition, edit your /etc/fstab (as root) :
Add a line like:

Code:
/dev/hda2 /mnt/win ntfs ro,umask=0000,user,gid=users 0 0

Replace /dev/hda2 with the location of your windows partition.
/mnt/win is the place where you want the contents of the Windows partition to
be mounted.
The other settings asign read-only access and assure that non-root users have access
to the partition.
When done editing and saving fstab, you will need to reboot.
Afterward, your Windows partition should be accessable by going into /mnt/win.
-D

>>>
I have followed your instruction, but it doesn't work out. when i do the '/mnt/win' under the terminal, it complaints that: win command not found. (by the way, i'm new to linux) Please help

askrieger
Dec 27th 2006, 07:33 PM
"/mnt/win/" is NOT a command. It is the address of a directory. By including the line given by the original poster in your /etc/fstab (another address) file. you you make it possible for Linux to create a "mount point" for you windows partition at that address. Here is a more detailed discussion (http://www.psychocats.net/ubuntu/mountwindows) of mounting Windoze partitions in (K)Ubuntu.

iamnewbie
Dec 28th 2006, 02:39 PM
"/mnt/win/" is NOT a command. It is the address of a directory. By including the line given by the original poster in your /etc/fstab (another address) file. you you make it possible for Linux to create a "mount point" for you windows partition at that address. Here is a more detailed discussion (http://www.psychocats.net/ubuntu/mountwindows) of mounting Windoze partitions in (K)Ubuntu.


Thanks. As i poked around a bit and i found out that my window drive is already been mount to the Linux. Also, I have found that link is very helpful for newbie like me, now I installed the IE on my machine, I need it for the Web design. Thanks alot folks!!!

whoiam55
Dec 28th 2006, 07:59 PM
Never mind. I found out how right after I posted above. And I mean right after.

usually, after you post and get the answer from somewhere else or figure it out on your own, you post it for others that might be looking for something similar.

I guess you tried sudo fdisk -l?

wheresamerica?
Aug 8th 2007, 01:02 AM
would you use the same technique in the regular Ubuntu?