Subject: Re: NTFS mounting broken in -current?
To: =?iso-8859-1?Q?Jarom=EDr_Dolecek?= <dolecek@ics.muni.cz>
From: John Darrow <John.P.Darrow@wheaton.edu>
List: current-users
Date: 12/04/2000 20:49:09
On Sun, Dec 03, 2000 at 09:31:23AM -0600, Jaromír Dolecek wrote:
> explorer@flame.org wrote:
> > I'm trying to mount a win2000 NTFS-format partition under NetBSD-current.
> This does not work (i.e. the fact is not new in -current). The NTFS
> support in tree works for MS Windows NT 4.0- NTFS only.
> > lapdog# mount -t ntfs -o ro /dev/wd0h /nthd
> > mount_ntfs: /dev/wd0h on /nthd: Argument list too long
> Would you be able to repeat format something smaller to win2000 NTFS
> (e.g. a ZIP), try to mount it under NetBSD and if it fails, send
> me compressed image of the filesystem (or put it somewhere for download) ?
> I don't have w2000 available, so I'm not able to create the image
> myself.
Unfortunately, a ZIP won't work, as an NTFS created on a ZIP disk mounts
just fine. (I don't know if this is size-related or ZIP related.)
However, I did manage to find a scratch 1G disk to use to test. I dd'd it
from /dev/zero to make sure it started clean, then booted into Win2K. I
formatted it using standard NTFS parameters, made sure I could read it (but
didn't copy anything over to it), then rebooted into NetBSD. The new
partition failed to mount, with similar errors to my local hard drive.
I've included a log of some of my commands below. This includes attempts
to mount the ZIP (sd7), my real drive (wd0), and the scratch drive (wd1).
A disk image of the 1G drive is available at:
ftp://ftp.wheaton.edu/pub/jdarrow/wd1.image.gz
(Please note that, while the gzipped file is only about 1MB, it expands to
just over 1GB, so you'll need quite a bit of space for it.)
If I have a chance later on, I can try reformatting the scratch drive with
smaller and smaller partitions to see if there is a boundary point below
which mount_ntfs works fine, but above which it fails. This might give a
clue as to where to look for the problem. (Or it might not, if MS simply
decided arbitrarily to format smaller disks using NTFS4 and larger ones
using NTFS5...)
jdarrow
--
John Darrow - Senior Technical Specialist Office: 630/752-5201
Computing Services, Wheaton College, Wheaton, IL 60187 Fax: 630/752-5968
Alphapage: 6303160707@alphapage.airtouch.com Pager: 630/316-0707
Email: John.P.Darrow@wheaton.edu
[6] root@jdarrowp5:ttyp5:/var:# disklabel wd0
# /dev/rwd0d:
type: unknown
disk: mydisk
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 58633344
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
8 partitions:
# size offset fstype [fsize bsize cpg]
a: 2096829 41945715 4.2BSD 1024 8192 16 # (Cyl. 41612*- 43692)
b: 1048320 44042544 swap # (Cyl. 43693 - 44732)
c: 16687629 41945715 unused 0 0 # (Cyl. 41612*- 58167)
d: 58633344 0 unused 0 0 # (Cyl. 0 - 58167)
e: 4194288 45090864 4.2BSD 1024 8192 16 # (Cyl. 44733 - 48893)
f: 9348192 49285152 4.2BSD 1024 8192 16 # (Cyl. 48894 - 58167)
g: 41945652 63 NTFS # (Cyl. 0*- 41612*)
[7] root@jdarrowp5:ttyp5:/var:# disklabel sd7
# /dev/rsd7d:
type: ATAPI
disk: 1\000\020'\000
label: fictitious
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 96
total sectors: 196608
rpm: 2941
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
8 partitions:
# size offset fstype [fsize bsize cpg]
d: 196608 0 unused 0 0 # (Cyl. 0 - 95)
h: 196576 32 NTFS # (Cyl. 0*- 95)
disklabel: boot block size 0
disklabel: super block size 0
[8] root@jdarrowp5:ttyp5:/var:# fdisk wd0
NetBSD disklabel disk geometry:
cylinders: 16383 heads: 16 sectors/track: 63 (1008 sectors/cylinder)
BIOS disk geometry:
cylinders: 1023 heads: 255 sectors/track: 63 (16065 sectors/cylinder)
Partition table:
0: sysid 7 (OS/2 HPFS or NTFS or QNX2 or Advanced UNIX)
start 63, size 41945652 (20481 MB), flag 0x0
beg: cylinder 0, head 1, sector 1
end: cylinder 1023, head 254, sector 63
1: sysid 169 (NetBSD)
start 41945715, size 16687629 (8148 MB), flag 0x80
beg: cylinder 1023, head 0, sector 1
end: cylinder 1023, head 192, sector 63
2: <UNUSED>
3: <UNUSED>
[9] root@jdarrowp5:ttyp5:/var:# fdisk sd7
NetBSD disklabel disk geometry:
cylinders: 96 heads: 64 sectors/track: 32 (2048 sectors/cylinder)
BIOS disk geometry:
cylinders: 96 heads: 64 sectors/track: 32 (2048 sectors/cylinder)
Partition table:
0: <UNUSED>
1: <UNUSED>
2: <UNUSED>
3: sysid 7 (OS/2 HPFS or NTFS or QNX2 or Advanced UNIX)
start 32, size 196576 (95 MB), flag 0x80
beg: cylinder 0, head 1, sector 1
end: cylinder 95, head 63, sector 32
[10] root@jdarrowp5:ttyp5:/var:# mount -t ntfs -o ro /dev/sd7h /mnt
[11] root@jdarrowp5:ttyp5:/var:# ls -ailsF /mnt
total 4431
4 5 -rwxr-xr-x 1 root wheel 2560 Apr 22 2009 $AttrDef*
8 0 -rwxr-xr-x 0 root wheel 0 Dec 4 17:19 $BadClus*
6 48 -rwxr-xr-x 1 root wheel 24576 Apr 22 2009 $Bitmap*
7 16 -rwxr-xr-x 0 root wheel 8192 Dec 4 17:19 $Boot*
11 0 drwxr-xr-x 0 root wheel 0 Dec 4 17:19 $Extend/
2 4096 -rwxr-xr-x 0 root wheel 2097152 Dec 4 17:19 $LogFile*
1 8 -rwxr-xr-x 0 root wheel 4096 Dec 4 17:19 $MFTMirr*
9 0 -rwxr-xr-x 0 root wheel 0 Apr 22 2009 $Secure*
10 256 -rwxr-xr-x 1 root wheel 131072 Apr 22 2009 $UpCase*
3 0 -rwxr-xr-x 0 root wheel 0 Dec 4 17:19 $Volume*
5 0 drwxr-xr-x 1 root wheel 0 Apr 22 2009 ./
2 2 drwxr-xr-x 22 root wheel 1024 Nov 24 21:38 ../
[12] root@jdarrowp5:ttyp5:/var:# umount /mnt
[13] root@jdarrowp5:ttyp5:/var:# mount -t ntfs -o ro /dev/wd0g /mnt
mount_ntfs: /dev/wd0g on /mnt: Argument list too long
console message from the wd0g mount:
ntfs_readntvattr_plain: POSSIBLE RUN ERROR
ntfs_readattr_plain: ntfs_readntvattr_plain failed: o: 0, s: 655408
ntfs_readattr_plain: attrib: 0 - 160
[5] root@jdarrowp5:ttyp5:/var:# fdisk wd1
NetBSD disklabel disk geometry:
cylinders: 2097 heads: 16 sectors/track: 63 (1008 sectors/cylinder)
BIOS disk geometry:
cylinders: 523 heads: 64 sectors/track: 63 (4032 sectors/cylinder)
Partition table:
0: sysid 7 (OS/2 HPFS or NTFS or QNX2 or Advanced UNIX)
start 63, size 2104452 (1027 MB), flag 0x0
beg: cylinder 0, head 1, sector 1
end: cylinder 130, head 254, sector 63
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
[6] root@jdarrowp5:ttyp5:/var:# disklabel wd1
# /dev/rwd1d:
type: ESDI
disk: Conner Periphera
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 2097
total sectors: 2114180
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
8 partitions:
# size offset fstype [fsize bsize cpg]
d: 2114180 0 unused 0 0 # (Cyl. 0 - 2097*)
e: 2104452 63 NTFS # (Cyl. 0*- 2087*)
disklabel: boot block size 0
disklabel: super block size 0
[7] root@jdarrowp5:ttyp5:/var:# mount -t ntfs -o ro /dev/wd1e /mnt
mount_ntfs: /dev/wd1e on /mnt: Argument list too long
console message from the wd1e mount:
ntfs_readntvattr_plain: POSSIBLE RUN ERROR
ntfs_readattr_plain: ntfs_readntvattr_plain failed: o: 0, s: 65768
ntfs_readattr_plain: attrib: 0 - 32