Subject: Re: Does i386 support NTFS5 now?
To: None <port-i386@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: port-i386
Date: 10/31/2001 15:10:29
In article <20011031145145.G22746@quartz.newn.cam.ac.uk>,
Patrick Welche <prlw1@newn.cam.ac.uk> wrote:
>Do any of you know about XP? I just have a XP beta 2 version running, and
>
> k:  40965718        32       NTFS                      # (Cyl.    0*- 40640*)
>file-system     NTFS            # Windows/NT file system (experimental)
>tape: {2} mount -t ntfs /dev/wd0k /mnt
>mount_ntfs: /dev/wd0k on /mnt: Invalid argument
>
>tape: {6} hexdump -C /dev/rwd0k | more
>00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
>*
>00003e00  eb 52 90 4e 54 46 53 20  20 20 20 00 02 08 00 00  |.R.NTFS    .....|
>00003e10  00 00 00 00 00 f8 00 00  3f 00 ff 00 3f 00 00 00  |........?...?...|
>00003e20  00 00 00 00 80 00 80 00  36 16 71 02 00 00 00 00  |........6.q.....|
>00003e30  00 00 04 00 00 00 00 00  63 11 27 00 00 00 00 00  |........c.'.....|
>00003e40  f6 00 00 00 01 00 00 00  db f7 1d 40 38 1e 40 fe  |...........@8.@.|
>00003e50  00 00 00 00 fa 33 c0 8e  d0 bc 00 7c fb b8 c0 07  |.....3.....|....|

It works for me. That was a fresh install...

tiny:/usr/windows [10:08am] 31#ls
$AttrDef*                  Documents and Settings/
$BadClus*                  IO.SYS*
$Bitmap*                   MSDOS.SYS*
$Boot*                     NTDETECT.COM*
$Extend/                   Program Files/
$LogFile*                  System Volume Information/
$MFTMirr*                  WINDOWS/
$Secure*                   boot.ini*
$UpCase*                   hiberfil.sys*
$Volume*                   ntldr*
AUTOEXEC.BAT*              pagefile.sys*
CONFIG.SYS*                

hexdump -C /dev/rwd0j | head -10
00000000  eb 52 90 4e 54 46 53 20  20 20 20 00 02 08 00 00  |.R.NTFS    .....|
00000010  00 00 00 00 00 f8 00 00  3f 00 ff 00 3f 00 00 00  |........?...?...|
00000020  00 00 00 00 80 00 80 00  3e 04 7d 00 00 00 00 00  |........>.}.....|
00000030  00 00 04 00 00 00 00 00  43 d0 07 00 00 00 00 00  |........C.......|
00000040  f6 00 00 00 01 00 00 00  bb 56 78 20 92 78 20 3a  |.........Vx .x :|
00000050  00 00 00 00 fa 33 c0 8e  d0 bc 00 7c fb b8 c0 07  |.....3.....|....|
00000060  8e d8 e8 16 00 b8 00 0d  8e c0 33 db c6 06 0e 00  |..........3.....|
00000070  10 e8 53 00 68 00 0d 68  6a 02 cb 8a 16 24 00 b4  |..S.h..hj....$..|
00000080  08 cd 13 73 05 b9 ff ff  8a f1 66 0f b6 c6 40 66  |...s......f...@f|
00000090  0f b6 d1 80 e2 3f f7 e2  86 cd c0 ed 06 41 66 0f  |.....?.......Af.|

Looks to me like your partition start is off by 0x3e00? Why don't you use
mbrlabel to automatically have it fixed?

christos