ºìÁªLinuxÃÅ»§
Linux°ïÖú

ΪFreeBSDÌí¼ÓÐÂÓ²ÅÌ£¡

·¢²¼Ê±¼ä:2006-08-16 09:09:42À´Ô´:ºìÁª×÷Õß:cxtt228
±¾ÎĽéÉÜÊÖ¹¤ÎªFreeBSDÌí¼ÓÐÂÓ²Å̵ÄÒ»°ãÐÔ·½·¨¡£¼ÙÉèÎÒÃǵÄFreeBSDÒѾ­ÓÐÁËÒ»¿éIDEÓ²ÅÌ£¬ÎÒÃÇÐèҪΪËüÌí¼ÓÒ»¿éеÄIDEÓ²ÅÌ£¬²¢°ÑÐÂÌí¼ÓµÄÓ²Å̵ÄËùÓпռä×÷Ϊһ¸ö·ÖÇø¼ÓÔص½/disk1ÏÂÃæ¡£
»ù´¡ÖªÊ¶
FreeBSD·ÖÇøÃèÊö·ûΪ´Ó"a"µ½"h"µÄ8¸ö×Öĸ¡£¸ù¾Ý¹ßÀý£¬·ÖÇø"c"±»±£ÁôÓÃ×÷ÃèÊöÕû¸ö´ÅÅÌ£¬"a"ÓÃ×÷±êʶ¸ù·ÖÇø£¬"b"ÓÃ×÷±êʶ½»»»·ÖÇø¡£¶ÔÓÚÐÂÌí¼ÓµÄÓ²ÅÌ£¬ÎÒÃdz£³£Ö»½¨Á¢Ò»¸ö·ÖÇø£¬±êʶΪ"e"¡£
IDEÓ²Å̱ê¼ÇΪad£¬¶øSCSIÓ²Å̱ê¼ÇΪda£¬´Ó0¿ªÊ¼¼ÆÊý£¬Òò´Ë£¬ÎÒÃÇÐÂÌí¼ÓµÄIDEÓ²Å̽«×÷Ϊad1³öÏÖÔÚϵͳÖС£
Ò»°ã²½Öè
°ÑеÄIDEÓ²Å̽ÓÈëϵͳ£¬²¢È·ÈÏ¿ª»úÒÔºóϵͳÕÒµ½ÁËÐÂÌí¼ÓµÄÓ²ÅÌ¡£¿ÉÒÔͨ¹ý¼ì²é/var/run/dmesg.bootÀ´È·ÈÏϵͳÊÇ·ñÕÒµ½ÐÂÌí¼ÓµÄÓ²ÅÌ¡£
×¼±¸
vms# dd if=/dev/zero of=/dev/rad1 bs=1k count=1
1+0 records in
1+0 records out
1024 bytes transferred in 0.000822 secs (1245640 bytes/sec)
vms#
³õʼ»¯´ÅÅÌ
vms# fdisk -BI ad1
******* Working on device /dev/ad1 *******
fdisk: invalid fdisk partition table found
vms#
½¨Á¢FreeBSD·ÖÇø
vms# disklabel -B -w -r ad1s1 auto
vms# Feb 23 14:01:40 /kernel: ad1: cannot find label (no disk label)
Feb 23 14:01:40 /kernel: ad1s1: cannot find label (no disk label)
Feb 23 14:01:40 /kernel: ad1: cannot find label (no disk label)
Feb 23 14:01:40 /kernel: ad1s1: cannot find label (no disk label)
vms#
½¨Á¢Âß¼­·ÖÇø
vms# disklabel -e ad1s1
type: unknown
disk: amnesiac
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 18931
sectors/unit: 19083393
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
c: 19083393 0 unused 0 0 # (Cyl. 0 - 18931*)
e: 19083393 0 4.2BSD 4096 8192 16 # (Cyl. 0 - 18931*)
¸ñʽ»¯·ÖÇø£¬´´½¨Îļþϵͳ
vms# newfs /dev/ad1s1e
Warning: Block size and bytes per inode restrict cylinders per group to 67.
Warning: 3968 sector(s) in last cylinder unallocated
/dev/ad1s1e: 19083392 sectors in 4660 cylinders of 1 tracks, 4096 sectors
9318.1MB in 70 cyl groups (67 c/g, 134.00MB/g, 8512 i/g)
super-block backups (for fsck -b #) at:
32, 274464, 548896, 823328, 1097760, 1372192, 1646624, 1921056, 2195488, 2469920, 2744352, 3018784, 3293216, 3567648,
3842080, 4116512, 4390944, 4665376, ...
¼ÓÔØ·ÖÇø
vms# mkdir -p /disk1
vms# mount -t ufs /dev/ad1s1e /disk1
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