Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've ran into several interesting issues when mounting an NTFS partition in FreeBSD and Linux.

My server is running Windows 7 Ultimate and VirtualBox ver. 4.3.6. There is a reason why it's running Windows. I play games.

I used the following command to create the vmdk file for VirtualBox to use:

vboxmanage internalcommands createrawvmdk -filename "C:\PhysicalDrive4.vmdk" -rawdisk \\.\PhysicalDrive4

The following are all the different results that I've encountered, depending on whether the drive was formatted by Windows or by Linux.

Both devices are formatted with a GPT and a 1M partition alignment.

Disk 0 : Formatted using Windows DISKPART FORMAT NTFS (shows as NTFS partition)

Disk 1 : Formatted using Linux parted and mkfs.ntfs (shows as RAW partition in Windows)

Windows DISKPART (Disk 0), Linux mkfs.ntfs (Disk 1)

NTFS device information

When Disk 0 is mounted as as read-write, the VM pauses. An informational status is given and stays indefinitely:

The disk contains an unclean file system (0, 0).
The file system wasn't safely closed on Windows. Fixing.

I've ran CHKDSK /F on the drive with no errors.

I've removed the drive letter, taken the disk offline, reformatted, still same thing.

Gparted Live 0.7.1 NTFS mount read-write

But, when the NTFS partition is mounted as read-only, it mounts, and works.

Gparted Live 0.7.1 NTFS mount read-only

This happens for both Linux and FreeBSD running in VM. Mounting the same NTFS partition in a non-VM linux environment works as normally.

This is due to the fact that Windows creates the GPT differently from Linux. By running a diff on the first 16Kb of both devices and passing it through strings, the Windows formatted device has additional information that the Linux formatted device does not have.

enter image description here

However, why this discrepancy could be causing the VM to pause, I do not know.

00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001c0  01 00 ee fe ff ff 01 00  00 00 ff ff ff ff 00 00  |................|
000001d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200  45 46 49 20 50 41 52 54  00 00 01 00 5c 00 00 00  |EFI PART....\...|
00000210  c5 b4 7d d4 00 00 00 00  01 00 00 00 00 00 00 00  |..}.............|
00000220  af a3 50 5d 01 00 00 00  22 00 00 00 00 00 00 00  |..P]....".......|
00000230  8e a3 50 5d 01 00 00 00  45 7a 09 1a 93 83 20 42  |..P]....Ez.... B|
00000240  81 21 40 d6 95 fc 08 f0  02 00 00 00 00 00 00 00  |.!@.............|
00000250  80 00 00 00 80 00 00 00  a3 d2 5d a5 00 00 00 00  |..........].....|
00000260  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000400  a2 a0 d0 eb e5 b9 33 44  87 c0 68 b6 b7 26 99 c7  |......3D..h..&..|
00000410  c4 d2 33 78 d9 85 a0 4b  ad 79 e7 cf b1 eb 5d d9  |..3x...K.y....].|
00000420  00 08 00 00 00 00 00 00  ff 9f 50 5d 01 00 00 00  |..........P]....|
00000430  00 00 00 00 00 00 00 00  6e 00 74 00 66 00 73 00  |........n.t.f.s.|
00000440  2d 00 74 00 65 00 6d 00  70 00 00 00 00 00 00 00  |-.t.e.m.p.......|
00000450  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00004000

Linux GTP

