Subject: help mounting ntfs partition.
To: netbsd help <netbsd-help@netbsd.org>
From: Mark Kirby <mrk@coris.org.uk>
List: netbsd-help
Date: 11/20/2003 11:34:18
Hi,

my NetBSD partition share the disk with two windows 2000 partions both ntfs.

i want to be able to mount the second partition, so that i can swap files as i 
still use both systems, and i dont really want to have two copies of my mp3 
collection.

I looked in the NetBSD guide and followed the section on mounting fat32 
partitions. substituting MSDOS for NTFS.

fdisk output shows

# fdisk wd0
Disk: /dev/rwd0d
NetBSD disklabel disk geometry:
cylinders: 59560, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 60036480

BIOS disk geometry:
cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 60036480

Partition table:
0: OS/2 HPFS or NTFS or QNX2 or Advanced UNIX (sysid 7)
    bootmenu: windows
    start 63, size 21012957 (10260 MB, Cyls 0-1308), Active
1: OS/2 HPFS or NTFS or QNX2 or Advanced UNIX (sysid 7)
    bootmenu:
    start 21013020, size 20148660 (9838 MB, Cyls 1308-2562/50/1)
2: NetBSD (sysid 169)
    bootmenu: NetBSD
    start 41161680, size 18874800 (9216 MB, Cyls 2562/50/1-3737/25/1)
3: <UNUSED>
Bootselector enabled, timeout 10 seconds.

i then modified disklabel as follows

# disklabel wd0
...
16 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a:   1615824  41161680     4.2BSD   1024  8192    86  # (Cyl.  40835 -  
42437)
 b:   3146976  42777504       swap                     # (Cyl.  42438 -  
45559)
 c:  18874800  41161680     unused      0     0        # (Cyl.  40835 -  
59559)
 d:  20148660  21013020       NTFS                     # (Cyl.  20846*-  
40834)
 e:  14112000  45924480     4.2BSD   1024  8192    86  # (Cyl.  45560 -  
59559)

i then added /dev/wd0d /NTFS NTFS rw,noauto 1 3  to /etc/fstab

when i type mount /NTFS i get the following error

# mount /NTFS
mount: mount_NTFS not found for /NTFS.

This suggests i've mucked up somewhere.

Any insites anyone?

thanks as allways.

Mark