On Friday, March 04, 2011 08:28:42 ew wrote:
> Greetings all,
> 
> I tried asking this on the Ubuntu forums but, did not get an answer.
> 
> http://ubuntuforums.org/showthread.php?t=1698507
> 
> A while back I installed Ubuntu 10.04 in dual boot config with Windows
> XP.
> 
> In past installs I already had a second NTFS partition prior two
> installing Ubuntu.  I seem to recall getting annoying permission issues
> (sorry for lack of detail) when running Ubuntu and performing file tasks
> on the NTFS partition.  With this in mind, I figured creating the NTFS
> partition during Ubuntu install would be best.  Unfortunately when
> creating the NTFS partition, I did not realize it was set to "Partition
> Type=Linux" (see forum link for details).  So now this partition
> although formated to NTFS, the file system is not recognized in Windows.

Okay, I think this is simply got to do with the partition "type".  If you run 
'fdisk' on the device (i.e. the drive), and choose the 'L' option, you'll get 
a list of partition types.  'Linux' partition types are typically type 83, 
whereas NTFS partitions are usually type 7.

So if Ubuntu *actually* formatted the partition you asked it to as NTFS, but 
simply marked that partition as type 73 ('linux'), then changing the partition 
type to type 7 with 'fdisk' might allow Windows to see it and/or use it.  This 
is an interesting experiment, as I've never actually formatted a partition as 
NTFS from Linux and then used it on Windows -- however I suspect it will 
probably work.

> It is no big deal to move data and format again.  I just want to
> understand what is the best way to share NTFS partition between Linux
> and MS Windows in a dual boot situation.
> 
> Thanks for your input.

The easiest way I've found is to mount NTFS partitions using the 'ntfs-3g' 
package.  i.e. 'sudo mount -t ntfs-3g /dev/sda1' for example, once ntfs-3g is 
installed.  By default for security reasons you either need to do this as root 
or via sudo, but there is a way to allow ntfs-3g to allow mounting as a user, 
which I believe involves setting the SUID bit on the ntfs-3g binary.
[I haven't done that, but the documentation explains how to do this.]

Mounting/unmounting is the only operation that requires root by default.  Once 
the NTFS partition is mounted via ntfs-3g, I've been able to use it like I 
would any other disk, as a normal user, without any issues.

I have not lately compared the kernel built-in NTFS support verses the ntfs-3g 
support in several years now, so I'm not sure which is better.  However IIRC I 
think I had permissions problems with the kernel's built-in NTFS support that 
I didn't have when using ntfs-3g (with the exception of mounting/unmounting).

  -- Chris

--

Chris Knadle
[email protected]
_______________________________________________
Mid-Hudson Valley Linux Users Group                  http://mhvlug.org
http://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug

Upcoming Meetings (6pm - 8pm)                         MHVLS Auditorium
  Mar 2 - MHVLUG 8th Anniversary - Show and Tell
  Apr 6 - Introduction to IPv6
  May 4 - Inkscape

Reply via email to