Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

labeling disks

Status
Not open for further replies.

adva

Technical User
Nov 19, 2001
32
0
0
US
i have a UltraSparc machine with a solaris7.
the machine has 2 disks in it - one is compaq and one is IBM.
i want to label the comaq disk to be identical to the IBM (to have the same label) .
how do i do that?
 
The format command is quite powerful (caution on live systems) you can copy labels and partitions, here's an example: -

format

Specify disk (enter its number): 2
selecting c0t0d2
[disk formatted]
Warning: Current Disk has mounted partitions.

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
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
inquiry - show vendor, product and revision
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
format> p (print)

PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit

partition> name
Enter table name (remember quotes): &quot;compact&quot;

partition> quit

format> disk
Specify disk (enter its number) .......? The IBM
partition> select (will display a number equated to &quot;compact&quot;)

0. original
1. original
2. compact
Specify table (enter its number)[?]:

format> label (to save changes)
format> quit

Hope this points you in the right direction.








 
well , first thank u.
i know that ,
but my broblem is that the disk i want to label i smaller from the other disk..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top