솔라리스를 종료
주의)
vm웨어에서 power off (연두색 화살표 클릭 – 빨간색 네모 클릭)
vm웨어 settings 에서 Hard 추가함 (IDE - 1G)
power off 하지 않으면 Hard 추가시 SCSI만 선택 가능
login as: root
root@172.16.5.117's password:
Last login: Thu Aug 14 18:14:22 2014 from 172.16.5.18
Sun Microsystems Inc. SunOS 5.9 Generic January 2003
********************
* 여기는 server117 *
* welcome ㅋㅋ *
********************
bash-2.05# ls
1 dev kernel p1 test xfn
TT_DB devices lib p2 test.ls
bin dir_test lost+found platform tmp
boot etc mnt proc usr
cat export net rhosts var
cdrom home opt sbin vol
bash-2.05# devfsdam -v
bash: devfsdam: command not found
bash-2.05# devfsadam -v
bash: devfsadam: command not found
bash-2.05# devfsadm -v
bash-2.05# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0d0 <DEFAULT cyl 22189 alt 2 hd 15 sec 63>
/pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0
1. c0d1 <DEFAULT cyl 2078 alt 2 hd 16 sec 63>
/pci@0,0/pci-ide@7,1/ide@0/cmdk@1,0
Specify disk (enter its number): 1
selecting c0d1
Controller working list found
[disk formatted, defect list found]
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
fdisk - run the fdisk program
repair - repair a defective sector
show - translate a disk address
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
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> partition
Please run fdisk first.
format> fdisk
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
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> 0
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]:
Enter partition size[0b, 0c, 0e, 0.00mb, 0.00gb]: 400mb
format> ?
Expecting one of the following: (abbreviations ok):
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
fdisk - run the fdisk program
repair - repair a defective sector
show - translate a disk address
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
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
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> 0
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]:
Enter partition size[0b, 0c, 0e, 0.00mb, 0.00gb]: 400mb
partition> print
Current partition table (unnamed):
Total disk cylinders available: 2077 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 - 812 400.15MB (813/0/0) 819504
1 unassigned wm 0 0 (0/0/0) 0
2 backup wu 0 - 2076 1022.27MB (2077/0/0) 2093616
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 0.49MB (1/0/0) 1008
9 alternates wm 1 - 2 0.98MB (2/0/0) 2016
partition> 1
Part Tag Flag Cylinders Size Blocks
1 unassigned wm 0 0 (0/0/0) 0
Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]: 813
Enter partition size[0b, 0c, 813e, 0.00mb, 0.00gb]: $
partition> label
Ready to label disk, continue? y
partition> quit
format> q
파티션 포맷
bash-2.05# newfs /dev/rdsk/c0d1s0
newfs: construct a new file system /dev/rdsk/c0d1s0: (y/n)? y
/dev/rdsk/c0d1s0: 819504 sectors in 813 cylinders of 16 tracks, 63 sectors
400.1MB in 51 cyl groups (16 c/g, 7.88MB/g, 3776 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 16224, 32416, 48608, 64800, 80992, 97184, 113376, 129568, 145760,
661856, 678048, 694240, 710432, 726624, 742816, 759008, 774176, 790368,
806560,
bash-2.05# newfs /dev/rdsk/c0d1s1
newfs: construct a new file system /dev/rdsk/c0d1s1: (y/n)? y
/dev/rdsk/c0d1s1: 1274112 sectors in 1264 cylinders of 16 tracks, 63 sectors
622.1MB in 79 cyl groups (16 c/g, 7.88MB/g, 3776 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 16224, 32416, 48608, 64800, 80992, 97184, 113376, 129568, 145760,
1113184, 1129376, 1145568, 1161760, 1177952, 1194144, 1210336, 1226528,
1242720, 1258912,
bash-2.05# mkdir /p1
bash-2.05# mkdir /p2
bash-2.05# ls -aF
./ .rhosts devices/ mnt/ sbin/
../ 1 dir_test/ net/ test/
.TTauthority TT_DB/ etc/ opt/ test.ls
.Xauthority bin@ export/ p1/ tmp/
.bash_history boot/ home/ p2/ usr/
.dt/ cat/ kernel/ platform/ var/
.dtprofile* cdrom/ lib@ proc/ vol/
.iiim/ dev/ lost+found/ rhosts xfn/
bash-2.05# mount /dev/dsk/c0d1s0 /p1
bash-2.05# mount /dev/dsk/c0d1s1 /p2
bash-2.05# df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c0d0s0 4.8G 1.5G 3.3G 31% /
/proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
fd 0K 0K 0K 0% /dev/fd
/dev/dsk/c0d0s1 939M 30M 852M 4% /var
swap 752M 20K 752M 1% /var/run
swap 752M 324K 752M 1% /tmp
/dev/dsk/c0d0s3 4.1G 4.2M 4.0G 1% /export/home
/vol/dev/dsk/c1t0d0/sol_9_905_x86_2
445M 445M 0K 100% /cdrom/sol_9_905_x86_2
/dev/dsk/c0d1s0 376M 1.0M 337M 1% /p1
/dev/dsk/c0d1s1 584M 1.0M 525M 1% /p2
bash-2.05# umount /p2
bash-2.05# touch /p1/a.txt
bash-2.05# umount /p1
bash-2.05# mount /dev/dsk/c0d1s0 /p2
bash-2.05# touch /p1/b.txt
bash-2.05# umount /p2
bash-2.05# mount /dev/dsk/c0d1s0 /p1