Steps to add a hard disk

zhaozj2021-02-12  136

I just started learning Solaris, Improving, I hope to advise

Basic step: 1) Turn the machine, connect the hard drive 2) DEVFSADM3) Format to write down the CXDX4) Format-> fdisk-> partition generated partition (remember save) 5) Newfs Remember that the S needed at this time s Corresponding to the partition generated above 6) Establish the necessary directory and hang? ============================================================================================================================================================================================================= ============================================================================================================================================================================================================= ======= The following is the information of the first disk:

bash-2.05 # prtvtoc / dev / rdsk / c0d0s0 * / dev / rdsk / c0d0s0 partition map ** Dimensions: * 512 bytes / sector * 63 sectors / track * 15 tracks / cylinder * 945 sectors / cylinder * 24388 cylinders * 24386 accessible cylinders ** Flags: * 1: unmountable * 10: read-only ** Unallocated space: * First Sector Last * Sector Count Sector * 23043825 945 23044769 ** First Sector Last * Partition Tag Flags Sector Count Sector Mount Directory 0 2 00 2835 1434510 1437344/1 7 00 1437345 1229445 2666789 / var 3 3 01 2666790 1206765 3873554 5 0 00 3873555 14049315 17922869 / opt 6 4 00 17922870 4096575 22019444 / usr 7 8 00 22019445 1024380 23043824 / export / home 8 1 01 0 945 944 9 9 01 945 1890 2834

partition> printCurrent partition table (original): Total disk cylinders available: 24386 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 root wm 3 - 1520 700.44MB (1518/0/0) 1434510 1 var wm 1521 - 2821 600.31 MB (1301/0/0) 1229445 2 Backup WM 0 0 (0/0/0) 0 3 SWAP WU 2822 - 4098 589.24MB (1277/0) 1206765 4 Unassigned WM 0 0 (0/0/0) 0 5 UNASSIGNED WM 4099 - 18965 6.70GB (14867/0) 14049315 6 USR WM 18966 - 23300 1.95GB (4335/0) 4096575 7 Home WM 23301 - 24384 500.19MB (1084/0/0) 1024380 8 Boot wu 0 - 0 0.46MB (1/0/0) 945 9 Alternates WU 1 - 2 0.92MB (2/0/0) 1890

Add the second hard drive below: SunOS 5.9

LOGIN: RootPassword: Last Login: Sat Jul 3 17:23:22 from: 0sun Microsystems Inc. Sunos 5.9 Generic January 2003 # Bashbash-2.05 # devfsadmbash-2.05 # formatsearch for Disks ... DONE

Available Disk Selections: 0. C0D0

/ pci @ 0,0 / pci-ident @ 7,1 / IDE @ 0 / cmdk @ 0,0

C0D1

/ pci @ 0,0 / pci-ident @ 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! - Execute

, 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 thepartition table.yformat> partition

