Last login: Sat May 31 19:29:30 2014 from

Anuncio
Last login: Sat May 31 19:29:30 2014 from 192.168.1.138
Oracle Corporation
SunOS 5.10
Generic Patch
January 2005
# bash
bash-3.2# devfsadm -c disk
-- DETECTAMOS EL NUEVO DISCO INSTALADO
-bash-3.2# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <ATA
-VBOX HARDDISK -1.0
63>
/pci@0,0/pci8086,2829@d/disk@0,0
1. c0t2d0 <ATA
-VBOX HARDDISK -1.0
63> -- NUEVO DISCO -/pci@0,0/pci8086,2829@d/disk@2,0
Specify disk (enter its number): 1
selecting c0t2d0
[disk formatted]
cyl 8351 alt 2 hd 255 sec
cyl 2086 alt 2 hd 255 sec
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
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> p
WARNING - This disk may be in use by an application that has
modified the fdisk table. Ensure that this disk is
not currently in use before proceeding to use fdisk.
format> q
-- VEMOS LOS NUEVOS NOMBRES LOGICOS Y FISICOS DEL NUEVO DISCO INSTALADO bash-3.2# ls -l /dev/dsk/c0t2d0
c0t2d0p0
c0t2d0p2
c0t2d0p4
c0t2d0s15 c0t2d0s3
c0t2d0s5
c0t2d0p1
c0t2d0p3
c0t2d0s0
c0t2d0s2
c0t2d0s4
c0t2d0s6
c0t2d0s1
c0t2d0s7
c0t2d0s10
c0t2d0s8
bash-3.2# ls -l /dev/rdsk/c0t2d0
c0t2d0p0
c0t2d0p2
c0t2d0p4
c0t2d0s1
c0t2d0s15 c0t2d0s3
c0t2d0s5
c0t2d0s7
c0t2d0s11
c0t2d0s9
c0t2d0s12
c0t2d0s13
c0t2d0s11
c0t2d0s9
c0t2d0s13
c0t2d0s14
c0t2d0p1
c0t2d0s2
c0t2d0p3
c0t2d0s4
c0t2d0s0
c0t2d0s6
c0t2d0s10
c0t2d0s8
c0t2d0s12
c0t2d0s14
bash-3.2# ls -l /dev/dsk/c0t2d0s0 /dev/rdsk/c0t2d0s0
lrwxrwxrwx
1 root
root
47 May 31 19:29 /dev/dsk/c0t2d0s0 > ../../devices/pci@0,0/pci8086,2829@d/disk@2,0:a
lrwxrwxrwx
1 root
root
51 May 31 19:29 /dev/rdsk/c0t2d0s0
-> ../../devices/pci@0,0/pci8086,2829@d/disk@2,0:a,raw
-- VEMOS LA VTOC DEL NUEVO DISCO INSTALADO -bash-3.2# prtvtoc /dev/rdsk/c0t2d0s2
* /dev/rdsk/c0t2d0s2 partition map
*
* Dimensions:
*
512 bytes/sector
*
63 sectors/track
*
255 tracks/cylinder
*
16065 sectors/cylinder
*
2088 cylinders
*
2086 accessible cylinders
*
* Flags:
*
1: unmountable
* 10: read-only
*
* Unallocated space:
*
First
Sector
Last
*
Sector
Count
Sector
*
16065 33495525 33511589
*
*
First
Sector
Last
* Partition Tag Flags
Sector
Count
Sector
2
5
01
0 33511590 33511589
8
1
01
0
16065
16064
Mount Directory
-- VOLCAMOS LA VTOC DEL NUEVO DISCO INSTALADO A UN FICHERO -bash-3.2# prtvtoc /dev/dsk/c0t2d0s2 > c0t2d0s2.vtoc
bash-3.2# cat c0t2d0s2.vtoc
* /dev/dsk/c0t2d0s2 partition map
*
* Dimensions:
*
512 bytes/sector
*
63 sectors/track
*
255 tracks/cylinder
*
16065 sectors/cylinder
*
2088 cylinders
*
2086 accessible cylinders
*
* Flags:
*
1: unmountable
* 10: read-only
*
* Unallocated space:
*
First
Sector
Last
*
Sector
Count
Sector
*
16065 33495525 33511589
*
*
* Partition
2
8
Tag
5
1
Flags
01
01
First
Sector
Last
Sector
Count
Sector
0 33511590 33511589
0
16065
16064
Mount Directory
-- VEMOS EL NOMBRE DEL KERNEL O DE INSTANCIA DEL NUEVO DISCO INSTALADO -bash-3.2# grep pci@0,0/pci8086,2829@d/disk@2,0 /etc/path_to_inst
"/pci@0,0/pci8086,2829@d/disk@2,0" 2 "sd"
-- ETIQUETAMOS EL NUEVO DISCO INSTALADO SMI -bash-3.2# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <ATA
-VBOX HARDDISK -1.0
63>
/pci@0,0/pci8086,2829@d/disk@0,0
1. c0t2d0 <ATA
-VBOX HARDDISK -1.0
63>
/pci@0,0/pci8086,2829@d/disk@2,0
Specify disk (enter its number): 1
selecting c0t2d0
[disk formatted]
cyl 8351 alt 2 hd 255 sec
cyl 2086 alt 2 hd 255 sec
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
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> fdisk
No fdisk table exists. The default partition for the disk is:
a 100% "SOLARIS System" partition
Type "y" to accept the default partition,
partition table.
Y
NUEVO DISCO INSTALADO SMI -format> p
otherwise type "n" to edit the
-- ETIQUETAMOS EL
PARTITION MENU:
0
1
2
3
4
5
6
7
select modify name
print label !<cmd> quit
change `0' partition
change `1' partition
change `2' partition
change `3' partition
change `4' partition
change `5' partition
change `6' partition
change `7' partition
select a predefined table
modify a predefined partition table
name the current table
display the current table
write partition map and label to the disk
execute <cmd>, then return
partition> label
Ready to label disk, continue? y
partition> q
FORMAT MENU:
disk
type
partition
current
format
fdisk
repair
label
analyze
defect
backup
verify
save
inquiry
volname
!<cmd>
quit
format> q
-
select a disk
select (define) a disk type
select (define) a partition table
describe the current disk
format and analyze the disk
run the fdisk program
repair a defective sector
write label to the disk
surface analysis
defect list management
search for backup labels
read and display labels
save new disk/partition definitions
show vendor, product and revision
set 8-character volume name
execute <cmd>, then return
-- VEMOS LA VTOC DESPUES DE ETIQUETAR EL NUEVO DISCO COMO SMI -bash-3.2# prtvtoc /dev/dsk/c0t2d0s2
* /dev/dsk/c0t2d0s2 partition map
*
* Dimensions:
*
512 bytes/sector
*
63 sectors/track
*
255 tracks/cylinder
*
16065 sectors/cylinder
*
2087 cylinders
*
2085 accessible cylinders
*
* Flags:
*
1: unmountable
* 10: read-only
*
* Unallocated space:
*
First
Sector
Last
*
Sector
Count
Sector
*
16065 33479460 33495524
*
*
First
Sector
Last
* Partition Tag Flags
Sector
Count
Sector
2
5
01
0 33495525 33495524
8
1
01
0
16065
16064
Mount Directory
-- COMPROBAMOS EL ETIQUETADO SMI Y VEMOS QUE NO TIENE NINGUNA PARTICION
SALVO LA DE BACKUP/S2 -bash-3.2# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <ATA
-VBOX HARDDISK -1.0 cyl 8351 alt 2 hd 255 sec
63>
/pci@0,0/pci8086,2829@d/disk@0,0
1. c0t2d0 <ATA
-VBOX HARDDISK -1.0 cyl 2085 alt 2 hd 255 sec
63>
/pci@0,0/pci8086,2829@d/disk@2,0
Specify disk (enter its number): 1
selecting c0t2d0
[disk formatted]
FORMAT MENU:
disk
type
partition
current
format
fdisk
repair
label
analyze
defect
backup
verify
save
inquiry
volname
!<cmd>
quit
format> p
PARTITION MENU:
0
1
2
3
-
-
select a disk
select (define) a disk type
select (define) a partition table
describe the current disk
format and analyze the disk
run the fdisk program
repair a defective sector
write label to the disk
surface analysis
defect list management
search for backup labels
read and display labels
save new disk/partition definitions
show vendor, product and revision
set 8-character volume name
execute <cmd>, then return
change
change
change
change
`0'
`1'
`2'
`3'
partition
partition
partition
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> p
Current partition table (original):
Total disk cylinders available: 2085 + 2 (reserved cylinders)
Part
Tag
0 unassigned
1 unassigned
2
backup
3 unassigned
4 unassigned
5 unassigned
6 unassigned
7 unassigned
8
boot
9 unassigned
Flag
wm
wm
wu
wm
wm
wm
wm
wm
wu
wm
Cylinders
0
0
0 - 2084
0
0
0
0
0
0 0
0
Size
0
0
15.97GB
0
0
0
0
0
7.84MB
0
Blocks
(0/0/0)
0
(0/0/0)
0
(2085/0/0) 33495525
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(1/0/0)
16065
(0/0/0)
0
partition> q
FORMAT MENU:
disk
type
partition
current
format
fdisk
repair
label
analyze
defect
backup
verify
save
inquiry
volname
!<cmd>
quit
format> q
-
select a disk
select (define) a disk type
select (define) a partition table
describe the current disk
format and analyze the disk
run the fdisk program
repair a defective sector
write label to the disk
surface analysis
defect list management
search for backup labels
read and display labels
save new disk/partition definitions
show vendor, product and revision
set 8-character volume name
execute <cmd>, then return
-- VOLCAMOS LA VTOC UNA VEZ ETIQUETADO EL DISCO A UN FICHERO -bash-3.2# prtvtoc /dev/dsk/c0t2d0s2 > c0t2d0s2.vtoc.dos
bash-3.2# diff c0t2d0s2.vtoc c0t2d0s2.vtoc.dos
8,9c8,9
< *
2088 cylinders
< *
2086 accessible cylinders
---
> *
> *
18c18
< *
--> *
22c22
<
-->
2087 cylinders
2085 accessible cylinders
16065
33495525
33511589
16065
33479460
33495524
2
5
01
0
33511590
33511589
2
5
01
0
33495525
33495524
-- COMPROBAMOS EL ETIQUETADO SMI Y VEMOS QUE NO TIENE NINGUNA PARTICION
SALVO LA DE BACKUP/S2 -bash-3.2# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <ATA
-VBOX HARDDISK -1.0 cyl 8351 alt 2 hd 255 sec
63>
/pci@0,0/pci8086,2829@d/disk@0,0
1. c0t2d0 <ATA
-VBOX HARDDISK -1.0 cyl 2085 alt 2 hd 255 sec
63>
/pci@0,0/pci8086,2829@d/disk@2,0
Specify disk (enter its number): 1
selecting c0t2d0
[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
fdisk
- run the fdisk program
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> fdisk
Total disk size is 2088 cylinders
Cylinder size is 16065 (512 byte) blocks
Partition
=========
1
Status
======
Active
Type
============
Solaris2
Start
=====
1
Cylinders
End
Length
===
======
2087
2087
%
===
100
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. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Enter Selection: 3
Specify the partition number to delete (or enter 0 to exit): 1
Are you sure you want to delete partition 1? This will make all files and
y
Total disk size is 2088 cylinders
Cylinder size is 16065 (512 byte) blocks
Partition
=========
Status
======
Type
============
Start
=====
Cylinders
End
Length
===
======
%
===
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. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Enter Selection: 5
Solaris fdisk partition not found
No fdisk solaris partition found
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.
n
Total disk size is 2088 cylinders
Cylinder size is 16065 (512 byte) blocks
Partition
=========
Status
======
Type
============
Cylinders
Start
End
Length
=====
===
======
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. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Enter Selection: 1
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
0=Exit? c
Specify the percentage of disk to use for this partition
(or type "c" to specify the size in cylinders). 24
Should this become the active partition? If yes, it will be activated
each time the computer is reset or turned on.
Please type "y" or "n". y
Total disk size is 2088 cylinders
Cylinder size is 16065 (512 byte) blocks
Partition
=========
1
Status
======
Active
Type
============
Win95 FAT32
Start
=====
1
Cylinders
End
Length
===
======
501
501
%
===
24
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. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Enter Selection: 1
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
0=Exit? 2
Specify the percentage of disk to use for this partition
(or type "c" to specify the size in cylinders). 24
Should this become the active partition? If yes, it will be activated
each time the computer is reset or turned on.
Please type "y" or "n". y
Total disk size is 2088 cylinders
Cylinder size is 16065 (512 byte) blocks
Partition
=========
1
2
Status
======
Active
Type
============
Win95 FAT32
UNIX System
Cylinders
Start
End
Length
=====
===
======
1
501
501
502 1002
501
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. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Enter Selection: 1
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
0=Exit? 1
Specify the percentage of disk to use for this partition
(or type "c" to specify the size in cylinders). 24
%
===
24
24
Should this become the active partition? If yes, it will be activated
each time the computer is reset or turned on.
Please type "y" or "n". y
Total disk size is 2088 cylinders
Cylinder size is 16065 (512 byte) blocks
Cylinders
Partition
Status
Type
Start
End
Length
=========
======
============ =====
===
======
1
Win95 FAT32
1
501
501
2
UNIX System
502 1002
501
3
Active
Solaris2
1003 1503
501
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. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
%
===
24
24
24
Enter Selection: 5
format> fdisk
Total disk size is 2088 cylinders
Cylinder size is 16065 (512 byte) blocks
Cylinders
Partition
Status
Type
Start
End
Length
=========
======
============ =====
===
======
1
Win95 FAT32
1
501
501
2
UNIX System
502 1002
501
3
Active
Solaris2
1003 1503
501
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. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Enter Selection: 5
format> p
PARTITION MENU:
0
1
2
3
4
5
6
7
select modify name
print label !<cmd> quit
change `0' partition
change `1' partition
change `2' partition
change `3' partition
change `4' partition
change `5' partition
change `6' partition
change `7' partition
select a predefined table
modify a predefined partition table
name the current table
display the current table
write partition map and label to the disk
execute <cmd>, then return
%
===
24
24
24
partition> q
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
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> quit
bash-3.2# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <ATA
-VBOX HARDDISK -1.0
63>
/pci@0,0/pci8086,2829@d/disk@0,0
1. c0t2d0 <ATA
-VBOX HARDDISK -1.0
63>
/pci@0,0/pci8086,2829@d/disk@2,0
Specify disk (enter its number): 1
selecting c0t2d0
[disk formatted]
FORMAT MENU:
disk
type
partition
current
format
fdisk
repair
label
analyze
defect
backup
verify
save
inquiry
volname
!<cmd>
quit
-
cyl 8351 alt 2 hd 255 sec
cyl 499 alt 2 hd 255 sec
select a disk
select (define) a disk type
select (define) a partition table
describe the current disk
format and analyze the disk
run the fdisk program
repair a defective sector
write label to the disk
surface analysis
defect list management
search for backup labels
read and display labels
save new disk/partition definitions
show vendor, product and revision
set 8-character volume name
execute <cmd>, then return
format> p
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> p
Current partition table (original):
Total disk cylinders available: 499 + 2 (reserved cylinders)
Part
Tag
0 unassigned
1 unassigned
2
backup
3 unassigned
4 unassigned
5 unassigned
6 unassigned
7 unassigned
8
boot
9 unassigned
Flag
wm
wm
wu
wm
wm
wm
wm
wm
wu
wm
Cylinders
0
0
0 - 498
0
0
0
0
0
0 0
0
Size
0
0
3.82GB
0
0
0
0
0
7.84MB
0
Blocks
(0/0/0)
0
(0/0/0)
0
(499/0/0) 8016435
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(1/0/0)
16065
(0/0/0)
0
partition> q
FORMAT MENU:
disk
type
partition
current
format
fdisk
repair
label
analyze
defect
backup
verify
save
inquiry
volname
!<cmd>
quit
format> fdisk
Total
-
select a disk
select (define) a disk type
select (define) a partition table
describe the current disk
format and analyze the disk
run the fdisk program
repair a defective sector
write label to the disk
surface analysis
defect list management
search for backup labels
read and display labels
save new disk/partition definitions
show vendor, product and revision
set 8-character volume name
execute <cmd>, then return
disk size is 2088 cylinders
Cylinder size is 16065 (512 byte) blocks
Cylinders
Partition
Status
Type
Start
End
Length
=========
======
============ =====
===
======
1
Win95 FAT32
1
501
501
2
UNIX System
502 1002
501
3
Active
Solaris2
1003 1503
501
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. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Enter Selection: 5
%
===
24
24
24
format> p
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> p
Current partition table (original):
Total disk cylinders available: 499 + 2 (reserved cylinders)
Part
Tag
0 unassigned
1 unassigned
2
backup
3 unassigned
4 unassigned
5 unassigned
6 unassigned
7 unassigned
8
boot
9 unassigned
Flag
wm
wm
wu
wm
wm
wm
wm
wm
wu
wm
Cylinders
0
0
0 - 498
0
0
0
0
0
0 0
0
Size
0
0
3.82GB
0
0
0
0
0
7.84MB
0
partition> q
FORMAT MENU:
disk
type
- select a disk
- select (define) a disk type
Blocks
(0/0/0)
0
(0/0/0)
0
(499/0/0) 8016435
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(1/0/0)
16065
(0/0/0)
0
partition
current
format
fdisk
repair
label
analyze
defect
backup
verify
save
inquiry
volname
!<cmd>
quit
format> q
-
select (define) a partition table
describe the current disk
format and analyze the disk
run the fdisk program
repair a defective sector
write label to the disk
surface analysis
defect list management
search for backup labels
read and display labels
save new disk/partition definitions
show vendor, product and revision
set 8-character volume name
execute <cmd>, then return
-- COMPROBAMOS LA VTOC DE LA NUEVA PARTICION SOLARIS QUE HEMOS CREADO Y
COMPROBAMOS QUE ES DE MENOR TAMAÑO -bash-3.2# prtvtoc /dev/rdsk/c0t2d0s2
* /dev/rdsk/c0t2d0s2 partition map
*
* Dimensions:
*
512 bytes/sector
*
63 sectors/track
*
255 tracks/cylinder
*
16065 sectors/cylinder
*
501 cylinders
*
499 accessible cylinders
*
* Flags:
*
1: unmountable
* 10: read-only
*
* Unallocated space:
*
First
Sector
Last
*
Sector
Count
Sector
*
16065
8000370
8016434
*
*
First
Sector
* Partition Tag Flags
Sector
Count
2
5
01
0
8016435
8
1
01
0
16065
Last
Sector
8016434
16064
Mount Directory
-- VOLCAMOS LA VTOC DE LA NUEVA PARTICION SOLARIS DE MENOR TAMAÑO A UN
FICHERO Y COMPROBAMOS LAS DIFERENCIAS CON LOS ANTERIORES
SE PUEDE OBSERVAR LA DIFERENCIA DE CILINDROS ENTRE UNA Y OTRAS -bash-3.2# prtvtoc /dev/rdsk/c0t2d0s2 > c0t2d0s2.vtoc.tres
bash-3.2# diff c0t2d0s2.vtoc.dos c0t2d0s2.vtoc.tres
1c1
< * /dev/dsk/c0t2d0s2 partition map
--> * /dev/rdsk/c0t2d0s2 partition map
8,9c8,9
< *
< *
--> *
> *
18c18
< *
--> *
22c22
<
-->
2087 cylinders
2085 accessible cylinders
501 cylinders
499 accessible cylinders
16065
33479460
33495524
16065
8000370
8016434
2
5
01
0
33495525
33495524
2
5
01
0
8016435
8016434
bash-3.2# diff c0t2d0s2.vtoc c0t2d0s2.vtoc.tres
1c1
< * /dev/dsk/c0t2d0s2 partition map
--> * /dev/rdsk/c0t2d0s2 partition map
8,9c8,9
< *
2088 cylinders
< *
2086 accessible cylinders
--> *
501 cylinders
> *
499 accessible cylinders
18c18
< *
16065 33495525 33511589
--> *
16065
8000370
8016434
22c22
<
2
5
01
0 33511590 33511589
-->
2
5
01
0
8016435
8016434
-- INTENTAMOS IMPORTAR LA VTOC INICIAL EN EL DISCO ACTUAL Y VEMOS COMO AL
NO SER DEL MISMO TAMAÑO NO NOS DEJA -bash-3.2# fmthard -s c0t2d0s2.vtoc /dev/rdsk/c0t2d0s2
fmthard: Partition 2 specifies the full disk and is not equal
full size of disk. The full disk capacity is 8016435 sectors.
fmthard: Partition 2 specified as 33511590 sectors starting at 0
does not fit. The full disk contains 8016435 sectors.
fmthard: New volume table of contents now in place.
-- BORRO TODAS LAS PARTICIONES NO SOLARIS Y LA SOLARIS CON FDISK
--
bash-3.2# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <ATA
-VBOX HARDDISK -1.0
63>
/pci@0,0/pci8086,2829@d/disk@0,0
1. c0t2d0 <ATA
-VBOX HARDDISK -1.0
63>
cyl 8351 alt 2 hd 255 sec
cyl 499 alt 2 hd 255 sec
/pci@0,0/pci8086,2829@d/disk@2,0
Specify disk (enter its number): 1
selecting c0t2d0
[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
fdisk
- run the fdisk program
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> fdisk
Total disk size is 2088 cylinders
Cylinder size is 16065 (512 byte) blocks
Cylinders
Partition
Status
Type
Start
End
Length
%
=========
======
============ =====
===
======
===
1
Win95 FAT32
1
501
501
24
2
UNIX System
502 1002
501
24
3
Active
Solaris2
1003 1503
501
24
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. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Enter Selection: 3
Specify the partition number to delete (or enter 0 to exit): 4
-- BORRO LA PARTICION 4 (QUE NO SE VE EN LA TABLA) -Are you sure you want to delete partition 4? This will make all files and
y
Total disk size is 2088 cylinders
Cylinder size is 16065 (512 byte) blocks
Partition
Status
Type
=========
======
============
1
Win95 FAT32
2
UNIX System
3
Active
Solaris2
SELECT ONE OF THE FOLLOWING:
1. Create a partition
Start
=====
1
502
1003
Cylinders
End
Length
===
======
501
501
1002
501
1503
501
%
===
24
24
24
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Enter Selection: 3
Specify the partition number to delete (or enter 0 to exit): 3
-- BORRO LA PARTICION 3 SOLARIS -Are you sure you want to delete partition 3? This will make all files and
y
Total disk size is 2088 cylinders
Cylinder size is 16065 (512 byte) blocks
Partition
=========
1
2
Status
======
Type
============
Win95 FAT32
UNIX System
Start
=====
1
502
Cylinders
End
Length
===
======
501
501
1002
501
%
===
24
24
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. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Enter Selection: 3
Specify the partition number to delete (or enter 0 to exit): 2
-- BORRO LA PARTICION 2 UNIX -Are you sure you want to delete partition 2? This will make all files and
y
Total disk size is 2088 cylinders
Cylinder size is 16065 (512 byte) blocks
Partition
=========
1
Status
======
Type
============
Win95 FAT32
Start
=====
1
Cylinders
End
Length
===
======
501
501
%
===
24
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. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Enter Selection: 3
Specify the partition number to delete (or enter 0 to exit): 1
-- BORRO LA PARTICION 1 WIN95 -Are you sure you want to delete partition 1? This will make all files and
y
Total disk size is 2088 cylinders
Cylinder size is 16065 (512 byte) blocks
Partition
=========
Status
======
Type
============
Start
=====
Cylinders
End
Length
===
======
%
===
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. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Enter Selection: 5
-- SALGO GUARDANDO LA CONFIGURACION, SIN PARTICIONES -Solaris fdisk partition not found
No fdisk solaris partition found
format> q
-- COMPRUEBO QUE NO HAY PARTICIONES –
bash-3.2# format
Searching for disks...done
c0t2d0: configured with capacity of 15.98GB
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <ATA
-VBOX HARDDISK -1.0 cyl 8351 alt 2 hd 255 sec
63>
/pci@0,0/pci8086,2829@d/disk@0,0
1. c0t2d0 <ATA-VBOXHARDDISK-1.0 cyl 2086 alt 2 hd 255 sec 63>
/pci@0,0/pci8086,2829@d/disk@2,0
Specify disk (enter its number): 1
selecting c0t2d0
[disk formatted]
Disk not labeled. Label it now? n
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
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> p
WARNING - This disk may be in use by an application that has
modified the fdisk table. Ensure that this disk is
not currently in use before proceeding to use fdisk.
format> q
-- INTENTAMOS IMPORTAR LAS VTOC ANTERIORES EN EL DISCO ACTUAL Y VEMOS QUE
COMO NO TIENE PARTICION SOLARIS NO NOS DEJA -bash-3.2# fmthard -s c0t2d0s2.vtoc /dev/rdsk/c0t2d0s2
/dev/rdsk/c0t2d0s2: Cannot get disk geometry
bash-3.2# fmthard -s c0t2d0s2.vtoc.dos /dev/rdsk/c0t2d0s2
/dev/rdsk/c0t2d0s2: Cannot get disk geometry
bash-3.2# fmthard -s c0t2d0s2.vtoc.tres /dev/rdsk/c0t2d0s2
/dev/rdsk/c0t2d0s2: Cannot get disk geometry
-- CREAMOS LA PARTICION SOLARIS CON FDISK OCUPANDO LA TOTALIDAD DEL DISCO
-bash-3.2# format
Searching for disks...done
c0t2d0: configured with capacity of 15.98GB
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <ATA
-VBOX HARDDISK -1.0 cyl 8351 alt 2 hd 255 sec
63>
/pci@0,0/pci8086,2829@d/disk@0,0
1. c0t2d0 <ATA-VBOXHARDDISK-1.0 cyl 2086 alt 2 hd 255 sec 63>
/pci@0,0/pci8086,2829@d/disk@2,0
Specify disk (enter its number): 1
selecting c0t2d0
[disk formatted]
Disk not labeled. Label it now? y
Warning: error setting drive geometry.
Warning: error writing VTOC.
Warning: no backup labels
Write label failed
FORMAT MENU:
disk
type
partition
current
format
fdisk
repair
label
analyze
defect
backup
verify
save
inquiry
volname
!<cmd>
quit
format> p
-
select a disk
select (define) a disk type
select (define) a partition table
describe the current disk
format and analyze the disk
run the fdisk program
repair a defective sector
write label to the disk
surface analysis
defect list management
search for backup labels
read and display labels
save new disk/partition definitions
show vendor, product and revision
set 8-character volume name
execute <cmd>, then return
WARNING - This disk may be in use by an application that has
modified the fdisk table. Ensure that this disk is
not currently in use before proceeding to use fdisk.
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,
partition table.
y
format> q
otherwise type "n" to edit the
-- IMPORTAMOS LAS VTOC.dos QUE ERA DEL DISCO ENTERO Y AHORA AL TENER LA
PARTICION SOLARIS DEL DISCO ENTERO SI NOS DEJA, AUNQUE NO SE PUEDE
COMPRAR NADA AL NO HABER NINGUNA PARTICION CREADA -bash-3.2# fmthard -s c0t2d0s2.vtoc.dos /dev/rdsk/c0t2d0s2
fmthard: New volume table of contents now in place.
-- VAMOS A CREAR CON FORMAT LAS PARTICIONES, VAMOS A DARLE TAMAÑO A LAS
DISTINTAS SLICES -bash-3.2# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <ATA
-VBOX HARDDISK -1.0
63>
/pci@0,0/pci8086,2829@d/disk@0,0
1. c0t2d0 <ATA
-VBOX HARDDISK -1.0
63>
/pci@0,0/pci8086,2829@d/disk@2,0
Specify disk (enter its number): 1
selecting c0t2d0
[disk formatted]
FORMAT MENU:
disk
type
partition
current
format
fdisk
repair
label
analyze
defect
backup
verify
save
inquiry
volname
-
cyl 8351 alt 2 hd 255 sec
cyl 2085 alt 2 hd 255 sec
select a disk
select (define) a disk type
select (define) a partition table
describe the current disk
format and analyze the disk
run the fdisk program
repair a defective sector
write label to the disk
surface analysis
defect list management
search for backup labels
read and display labels
save new disk/partition definitions
show vendor, product and revision
set 8-character volume name
!<cmd>
quit
format> p
- execute <cmd>, then return
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> p
Current partition table (original):
Total disk cylinders available: 2085 + 2 (reserved cylinders)
Part
Tag
0 unassigned
1 unassigned
2
backup
3 unassigned
4 unassigned
5 unassigned
6 unassigned
7 unassigned
8
boot
9 unassigned
Flag
wu
wu
wu
wu
wu
wu
wu
wu
wu
wu
Cylinders
0
0
0 - 2084
0
0
0
0
0
0 0
0
Size
0
0
15.97GB
0
0
0
0
0
7.84MB
0
partition>
partition>
partition>
partition> 0
-- VAMOS A DARLE TAMAÑO A LA PARTICION 0 -Part
Tag
Flag
Cylinders
Size
0 unassigned
wu
0
0
Blocks
(0/0/0)
0
(0/0/0)
0
(2085/0/0) 33495525
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(1/0/0)
16065
(0/0/0)
0
Blocks
(0/0/0)
Enter partition id tag[unassigned]:
Enter partition permission flags[wu]: ?
Expecting one of the following: (abbreviations ok):
wm
- read-write, mountable
wu
- read-write, unmountable
rm
- read-only, mountable
ru
- read-only, unmountable
Enter partition permission flags[wu]: wm
Enter new starting cyl[0]:
-- COMIENZA EN EL CILINDRO 0 -Enter partition size[0b, 0c, 0e, 0.00mb, 0.00gb]: 1gb
-- VAMOS A DARLE 1GB DE TAMAÑO A LA PARTICION 0 –
0
-- VEMOS LA PARTICION RECIEN DIMENSIONADA -partition> p
Current partition table (unnamed):
Total disk cylinders available: 2085 + 2 (reserved cylinders)
Part
Tag
0 unassigned
1 unassigned
2
backup
3 unassigned
4 unassigned
5 unassigned
6 unassigned
7 unassigned
8
boot
9 unassigned
Flag
wm
wu
wu
wu
wu
wu
wu
wu
wu
wu
Cylinders
0 - 130
0
0 - 2084
0
0
0
0
0
0 0
0
Size
1.00GB
0
15.97GB
0
0
0
0
0
7.84MB
0
partition> 1
-- VAMOS A DARLE TAMAÑO A LA PARTICION 1 -Part
Tag
Flag
Cylinders
Size
1 unassigned
wu
0
0
Blocks
(131/0/0)
2104515
(0/0/0)
0
(2085/0/0) 33495525
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(1/0/0)
16065
(0/0/0)
0
Blocks
(0/0/0)
0
Enter partition id tag[unassigned]: ?
-- LAS DISTINTAS TAGS POSIBLES A ASIGNAR -Expecting one of the following: (abbreviations ok):
unassigned
boot
root
swap
usr
backup
stand
var
home
alternates
reserved
Enter partition id tag[unassigned]: swap
-- ASIGNAMOS LA TAG SWAP A LA PARTICION 1 -Enter partition permission flags[wu]:
-- WRITE UNMOUNTABLE -Enter new starting cyl[1]: 131
-- COMIENZA EN EL CILINDRO DESPUES DEL QUE FINALIZA LA PARTICION
ANTERIOR -Enter partition size[0b, 0c, 131e, 0.00mb, 0.00gb]: 3gb
-- VAMOS A DARLE 3GB TAMAÑO A LA PARTICION 1 –
-- VEMOS LA PARTICION RECIEN DIMENSIONADA -partition> p
Current partition table (unnamed):
Total disk cylinders available: 2085 + 2 (reserved cylinders)
Part
Tag
0 unassigned
1
swap
2
backup
3 unassigned
4 unassigned
5 unassigned
6 unassigned
7 unassigned
8
boot
9 unassigned
Flag
wm
wu
wu
wu
wu
wu
wu
wu
wu
wu
Cylinders
0 - 130
131 - 522
0 - 2084
0
0
0
0
0
0 0
0
Size
1.00GB
3.00GB
15.97GB
0
0
0
0
0
7.84MB
0
Blocks
(131/0/0)
2104515
(392/0/0)
6297480
(2085/0/0) 33495525
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(1/0/0)
16065
(0/0/0)
0
partition> 3
-- VAMOS A DARLE TAMAÑO A LA PARTICION 3 -Part
Tag
Flag
Cylinders
Size
3 unassigned
wu
0
0
Blocks
(0/0/0)
0
Enter partition id tag[unassigned]: ?
Expecting one of the following: (abbreviations ok):
unassigned
boot
root
swap
usr
backup
stand
var
home
alternates
reserved
Enter
Enter
Enter
Enter
partition id tag[unassigned]: root
partition permission flags[wu]: wm
new starting cyl[1]: 523
partition size[0b, 0c, 523e, 0.00mb, 0.00gb]: 4gb
-- VEMOS LA PARTICION RECIEN DIMENSIONADA -partition> p
Current partition table (unnamed):
Total disk cylinders available: 2085 + 2 (reserved cylinders)
Part
Tag
0 unassigned
1
swap
2
backup
3
root
4 unassigned
5 unassigned
6 unassigned
7 unassigned
8
boot
9 unassigned
Flag
wm
wu
wu
wm
wu
wu
wu
wu
wu
wu
Cylinders
0 - 130
131 - 522
0 - 2084
523 - 1045
0
0
0
0
0 0
0
Size
1.00GB
3.00GB
15.97GB
4.01GB
0
0
0
0
7.84MB
0
partition> 4
-- VAMOS A DARLE TAMAÑO A LA PARTICION 4 -Part
Tag
Flag
Cylinders
Size
4 unassigned
wu
0
0
Blocks
(131/0/0)
2104515
(392/0/0)
6297480
(2085/0/0) 33495525
(523/0/0)
8401995
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(1/0/0)
16065
(0/0/0)
0
Blocks
(0/0/0)
Enter partition id tag[unassigned]: ?
Expecting one of the following: (abbreviations ok):
unassigned
boot
root
swap
usr
backup
stand
var
home
alternates
reserved
Enter
Enter
Enter
Enter
partition id tag[unassigned]: home
partition permission flags[wu]: wm
new starting cyl[1]: 1046
partition size[0b, 0c, 1046e, 0.00mb, 0.00gb]: 1gb
-- VEMOS LA PARTICION RECIEN DIMENSIONADA -partition> p
Current partition table (unnamed):
Total disk cylinders available: 2085 + 2 (reserved cylinders)
Part
Tag
Flag
Cylinders
Size
Blocks
0
0
1
2
3
4
5
6
7
8
9
unassigned
swap
backup
root
home
unassigned
unassigned
unassigned
boot
unassigned
wm
wu
wu
wm
wm
wu
wu
wu
wu
wu
0
131
0
523
1046
0
0
0
0
0
- 130
- 522
- 2084
- 1045
- 1176
-
0
1.00GB
3.00GB
15.97GB
4.01GB
1.00GB
0
0
0
7.84MB
0
partition> 5
-- VAMOS A DARLE TAMAÑO A LA PARTICION 5 -Part
Tag
Flag
Cylinders
Size
5 unassigned
wu
0
0
(131/0/0)
2104515
(392/0/0)
6297480
(2085/0/0) 33495525
(523/0/0)
8401995
(131/0/0)
2104515
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(1/0/0)
16065
(0/0/0)
0
Blocks
(0/0/0)
0
Enter partition id tag[unassigned]: ?
Expecting one of the following: (abbreviations ok):
unassigned
boot
root
swap
usr
backup
stand
var
home
alternates
reserved
Enter
Enter
Enter
Enter
partition id tag[unassigned]: usr
partition permission flags[wu]: wm
new starting cyl[1]: 1177
partition size[0b, 0c, 1177e, 0.00mb, 0.00gb]: 2gb
-- VEMOS LA PARTICION RECIEN DIMENSIONADA -partition> p
Current partition table (unnamed):
Total disk cylinders available: 2085 + 2 (reserved cylinders)
Part
Tag
0 unassigned
1
swap
2
backup
3
root
4
home
5
usr
6 unassigned
7 unassigned
8
boot
9 unassigned
Flag
wm
wu
wu
wm
wm
wm
wu
wu
wu
wu
Cylinders
0 - 130
131 - 522
0 - 2084
523 - 1045
1046 - 1176
1177 - 1438
0
0
0 0
0
Size
1.00GB
3.00GB
15.97GB
4.01GB
1.00GB
2.01GB
0
0
7.84MB
0
partition> 6
-- VAMOS A DARLE TAMAÑO A LA PARTICION 6 -Part
Tag
Flag
Cylinders
Size
6 unassigned
wu
0
0
Blocks
(131/0/0)
2104515
(392/0/0)
6297480
(2085/0/0) 33495525
(523/0/0)
8401995
(131/0/0)
2104515
(262/0/0)
4209030
(0/0/0)
0
(0/0/0)
0
(1/0/0)
16065
(0/0/0)
0
Blocks
(0/0/0)
Enter partition id tag[unassigned]: ?
Expecting one of the following: (abbreviations ok):
unassigned
boot
root
swap
usr
backup
stand
var
home
alternates
reserved
Enter partition id tag[unassigned]: var
Enter partition permission flags[wu]: wm
0
Enter new starting cyl[1]: 1439
-- COMIENZA EN EL CILINDRO DESPUES DEL QUE FINALIZA LA PARTICION
ANTERIOR -Enter partition size[0b, 0c, 1439e, 0.00mb, 0.00gb]: $
-- VAMOS A DARLE TAMAÑO HASTA EL FINAL DEL DISCO, LO HACEMOS CON $
--- VEMOS LA TALBA DE PARTICIONES FINAL -partition> p
Current partition table (unnamed):
Total disk cylinders available: 2085 + 2 (reserved cylinders)
Part
Tag
0 unassigned
1
swap
2
backup
3
root
4
home
5
usr
6
var
7 unassigned
8
boot
9 unassigned
Flag
wm
wu
wu
wm
wm
wm
wm
wu
wu
wu
Cylinders
0 - 130
131 - 522
0 - 2084
523 - 1045
1046 - 1176
1177 - 1438
1439 - 2084
0
0 0
0
Size
1.00GB
3.00GB
15.97GB
4.01GB
1.00GB
2.01GB
4.95GB
0
7.84MB
0
Blocks
(131/0/0)
2104515
(392/0/0)
6297480
(2085/0/0) 33495525
(523/0/0)
8401995
(131/0/0)
2104515
(262/0/0)
4209030
(646/0/0) 10377990
(0/0/0)
0
(1/0/0)
16065
(0/0/0)
0
partition> q
FORMAT MENU:
disk
type
partition
current
format
fdisk
repair
label
analyze
defect
backup
verify
save
inquiry
volname
!<cmd>
quit
format> p
PARTITION MENU:
0
1
2
3
4
5
6
7
select -
-
select a disk
select (define) a disk type
select (define) a partition table
describe the current disk
format and analyze the disk
run the fdisk program
repair a defective sector
write label to the disk
surface analysis
defect list management
search for backup labels
read and display labels
save new disk/partition definitions
show vendor, product and revision
set 8-character volume name
execute <cmd>, then return
change
change
change
change
change
change
change
change
select
`0' partition
`1' partition
`2' partition
`3' partition
`4' partition
`5' partition
`6' partition
`7' partition
a predefined table
modify
name
print
label
!<cmd>
quit
-
modify a predefined partition table
name the current table
display the current table
write partition map and label to the disk
execute <cmd>, then return
-- SALVAMOS LA CONFIGURACION DE LA TALBA DE PARTICIONES FINAL -partition> label
Ready to label disk, continue? y
partition>
partition>
partition> q
FORMAT MENU:
disk
type
partition
current
format
fdisk
repair
label
analyze
defect
backup
verify
save
inquiry
volname
!<cmd>
quit
format> p
-
select a disk
select (define) a disk type
select (define) a partition table
describe the current disk
format and analyze the disk
run the fdisk program
repair a defective sector
write label to the disk
surface analysis
defect list management
search for backup labels
read and display labels
save new disk/partition definitions
show vendor, product and revision
set 8-character volume name
execute <cmd>, then return
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> p
Current partition table (unnamed):
Total disk cylinders available: 2085 + 2 (reserved cylinders)
Part
Tag
0 unassigned
1
swap
2
backup
3
root
4
home
5
usr
6
var
7 unassigned
8
boot
9 unassigned
Flag
wm
wu
wu
wm
wm
wm
wm
wu
wu
wu
Cylinders
0 - 130
131 - 522
0 - 2084
523 - 1045
1046 - 1176
1177 - 1438
1439 - 2084
0
0 0
0
Size
1.00GB
3.00GB
15.97GB
4.01GB
1.00GB
2.01GB
4.95GB
0
7.84MB
0
Blocks
(131/0/0)
2104515
(392/0/0)
6297480
(2085/0/0) 33495525
(523/0/0)
8401995
(131/0/0)
2104515
(262/0/0)
4209030
(646/0/0) 10377990
(0/0/0)
0
(1/0/0)
16065
(0/0/0)
0
partition> 0
-- VOY A PONER EL TAG EN LA S0 BOOT -Part
Tag
Flag
Cylinders
Size
0 unassigned
wm
0 - 130
1.00GB
Blocks
(131/0/0)
2104515
Enter partition id tag[unassigned]: boot
Enter partition permission flags[wm]:
Enter new starting cyl[0]:
Enter partition size[2104515b, 131c, 130e, 1027.60mb, 1.00gb]: 131c
partition> p
Current partition table (unnamed):
Total disk cylinders available: 2085 + 2 (reserved cylinders)
Part
Tag
0
boot
1
swap
2
backup
3
root
4
home
5
usr
6
var
7 unassigned
8
boot
9 unassigned
Flag
wm
wu
wu
wm
wm
wm
wm
wu
wu
wu
Cylinders
0 - 130
131 - 522
0 - 2084
523 - 1045
1046 - 1176
1177 - 1438
1439 - 2084
0
0 0
0
Size
1.00GB
3.00GB
15.97GB
4.01GB
1.00GB
2.01GB
4.95GB
0
7.84MB
0
Blocks
(131/0/0)
2104515
(392/0/0)
6297480
(2085/0/0) 33495525
(523/0/0)
8401995
(131/0/0)
2104515
(262/0/0)
4209030
(646/0/0) 10377990
(0/0/0)
0
(1/0/0)
16065
(0/0/0)
0
partition>
partition>
partition> q
FORMAT MENU:
disk
type
partition
current
format
fdisk
repair
label
analyze
defect
backup
verify
save
inquiry
volname
-
select a disk
select (define) a disk type
select (define) a partition table
describe the current disk
format and analyze the disk
run the fdisk program
repair a defective sector
write label to the disk
surface analysis
defect list management
search for backup labels
read and display labels
save new disk/partition definitions
show vendor, product and revision
set 8-character volume name
!<cmd>
quit
format> p
PARTITION MENU:
0
1
2
3
4
5
6
7
select modify name
print label !<cmd> Quit
- execute <cmd>, then return
change `0' partition
change `1' partition
change `2' partition
change `3' partition
change `4' partition
change `5' partition
change `6' partition
change `7' partition
select a predefined table
modify a predefined partition table
name the current table
display the current table
write partition map and label to the disk
execute <cmd>, then return
-- SALVAMOS LA CONFIGURACION DE LA TALBA DE PARTICIONES FINAL -partition> label
Ready to label disk, continue? y
partition> q
FORMAT MENU:
disk
type
partition
current
format
fdisk
repair
label
analyze
defect
backup
verify
save
inquiry
volname
!<cmd>
quit
format> q
-
select a disk
select (define) a disk type
select (define) a partition table
describe the current disk
format and analyze the disk
run the fdisk program
repair a defective sector
write label to the disk
surface analysis
defect list management
search for backup labels
read and display labels
save new disk/partition definitions
show vendor, product and revision
set 8-character volume name
execute <cmd>, then return
-- VEMOS LA VTOC RESULTANTE DESPUES DE HABER CREADO TODAS LAS PARTICIONES
–
bash-3.2# prtvtoc /dev/rdsk/c0t2d0s2
* /dev/rdsk/c0t2d0s2 partition map
*
* Dimensions:
*
512 bytes/sector
*
63 sectors/track
*
255 tracks/cylinder
*
16065 sectors/cylinder
*
2087 cylinders
*
2085 accessible cylinders
*
* Flags:
*
1: unmountable
* 10: read-only
*
*
First
Sector
* Partition Tag Flags
Sector
Count
0
1
00
0
2104515
1
3
01
2104515
6297480
2
5
01
0 33495525
3
2
00
8401995
8401995
4
8
00
16803990
2104515
5
4
00
18908505
4209030
6
7
00
23117535 10377990
8
1
01
0
16065
Last
Sector
2104514
8401994
33495524
16803989
18908504
23117534
33495524
16064
Mount Directory
-- VUELCO LA VTOC RESULTANTE A UN FICHERO PARA DESPUES IMPORTARLA –
bash-3.2# prtvtoc /dev/rdsk/c0t2d0s2 > c0t2d0s2.vtoc.8particiones
-- REINICIAMOS PARA METER OTRO DISCO EXACTAMENTE IGUAL QUE EL ANTERIOR Y
RECUPERAR EN EL LA TABLA DE PARTICIONES DEL DISCO c0t2d0 -–
REINICIAMOS PARA METER OTRO DISCO EXACTAMENTE IGUAL QUE EL ANTERIOR Y
RECUPERAR EN EL LA TABLA DE PARTICIONES DEL DISOC c0t2d0
bash-3.2# init 5
Last login: Sat May 31 19:33:41 2014 from 192.168.1.138
Oracle Corporation
SunOS 5.10
Generic Patch
January 2005
#
#
# bash
-- COMPROBAMOS SI SE VE EL DISCO NUEVO –
bash-3.2# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <ATA
-VBOX HARDDISK -1.0 cyl 8351 alt 2 hd 255 sec
63>
/pci@0,0/pci8086,2829@d/disk@0,0
1. c0t2d0 <ATA
-VBOX HARDDISK -1.0 cyl 2085 alt 2 hd 255 sec
63>
/pci@0,0/pci8086,2829@d/disk@2,0
Specify disk (enter its number): ^D
-- COMO NO SE VE EL DISCO EJECUTAMOS devfsamd –c disk PARA BUSCARLO Y
COMPROBAMOS DE NUEVO –
bash-3.2# devfsadm -c disk
bash-3.2# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <ATA
-VBOX HARDDISK -1.0 cyl 8351 alt 2 hd 255 sec
63>
/pci@0,0/pci8086,2829@d/disk@0,0
1. c0t2d0 <ATA
-VBOX HARDDISK -1.0 cyl 2085 alt 2 hd 255 sec
63>
/pci@0,0/pci8086,2829@d/disk@2,0
2. c0t3d0 <ATA
-VBOX HARDDISK -1.0 cyl 2086 alt 2 hd 255 sec
63>
/pci@0,0/pci8086,2829@d/disk@3,0
Specify disk (enter its number): ^D
-- EL DISCO NO VIENE CON ETIQUETA, AUN ASI PROBAMOS A INTENTAR RECUPERAR
LA VTOC. NO NOS DA ERROR PERO HABRA QUE ETIQUETARLO Y BORRARA LO
RECUPERADO –
bash-3.2# fmthard -s c0t2d0s2.vtoc.8particiones /dev/rdsk/c0t3d0s2
fmthard: Partition 0 overlaps partition 8. Overlap is allowed
only on partition on the full disk partition).
fmthard: Partition 2 specifies the full disk and is not equal
full size of disk. The full disk capacity is 33511590 sectors.
fmthard: Partition 8 overlaps partition 0. Overlap is allowed
only on partition on the full disk partition).
fmthard: New volume table of contents now in place.
-- VEMOS LA VTOC Y PARECE SER LA CORRECTA PERO NO TENEMOS EL DISCO
ETIQUETADO COMO SMI Y NO SE VERA UNA PARTICION SOLARIS CON FORMAT -bash-3.2# prtvtoc /dev/rdsk/c0t3d0s2
* /dev/rdsk/c0t3d0s2 partition map
*
* Dimensions:
*
512 bytes/sector
*
63 sectors/track
*
255 tracks/cylinder
*
16065 sectors/cylinder
*
2088 cylinders
*
2086 accessible cylinders
*
* Flags:
*
1: unmountable
* 10: read-only
*
*
First
Sector
* Partition Tag Flags
Sector
Count
0
1
00
0
2104515
1
3
01
2104515
6297480
2
5
01
0 33495525
3
2
00
8401995
8401995
4
8
00
16803990
2104515
5
4
00
18908505
4209030
6
7
00
23117535 10377990
8
1
01
0
16065
Last
Sector
2104514
8401994
33495524
16803989
18908504
23117534
33495524
16064
Mount Directory
-- ETIQUETAMOS EL DISCO COMO SMI CON FDISK Y UNA PARTICION SOLARIS QUE
OCUPA EL 100% DEL DISCO DE IGUAL MANERA QUE ESTA EL DISCO c0t2d0 -bash-3.2# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <ATA
-VBOX HARDDISK -1.0 cyl 8351 alt 2 hd 255 sec
63>
/pci@0,0/pci8086,2829@d/disk@0,0
1. c0t2d0 <ATA
-VBOX HARDDISK -1.0 cyl 2085 alt 2 hd 255 sec
63>
/pci@0,0/pci8086,2829@d/disk@2,0
2. c0t3d0 <ATA
-VBOX HARDDISK -1.0 cyl 2086 alt 2 hd 255 sec
63>
/pci@0,0/pci8086,2829@d/disk@3,0
Specify disk (enter its number): 2
selecting c0t3d0
[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
fdisk
- run the fdisk program
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> p
WARNING - This disk may be in use by an application that has
modified the fdisk table. Ensure that this disk is
not currently in use before proceeding to use fdisk.
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,
partition table.
Y
-- ETIQUETAMOS EL DISCO COMO SMI -format> p
PARTITION MENU:
otherwise type "n" to edit the
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> p
Current partition table (original):
Total disk cylinders available: 2085 + 2 (reserved cylinders)
Part
Tag
0 unassigned
1 unassigned
2
backup
3 unassigned
4 unassigned
5 unassigned
6 unassigned
7 unassigned
8
boot
9 unassigned
Flag
wm
wm
wu
wm
wm
wm
wm
wm
wu
wm
Cylinders
0
0
0 - 2084
0
0
0
0
0
0 0
0
Size
0
0
15.97GB
0
0
0
0
0
7.84MB
0
Blocks
(0/0/0)
0
(0/0/0)
0
(2085/0/0) 33495525
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(1/0/0)
16065
(0/0/0)
0
partition> q
FORMAT MENU:
disk
type
partition
current
format
fdisk
repair
label
analyze
defect
backup
verify
save
inquiry
volname
!<cmd>
quit
format> q
-
select a disk
select (define) a disk type
select (define) a partition table
describe the current disk
format and analyze the disk
run the fdisk program
repair a defective sector
write label to the disk
surface analysis
defect list management
search for backup labels
read and display labels
save new disk/partition definitions
show vendor, product and revision
set 8-character volume name
execute <cmd>, then return
-- VEMOS LA VTOC EXITENTE -bash-3.2# prtvtoc /dev/rdsk/c0t3d0s2
* /dev/rdsk/c0t3d0s2 partition map
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
Dimensions:
512 bytes/sector
63 sectors/track
255 tracks/cylinder
16065 sectors/cylinder
2087 cylinders
2085 accessible cylinders
Flags:
1: unmountable
10: read-only
Unallocated space:
First
Sector
Last
Sector
Count
Sector
16065 33479460 33495524
Partition
2
8
Tag
5
1
Flags
01
01
First
Sector
Last
Sector
Count
Sector
0 33495525 33495524
0
16065
16064
Mount Directory
-- RECUPERAMOS LA VTOC GUARDADA DEL DISCO c0t2d0s2 EN EL DISCO NUEVO -bash-3.2# fmthard -s c0t2d0s2.vtoc.8particiones /dev/rdsk/c0t3d0s2
fmthard: Partition 0 overlaps partition 8. Overlap is allowed
only on partition on the full disk partition).
fmthard: Partition 8 overlaps partition 0. Overlap is allowed
only on partition on the full disk partition).
fmthard: New volume table of contents now in place.
-- COMPROBAMOS CON FORMAT LAS PARTICIONES PARA VER QUE HA FUNCIONADO LA
IMPORTACION CON fmthard -bash-3.2# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <ATA
-VBOX HARDDISK -1.0 cyl 8351 alt 2 hd 255 sec
63>
/pci@0,0/pci8086,2829@d/disk@0,0
1. c0t2d0 <ATA
-VBOX HARDDISK -1.0 cyl 2085 alt 2 hd 255 sec
63>
/pci@0,0/pci8086,2829@d/disk@2,0
2. c0t3d0 <ATA
-VBOX HARDDISK -1.0 cyl 2085 alt 2 hd 255 sec
63>
/pci@0,0/pci8086,2829@d/disk@3,0
Specify disk (enter its number): 2
selecting c0t3d0
[disk formatted]
FORMAT MENU:
disk
- select a disk
type
partition
current
format
fdisk
repair
label
analyze
defect
backup
verify
save
inquiry
volname
!<cmd>
quit
format> p
-
select (define) a disk type
select (define) a partition table
describe the current disk
format and analyze the disk
run the fdisk program
repair a defective sector
write label to the disk
surface analysis
defect list management
search for backup labels
read and display labels
save new disk/partition definitions
show vendor, product and revision
set 8-character volume name
execute <cmd>, then return
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> p
Current partition table (original):
Total disk cylinders available: 2085 + 2 (reserved cylinders)
Part
Tag
0
boot
1
swap
2
backup
3
root
4
home
5
usr
6
var
7 unassigned
8
boot
9 unassigned
Flag
wm
wu
wu
wm
wm
wm
wm
wu
wu
wu
Cylinders
0 - 130
131 - 522
0 - 2084
523 - 1045
1046 - 1176
1177 - 1438
1439 - 2084
0
0 0
0
Size
1.00GB
3.00GB
15.97GB
4.01GB
1.00GB
2.01GB
4.95GB
0
7.84MB
0
Blocks
(131/0/0)
2104515
(392/0/0)
6297480
(2085/0/0) 33495525
(523/0/0)
8401995
(131/0/0)
2104515
(262/0/0)
4209030
(646/0/0) 10377990
(0/0/0)
0
(1/0/0)
16065
(0/0/0)
0
partition> q
FORMAT MENU:
disk
type
partition
- select a disk
- select (define) a disk type
- select (define) a partition table
current
format
fdisk
repair
label
analyze
defect
backup
verify
save
inquiry
volname
!<cmd>
quit
format> q
-
describe the current disk
format and analyze the disk
run the fdisk program
repair a defective sector
write label to the disk
surface analysis
defect list management
search for backup labels
read and display labels
save new disk/partition definitions
show vendor, product and revision
set 8-character volume name
execute <cmd>, then return
Descargar