Project

General

Profile

Bug #762 » disklabel64.8.patch

thomas.nikolajsen, 08/09/2007 09:49 PM

View differences:

disklabel64.8 9 Aug 2007 11:48:51 -0000
37 37
.\" $DragonFly: src/sbin/disklabel64/disklabel64.8,v 1.2 2007/08/08 11:21:08 swildner Exp $
38 38
.\"
39 39
.Dd January 21, 2007
40
.Dt DISKLABEL 8
40
.Dt DISKLABEL64 8
41 41
.Os
42 42
.Sh NAME
43
.Nm disklabel
43
.Nm disklabel64
44 44
.Nd read and write disk pack label
45 45
.Sh SYNOPSIS
46 46
.Nm
......
759 759
indicates that the partition does not begin or end exactly on a
760 760
cylinder boundary.
761 761
.Sh EXAMPLES
762
.Dl "disklabel da0s1"
762
.Dl "disklabel64 da0s1"
763 763
.Pp
764 764
Display the in-core label for the first slice of the
765 765
.Pa da0
......
770 770
the base disk name should be specified, such as
771 771
.Pa da0 . )
772 772
.Pp
773
.Dl "disklabel da0s1 > savedlabel"
773
.Dl "disklabel64 da0s1 > savedlabel"
774 774
.Pp
775 775
Save the in-core label for
776 776
.Pa da0s1
......
780 780
.Fl R
781 781
option to restore the label at a later date.
782 782
.Pp
783
.Dl "disklabel -w -r /dev/da0s1 da2212 foo"
783
.Dl "disklabel64 -w -r /dev/da0s1 da2212 foo"
784 784
.Pp
785 785
Create a label for
786 786
.Pa da0s1
......
791 791
Any existing bootstrap code will be clobbered
792 792
and the disk rendered unbootable.
793 793
.Pp
794
.Dl "disklabel -e -r da0s1"
794
.Dl "disklabel64 -e -r da0s1"
795 795
.Pp
796 796
Read the on-disk label for
797 797
.Pa da0s1 ,
798 798
edit it, and reinstall in-core as well as on-disk.
799 799
Existing bootstrap code is unaffected.
800 800
.Pp
801
.Dl "disklabel -e -r -n da0s1"
801
.Dl "disklabel64 -e -r -n da0s1"
802 802
.Pp
803 803
Read the on-disk label for
804 804
.Pa da0s1 ,
......
807 807
.Em not
808 808
install the new label either in-core or on-disk.
809 809
.Pp
810
.Dl "disklabel -r -w da0s1 auto"
810
.Dl "disklabel64 -r -w da0s1 auto"
811 811
.Pp
812 812
Try to auto-detect the required information from
813 813
.Pa da0s1 ,
......
817 817
command to edit the
818 818
partitioning and file system information.
819 819
.Pp
820
.Dl "disklabel -R da0s1 savedlabel"
820
.Dl "disklabel64 -R da0s1 savedlabel"
821 821
.Pp
822 822
Restore the on-disk and in-core label for
823 823
.Pa da0s1
......
825 825
.Pa savedlabel .
826 826
Existing bootstrap code is unaffected.
827 827
.Pp
828
.Dl "disklabel -R -n da0s1 label_layout"
828
.Dl "disklabel64 -R -n da0s1 label_layout"
829 829
.Pp
830 830
Display what the label would be for
831 831
.Pa da0s1
......
838 838
.Cm *
839 839
partition sizes.
840 840
.Pp
841
.Dl disklabel -B da0s1
841
.Dl disklabel64 -B da0s1
842 842
.Pp
843 843
Install a new bootstrap on
844 844
.Pa da0s1 .
......
848 848
.Pa /boot/boot2 .
849 849
On-disk and in-core labels are unchanged.
850 850
.Pp
851
.Dl disklabel -w -B /dev/da0s1 -b newboot1 -s newboot2 da2212
851
.Dl disklabel64 -w -B /dev/da0s1 -b newboot1 -s newboot2 da2212
852 852
.Pp
853 853
Install a new label and bootstrap.
854 854
The label is derived from disktab information for
......
862 862
.Dl dd if=/dev/zero of=/dev/da0 bs=512 count=32
863 863
.Dl fdisk -BI da0
864 864
.Dl dd if=/dev/zero of=/dev/da0s1 bs=512 count=32
865
.Dl disklabel -w -B da0s1 auto
866
.Dl disklabel -e da0s1
865
.Dl disklabel64 -w -B da0s1 auto
866
.Dl disklabel64 -e da0s1
867 867
.Pp
868 868
Completely wipe any prior information on the disk, creating a new bootable
869 869
disk with a DOS partition table containing one
......
883 883
.Cm * ,
884 884
which could be used as a source file for
885 885
.Pp
886
.Dl disklabel -R ad0s1c new_label_file
886
.Dl disklabel64 -R ad0s1c new_label_file
887 887
.Bd -literal -offset 4n
888 888
# /dev/ad0s1c:
889 889
type: ESDI
......
953 953
will not install bootstrap code that overlaps it.
954 954
.Sh SEE ALSO
955 955
.Xr ccd 4 ,
956
.Xr disklabel 5 ,
956
.Xr disklabel64 5 ,
957 957
.Xr disktab 5 ,
958 958
.Xr boot0cfg 8 ,
959 959
.Xr diskinfo 8 ,
(9-9/11)