Hi domburns62,
Could you please elaborate on "inquiry subcommand"? When I typed format, there is a list of available command printed right away. If I tried "label", I would get question whether I want it, when I confirmed "y", it would exit the sub-routine. How do I do autoconfigure?
Attached are commands I have tried today and their output. Hope someone could help me. Thanks a lot.
Doesn't look like I could attach a file, I would have to display all here then. Sorry.
Jin
# df -k
Filesystem kbytes used avail capacity Mounted on
/proc 0 0 0 0% /proc
/dev/dsk/c0t0d0s0 70199 42124 21056 67% /
/dev/dsk/c0t0d0s6 943958 652944 234377 74% /usr
fd 0 0 0 0% /dev/fd
/dev/dsk/c0t0d0s1 57567 11116 40695 22% /var
/dev/dsk/c0t0d0s7 7455221 6326225 1054444 86% /export/home
/dev/dsk/c0t0d0s5 29279 10319 16033 40% /opt
swap 180888 448 180440 1% /tmp
/dev/dsk/c0t1d0s7 2030597 9 1969671 1% /data
# umount /data
# df -k
Filesystem kbytes used avail capacity Mounted on
/proc 0 0 0 0% /proc
/dev/dsk/c0t0d0s0 70199 42124 21056 67% /
/dev/dsk/c0t0d0s6 943958 652944 234377 74% /usr
fd 0 0 0 0% /dev/fd
/dev/dsk/c0t0d0s1 57567 11116 40695 22% /var
/dev/dsk/c0t0d0s7 7455221 6326225 1054444 86% /export/home
/dev/dsk/c0t0d0s5 29279 10319 16033 40% /opt
swap 180888 448 180440 1% /tmp
# format /dev/dsk/c0t1d0
No disks found!
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <ST39120A cyl 17660 alt 2 hd 16 sec 63>
/pci@1f,0/pci@1,1/ide@3/dad@0,0
1. c0t1d0 <WDC WD5000AAKB-00H8A0 cyl 4159 alt 2 hd 16 sec 63>
/pci@1f,0/pci@1,1/ide@3/dad@1,0
Specify disk (enter its number): 1
selecting c0t1d0
[disk formatted, no defect list found]
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
show - translate a disk address
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> type
AVAILABLE DRIVE TYPES:
0. ST39120A
1. WDC WD5000AAKB-00H8A0
2. other
Specify disk type (enter its number)[1]: 2
Enter number of data cylinders: 4161
Enter number of alternate cylinders[2]:
Enter number of physical cylinders[4163]:
Enter number of heads: ^C
format> current
Current Disk = c0t1d0
<WDC WD5000AAKB-00H8A0 cyl 4159 alt 2 hd 16 sec 63>
/pci@1f,0/pci@1,1/ide@3/dad@1,0
format> analyze
ANALYZE MENU:
read - read only test (doesn't harm SunOS)
refresh - read then write (doesn't harm data)
test - pattern testing (doesn't harm data)
write - write then read (corrupts data)
compare - write, read, compare (corrupts data)
purge - write, read, write (corrupts data)
verify - write entire disk, then verify (corrupts data)
print - display data buffer
setup - set analysis parameters
config - show analysis parameters
!<cmd> - execute <cmd> , then return
quit
analyze> quit
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
show - translate a disk address
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> show
Enter a disk block: ^C
format> analyze
ANALYZE MENU:
read - read only test (doesn't harm SunOS)
refresh - read then write (doesn't harm data)
test - pattern testing (doesn't harm data)
write - write then read (corrupts data)
compare - write, read, compare (corrupts data)
purge - write, read, write (corrupts data)
verify - write entire disk, then verify (corrupts data)
print - display data buffer
setup - set analysis parameters
config - show analysis parameters
!<cmd> - execute <cmd> , then return
quit
analyze> print
0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
- hit space for more -
analyze> quit
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
show - translate a disk address
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> verify
Primary label contents:
Volume name = < >
ascii name = <WDC WD5000AAKB-00H8A0 cyl 4159 alt 2 hd 16 sec 63>
pcyl = 4161
ncyl = 4159
acyl = 2
nhead = 16
nsect = 63
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
1 unassigned wm 0 0 (0/0/0) 0
2 backup wu 0 - 4158 2.00GB (4159/0/0) 4192272
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 - 4158 2.00GB (4159/0/0) 4192272
format> type
AVAILABLE DRIVE TYPES:
0. ST39120A
1. WDC WD5000AAKB-00H8A0
2. other
Specify disk type (enter its number)[1]: 2
Enter number of data cylinders: 4159
Enter number of alternate cylinders[2]:
Enter number of physical cylinders[4161]:
Enter number of heads: 16
Enter number of data sectors/track: 63
Enter rpm of drive[3600]:
Enter format time[default]:
Enter cylinder skew[default]:
Enter track skew[default]:
Enter tracks per zone[default]:
Enter alternate tracks[default]:
Enter alternate sectors[default]:
Enter cache control[default]:
Enter prefetch threshold[default]:
Enter minimum prefetch[default]:
Enter maximum prefetch[default]:
Enter disk type name (remember quotes): "jin"
selecting c0t1d0
[disk formatted, no defect list found]
format> inquire
`inquire' is not expected.
format> label
Ready to label disk, continue? y
format> verify
Primary label contents:
Volume name = < >
ascii name = <jin cyl 4159 alt 2 hd 16 sec 63>
pcyl = 4161
ncyl = 4159
acyl = 2
nhead = 16
nsect = 63
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
1 unassigned wm 0 0 (0/0/0) 0
2 backup wu 0 - 4158 2.00GB (4159/0/0) 4192272
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 - 4158 2.00GB (4159/0/0) 4192272