NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

disklabel gives wrong disk size



Hi, I haven't done this for a while and getting a bit confused.

I'm trying to format 8Gig USB stick with UFS filesystem.

p3smp# fdisk sd2
Disk: /dev/rsd2d
NetBSD disklabel disk geometry:
cylinders: 61312, heads: 8, sectors/track: 32 (256 sectors/cylinder)
total sectors: 15695871

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

Partition table:
0: NetBSD (sysid 169)
    start 63, size 15695808 (7664 MB, Cyls 0-977/5/51)
        PBR is not bootable: All bytes are identical (0x00)
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
Bootselector disabled.
No active partition.

However when I try to use disklabel, it gives me a default label
with much smaller disk size:

p3smp# disklabel sd2
# /dev/rsd2d:
type: unknown
disk: Memory Stick
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1000
cylinders: 500
total sectors: 499377
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

16 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a:    499376         0     4.2BSD   1024  8192     0  # (Cyl. 0-499*)
 d:    499376         0     unused      0     0        # (Cyl. 0-499*)

What am I doing wrong?


Home | Main Index | Thread Index | Old Index