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

fdisk: sysctl(machdep.bios.diskinfo): Device not configured



Win2k on my father's PC has crashed, he had to reboot and
the IBM DTLA 305020 disk has never come back. I wasn't able
to fdisk or format it under DOS or Windows. So I have bought 
a new one for my father and got the "broken" one for myself. 
I'd like to revive it and to use it in my OpenBSD server.

The dmesg shows:

wd2 at pciide0 channel 1 drive 1: <IBM-DTLA-305020>
wd2: 16-sector PIO, LBA, 19458MB, 16383 cyl, 16 head, 63 sec, 39851760 sectors
wd2(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2

And on the web I've seen many Linux dmesg's "CHS=2501/255/63" for 
this disk. The IBM web page says it has 512 bytes in a sector:
http://www.storage.ibm.com/hdd/desk/deskstar75gxp40gv.pdf

So I try the following:

alex:alex {46} sudo fdisk -c 2501 -h 255 -s 63 wd2
fdisk: sysctl(machdep.bios.diskinfo): Device not configured
Disk: wd2       geometry: 2501/255/63 [40178565 Sectors]
Offset: 0       Signature: 0xAA55
         Starting       Ending       LBA Info:
 #: id    C   H  S -    C   H  S [       start:      size   ]
------------------------------------------------------------------------
 0: 00    0   0  0 -    0   0  0 [           0:           0 ] unused      
 1: 00    0   0  0 -    0   0  0 [           0:           0 ] unused      
 2: 00    0   0  0 -    0   0  0 [           0:           0 ] unused      
*3: A6    0   1  1 - 1027 242 63 [          63:    16514001 ] OpenBSD     

And I also try to change the disk parameters with the "e"
disklabel command, but I'm not sure, what to enter there:

alex:alex {48} sudo disklabel -E wd2
# using MBR partition 3: type A6 off 63 (0x3f) size 16514001 (0xfbfbd1)
disklabel: Can't get bios geometry: Device not configured

Treating sectors 63-16514064 as the OpenBSD portion of the disk.
You can use the 'b' command to change this.

Initial label editor (enter '?' for help at any prompt)
 > e
Changing device parameters for /dev/rwd2c:
disk type: [ESDI] 
label name: [IBM-DTLA-305020] 
sectors/track: [63] 
tracks/cylinder: [16] 
sectors/cylinder: [1008] 
number of cylinders: [2501] 
total sectors: [255] 
rpm: [5400] 
interleave: [1] 
 > p
device: /dev/rwd2c
type: ESDI
disk: ESDI/IDE disk
label: IBM-DTLA-305020
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 2501
total sectors: 255
free sectors: 0
rpm: 5400

16 partitions:
#        size   offset    fstype   [fsize bsize   cpg]
  a: 16514001       63    4.2BSD     1024  8192    16   # (Cyl.    0*- 16382)
  c: 39851760        0    unused        0     0         # (Cyl.    0 - 39535*)

Does anyone have an advice? Is the disk broken? 

I can't see any "low format" option in my BIOS menu.

Thank you in advance. It would be nice if you CC: me,
because I'm not subscribed to this list at the moment
(because of my misconfigured mail :-)

Regards
Alex



Visit your host, monkey.org