[BSD] image keralas?
Pólya Balázs
polya at bnet.hu
2004. Feb. 4., Sze, 09:54:32 CET
a rendszer freebsd 4.9-stable.
hogyan lehet letrehozni egy diskimage-t a semmibol?
dd bs=1024 count=1048576 if=/dev/zero of=/image.img
aztan az fdisk meg ugy ahogy ment:
echo p 1 165 1 1048576 > test
fdisk -f test /dev/vn0c
a particio elvileg letre is jott:
fdisk /dev/vn0
fdisk: can't get disk parameters on /dev/vn0; supplying dummy ones
******* Working on device /dev/vn0 *******
parameters extracted from in-core disklabel are:
cylinders=1 heads=1 sectors/track=1 (1 blks/cyl)
parameters to be used for BIOS calculations are:
cylinders=1 heads=1 sectors/track=1 (1 blks/cyl)
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165,(FreeBSD/NetBSD/386BSD)
start 1, size 2503871 (1222 Meg), flag 0
beg: cyl 1/ head 0/ sector 1;
end: cyl 191/ head 0/ sector 1
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>
most elvileg kene hogy legyen egy vn0s1 em
sh MAKEDEV vn0 mar van is
de ha szeretnek ra csinalni 1 labelt akkor:
ghost# disklabel /dev/vn0s1c
disklabel: ioctl DIOCGDINFO: Inappropriate ioctl for device
Koszonettel:
Polya Balazs
További információk a(z) BSD levelezőlistáról