|
http://blog.naver.com/deepinheart/20004737118
root ·Î /etc/format ¸í·ÉÀ» ³»¸®¸é ÀåÂøµÇÀÖ´Â ÇϵåÀÇ ¸®½ºÆ®°¡ ³ª¿É´Ï´Ù..
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <SEAGATE-ST318275LC-0001 cyl 11697 alt 2 hd 10 sec 304>
/pci@1f,4000/scsi@3/sd@0,0
1. c0t8d0 <SEAGATE-ST318275LC-0001 cyl 11697 alt 2 hd 10 sec 304>
/pci@1f,4000/scsi@3/sd@8,0
2. c0t10d0 <SEAGATE-ST318406LC-0109 cyl 26123 alt 2 hd 2 sec 686>
/pci@1f,4000/scsi@3/sd@a,0
2¹ø µð½ºÅ©¸¦ ¼±Åà ÇÏ°Ú½À´Ï´Ù
Specify disk (enter its number): 2
selecting c0t10d0
[disk formatted]
Warning: Current Disk has mounted partitions.
Æ÷¸Ë ¸í·É¾îµéÀÌ ³ª¿À°Ô µË´Ï´Ù..
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
¿©±â¼ ÆÄƼ¼ÇÀ» ¼±ÅÃ
format> partition
PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit
ÇÁ¸°Æ®¸¦ ¼±ÅÃÇϸé ÆÄƼ¼Ç ¸®½ºÆ®°¡ ³ª¿À°ÔµË´Ï´Ù
partition> print
Current partition table (original):
Total disk cylinders available: 26123 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
1 unassigned wu 0 0 (0/0/0) 0
2 backup wu 0 - 26122 17.09GB (26123/0/0) 35840756
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 home wm 0 - 13756 9.00GB (13757/0/0) 18874604
7 home wm 13757 - 26121 8.09GB (12365/0/0) 16964780
ÆÄƼ¼Ç ¹øÈ£¸¦ ¼±ÅÃÇϽðí
partition> 6
Part Tag Flag Cylinders Size Blocks
6 home wm 0 - 13756 9.00GB (13757/0/0) 18874604
Enter partition id tag[home]: home
¿øÇϽô À¯Çü¼±ÅÃ
Enter partition permission flags[wm]:
ÀûÀýÇÑ ÆÛ¹Ì¼Ç ¼±ÅÃ
Enter new starting cyl[0]:
½ÃÀÛÇÏ´Â »çÀÌŬ ¼±ÅÃ
Enter partition size[18874604b, 13757c, 13756e, 9216.12mb, 9.00gb]: 13757c
ÆÄƼ¼Ç ¿µ¿ª ÁöÁ¤
partition> quit
format> quit
ÀÌÁ¦ Æ÷¸ËÀ» ÇؾßÁÒ
newfs /dev/dsk/c0t10d0s6 6¹ø°ÆÄƼ¼ÇÀ» Æ÷¸ËÇÕ´Ï´Ù
±×´ÙÀ½ ÆÄÀϽýºÅÛ °Ë»ç¸¦
fsck /dev/dsk/c0t10d0s6
±×´ÙÀ½ ÀûÀýÇÑ µð·ºÅ丮»ý¼ºÈÄ
¸¶¿îÆ® ½ÃÅ°¸é µË´Ï´Ù..
mount /dev/dsk/c0t10d0s6 /export/home1
df -h ¸¦ ´·¯ È®ÀÎ ÈÄ »ç¿ëÇÏ½Ã¸é µË´Ï´Ù..
vfstab¼³Á¤ (ÀÚµ¿¸¶¿îÆ® ¼³Á¤ÆÄÀÏ)
¼³Á¤Àü
# vi /etc/vfstab
"/etc/vfstab" 9 Çà, 319 ¹®ÀÚ
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c0t0d0s1 - - swap - no -
/dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1 no -
/dev/dsk/c0t0d0s7 /dev/rdsk/c0t0d0s7 /export/home ufs 2 yes -
swap - /tmp tmpfs - yes -
¼³Á¤ÈÄ
# vi /etc/vfstab
"/etc/vfstab" 9 Çà, 319 ¹®ÀÚ
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c0t0d0s1 - - swap - no -
/dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1 no -
/dev/dsk/c0t0d0s7 /dev/rdsk/c0t0d0s7 /export/home ufs 2 yes -
/dev/dsk/c0t10d0s6 /dev/rdsk/c0t10d0s6 /export/home1 ufs 3 yes -
/dev/dsk/c0t10d0s7 /dev/rdsk/c0t10d0s7 /export/home2 ufs 4 yes -
swap - /tmp tmpfs - yes -
|