[rescue] help reformatting a disk needed

Arthur Wouk awouk at ra.nilenet.com
Thu Mar 27 12:08:46 CST 2003


i have an ibm DCAS04F 4.5gig hard drive, 50pin, scsi, ...which was
formatted with block size 520. i need to reformat it to 512 size
blocks. i have it attached to a sparc2 running solaris2.5.1 - the only
version of solaris which actually sees the drive. format  tries, but
doesn't seem to do anything to the drive.  here is what happens:
my remarks to the script are  distinguished by  ******************8

ok probe-scsi-all
/sbus at 1,f8000000/esp at 0,800000
Target 0 
  Unit 0   Disk     IBM     DCHS04F  CLAR04 SG5368019364RAMDG53C    DG1180236670409RI9628500022293G2856     488628    26H8782     484530    

**********************
i do a reset and get:
**********************

WARNING: /sbus at 1,f8000000/esp at 0,800000 (esp0):
	data transfer overrun: current esp state:
esp:		State=DATA Last State=DATA_DONE
esp:		Latched stat=0x91<IPND,XZERO,IO> intr=0x10<BUS> fifo 0x88
esp:		last msg out: IDENTIFY; last msg in: COMMAND COMPLETE
esp:		DMA csr=0x94400010<INTEN>
esp:		addr=fff01278 dmacnt=0 last=fff01078 last_cnt=200
esp:		Cmd dump for Target 0 Lun 0:
esp:		cdblen=6, cdb=[ 0x8 0x0 0x0 0x0 0x1 0x0 ]
esp:		pkt_state=0xf<XFER,CMD,SEL,ARB> pkt_flags=0x802 pkt_statistics=0x2
esp:		cmd_flags=0x1422 cmd_timeout=60
WARNING: /sbus at 1,f8000000/esp at 0,800000 (esp0):
	Target 0.0 reducing sync. transfer rate
WARNING: /sbus at 1,f8000000/esp at 0,800000 (esp0):
	Reverting to slow SCSI cable mode
WARNING: /sbus at 1,f8000000/esp at 0,800000 (esp0):
	data transfer overrun: current esp state:
esp:		State=DATA Last State=DATA_DONE
esp:		Latched stat=0x91<IPND,XZERO,IO> intr=0x10<BUS> fifo 0x88
esp:		last msg out: IDENTIFY; last msg in: COMMAND COMPLETE
esp:		DMA csr=0x94400010<INTEN>
esp:		addr=fff01278 dmacnt=0 last=fff01078 last_cnt=200
esp:		Cmd dump for Target 0 Lun 0:
esp:		cdblen=6, cdb=[ 0x8 0x0 0x0 0x0 0x1 0x0 ]
esp:		pkt_state=0xf<XFER,CMD,SEL,ARB> pkt_flags=0x802 pkt_statistics=0x2
esp:		cmd_flags=0x1422 cmd_timeout=60
WARNING: /sbus at 1,f8000000/esp at 0,800000 (esp0):
	Target 0.0 reverting to async. mode

WARNING: /sbus at 1,f8000000/esp at 0,800000 (esp0):
        data transfer overrun: current esp state:
esp:            State=DATA Last State=DATA_DONE
esp:            Latched stat=0x91<IPND,XZERO,IO> intr=0x10<BUS> fifo 0x88
esp:            last msg out: IDENTIFY; last msg in: COMMAND COMPLETE
esp:            DMA csr=0x94400010<INTEN>
esp:            addr=fff01810 dmacnt=0 last=fff01610 last_cnt=200
esp:            Cmd dump for Target 0 Lun 0:
esp:            cdblen=6, cdb=[ 0x8 0x0 0x0 0x0 0x1 0x0 ]
esp:            pkt_state=0xf<XFER,CMD,SEL,ARB> pkt_flags=0x802 pkt_statistics=0x2
esp:            cmd_flags=0x1422 cmd_timeout=60
WARNING: /sbus at 1,f8000000/esp at 0,800000 (esp0):
        Target 0.0 reverting to async. mode
