Subject: Re: How do I create a FAT32 disk for use on WinXP?
To: <>
From: Brian Rose <>
List: current-users
Date: 12/17/2003 09:51:44
Brian Rose wrote:

> What is the correct procedure for adding a disk to NetBSD
> that will be useable under WindowsXP? I have been cobbling
> together information from various sources, but I guess I'm
> missing something.

Being unable to format a FAT32 disk in NetBSD and have it show up in windows, I tried the reverse. Since WindowsXP will not create a single FAT32 volume larger than 40GB, I used the disk utilities from OnTrack to do the work. This worked fine and the drive was recognized by Windows. However, when I try to mount the drive on NetBSD, I get the following error.

# mount -t msdos /dev/sd0a /mnt/external
sd0: mode sense (5) returned nonsense; using fictitious geometry
mount_msdos: /dev/sd0a on /mnt/external: Invalid argument

The mode sense error always seems to happen and did not impact operation with the NetBSD formatted disk. I doubt that this is anything more than an annoyance.

/mnt/external exists and this command worked fine when I mounted the NetBSD formatted disk. However, with the Ontrack formatted disk, it fails. Below is the disklabel for the drive.

Any ideas?


# /dev/rsd0d:
type: SCSI
disk: External
label: ADCTech
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 76319
total sectors: 156301488
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/sgs]
a: 156301424        64      MSDOS                      # (Cyl.    0*- 76319*)
d: 156301488         0     unused      0     0         # (Cyl.    0 - 76319*)