Operating System - Tru64 Unix
1752799 Members
5964 Online
108789 Solutions
New Discussion юеВ

Re: failed to disklabel

 
SOLVED
Go to solution
Rambo_1
Regular Advisor

failed to disklabel

I want to disklabel the rz2,but some wrong whit this command:
# disklabel -r rz2
Disk is unlabeled or, /dev/rrz2a is not in block 0 of the disk
#disklabel -rw -t advfs rz2
disklabel: ioctl DIOCSDINFO: Open partition would move or shrink
Use alternate partition
3 REPLIES 3
Michael Schulte zur Sur
Honored Contributor

Re: failed to disklabel

Hi,

you have to use a raw device and a partition, that has offset 0.
disklabel -r /dev/rrz2a to check, that its unlabelled.
disklabel -rw -t advfs rrz2a
To make a new disklabel.

greetings,

Michael
Mohamed  K Ahmed
Trusted Contributor

Re: failed to disklabel

You have to zero down the disk label first by using the command

# disklabel -z /dev/rrz#c
# disklabel -rw /dev/rrz#c rz

then edit the disklabel and save it
# disklabel -e /dev/rrz#c

HTH

Mohamed
Solution

Re: failed to disklabel

This is the easiest way to create and edit a disklabel in Tru64 in my humble opinion.

1. Scratch the disklabel
# disklabel -z rz2
2. Write a new disklabel
# disklabel -wr rz2 rzxx
3. Edit the disklabel
# disklabel -e rz2

If you're running Tru64 v5 you should replace the "rzxx" with "auto"