DavidA
Posts: 23
Joined: Tue Apr 28, 2015 7:48 pm

Windows 7 won't read a NTFS partition created by a Raspberry

Sat Jan 09, 2016 9:54 pm

I have a Western Digital 3TB USB drive connected to a Raspberry Pi 2 running Raspbian Jessie. I created an 30GB ext4 system partition and a NTFS Data partition using the remainder of the drive. I formatted the NTFS partition as follows:

sudo mkfs.ntfs -Q -L Data /dev/sda2

The drive works fine on the Pi but when I connect it to a Windows 7 pc the pc doesn't recognise the format of the Data partition and can't access it.

On the Pi I ran:
$ sudo fdisk -l /dev/sda2

Disk /dev/sda2: 2.7 TiB, 2968557453312 bytes, 724745472 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x2052474d

Device Boot Start End Sectors Size Id Type
/dev/sda2p1 ? 6579571 1924427647 1917848077 7.1T 7 HPFS/NTFS/exFAT
/dev/sda2p2 ? 1953251627 3771827541 1818575915 6.8T 43 unknown
/dev/sda2p3 ? 225735265 225735274 10 40K 72 unknown
/dev/sda2p4 2642411520 2642463409 51890 202.7M 0 Empty

Partition table entries are not in disk order.
Does this look ok for NTFS, or is there something I need to change using fdisk?

(I don't know why the size is reported as 7.1T).

Precise instructions would be appreciated as I know little about fdisk.

QuietZone
Posts: 89
Joined: Sat Dec 05, 2015 7:13 pm

Re: Windows 7 won't read a NTFS partition created by a Raspb

Sat Jan 09, 2016 10:06 pm

I think this falls under the heading of:

Windows does not recognize any partitions beyond the first one on removable media.

So, you need to make sure that the Windows partition is the first one.
"If you haven't got anything nice to say about anybody come sit next to me." — Alice Roosevelt Longworth

DavidA
Posts: 23
Joined: Tue Apr 28, 2015 7:48 pm

Re: Windows 7 won't read a NTFS partition created by a Raspb

Sat Jan 09, 2016 10:23 pm

But I read:
In Windows, fixed disks can have multiple partitions and removable disks can have only one partition.

Usually external USB HDDs are fixed disks and USB thumbdrives are removable disks in Windows.
So I'm not convinced that is the problem in my case.

User avatar
rpdom
Posts: 17174
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Windows 7 won't read a NTFS partition created by a Raspb

Sun Jan 10, 2016 12:13 am

DavidA wrote:But I read:
In Windows, fixed disks can have multiple partitions and removable disks can have only one partition.

Usually external USB HDDs are fixed disks and USB thumbdrives are removable disks in Windows.
So I'm not convinced that is the problem in my case.
I think the caveat in this case is "Usually".

Return to “Networking and servers”