Partition Menu: 0 - Change `0 'Partition 1 - Change` 1' Partition 2 - Change `2 'Partition 3 - Change` 3' 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

, Return

quit

Partition>

Print

Current Partition Table (Original):

Total Disk Cylinders Available: 8319 2 (Reserved Cylinders) Part Tag Flag Cylinders Size Blocks 0 Unassigned WM 0 0 (0/0) 0 1 Unassigned WM 0 0 (0) 0 2 BACKUP WU 0 - 8319 4.00GB (8320/0/0) 8386560 3 Unassigned WM 0 0 (0/0) 0 4 Unassigned WM 0 0 (0) 0 5 Unassigned WM 0 0 (0/0) 0 6 Unassigned WM 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> 0PART TAG FLAG CYLINDERS SIZE BLOCKS 0 Unassigned WM 0 0 (0/0/0) 0

ENTER Partition Id Tag [Unassigned]: Rootenter Partition Permission Flags [WM]: WMenter New Starting Cyl [3]: Enter Partition Size [0b, 0C, 3E, 0.00MB, 0.00GB]: 400MBPartition> PrintCurrent Partition Table (unnamed): Total Disk Cylinders Available: 8319 2 (Reserved Cylinders)

Part Tag Flag Cylinders Size Blocks 0 Root WM 3 - 815 400.15MB (813/0) 819504 1 Unassigned WM 0 0 (0/0) 0 2 BACKUP WU 0 - 8319 4.00GB (8320/0/0) 8386560 3 Unassigned WM 0 0 (0/0) 0 4 Unassigned WM 0 0 (0/0) 0 5 Unassigned WM 0 0 (0/0) 0 6 Unassigned WM 0 0 (0/0 / 0) 0 7 Unassigned WM 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) 2016Partition> 1PART Tag Flag Cylinders Size Blocks 1 Unassigned WM 0 0 (0/0/0) 0

Enter partition id tag [unassigned]: swapEnter partition permission flags [wm]: wuEnter new starting cyl [3]: 816Enter partition size [0b, 0c, 816e, 0.00mb, 0.00gb]: 100mbpartition> printCurrent partition table (unnamed): Total Disk Cylinders Available: 8319 2 (Reserved Cylinders)

Part Tag Flag Cylinders Size Blocks 0 Root WM 3 - 815 400.15MB (813/0) 819504 1 SWAP WU 816 - 1019 100.41MB (204/0) 205632 2 Backup Wu 0 - 8319 4.00GB (8320/0 / 0) 8386560 3 unassigned wm 0 0 (0/0) 0 4 unassigned wm 0 0 (0/0) 0 5 Unassigned WM 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) 2016Partition> 3PART TAG FLAG CYLINDERS SIZE BLOCKS 3 Unassigned WM 0 0 (0/0/0) 0

ENTER Partition ID Tag [Unassigned]:? EXPECTINE ONE FOLLOWING: (Abbreviations OK): Unassigned Boot Root Swap USR Backup Stand Var Home Alternates Reserved

ENTER Partition Id Tag [Unassigned]: HomeEnter Partition Permission Flags [WM]: Enter New Starting Cyl [3]: 1020Enter Partition Size [0B, 0B, 1020E, 0.00MB, 0.00GB]: $ Partition> PrintCurrent Partition Table (unnamed) : Total Disk Cylinders Available: 8319 2 (Reserved Cylinders)

Part Tag Flag Cylinders Size Blocks 0 Root WM 3 - 815 400.15MB (813/0) 819504 1 SWAP WU 816 - 1019 100.41MB (204/0) 205632 2 Backup Wu 0 - 8319 4.00GB (8320/0 / 0) 8386560 3 Home WM 1020 - 8318 3.51GB (7299/0) 7357392 4 Unassigned WM 0 0 (0/0) 0 5 Unassigned WM 0 0 (0/0) 0 6 Unassigned WM 0 0 (0/0/0) 0 7 Unassigned WM 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) 2016Partition> Labelready to label disk, continue? Y

Partition> NameEnter Table Name (Remember Quotes): Diskmy

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

- Execute

, Return

quit

Format>

Save

Saving new disk and partition definitions

ENTER file name ["./ Format.dat"]:

Format> save

Saving new disk and partition definitions

ENTER file name ["./ Format.dat"]:

/etc/format.dat

Format>

Quitbash-2.05 # prtvtoc / dev / rdsk / c0d1s0

* / dev / rdsk / c0d1s0 partition map

*

* DIMENSIONS:

* 512 BYTES / SECTOR

* 63 SECTORS / TRACK

* 16 TRACKS / CYLINDER

* 1008 SECTORS / CYLINDER

* 8321 Cylinders

* 8319 Accessible Cylinders

*

* Flags:

* 1: unmountable

* 10: Read-only

*

* First Sector Last

* Partition Tag Flags Sector Count Sector Mount Directory

0 2 00 3024 819504 822527

1 3 01 822528 205632 1028159

2 5 01 0 8385552 838551

3 8 00 1028160 7357392 838555

8 1 01 0 1008 1007

9 9 00 1008 2016 3023

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: 205632 Sectors in 204 Cylinders of 16 TRACks, 63 SECTORS

100.4MB in 13 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,

161952, 178144, 194336,

Bash-2.05 #

NEWFS / DEV / RDSK / C0D1S3NEWFS: Construct a new file system / dev / rdsk / c0d1s3: (y / n)? Y / dev / rdsk / c0d1s3: 7357392 Sectors in 7299 Cylinders of 16 TRACKS, 63 SECTORS

3592.5MB in 83 CYL Groups (88 C / G, 43.31MB / g, 5504 I / g)

Super-block backups (for fsck -f ufs -o b = #) AT:

32, 88800, 177568, 266336, 355504, 443872, 532640, 621408, 710176, 798944,

6476000, 6564768, 6653536, 6742304, 6831072, 6919840, 7008608, 7096352,

7185120, 7273888,

Bash-2.05 #

Mount / dev / dsk / c0d1s0 /disk2rootbash-2.05#

Mount / dev / dsk / c0d1s1 /disk2swapbash-2.05#

Mount / DEV / DSK / C0D1S3 / Disk2home

Bash-2.05 #

FSTYP -V / DEV / RDSK / C0D1S0 | HEAD-10

UFS

MAGIC 11954 Format Dynamic Time Sat Jul 3 17:34:08 2004

SBLKNO 16 CBLKNO 24 IBLKNO 32 DBLKNO 504

SBSIZE 2048 CGSIZE 2048 CGOFFSET 32 cgmask 0xffffffff0

NCG 51 Size 409752 Blocks 384847

BSize 8192 Shift 13 Mask 0xffffe000

Fsize 1024 Shift 10 Mask 0xfffffc00

FRAG 8 Shift 3 FSBTODB 1

Minfree 10% Maxbpg 2048 Optim Time

MaxContig 7 Rotdelay 0ms RPS 60

Broken Pipe

Unknown_fstyp (no matches)

Bash-2.05 #

PRTVTOC / DEV / RDSK / C0D1S0 * / DEV / RDSK / C0D1S0 Partition MAP

*

* DIMENSIONS:

* 512 BYTES / SECTOR

* 63 SECTORS / TRACK

* 16 TRACKS / CYLINDER

* 1008 SECTORS / CYLINDER

* 8321 Cylinders

* 8319 Accessible Cylinders

*

* Flags:

* 1: unmountable

* 10: Read-only

*

* First Sector Last

* Partition Tag Flags Sector Count Sector Mount Directory

0 2 00 3024 819504 822527 / Disk2Root

1 3 01 822528 205632 1028159 / Disk2swap

2 5 01 0 8385552 838551

3 8 00 1028160 7357392 8385551 / disk2home8 1 01 0 1008 1007

9 9 00 1008 2016 3023

Bash-2.05 #

DF -HFILESYSTEM SIZE Used Avail Capacity Mounted ON

/ DEV / DSK / C0D0S0 657M 65M 533M 11% /

/ DEV / DSK / C0D0S6 1.9G 1.3G 530M 72% / USR

/ dev / dsk / c0d0p0: boot 10M 1.5M 8.5M 16% / boot

/ proc 0k 0k 0k 0% / proc

MNTTAB 0K 0K 0K 0% / etc / mnttab

FD 0K 0K 0K 0% / DEV / FD

/ DEV / DSK / C0D0S1 563M 65M 442M 13% / VAR

SWAP 759M 24K 759M 1% / VAR / RUN

SWAP 759M 4K 759M 1% / TMP

/ DEV / DSK / C0D0S5 6.6G 613m 5.9g 10% / OPT

/ DEV / DSK / C0D0S7 469M 9K 422M 1% / Export / Home

/ DEV / DSK / C0D1S0 376M 9K 338M 1% / Disk2Root

/ DEV / DSK / C0D1S1 94M 9K 85M 1% / Disk2SWAP

/ DEV / DSK / C0D1S3 3.5G 9K 3.4G 1% / Disk2home

Bash-2.05 #

Mount / ON / DEV / DSK / C0D0S0 Read / Write / setuid / INTR / LARGEFILES / XATTR / οNERRοR = PANIC / DEV = 1980000 on sat jul 3 17:22:39 2004

/ usr ON / DEV / DSK / C0D0S6 Read / Write / setuid / INTR / LARGEFILES / XATTR / οNERRοR = PANIC / DEV = 1980006 on sat jul 3 17:22:40 2004

/ boot on / dev / dsk / c0d0p0: boot read / write / setuid / nohidden / noldcase / dev = 19a3010 on sat jul 3 17:22:37 2004

/ proc on / proc ready / dev = 2e80000 on sat jul 3 17:22:39 2004

/ etc / mnttab on mnttab read / write / setuid / dev = 2F40000 on sat jul 3 17:22:39 2004

/ dev / fd on fd read / write / setuid / dev = 2F80000 on sat jul 3 17:22:40 2004

/ VAR ON / DEV / DSK / C0D0S1 READ / WRITE / SETUID / INTR / LARGEFILES / XATIV = 1980001 On Sat Jul 3 17:22:42 2004 / Var / Run On Swap Read / Write / SetUID / XATTR / DEV = 1 on sat jul 3 17:22:42 2004

/ TMP on swap ready / write / setuid / xattr / dev = 2 on sat jul 3 17:22:44 2004

/ OPT ON / DEV / DSK / C0D0S5 Read / Write / setuid / INTR / LARGEFILES / XATTR / οNERRοR = PANIC / DEV = 1980005 on sat jul 3 17:22:44 2004

/ Export / Home ON / DEV / DSK / C0D0S7 Read / Write / setuid / INTR / LARGEFILES / XATTT / οNERRοR = PANIC / DEV = 1980007 on sat jul 3 17:22:44 2004

/ disk2root on / dev / dsk / c0d1s0 read / write / setuid / intr / largefiles / xattr / οnerrοr = PANIC / DEV = 1980040 on sat jul 3 17:33:35 2004

/ disk2swap on / dev / dsk / c0d1s1 read / write / setuid / intr / largefiles / xattr / οnerrοr = PANIC / DEV = 1980041 on sat jul 3 17:33:45 2004

/ disk2home ON / DEV / DSK / C0D1S3 Read / Write / setuid / INTR / LARGEFILES / XATTR / οNERRοR = PANIC / DEV = 1980043 on sat jul 3 17:33:52 2004

Bash-2.05 #

Add the following content to the / etc / vfstab to implement automatic mount / dev / dsk / c0d1s0 / dev / rdsk / c0d1s0 / disk2root ufs 1 yes logging can be mounted to other corresponding partitions

转载请注明原文地址:https://www.9cbs.com/read-7694.html

New Post(0)