Solaris hard drive format partition

Enter the format command under the root user:

[email protected]:~# format
Searching for disks…done

AVAILABLE DISK SELECTIONS:
0. c1t0d0
/[emailprotected],0/pci8086,[emailprotected],2/pci1000,[emailprotected]/[email protected],0
1. c1t1d0
/[email protected],0/pci8086,[email protected],2/pci1000,[email protected]/[ email protected],0
Specify disk (enter its number): 0 ————Select disk 0
selecting c1t0d0
[disk formatted]< br>/dev/dsk/c1t0d0s1 is part of active ZFS pool rpool. Please see zpool(8). ——————The format program tells you that this logical disk belongs to the ZFS file system


FORMAT MENU: ———————— List the subcommands under format>
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
label-write label to the disk< br> an alyze-surface analysis
defect-defect list management
backup-search for backup labels
verify-read and display labels
inquiry-show disk ID
volname-set 8-character volume name< br> !-execute , then return
quit
format> fdisk ———————— Execute fdisk to create partition (partition is to select partition)

Total disk size is 36412 cylinders
Cylinder size is 32130 (512 byte) blocks

Cylinders
Partition Status Type Start End Length %
========= === === ============ ===== === ====== ===
1 EFI 0 36412 36413 100

p>

SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Edit/View extended partitions
6. Exit (update disk configuration and exit)
7. Cancel (exit without updating disk configuration)
Enter Selection: 7

format> partition    ——————Select partition

PARTITION MENU:
0-change `0′ parti tion
1-change `1′ partition
2-change `2′ partition
3-change `3′ partition
4-change `4′ partition
5-change `5′ partition
6-change `6′ 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    ——————Print partition
Current partition table (original):
Total disk sectors available: 5849583549 + 16384 (reserved sectors)

Part Tag Flag First Sector Size Last Sector
0 usr wm 34 2.72TB 5849583582
1 unassigned wm 0 0 0
2 unassigned wm 0 0 0
3 unassigned wm 0 0 0
4 unassigned wm 0 0 0
5 unassigned wm 0 0 0
6 unassigned wm 0 0 0
8 reserved wm 5849583583 8.00MB 5849599966

partition>

# format
Specify disk (enter its number): 1
format> fdisk    
Type “y” to a ccept the default partition, otherwise type “n” to edit the partition table. n
SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Edit/View extended partitions
6. Exit (update disk configuration and exit)
7. Cancel (exit without updating disk configuration)< br>Enter Selection: 1    ————Create partition
Select the partition type to create:
1=SOLARIS2 2=UNIX 3=PCIXOS 4=Other 5=DOS12
6=DOS16 7=DOSEXT 8 =DOSBIG 9=DOS16LBA A=x86 Boot
B=Diagnostic C=FAT32 D=FAT32LBA E=DOSEXTLBA F=EFI (Protective)
G=EFI_SYS 0=Exit?
F    —————— EFI type
SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Edit/View extended partitions
6. Exit (update disk configuration and exit)
7. Cancel (exit without updating disk configuratio n)
Enter Selection: 6    ————Keep the partition configuration and exit

Find hard disk devfsadm( sol9 up), drvconfig,disks;(sol8 down)

format
0
1
……
(choose disk)1
save< br>p
partition>m(non-attached area)
Modify it.
partition>label
partition>quit
format>quit

newfs /dev/dsk/cXtXdXsX
Be safe to save these output numbers to a file for later Check.

Written from memory, it should be fine.

partition> m
Cannot modify disk partitions while it has mounted partitions.

Do all partitions on a disk have to be umount? ?

right

Otherwise, use the CD to boot the system and change the partition.

Leave a Comment

Your email address will not be published.