Current-Users archive

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

dkctl bug? partition lost on unplug


I recently bought a mybook elite. This disk comes with a preconfigured
CD-type partition for the included windows/mac backup software.

dkctl doesn't completely like it:

# dkctl sd0                                                                    
/dev/rsd0d: priocscan

dkctl: /dev/rsd0d: getcache: Invalid argument

listwedges works though:
# dkctl sd0 listwedges
/dev/rsd0d: 2 wedges:
dk0: EFI System Partition, 409600 blocks at 40, type: msdos
dk1: Testpartition, 292968752 blocks at 409640, type: hfs

I have one major problem with dkctl/the disk: When I add a partition,
it seems to work fine and I can use it:

# dkctl sd0 addwedge Backup 293378392  2635525800 cgd
dk2 created successfully.
# cgdconfig cgd0 /dev/dk2
/dev/dk2's passphrase:

but when I unplug and replug the disk, dk2 is not there any longer:
dk2 at sd0 (Backup) deleted
dk1 at sd0 (Testpartition) deleted
dk0 at sd0 (EFI System Partition) deleted
sd0: detached
scsibus0: detached
umass0: detached
umass0: at uhub8 port 5 (addr 3) disconnected
umass0 at uhub8 port 5 configuration 1 interface 0
umass0: Western Digital My Book 1111, rev 2.00/10.32, addr 3
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 3 luns per target
sd0 at scsibus0 target 0 lun 0: <WD, My Book 1111, 1032> disk fixed
sd0: fabricating a geometry
sd0: 1396 GB, 1430129 cyl, 64 head, 32 sec, 512 bytes/sect x
2928904192 sectors
sd0: fabricating a geometry
sd0: GPT GUID: 93ef0751-8eba-4033-85ed-0986ae536089
dk0 at sd0: EFI System Partition
dk0: 409600 blocks at 40, type: msdos
dk1 at sd0: Testpartition
dk1: 292968752 blocks at 409640, type: hfs

Am I missing a step somewhere that forces writing the partition to the
disk? Or is this a bug?

Home | Main Index | Thread Index | Old Index