00000000  33 c0 8e d0 bc 00 7c 8e  c0 8e d8 be 00 7c bf 00  |3.....|......|..|
00000010  06 b9 00 02 fc f3 a4 50  68 1c 06 cb fb b9 04 00  |.......Ph.......|
00000020  bd be 07 80 7e 00 00 7c  0b 0f 85 0e 01 83 c5 10  |....~..|........|
00000030  e2 f1 cd 18 88 56 00 55  c6 46 11 05 c6 46 10 00  |.....V.U.F...F..|
00000040  b4 41 bb aa 55 cd 13 5d  72 0f 81 fb 55 aa 75 09  |.A..U..]r...U.u.|
00000050  f7 c1 01 00 74 03 fe 46  10 66 60 80 7e 10 00 74  |....t..F.f`.~..t|
00000060  26 66 68 00 00 00 00 66  ff 76 08 68 00 00 68 00  |&fh....f.v.h..h.|
00000070  7c 68 01 00 68 10 00 b4  42 8a 56 00 8b f4 cd 13  ||h..h...B.V.....|
00000080  9f 83 c4 10 9e eb 14 b8  01 02 bb 00 7c 8a 56 00  |............|.V.|
00000090  8a 76 01 8a 4e 02 8a 6e  03 cd 13 66 61 73 1c fe  |.v..N..n...fas..|
000000a0  4e 11 75 0c 80 7e 00 80  0f 84 8a 00 b2 80 eb 84  |N.u..~..........|
000000b0  55 32 e4 8a 56 00 cd 13  5d eb 9e 81 3e fe 7d 55  |U2..V...]...>.}U|
000000c0  aa 75 6e ff 76 00 e8 8d  00 75 17 fa b0 d1 e6 64  |.un.v....u.....d|
000000d0  e8 83 00 b0 df e6 60 e8  7c 00 b0 ff e6 64 e8 75  |......`.|....d.u|
000000e0  00 fb b8 00 bb cd 1a 66  23 c0 75 3b 66 81 fb 54  |.......f#.u;f..T|
000000f0  43 50 41 75 32 81 f9 02  01 72 2c 66 68 07 bb 00  |CPAu2....r,fh...|
00000100  00 66 68 00 02 00 00 66  68 08 00 00 00 66 53 66  |.fh....fh....fSf|
00000110  53 66 55 66 68 00 00 00  00 66 68 00 7c 00 00 66  |SfUfh....fh.|..f|
00000120  61 68 00 00 07 cd 1a 5a  32 f6 ea 00 7c 00 00 cd  |ah.....Z2...|...|
00000130  18 a0 b7 07 eb 08 a0 b6  07 eb 03 a0 b5 07 32 e4  |..............2.|
00000140  05 00 07 8b f0 ac 3c 00  74 09 bb 07 00 b4 0e cd  |......<.t.......|
00000150  10 eb f2 f4 eb fd 2b c9  e4 64 eb 00 24 02 e0 f8  |......+..d..$...|
00000160  24 02 c3 49 6e 76 61 6c  69 64 20 70 61 72 74 69  |$..Invalid parti|
00000170  74 69 6f 6e 20 74 61 62  6c 65 00 45 72 72 6f 72  |tion table.Error|
00000180  20 6c 6f 61 64 69 6e 67  20 6f 70 65 72 61 74 69  | loading operati|
00000190  6e 67 20 73 79 73 74 65  6d 00 4d 69 73 73 69 6e  |ng system.Missin|
000001a0  67 20 6f 70 65 72 61 74  69 6e 67 20 73 79 73 74  |g operating syst|
000001b0  65 6d 00 00 00 63 7b 9a  00 00 00 00 00 00 00 00  |em...c{.........|
000001c0  01 00 ee fe ff ff 01 00  00 00 ff ff ff ff 00 00  |................|
000001d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200  45 46 49 20 50 41 52 54  00 00 01 00 5c 00 00 00  |EFI PART....\...|
00000210  3a d0 2f eb 00 00 00 00  01 00 00 00 00 00 00 00  |:./.............|
00000220  af a3 50 5d 01 00 00 00  22 00 00 00 00 00 00 00  |..P]....".......|
00000230  8e a3 50 5d 01 00 00 00  cf 48 8a f8 fa e3 55 4b  |..P].....H....UK|
00000240  be 05 5a 64 82 30 9f d3  02 00 00 00 00 00 00 00  |..Zd.0..........|
00000250  80 00 00 00 80 00 00 00  6b 18 2a a5 00 00 00 00  |........k.*.....|
00000260  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000400  a2 a0 d0 eb e5 b9 33 44  87 c0 68 b6 b7 26 99 c7  |......3D..h..&..|
00000410  a2 c1 67 17 4e ea a2 42  90 ae ac 2d e3 91 39 1a  |..g.N..B...-..9.|
00000420  00 08 00 00 00 00 00 00  ff 9f 50 5d 01 00 00 00  |..........P]....|
00000430  00 00 00 00 00 00 00 00  6e 00 74 00 66 00 73 00  |........n.t.f.s.|
00000440  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00004000

Windows GPT

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.