取消
顯示結果 
搜尋替代 
您的意思是: 

关于disklabel的问题!

关于disklabel的问题!

我的系统上有二个盘

os disk dsk2

other disk dsk0

现在我想把dsk0上的分区大小划为和dsk2上一样

disklabel -r dsk2>disklabel.txt

disklabel -rw dsk0 -f disklabel.txt

disklabel -r dsk0发现dsk1的空间变成原始的系统分配空间了,和dsk0还是不一样!

以上附件为disklabel的日志,请帮助我!
7 回覆

关于disklabel的问题!

Of course, because your command is wrong.

Try following.



1. clear label of target disk dsk0

# disklabel -z dsk0



2. save a copy of the dsk2 label information for the volume

# disklabel -r dsk2 > /tmp/dsk2.label



3. write the disk label back to the dsk0

# disklabel -R dsk0 /tmp/dsk2.label



4. use disklabel -r dsk0 to verify.

关于disklabel的问题!

Of course, because your command is wrong.

Try following.



1. clear label of target disk dsk0

# disklabel -z dsk0



2. save a copy of the dsk2 label information for the volume

# disklabel -r dsk2 > /tmp/dsk2.label



3. write the disk label back to the dsk0

# disklabel -R dsk0 /tmp/dsk2.label



4. use disklabel -r dsk0 to verify.

关于disklabel的问题!

matthew:你上面讲的方法还不行,请看日志!

关于disklabel的问题!

你兩顆DISK大小不一樣....

关于disklabel的问题!

Hi,



Which disk do you want? dsk1 or dsk0?



If you want to the dsk0's disk label same as the dsk2, please following:

# disklabel -r dsk2 > /tmp/dsk2_label.txt

# disklabel -z dsk0

# disklabel -R -r /tmp/dsk2_label.txt dsk0

# disklabel -r rz1



PS: The "-t advfs" is a boot disk as build a system disk on dsk0.



Best regards,

Richard.

关于disklabel的问题!

Hi,



Which disk do you want? dsk1 or dsk0?



If you want to the dsk0's disk label same as the dsk2, please following:

# disklabel -r dsk2 > /tmp/dsk2_label.txt

# disklabel -z dsk0

# disklabel -R -r dsk0 /tmp/dsk2_label.txt

# disklabel -r dsk0



Best regards,

Richard.

关于disklabel的问题!

matthew, Richard kuo:

 非常谢谢你们大家!问题已经得到解决!只能多给你们打点分以表示谢意了:)