Adding a secondary disk to Sun system

It is good to do it single user mode. You can do it in either command line login mode or CDE, Openwindows mode.

Insert the disk into the slot, check the cable connections if it is external pack.

Boot the system with “boot -r” command or

Create a file called “reconfigure” at / area.
# cd /

# touch reconfigure

# reboot

when systems comes up login as root.

Sun Microsystems Inc. SunOS 5.6 Generic August 1997

# format

Searching for disks...done



AVAILABLE DISK SELECTIONS:

0. c0t0d0

/sbus@1f,0/espdma@e,8400000/esp@e,8800000/sd@0,0

1. c0t1d0 internal

/sbus@1f,0/espdma@e,8400000/esp@e,8800000/sd@1,0

2. c0t2d0

/sbus@1f,0/espdma@e,8400000/esp@e,8800000/sd@2,0

3. c0t4d0

/sbus@1f,0/espdma@e,8400000/esp@e,8800000/sd@4,0

4. c0t5d0

/sbus@1f,0/espdma@e,8400000/esp@e,8800000/sd@5,0

Specify disk (enter its number): 3

selecting c0t4d0s

[disk formatted]



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

! - execute , 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

! - execute , then return

quit

partition> print

Current partition table (original):

Total disk cylinders available: 8150 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks

0 root wm 0 0 (0/0/0) 0

1 unassigned wm 0 0 (0/0/0) 0

2 backup wu 0 - 8149 8.51GB (8150/0/0) 17848500

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 - 8149 8.51GB (8150/0/0) 17848500

7 unassigned wm 0 0 (0/0/0) 0

partition> quit

[ Hint: I decided to go with that s6 partition ]

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

! - execute , then return

quit

format> quit

Create a new file system with new disk

# newfs /dev/rdsk/c0t4d0s6

newfs: /dev/rdsk/c0t4d0s6 last mounted as /u02

newfs: construct a new file system /dev/rdsk/c0t4d0s6: (y/n)? y

/dev/rdsk/c0t4d0s6: 17848500 sectors in 8150 cylinders of 10 tracks, 219

sectors 8715.1MB in 204 cyl groups (40 c/g, 42.77MB/g, 5376 i/g)

super-block backups (for fsck -F ufs -o b=#) at:

32, 87856, 175680, 263504, 351328, 439152, 526976, 614800, 702624, 790448,

878272, 966096, 1053920, 1141744, 1229568, 1317392, 1401632, 1489456,

1577280, …………………………………………………………………………

……………………………………………………………………………………

16819232, 16907056, 16994880, 17082704, 17170528, 17258352, 17346176,

17434000, 17521824, 17609648, 17697472, 17785296,

Create mount point

# mkdir /u004

Mount the file system

# mount /dev/dsk/c0t4d0s6 /u004

Use df -k to verify disk

One more case study.

# format

Searching for disks...done



AVAILABLE DISK SELECTIONS:

0. c0t0d0

/sbus@1f,0/espdma@e,8400000/esp@e,8800000/sd@0,0

1. c0t1d0 internal

/sbus@1f,0/espdma@e,8400000/esp@e,8800000/sd@1,0

2. c0t2d0

/sbus@1f,0/espdma@e,8400000/esp@e,8800000/sd@2,0

3. c0t4d0

/sbus@1f,0/espdma@e,8400000/esp@e,8800000/sd@4,0

4. c0t5d0

/sbus@1f,0/espdma@e,8400000/esp@e,8800000/sd@5,0

Specify disk (enter its number): 4

selecting c0t5d0

[disk formatted]



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

! - execute , 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

! - execute , then return

quit

partition> print

Current partition table (original):

Total disk cylinders available: 4924 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks

0 root wm 0 0 (0/0/0) 0

1 swap wu 0 0 (0/0/0) 0

2 backup wm 0 - 4923 8.43GB (4924/0/0) 17682084

3 home wm 0 - 4923 8.43GB (4924/0/0) 17682084

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

partition> modify

Select partitioning base:

0. Current partition table (original)

1. All Free Hog

Choose base (enter number) [0]?

Part Tag Flag Cylinders Size Blocks

0 root wm 0 0 (0/0/0) 0

1 swap wu 0 0 (0/0/0) 0

2 backup wm 0 - 4923 8.43GB (4924/0/0) 17682084

3 home wm 0 - 4923 8.43GB (4924/0/0) 17682084

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

Do you wish to continue creating a new partition

table based on above table[yes]?

Free Hog partition[6]?

Warning: No space available from Free Hog partition.

Continue[no]?

Free Hog partition[6]?

Warning: No space available from Free Hog partition.

Continue[no]? yes

Warning: no space available for '0' from Free Hog partition

Warning: no space available for '1' from Free Hog partition

Enter size of partition '3' [17682084b, 4924c, 8633.83mb, 8.43gb]: 0.00gb

Enter size of partition '4' [0b, 0c, 0.00mb, 0.00gb]: 0.00gb

Enter size of partition '5' [0b, 0c, 0.00mb, 0.00gb]: 0.00gb

Enter size of partition '7' [0b, 0c, 0.00mb, 0.00gb]: 8.43gb

Part Tag Flag Cylinders Size Blocks

0 root wm 0 0 (0/0/0) 0

1 swap wu 0 0 (0/0/0) 0

2 backup wm 0 - 4923 8.43GB (4924/0/0) 17682084

3 home 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 - 4923 8.43GB (4924/0/0) 17682084

Okay to make this the current partition table[yes]?

Enter table name (remember quotes): 'disk5'

Ready to label disk, continue? yes

partition> print

Current partition table ('disk5'):

Total disk cylinders available: 4924 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks

0 root wm 0 0 (0/0/0) 0

1 swap wu 0 0 (0/0/0) 0

2 backup wm 0 - 4923 8.43GB (4924/0/0) 17682084

3 home 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 - 4923 8.43GB (4924/0/0) 17682084

partition> quit



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

! - execute , then return

quit

format> quit

# newfs /dev/rdsk/c0t5d0s7

newfs: /dev/rdsk/c0t5d0s7 last mounted as /d01

newfs: construct a new file system /dev/rdsk/c0t5d0s7: (y/n)? y

/dev/rdsk/c0t5d0s7: 17682084 sectors in 4924 cylinders of 27 tracks, 133

sectors

8633.8MB in 308 cyl groups (16 c/g, 28.05MB/g, 3392 i/g)

super-block backups (for fsck -F ufs -o b=#) at:

32, 57632, 115232, 172832, 230432, 288032, 345632, 403232, 460832, 518432,

576032, 633632, 691232, 748832, 806432, 864032, 921632, 979232, 1036832,

,

17526560, 17584160, 17641760,

Create mount point

# mkdir /u005

Mount the file system

# mount /dev/dsk/c0t5d0s7 /u005

No comments:

topics