Current-Users archive

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

cgd on dk on 4k block size disk



Hi!

I've recently bought an external disk for backups for a 6.99.20/amd64.
This disk seems to have 4k blocks:

sd0 at scsibus0 target 0 lun 0: <PLATINUM, HousingMyDriveHP, 0006> disk fixed
sd0: fabricating a geometry
sd0: 2794 GB, 357698 cyl, 64 head, 32 sec, 4096 bytes/sect x 732566646 sectors
sd0: fabricating a geometry

I've added a gpt disklabel to it:

# gpt show sd0
      start       size  index  contents
          0          1         PMBR
          1          1         Pri GPT header
          2          4         Pri GPT table
          6       1018
       1024  732565504      1  GPT part - NetBSD Cryptographic Disk
  732566528        113
  732566641          4         Sec GPT table
  732566645          1         Sec GPT header

I then wanted to add a cgd file system on the first partition.

When I do that, I get:
# disklabel cgd0                                                                
                                                                                
                                                   
# /dev/rcgd0d:
type: cgd
disk: cgd
label: default label
flags:
bytes/sector: 512
sectors/track: 2048
tracks/cylinder: 1
sectors/cylinder: 2048
cylinders: 357698
total sectors: 732565504
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

4 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a: 732565504         0     4.2BSD      0     0     0  # (Cyl.      0 - 357697)
 d: 732565504         0     4.2BSD      0     0     0  # (Cyl.      0 - 357697)
disklabel: boot block size 0
disklabel: super block size 0
disklabel: partitions a and d overlap


Note that this says 512 bytes/sector.

I didn't manage to get a usable disklabel on this cgd device yet. Is
this currently possible?
If yes, please tell me how :)

Thanks,
 Thomas



Home | Main Index | Thread Index | Old Index