WARNING: /sbus at 1,f8000000/esp at 0,800000/sd at 3,0 (sd3):
        SCSI transport failed: reason 'reset': retrying command
...

**********************
i login:
**********************

sasha2 console login: root

Mar 25 17:48:44 sasha2 login: ROOT LOGIN /dev/console
Last login: Tue Mar 25 17:42:56 on console
Sun Microsystems Inc.   SunOS 5.5.1     Generic May 1996

**********************
i try to format
**********************

# format
Searching for disks...WARNING: /sbus at 1,f8000000/esp at 0,800000 (esp0):
        data transfer overrun: current esp state:
esp:            State=DATA Last State=DATA_DONE
esp:            Latched stat=0x91<IPND,XZERO,IO> intr=0x10<BUS> fifo 0x88
esp:            last msg out: IDENTIFY; last msg in: COMMAND COMPLETE
esp:            DMA csr=0x94400010<INTEN>
esp:            addr=fff01810 dmacnt=0 last=fff01610 last_cnt=200
esp:            Cmd dump for Target 0 Lun 0:
esp:            cdblen=6, cdb=[ 0x8 0x0 0x0 0x0 0x1 0x0 ]
esp:            pkt_state=0xf<XFER,CMD,SEL,ARB> pkt_flags=0x802 pkt_statistics=0x2
esp:            cmd_flags=0x1422 cmd_timeout=60
WARNING: /sbus at 1,f8000000/esp at 0,800000 (esp0):
        Target 0.0 reverting to async. mode
WARNING: /sbus at 1,f8000000/esp at 0,800000 (esp0):
        data transfer overrun: current esp state:
esp:            State=DATA Last State=DATA_DONE
esp:            Latched stat=0x91<IPND,XZERO,IO> intr=0x10<BUS> fifo 0x88
esp:            last msg out: IDENTIFY; last msg in: COMMAND COMPLETE
esp:            DMA csr=0x94400010<INTEN>
esp:            addr=fff01810 dmacnt=0 last=fff01610 last_cnt=200
esp:            Cmd dump for Target 0 Lun 0:
esp:            cdblen=6, cdb=[ 0x8 0x0 0x0 0x0 0x1 0x0 ]
esp:            pkt_state=0xf<XFER,CMD,SEL,ARB> pkt_flags=0x802 pkt_statistics=0x2
esp:            cmd_flags=0x1422 cmd_timeout=60
WARNING: /sbus at 1,f8000000/esp at 0,800000 (esp0):
        Target 0.0 reverting to async. mode
WARNING: /sbus at 1,f8000000/esp at 0,800000/sd at 3,0 (sd3):
        SCSI transport failed: reason 'reset': retrying command

WARNING: /sbus at 1,f8000000/esp at 0,800000 (esp0):
        data transfer overrun: current esp state:
esp:            State=DATA Last State=DATA_DONE
esp:            Latched stat=0x91<IPND,XZERO,IO> intr=0x10<BUS> fifo 0x88
esp:            last msg out: <unknown msg>; last msg in: IDENTIFY
esp:            DMA csr=0x94400010<INTEN>
esp:            addr=fff040a4 dmacnt=0 last=fff03ea4 last_cnt=200
esp:            Cmd dump for Target 0 Lun 0:
esp:            cdblen=6, cdb=[ 0x8 0x0 0x0 0x0 0x1 0x0 ]
esp:            pkt_state=0xf<XFER,CMD,SEL,ARB> pkt_flags=0x70000 pkt_statistics=0x3
esp:            cmd_flags=0x422 cmd_timeout=30
WARNING: /sbus at 1,f8000000/esp at 0,800000 (esp0):
        Target 0.0 reverting to async. mode
WARNING: /sbus at 1,f8000000/esp at 0,800000 (esp0):
        data transfer overrun: current esp state:
