( Replaced | 2007. 06. 11., h – 00:17 )

hu, most nagyon leosztalak ezert, vigyazz :)

"Aham, engem az kavart meg, hogy olyan eszközre hivatkozott ami nekem nincs. De valószínűleg typo lehet, mert nem /dev/da1 a diszk eszköz hanem /dev/ad1"

szerintem jobban tudjak ok azt, hogy milyen jelolesek vannak ;)
mellesleg vegigolvasod egyszer a dmesg-et es maris tudod milyen eszkozeid vannak

('man ad', 'man da' es lass csodat)

"Amúgy szép meg jó a handbook, de azért a man oldal is elmondhatná példákban a dolgokat..."

idezem:

EXAMPLES
bsdlabel da0s1

Display the label for the first slice of the da0 disk, as obtained via
/dev/da0s1.

bsdlabel da0s1 > savedlabel

Save the in-core label for da0s1 into the file savedlabel. This file can
be used with the -R option to restore the label at a later date.

bsdlabel -w /dev/da0s1

Create a label for da0s1.

bsdlabel -e da0s1

Read the label for da0s1, edit it, and install the result.

bsdlabel -e -n da0s1

Read the on-disk label for da0s1, edit it, and display what the new label
would be (in sectors). It does not install the new label either in-core
or on-disk.

bsdlabel -w da0s1

Write a default label on da0s1. Use another bsdlabel -e command to edit
the partitioning and file system information.

bsdlabel -R da0s1 savedlabel

Restore the on-disk and in-core label for da0s1 from information in
savedlabel.

bsdlabel -R -n da0s1 label_layout

Display what the label would be for da0s1 using the partition layout in
label_layout. This is useful for determining how much space would be
allotted for various partitions with a labeling scheme using %-based or *
partition sizes.

bsdlabel -B da0s1

Install a new bootstrap on da0s1. The boot code comes from /boot/boot.

bsdlabel -w -B -b newboot /dev/da0s1

Install a new label and bootstrap. The bootstrap code comes from the
file newboot in the current working directory.

dd if=/dev/zero of=/dev/da0 bs=512 count=32
fdisk -BI da0
dd if=/dev/zero of=/dev/da0s1 bs=512 count=32
bsdlabel -w -B da0s1
bsdlabel -e da0s1

Completely wipe any prior information on the disk, creating a new
bootable disk with a DOS partition table containing one slice, covering
the whole disk. Initialize the label on this slice, then edit it. The
dd(1) commands are optional, but may be necessary for some BIOSes to
properly recognize the disk.

This is an example disk label that uses some of the new partition size
types such as %, M, G, and *, which could be used as a source file for
``bsdlabel -R ad0s1c new_label_file'':

# /dev/ad0s1c:

8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 400M 0 4.2BSD 4096 16384 75 # (Cyl. 0 - 812*)
b: 1G * swap
c: * * unused
e: 204800 * 4.2BSD
f: 5g * 4.2BSD
g: * * 4.2BSD

ennel reszletesebbet nem kapsz :P

szegyeld magad, RTFM legyen meg legkozelebb, kulon fejezet van erre

ui.: ezt amit idemasoltam man page-et ne nezd, hanem olvasd el a sajatodat, mert ez 5.5-hoz van

--
The Internet has evolved from smart people in front of dumb terminals to dumb people in front of smart terminals.