¢£ ¥Þ¥·¥ó´Ä¶
¥Ï¡¼¥É¥¦¥§¥¢¡§Sun Java Workstation W1100z
bash-2.05# uname -a
SunOS W1100z 5.9 Generic_117172-12 i86pc i386 i86pc
bash-2.05# more /etc/release
Solaris 9 9/04 s9x_u7wos_09 x86
Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 28 June 2004
¡¡
USB¥Ï¡¼¥É¥Ç¥£¥¹¥¯¡§ 160GB HDH-U160S (¥¢¥¤¥ª¡¼¥Ç¡¼¥¿À½)
¢£ ¥·¥¹¥Æ¥à¤Ø¤ÎÀܳ¡¦Ç§¼±
USB¤È¤¤¤¨¤Ð¥Û¥Ã¥È¥×¥é¥°¤ÏÅö¤¿¤ê¤Þ¤¨¡ª¤È¤¤¤¦¤³¤È¤Ç²ÔƯ¤·¤Æ¤¤¤ëW1100z¤ËUSB¥Ï¡¼¥É¥Ç¥£¥¹¥¯¤òÁõÃ夷¤Æ¡¢ÅŸ»¤òÆþ¤ì¤Æ¤ß¤¿¡£
¤¹¤ë¤È/var/adm/messages¤Ë°Ê²¼¤Î¤è¤¦¤Ê½ÐÎϤ¬¡¦¡¦¡¦
bash-2.05# more /var/adm/messages
...
Jan 31 23:28:40 W1100z usba10: [ID 464422 kern.warning] WARNING: /pci@0,0/pci1022,7460@6/pci108e,534d@3,2/storage@3 (usba10_scsa2usb0): INQUIRY failed, cannot determine device type, pkt_reason=0x6
Jan 31 23:28:40 W1100z usba10: [ID 855233 kern.info] USB-device: storage@3, usba10_scsa2usb0 at bus address 2
Jan 31 23:28:40 W1100z usba10: [ID 349649 kern.info] I-O DATA DEVICE,INC. HDH-U 0000000098CD
Jan 31 23:28:40 W1100z genunix: [ID 936769 kern.info] usba10_scsa2usb0 is /pci@0,0/pci1022,7460@6/pci108e,534d@3,2/storage@3
Jan 31 23:28:40 W1100z genunix: [ID 408114 kern.info] /pci@0,0/pci1022,7460@6/pci108e,534d@3,2/storage@3 (usba10_scsa2usb0) online
Jan 31 23:28:40 W1100z scsi: [ID 193665 kern.info] sd31 at usba10_scsa2usb0: target 0 lun 0
Jan 31 23:28:40 W1100z genunix: [ID 936769 kern.info] sd31 is /pci@0,0/pci1022,7460@6/pci108e,534d@3,2/storage@3/disk@0,0
Jan 31 23:28:40 W1100z genunix: [ID 408114 kern.info] /pci@0,0/pci1022,7460
@6/pci108e,534d@3,2/storage@3/disk@0,0 (sd31) online
...
¤Á¤ã¤ó¤Èǧ¼±¤·¤¿¤è¤¦¤À¡£
/dev/rdsk¤ò³Îǧ¤¹¤ë¤È¥Ç¥Ð¥¤¥¹¤¬Áý¤¨¤Æ¤¤¤ë¡£
bash-2.05# ls -l /dev/rdsk | grep "storage@3/disk@0,0" | more
lrwxrwxrwx 1 root other 78 1·î 30Æü 14:55 c4t0d0p0 -> ../../devices/pci@0,0/
pci1022,7460@6/pci108e,534d@3,2/storage@3/disk@0,0:q,raw
lrwxrwxrwx 1 root other 78 1·î 30Æü 14:55 c4t0d0p1 -> ../../devices/pci@0,0/
pci1022,7460@6/pci108e,534d@3,2/storage@3/disk@0,0:r,raw
lrwxrwxrwx 1 root other 78 1·î 30Æü 14:55 c4t0d0p2 -> ../../devices/pci@0,0/
pci1022,7460@6/pci108e,534d@3,2/storage@3/disk@0,0:s,raw
...
...¾Êά
¢£ ¥Ñ¡¼¥Æ¥£¥·¥ç¥óʬ³ä¡¦¥Õ¥©¡¼¥Þ¥Ã¥È
¤Þ¤ºfdisk¥³¥Þ¥ó¥É¤ÇSolaris¤Ç»ÈÍѤ¹¤ë¥Ï¡¼¥É¥Ç¥£¥¹¥¯Îΰè¤ò³ÎÊݤ·¤Æ¤ß¤ë¡£
¥Ï¡¼¥É¥Ç¥£¥¹¥¯¤Î½é´ü¾õÂ֤ˤè¤Ã¤Æ¤Ï²¼µ¤ÈƱ¤¸½ÐÎÏ·ë²Ì¤Ë¤Ê¤é¤Ê¤¤¾ì¹ç¤â¤¢¤ë¤¬¡¢ºÇ½ªÅª¤ËÁ´Îΰè¤òSolarisÍѤËÀßÄꤹ¤ì¤Ð¤è¤¤¡£
bash-2.05# fdisk /dev/rdsk/c4t0d0p0
No fdisk table exists. The default partition for the disk is:
a 100% "SOLARIS System" partition
Type "y" to accept the default partition, otherwise type "n" to edit the
partition table.
y <--- yes¤ÇÅú¤¨¤ë
bash-2.05#
¤â¤¦°ì²ó¼Â¹Ô¤·¤Æ³Îǧ¤·¤Æ¤ß¤ë¡£
bash-2.05# fdisk /dev/rdsk/c4t0d0p0
Total disk size is 19929 cylinders
Total disk size is 19929 cylinders
Cylinder size is 16065 (512 byte) blocks
Cylinders
Partition Status Type Start End Length %
========= ====== ============ ===== === ====== ===
1 Active Solaris 1 19928 19928 100
SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Exit (update disk configuration and exit)
5. Cancel (exit without updating disk configuration)
Enter Selection: 4¡¡<-- ¤³¤³¤Ë¾åµ¥á¥Ë¥å¡¼¤Î¿ô»ú¤òÆþÎϤ·¤¤¤í¤¤¤íÁàºî²Äǽ
¤Á¤Ê¤ß¤Ë¤³¤Î¥â¡¼¥É¤ÇWindowsÍѤÎFAT32¤Ê¤É¤ÎÎΰè¤â³ÎÊݤǤ¤ë¡£
º£²ó¤ÏÁ´Îΰè¤òSolaris¤Ç»È¤¦¤Î¤Ç¤³¤Î¤Þ¤Þ½ªÎ»(4)¡£
¼¡¤Ë¡¢SolarisÍѤ˳ÎÊݤ·¤¿¾åµÎΰè(Ìó160GB)¤ò¥¹¥é¥¤¥¹¤Ëʬ³ä¤¹¤ë¤¿¤á¤Ëformat¥³¥Þ¥ó¥É¤òÍѤ¤¤ë¡£¤³¤³¤Ç¤Ï¥ê¥à¡¼¥Ð¥Ö¥ë¥Ç¥Ð¥¤¥¹¤âɽ¼¨¤µ¤»¤ë -e ¥ª¥×¥·¥ç¥ó(¥¨¥¥¹¥Ñ¡¼¥È¥â¡¼¥É)¤Ç¼Â¹Ô¤·¤Æ¤¤¤ë¡£
bash-2.05# format -e
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0d0
/pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0
1. c0d1
/pci@0,0/pci-ide@7,1/ide@0/cmdk@1,0
2. c4t0d0
/pci@0,0/pci1022,7460@6/pci108e,534d@3,2/storage@3/disk@0,0
Specify disk (enter its number): 2 <-- USB¥Ç¥£¥¹¥¯¤òÁªÂò
¾åµ¤Î¤è¤¦¤Ë¥·¥¹¥Æ¥à¤¬Ç§¼±¤·¤Æ¤¤¤ë¥Ï¡¼¥É¥Ç¥£¥¹¥¯¤¬É½¼¨¤µ¤ì¤ë¤Î¤Ç¿·¤·¤¯Àܳ¤·¤¿2ÈÖ¤òÁªÂò¤¹¤ë¡£¤Á¤Ê¤ß¤Ë0¤È1¤ÏÆâ¢¤ÎIDE¥Ï¡¼¥É¥Ç¥£¥¹¥¯¡£
¤¢¤È¤Ï¤¤¤Ä¤âÄ̤ꡢ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¥Æ¡¼¥Ö¥ë¤òºîÀ®¤¹¤ë¤À¤±¤Ê¤Î¤Ç´Êñ¡£
¤Á¤Ê¤ß¤Ë¤³¤ó¤Ê´¶¤¸¤Çʬ¤±¤Æ¤ß¤Þ¤·¤¿¡£
Current partition table (unnamed):
Total disk cylinders available: 19926 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 alternates wm 1 - 9138 70.00GB (9138/0/0) 146801970
1 alternates wm 9139 - 19925 82.63GB (10787/0/0) 173293155
2 backup wu 0 - 19925 152.64GB (19926/0/0) 320111190
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
8 boot wu 0 - 0 7.84MB (1/0/0) 16065
9 unassigned wm 0 0 (0/0/0) 0
ºÇ¸å¤Ë°Ê²¼¤Î¤è¤¦¤Ënewfs¤ÇUFS¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¹½ÃÛ¡£
bash-2.05# newfs /dev/rdsk/c4t0d0s0
newfs: ¿·¤·¤¤¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à /dev/rdsk/c4t0d0s0 ¤òºîÀ®¤·¤Þ¤¹¤«: (y/n)? y
·Ù¹ð: ºÇ½ª¥·¥ê¥ó¥À¥°¥ë¡¼¥×¤ËÂФ·¤Æ
i ¥Î¡¼¥É¥Ö¥í¥Ã¥¯¿ô/¥·¥ê¥ó¥À¥Ö¥í¥Ã¥¯¿ô (530) >= ¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¿ô (118)
¤Ç¤¹¡£¤³¤Î¤¿¤á 1890 ¥»¥¯¥¿¤Î³ä¤êÅö¤Æ¤Ï¤Ç¤¤Þ¤»¤ó¡£
/dev/rdsk/c4t0d0s0: Á´¥»¥¯¥¿¡¼¿ô: 146800080 (¥·¥ê¥ó¥À¿ô: 9709¡¢¥È¥é¥Ã¥¯¿ô: 240¡¢¥»¥¯¥¿¡¼¿ô: 63)
71679.7MB¡¢1387 ¥·¥ê¥ó¥À¥°¥ë¡¼¥× (7 c/g, 51.68MB/g, 6272 i/g)
¥¹¡¼¥Ñ¡¼¥Ö¥í¥Ã¥¯¤Î¥Ð¥Ã¥¯¥¢¥Ã¥×¤Î°ÌÃÖ (fsck -F ufs -o b=# ¤Î¤¿¤á) :
32, 105936, 211840, 317744, 423648, 529552, 635456, 741360, 847264, 953168,
¥·¥ê¥ó¥À¥°¥ë¡¼¥×¤Î½é´ü²½:
...........................
¥¹¡¼¥Ñ¡¼¥Ö¥í¥Ã¥¯¤Î¥Ð¥Ã¥¯¥¢¥Ã¥×¤Î°ÌÃÖ (ºÇ¸å¤Î 10 ¥·¥ê¥ó¥À¥°¥ë¡¼¥×¤Î¤¿¤á):
145747920, 145853824, 145959728, 146065632, 146171536, 146277440, 146383344,
146489248, 146595152, 146701056,
bash-2.05# newfs /dev/rdsk/c4t0d0s1
newfs: ¿·¤·¤¤¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à /dev/rdsk/c4t0d0s1 ¤òºîÀ®¤·¤Þ¤¹¤«: (y/n)? y
·Ù¹ð: ºÇ½ª¥·¥ê¥ó¥À¤Ç 12286 ¥»¥¯¥¿¤¬³ä¤êÅö¤Æ¤é¤ì¤Þ¤»¤ó¡£
/dev/rdsk/c4t0d0s1: Á´¥»¥¯¥¿¡¼¿ô: 173293154 (¥·¥ê¥ó¥À¿ô: 11462¡¢¥È¥é¥Ã¥¯¿ô: 240¡¢¥»¥¯¥¿¡¼¿ô: 63)
84615.8MB¡¢1638 ¥·¥ê¥ó¥À¥°¥ë¡¼¥× (7 c/g, 51.68MB/g, 6272 i/g)
¥¹¡¼¥Ñ¡¼¥Ö¥í¥Ã¥¯¤Î¥Ð¥Ã¥¯¥¢¥Ã¥×¤Î°ÌÃÖ (fsck -F ufs -o b=# ¤Î¤¿¤á) :
32, 105936, 211840, 317744, 423648, 529552, 635456, 741360, 847264, 953168,
¥·¥ê¥ó¥À¥°¥ë¡¼¥×¤Î½é´ü²½:
................................
¥¹¡¼¥Ñ¡¼¥Ö¥í¥Ã¥¯¤Î¥Ð¥Ã¥¯¥¢¥Ã¥×¤Î°ÌÃÖ (ºÇ¸å¤Î 10 ¥·¥ê¥ó¥À¥°¥ë¡¼¥×¤Î¤¿¤á):
172313440, 172419344, 172525248, 172631152, 172737056, 172842960, 172948864,
173054768, 173160672, 173266576,
¢¨ ·Ù¹ð¤¬½Ð¤Æ¤ë¤¬¡¢¥Ç¥£¥¹¥¯Îΰè¤Îü¿ô¤ÎÌäÂê¤Ê¤Î¤Çưºî¤Ë±Æ¶Á¤Ï¤Ê¤¤¡£
¢£ ¥Þ¥¦¥ó¥È¤Î³Îǧ
bash-2.05# mkdir /usb0
bash-2.05# mkdir /usb1
bash-2.05# mount /dev/dsk/c4t0d0s0 /usb0
bash-2.05# mount /dev/dsk/c4t0d0s1 /usb1
bash-2.05# df -h
¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à ¥µ¥¤¥º »ÈÍÑºÑ¤ß »ÈÍѲÄÇ½ÍÆÎÌ ¥Þ¥¦¥ó¥ÈÀè
/dev/md/dsk/d0 67G 2.8G 64G 5% /
/proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
fd 0K 0K 0K 0% /dev/fd
swap 1.3G 24K 1.3G 1% /var/run
swap 1.3G 12K 1.3G 1% /tmp
/dev/md/dsk/d10 7.1G 7.3M 7.0G 1% /export/home
/dev/dsk/c4t0d0s0 69G 64M 68G 1% /usb0
/dev/dsk/c4t0d0s1 81G 64M 81G 1% /usb1
¢£ ½ñ¤¹þ¤ß³Îǧ
bash-2.05# ufsdump 0uf /usb0/root.bk /
DUMP: Date of this level 0 dump: 2005ǯ02·î02Æü (¿å) 16»þ16ʬ57ÉÃ
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping /dev/md/rdsk/d0 (W1100z:/) to /usb0/root.bk.
DUMP: Mapping (Pass I) [regular files]
DUMP: Mapping (Pass II) [directories]
DUMP: Writing 32 Kilobyte records
DUMP: Estimated 5963990 blocks (2912.10MB).
DUMP: Dumping (Pass III) [directories]
DUMP: Dumping (Pass IV) [regular files]
DUMP: 5963966 blocks (2912.09MB) on 1 volume at 9219 KB/sec
DUMP: DUMP IS DONE
DUMP: Level 0 dump on 2005ǯ02·î02Æü (¿å) 16»þ16ʬ57ÉÃ
bash-2.05# df -k
¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à kbytes »ÈÍÑºÑ¤ß »ÈÍѲÄÇ½ÍÆÎÌ ¥Þ¥¦¥ó¥ÈÀè
/dev/md/dsk/d0 70575514 2952059 66917700 5% /
/proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
fd 0 0 0 0% /dev/fd
swap 1330048 24 1330024 1% /var/run
swap 1330052 28 1330024 1% /tmp
/dev/md/dsk/d10 7458949 7430 7376930 1% /export/home
/dev/dsk/c4t0d0s0 72290402 3049001 68518497 5% /usb0
/dev/dsk/c4t0d0s1 85336135 65553 84417221 1% /usb1
¤Á¤ã¤ó¤È¥Ç¡¼¥¿¤¬½ñ¤¹þ¤Þ¤ì¤Æ¤ë¡£
¡Ú¥¢¥ó¥±¡¼¥È¡Û
¤³¤Îµ»ö¤Ï¤¿¤á¤Ë¤Ê¤ê¤Þ¤·¤¿¤«¡©
¡¡¡¡¡¡¤Ï¤¤¡¡¡¡/¡¡¡¡¤¤¤¤¤¨
Google is the best search engine Google
Posted by: Charles Mills : 2007年06月04日 21:01Google is the best search engine Google
Posted by: Allan Hoffman : 2007年06月04日 21:01