esp:            State=DATA Last State=DATA_DONE
esp:            Latched stat=0x91<IPND,XZERO,IO> intr=0x10<BUS> fifo 0x88
esp:            last msg out: IDENTIFY; last msg in: COMMAND COMPLETE
esp:            DMA csr=0x94400010<INTEN>
esp:            addr=fff01810 dmacnt=0 last=fff01610 last_cnt=200
esp:            Cmd dump for Target 0 Lun 0:
esp:            cdblen=6, cdb=[ 0x8 0x0 0x0 0x0 0x1 0x0 ]
esp:            pkt_state=0xf<XFER,CMD,SEL,ARB> pkt_flags=0x802 pkt_statistics=0x2
esp:            cmd_flags=0x1422 cmd_timeout=60
WARNING: /sbus at 1,f8000000/esp at 0,800000 (esp0):
        Target 0.0 reverting to async. mode
done


AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <drive type unknown>
          /sbus at 1,f8000000/esp at 0,800000/sd at 0,0
       1. c0t3d0 <COMPAQPC-DORS-32160-WA8B cyl 6574 alt 2 hd 5 sec 125>  root
          /sbus at 1,f8000000/esp at 0,800000/sd at 3,0
Specify disk (enter its number): 0
WARNING: /sbus at 1,f8000000/esp at 0,800000 (esp0):
        data transfer overrun: current esp state:
esp:            State=DATA Last State=DATA_DONE
esp:            Latched stat=0x91<IPND,XZERO,IO> intr=0x10<BUS> fifo 0x88
esp:            last msg out: IDENTIFY; last msg in: COMMAND COMPLETE
esp:            DMA csr=0x94400010<INTEN>
esp:            addr=fff01810 dmacnt=0 last=fff01610 last_cnt=200
esp:            Cmd dump for Target 0 Lun 0:
esp:            cdblen=6, cdb=[ 0x8 0x0 0x0 0x0 0x1 0x0 ]
esp:            pkt_state=0xf<XFER,CMD,SEL,ARB> pkt_flags=0x802 pkt_statistics=0x2
esp:            cmd_flags=0x1422 cmd_timeout=60
WARNING: /sbus at 1,f8000000/esp at 0,800000 (esp0):
        Target 0.0 reverting to async. mode
WARNING: /sbus at 1,f8000000/esp at 0,800000 (esp0):
        data transfer overrun: current esp state:
esp:            State=DATA Last State=DATA_DONE
esp:            Latched stat=0x91<IPND,XZERO,IO> intr=0x10<BUS> fifo 0x88
esp:            last msg out: IDENTIFY; last msg in: DISCONNECT
esp:            DMA csr=0x94400010<INTEN>
esp:            addr=fff01810 dmacnt=0 last=fff01610 last_cnt=200
esp:            Cmd dump for Target 0 Lun 0:
esp:            cdblen=6, cdb=[ 0x8 0x0 0x0 0x0 0x1 0x0 ]
esp:            pkt_state=0xf<XFER,CMD,SEL,ARB> pkt_flags=0x802 pkt_statistics=0x2
esp:            cmd_flags=0x1422 cmd_timeout=60
WARNING: /sbus at 1,f8000000/esp at 0,800000 (esp0):
        Target 0.0 reverting to async. mode
WARNING: /sbus at 1,f8000000/esp at 0,800000/sd at 3,0 (sd3):
        SCSI transport failed: reason 'reset': retrying command

********************
autoconfigure fails as follows:
********************


AVAILABLE DRIVE TYPES:
        0. Auto configure
        1. Quantum ProDrive 80S
        2. Quantum ProDrive 105S
        3. CDC Wren IV 94171-344
        4. SUN0104
        5. SUN0207
        6. SUN0327
        7. SUN0340
        8. SUN0424
        9. SUN0535
        10. SUN0669
        11. SUN1.0G
        12. SUN1.05
        13. SUN1.3G
        14. SUN2.1G
        15. COMPAQPC-DORS-32160-WA8B
        16. other
Specify disk type (enter its number): 0
Must reformat device to 512-byte blocksize.  Continue? y
Auto configure failed

*******************
i define a disk type and then  run format. i defined it to be 6973
blocks (+2), 9 heads, 120 sectors. i let format run, and it goes on
for 24 hours, and at the end i am  back where i started, still with 520
size blocks.

how do i reformat this drive to 512 size blocks?


More information about the rescue mailing list