Subject: Problem accessing Windows 98 partition
To: None <netbsd-help@netbsd.org, port-i386@netbsd.org>
From: Lets Go Canes! <LetsGoCanes@webmail.bellsouth.net>
List: port-i386
Date: 07/01/2000 22:13:38
Hi all.

I attempted to set up NetBSD so that it could access my Windows 98 partition.  Somewhere along the line it decided it needed to run fsck against it, and in the process it corrupted the data on the partition.  I have since restored the Windows 98 partition....

Now, if I run fsck -v against the partition, it complains about an error which I don't let it correct.  However, under Windows 98 scandisk indicated that the partition is OK.

All of this leads me to believe that somewhere along the line I botched the process of setting up the partition.

Here's the output from fdisk:
NetBSD disklabel disk geometry:
cylinders: 13424 heads: 15 sectors/track: 63 (945 sectors/cylinder)

BIOS disk geometry:
cylinders: 838 heads: 240 sectors/track: 63 (15120 sectors/cylinder)

Partition table:
0: sysid 11 (Primary DOS with 32 bit FAT)
    start 63, size 8391537 (4097 MB), flag 0x80
	beg: cylinder    0, head   1, sector  1
	end: cylinder  555, head   0, sector  1
1: sysid 169 (NetBSD)
    start 8391600, size 3870720 (1890 MB), flag 0x0
	beg: cylinder  555, head   0, sector  1
	end: cylinder  811, head   0, sector  1
2: <UNUSED>
3: sysid 160 (IBM Thinkpad hibernation)
    start 12262320, size 408240 (199 MB), flag 0x0
	beg: cylinder  811, head   0, sector  1
	end: cylinder  838, head   0, sector  1


and here's the output from disklabel:
# /dev/wd0d:
type: unknown
disk: mydisk
label: 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 15
sectors/cylinder: 945
cylinders: 13424
total sectors: 12685680
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0		# milliseconds
track-to-track seek: 0	# milliseconds
drivedata: 0 

8 partitions:
#        size   offset     fstype   [fsize bsize   cpg]
  a:   304290  8391600     4.2BSD     1024  8192    16   # (Cyl. 8880 - 9201)
  b:   526365  8695890       swap                        # (Cyl. 9202 - 9758)
  c:  3870720  8391600     unused        0     0         # (Cyl. 8880 - 12975)
  d: 12685680        0     unused        0     0         # (Cyl.    0 - 13423)
  e:  3040065  9222255     4.2BSD     1024  8192    16   # (Cyl. 9759 - 12975)
  f:  8391537       63      MSDOS                        # (Cyl.    0*- 8879)


Is this set-up correctly or did I mess something up?  When mounted, I am able to read files from the partition without any apparent errors.

---------------
Let's Go Canes!