martes, 25 de septiembre de 2007

Three Headed Dæmon and a Guest

Ok, finalmente me pude sacudir de los href="http://www.mononeurona.org/users/entry/asarch/786">40GB que
me estaban estorbando y como me sobraron discos vírgenes
decidí de una vez por todas respaldar todos mis datos.



Siempre había sido mi sueño tener instalados las tres
versiones principales del BSD (sin orden en específico):
FreeBSD, OpenBSD y el NetBSD. Como dicen por ahí, se
podría mediante la virtualización pero siento que no es
lo mismo.



Además de que tambien quería probar el Solaris que tanto
anda regalando Sun, así que sin más nos pusimos a
calcularle.



División del disco duro




Esta parte es la mas fácil, el disco duro tiene 120,000MB
dividido entre 1024 para saber el tamaño exacto en GB:



120,000MB / 1024 = 117.1875GB




A esta cantidad la dividimos entre 4:



117.1875 / 4 = 29.296875




Ok, cada particion tendrá por lo menos ~29GB para practicar y
probar todo lo que queramos.



Lo que sigue es calcular el tamaño de los disklabels:



style="font-family: Courier New,Courier,monospace;">+---+ - +style="font-family: Courier New,Courier,monospace;">
| X
|   |  13GB: Root [/]
style="font-family: Courier New,Courier,monospace;">
+---+  
+


| Y
|   |   2GB: Swap
style="font-family: Courier New,Courier,monospace;">
+---+ - +style="font-family: Courier New,Courier,monospace;">
| Z
|   |  14GB: Home [/usr/home]
style="font-family: Courier New,Courier,monospace;">
+---+ - +




13GB para la partición root y 2GB para la partición Swap
es muchísimo para cualquier BSD, ellos están
diseñados para trabajar con lo mínimo, sin embargo, ese
espacio es el requerido cuando te toca compilar aplicaciones del
tamaño del OpenOffice.org.



Introducción a los "slices"


En la jerga de los BSD, los slices no son otra cosa mas que las
particiones primarias en GNU/Linux:



style="font-family: Courier New,Courier,monospace;">              
+ - +---+ - +style="font-family: Courier New,Courier,monospace;">
              
|   |XXX|   |
style="font-family: Courier New,Courier,monospace;">
              
|   +---+   |
style="font-family: Courier New,Courier,monospace;">
Particiones   
|   |XXX|   |    Slices
style="font-family: Courier New,Courier,monospace;">
(GNU/Linux)   
|   +---+   |    (BSD)
style="font-family: Courier New,Courier,monospace;">
              
|   |XXX|   |
style="font-family: Courier New,Courier,monospace;">
              
|   +---+   |
style="font-family: Courier New,Courier,monospace;">
              
|   |XXX|   |
style="font-family: Courier New,Courier,monospace;">
              
+ - +---+ - +
style="font-family: Courier New,Courier,monospace;">



En GNU/Linux existen dos tipos de particiones: primarias y extendidas.



Un disco duro en la arquitectura x86 solamente se puede dividir en
cuatro particiones primarias.



style="font-family: Courier New,Courier,monospace;">+---+ - +style="font-family: Courier New,Courier,monospace;">
|XXX|  
|


+---+  
|


|XXX|  
|   Particiones
style="font-family: Courier New,Courier,monospace;">
+---+  
|   Primarias
style="font-family: Courier New,Courier,monospace;">
|XXX|  
|


+---+  
|


|XXX|  
|


+---+ - +style="font-family: Courier New,Courier,monospace;">



Y si tenías la necesidad de crear más particiones, por si
de casualidad te daba por probar todas las distros comunes, entonces
tenías que eliminar una partición primaria y en su lugar
crear una partición extendida:



style="font-family: Courier New,Courier,monospace;">+---+style="font-family: Courier New,Courier,monospace;">
|XXX|style="font-family: Courier New,Courier,monospace;">
+---+style="font-family: Courier New,Courier,monospace;">
|XXX|style="font-family: Courier New,Courier,monospace;">
+---+style="font-family: Courier New,Courier,monospace;">
|XXX|style="font-family: Courier New,Courier,monospace;">
+---+ - +style="font-family: Courier New,Courier,monospace;">
|  
|   |  Partición extendida
style="font-family: Courier New,Courier,monospace;">
+---+ - +




Dentro de esa partición extendida debes de crear las particiones
lógicas para cada una de las distros que quieres probar:



style="font-family: Courier New,Courier,monospace;">+-----+style="font-family: Courier New,Courier,monospace;">
|XXXXX|style="font-family: Courier New,Courier,monospace;">
+-----+style="font-family: Courier New,Courier,monospace;">
|XXXXX|style="font-family: Courier New,Courier,monospace;">
+-----+style="font-family: Courier New,Courier,monospace;">
|XXXXX|style="font-family: Courier New,Courier,monospace;">
+-----+ - +style="font-family: Courier New,Courier,monospace;">
||  
||   |  Slackware
style="font-family: Courier New,Courier,monospace;">
||===|| - +style="font-family: Courier New,Courier,monospace;">
||  
||   |  Fedora Core
style="font-family: Courier New,Courier,monospace;">
||===|| - +style="font-family: Courier New,Courier,monospace;">
||  
||   |  Debian
style="font-family: Courier New,Courier,monospace;">
||===|| - +style="font-family: Courier New,Courier,monospace;">
||  
||   |  OpenSuse
style="font-family: Courier New,Courier,monospace;">
||===|| - +style="font-family: Courier New,Courier,monospace;">
||  
||   |  Ubuntu
style="font-family: Courier New,Courier,monospace;">
||===|| - +style="font-family: Courier New,Courier,monospace;">
||  
||   |  Mandriva
style="font-family: Courier New,Courier,monospace;">
||===|| - +style="font-family: Courier New,Courier,monospace;">
||  
||   |  Xandros
style="font-family: Courier New,Courier,monospace;">
||===|| - +style="font-family: Courier New,Courier,monospace;">
||  
||   |  Gentoo
style="font-family: Courier New,Courier,monospace;">
||===|| - +style="font-family: Courier New,Courier,monospace;">
||  
||   |  CentOS
style="font-family: Courier New,Courier,monospace;">
+-----+ - +




En BSD las particiones primarias se llaman slices y las style="font-style: italic;">"particiones" dentro de los slices
se les llama ¡particiones!



style="font-family: Courier New,Courier,monospace;">+---+ - +
-------------------------- +style="font-family: Courier New,Courier,monospace;">
|  
|   | Particion 0: Root [/]     
|  
style="font-family: Courier New,Courier,monospace;">
|===|  
|
                          
|   BSD slice
style="font-family: Courier New,Courier,monospace;">
|  
|   | Particion 1: Swap [swap]   |  
(Partición primaria
style="font-family: Courier New,Courier,monospace;">
|===|  
|
                          
|   de GNU/Linux).
style="font-family: Courier New,Courier,monospace;">
|  
|   | Particion 2: Home [/home]  |
style="font-family: Courier New,Courier,monospace;">
+---+ - +
-------------------------- +
style="font-family: Courier New,Courier,monospace;">style="font-family: Courier New,Courier,monospace;">
|XXX|  
|


+---+ - +style="font-family: Courier New,Courier,monospace;">
|XXX|  
|


+---+ - +style="font-family: Courier New,Courier,monospace;">
|XXX|  
|


+---+ - +style="font-family: Courier New,Courier,monospace;">style="font-family: Courier New,Courier,monospace;">



Las particiones de BSD se crean con el commando diskslice y
desafortunadamente (o afortunadamente) los BSD solamente se pueden
instalar sobre particiones primarias de GNU/Linux tal como lo hace
Windows.



Para más información consulta los siguientes documentos:


  • Para las particiones de Linux:


href="http://www.tldp.org/HOWTO/Large-Disk-HOWTO.html" target="_top">Large-Disk-HOWTO,
Large Disk HOWTO


href="http://www.tldp.org/HOWTO/Multi-Disk-HOWTO.html" target="_top">Multi-Disk-HOWTO,
HOWTO: Multi Disk System Tuning


href="http://www.tldp.org/HOWTO/Partition/index.html" target="_top">Partition,
Linux Partition HOWTO


href="http://www.tldp.org/HOWTO/Partition-Rescue/index.html"
target="_top">Partition-Rescue,
Partition Rescue mini HOWTO



  • Para los slices de BSD:



href="http://www.netbsd.org/docs/guide/en/">The NetBSD Guide, Part
II System installation and related issues, chapter 2 Installation,
section 2.3 Installation, subsection 2.3.3 href="http://www.netbsd.org/docs/guide/en/chap-inst.html#chap-inst-install-partition">Partitions.




División lógica del disco duro




Para crear los slices usé el fdisk del disco de rescate del href="http://fedoraproject.org/">Fedora Core 7 "Moonshine":



style="font-family: Courier New,Courier,monospace;">[#] fdisk /dev/sdastyle="font-family: Courier New,Courier,monospace;">


The number of
cylinders for this disk is set to 14593.
style="font-family: Courier New,Courier,monospace;">
There is
nothing wrong with that, but this is larger than 1024,
style="font-family: Courier New,Courier,monospace;">
and could in
certain setups cause problems with:
style="font-family: Courier New,Courier,monospace;">
1) software
that runs at boot time (e.g., old versions of LILO)
style="font-family: Courier New,Courier,monospace;">
2) booting
and partitioning software from other OSs
style="font-family: Courier New,Courier,monospace;">
  
(e.g., DOS FDISK, OS/2 FDISK)
style="font-family: Courier New,Courier,monospace;">


Command (m
for help): p
style="font-family: Courier New,Courier,monospace;">


Disk
/dev/sda: 120.0 GB, 120034123776 bytes
style="font-family: Courier New,Courier,monospace;">
255 heads, 63
sectors/track, style="font-weight: bold; text-decoration: underline;">14593 cylinders
style="font-family: Courier New,Courier,monospace;">
Units =
cylinders of 16065 * 512 = 8225280 bytes
style="font-family: Courier New,Courier,monospace;">


  
Device Boot     
Start        
End      Blocks   Id  System
style="font-family: Courier New,Courier,monospace;">



No tenemos aún ningún slice definido, así que
vamos a calcularle de nuevo:



Son 14593 cilindros, divididos entre 4:



14593 / 4 = 3648.25




Arrimamos los 0.25 hacía un sólo slice y
tendríamos la siguiente configuración:



3648

3648

3648

3649




Ahora, le restamos un 1 a cada slice:



3648 - 1 = 3647

3648 - 1 = 3647

3648 - 1 = 3647

3649 - 1 = 3648




Y ese es el tamaño que vamos a ocupar para indicarle al fdisk.



Creando los slices




Vamos a crear el slice para el Solaris, vamos a ocupar el 3648:



style="font-family: Courier New,Courier,monospace;">Disk /dev/sda:
120.0 GB, 120034123776 bytesstyle="font-family: Courier New,Courier,monospace;">
255 heads, 63
sectors/track, 14593 cylinders
style="font-family: Courier New,Courier,monospace;">
Units =
cylinders of 16065 * 512 = 8225280 bytes
style="font-family: Courier New,Courier,monospace;">


  
Device Boot     
Start        
End      Blocks   Id  System
style="font-family: Courier New,Courier,monospace;">


Command (m
for help): n
style="font-family: Courier New,Courier,monospace;">
Command actionstyle="font-family: Courier New,Courier,monospace;">
  
e   extended
style="font-family: Courier New,Courier,monospace;">
  
p   primary partition (1-4)
style="font-family: Courier New,Courier,monospace;">
pstyle="font-family: Courier New,Courier,monospace;">
Partition
number (1-4): 1
style="font-family: Courier New,Courier,monospace;">
First
cylinder (1-14593, default 1):
style="font-family: Courier New,Courier,monospace;">
Using default
value 1


Last cylinder
or +size or +sizeM or +sizeK (1-14593, default 14593): style="color: blue; font-weight: bold;">+
3648style="font-family: Courier New,Courier,monospace;">



Checamos si no se traslapa:



style="font-family: Courier New,Courier,monospace;">Command (m for
help): p



Disk
/dev/sda: 120.0 GB, 120034123776 bytes
style="font-family: Courier New,Courier,monospace;">
255 heads, 63
sectors/track, 14593 cylinders
style="font-family: Courier New,Courier,monospace;">
Units =
cylinders of 16065 * 512 = 8225280 bytes
style="font-family: Courier New,Courier,monospace;">


  
Device Boot     
Start        
End      Blocks   Id  System
style="font-family: Courier New,Courier,monospace;">
/dev/sda1              
1        3649   
29310561   83  Linux
style="font-family: Courier New,Courier,monospace;">



Debes de tener cuidado de agregar el simbolo style="font-weight: bold; color: blue;">+ antes del style="font-style: italic;">3648 ya que si no lo haces:



style="font-family: Courier New,Courier,monospace;">Command (m for
help): n

Command actionstyle="font-family: Courier New,Courier,monospace;">
  
e   extended
style="font-family: Courier New,Courier,monospace;">
  
p   primary partition (1-4)
style="font-family: Courier New,Courier,monospace;">
pstyle="font-family: Courier New,Courier,monospace;">
Partition
number (1-4): 1
style="font-family: Courier New,Courier,monospace;">
First
cylinder (1-14593, default 1):
style="font-family: Courier New,Courier,monospace;">
Using default
value 1


Last cylinder
or +size or +sizeM or +sizeK (1-14593, default 14593): 3648
style="font-family: Courier New,Courier,monospace;">


Command (m
for help): p
style="font-family: Courier New,Courier,monospace;">


Disk
/dev/sda: 120.0 GB, 120034123776 bytes
style="font-family: Courier New,Courier,monospace;">
255 heads, 63
sectors/track, 14593 cylinders
style="font-family: Courier New,Courier,monospace;">
Units =
cylinders of 16065 * 512 = 8225280 bytes
style="font-family: Courier New,Courier,monospace;">


  
Device Boot     
Start        
End      Blocks   Id  System
style="font-family: Courier New,Courier,monospace;">
/dev/sda1              
1        3648   
29302528+ 
83  Linux
style="font-family: Courier New,Courier,monospace;">



Se crea un tamaño diferente y además de que se traslapa
la partición, el símbolo style="font-weight: bold; color: red;">+ despues del
número debajo de la columna "Blocks"
indica eso y a los señores de BSD y Solaris no tan le gusta esto
(el programa de instalación muestra un mensaje de advertencia).



Ahora vamos a crear el slice para FreeBSD (3647 cilindros):



style="font-family: Courier New,Courier,monospace;">Command (m for
help): n

Command actionstyle="font-family: Courier New,Courier,monospace;">
  
e   extended
style="font-family: Courier New,Courier,monospace;">
  
p   primary partition (1-4)
style="font-family: Courier New,Courier,monospace;">
pstyle="font-family: Courier New,Courier,monospace;">
Partition
number (1-4): 2
style="font-family: Courier New,Courier,monospace;">
First
cylinder (3650-14593, default 3650):
style="font-family: Courier New,Courier,monospace;">
Using default
value 3650


Last cylinder
or +size or +sizeM or +sizeK (3650-14593, default 14593): +3647
style="font-family: Courier New,Courier,monospace;">



Checamos si no se traslapa:



style="font-family: Courier New,Courier,monospace;">Command (m for
help): p



Disk
/dev/sda: 120.0 GB, 120034123776 bytes
style="font-family: Courier New,Courier,monospace;">
255 heads, 63
sectors/track, 14593 cylinders
style="font-family: Courier New,Courier,monospace;">
Units =
cylinders of 16065 * 512 = 8225280 bytes
style="font-family: Courier New,Courier,monospace;">


  
Device Boot     
Start        
End      Blocks   Id  System
style="font-family: Courier New,Courier,monospace;">
/dev/sda1              
1        3649   
29310561   83  Linux
style="font-family: Courier New,Courier,monospace;">
/dev/sda2           
3650        7297   
29302560   83  Linux
style="font-family: Courier New,Courier,monospace;">



El slice para el OpenBSD (3647 cilindros):



style="font-family: Courier New,Courier,monospace;">Command (m for
help): n

Command actionstyle="font-family: Courier New,Courier,monospace;">
  
e   extended
style="font-family: Courier New,Courier,monospace;">
  
p   primary partition (1-4)
style="font-family: Courier New,Courier,monospace;">
pstyle="font-family: Courier New,Courier,monospace;">
Partition
number (1-4): 3
style="font-family: Courier New,Courier,monospace;">
First
cylinder (7298-14593, default 7298):
style="font-family: Courier New,Courier,monospace;">
Using default
value 7298


Last cylinder
or +size or +sizeM or +sizeK (7298-14593, default 14593): +3647
style="font-family: Courier New,Courier,monospace;">



Checamos de nuevo si no se traslapa:



style="font-family: Courier New,Courier,monospace;">Command (m for
help): p



Disk
/dev/sda: 120.0 GB, 120034123776 bytes
style="font-family: Courier New,Courier,monospace;">
255 heads, 63
sectors/track, 14593 cylinders
style="font-family: Courier New,Courier,monospace;">
Units =
cylinders of 16065 * 512 = 8225280 bytes
style="font-family: Courier New,Courier,monospace;">


  
Device Boot     
Start        
End      Blocks   Id  System
style="font-family: Courier New,Courier,monospace;">
/dev/sda1              
1        3649   
29310561   83  Linux
style="font-family: Courier New,Courier,monospace;">
/dev/sda2           
3650        7297   
29302560   83  Linux
style="font-family: Courier New,Courier,monospace;">
/dev/sda3           
7298       10945   
29302560   83  Linux
style="font-family: Courier New,Courier,monospace;">



Y por último, el slice de NetBSD (los últimos 3647
cilindros):



style="font-family: Courier New,Courier,monospace;">Command (m for
help): n

Command actionstyle="font-family: Courier New,Courier,monospace;">
  
e   extended
style="font-family: Courier New,Courier,monospace;">
  
p   primary partition (1-4)
style="font-family: Courier New,Courier,monospace;">
pstyle="font-family: Courier New,Courier,monospace;">
Selected
partition 4
style="font-family: Courier New,Courier,monospace;">
First
cylinder (10946-14593, default 10946):
style="font-family: Courier New,Courier,monospace;">
Using default
value 10946
style="font-family: Courier New,Courier,monospace;">
Last cylinder
or +size or +sizeM or +sizeK (10946-14593, default 14593):
style="font-family: Courier New,Courier,monospace;">
Using default
value 14593





Aqui si no hubo necesidad de teclear el valor ya que le indicamos a
fdisk que ocupe todo el espacio restante para ese nuevo slice.



Y verificamos de nuevo:



style="font-family: Courier New,Courier,monospace;">Command (m for
help): p



Disk
/dev/sda: 120.0 GB, 120034123776 bytes
style="font-family: Courier New,Courier,monospace;">
255 heads, 63
sectors/track, 14593 cylinders
style="font-family: Courier New,Courier,monospace;">
Units =
cylinders of 16065 * 512 = 8225280 bytes
style="font-family: Courier New,Courier,monospace;">


  
Device Boot     
Start        
End      Blocks   Id  System
style="font-family: Courier New,Courier,monospace;">
/dev/sda1              
1        3649   
29310561   83  Linux
style="font-family: Courier New,Courier,monospace;">
/dev/sda2           
3650        7297   
29302560   83  Linux
style="font-family: Courier New,Courier,monospace;">
/dev/sda3           
7298       10945   
29302560   83  Linux
style="font-family: Courier New,Courier,monospace;">
/dev/sda4          
10946       14593   
29302560   83  Linux
style="font-family: Courier New,Courier,monospace;">



Y vemos con gusto que los cuatro slices pueden style="font-style: italic;">"convivir" sin problemas en el
disco duro.



Rectificamos que todo haya salido como lo esperabamos:



cellpadding="2" cellspacing="2">


























3649 - 1= 3648Solaris.
7297- 3650 = 3647FreeBSD.
10945- 7298= 3746OpenBSD.
14593- 10946= 3746NetBSD.



Cambiando el tipo de sistema a los slices




El fdisk de GNU/Linux crea por default slices con el tipo de sistema 83
(Linux).



Vamos a cambiárselos para corregirlos:



Primero para el Solaris:



style="font-family: Courier New,Courier,monospace;">Command (m for
help): t

Partition
number (1-4): 1
style="font-family: Courier New,Courier,monospace;">
style="font-family: Courier New,Courier,monospace;">Hex code (type L
to list codes): bfstyle="font-family: Courier New,Courier,monospace;">
Changed
system type of partition 1 to bf (Solaris)
style="font-family: Courier New,Courier,monospace;">



Ahora para el FreeBSD:



style="font-family: Courier New,Courier,monospace;">Command (m for
help): t

Partition
number (1-4): 2
style="font-family: Courier New,Courier,monospace;">
Hex code
(type L to list codes): a5
style="font-family: Courier New,Courier,monospace;">
Changed
system type of partition 2 to a5 (FreeBSD)
style="font-family: Courier New,Courier,monospace;">



El OpenBSD:



style="font-family: Courier New,Courier,monospace;">Command (m for
help): t

Partition
number (1-4): 3
style="font-family: Courier New,Courier,monospace;">
Hex code
(type L to list codes): a6
style="font-family: Courier New,Courier,monospace;">
Changed
system type of partition 3 to a6 (OpenBSD)





Y por último el NetBSD:



style="font-family: Courier New,Courier,monospace;">Command (m for
help): t

Partition
number (1-4): 4
style="font-family: Courier New,Courier,monospace;">
Hex code
(type L to list codes): a9
style="font-family: Courier New,Courier,monospace;">
Changed
system type of partition 4 to a9 (NetBSD)





Y checamos:



style="font-family: Courier New,Courier,monospace;">Command (m for
help): p



Disk
/dev/sda: 120.0 GB, 120034123776 bytes
style="font-family: Courier New,Courier,monospace;">
255 heads, 63
sectors/track, 14593 cylinders
style="font-family: Courier New,Courier,monospace;">
Units =
cylinders of 16065 * 512 = 8225280 bytes
style="font-family: Courier New,Courier,monospace;">


  
Device Boot     
Start        
End      Blocks   Id  System
style="font-family: Courier New,Courier,monospace;">
/dev/sda1              
1        3649   
29310561   bf  Solaris
style="font-family: Courier New,Courier,monospace;">
/dev/sda2           
3650        7297   
29302560   a5  FreeBSD
style="font-family: Courier New,Courier,monospace;">
/dev/sda3           
7298       10945   
29302560   a6  OpenBSD
style="font-family: Courier New,Courier,monospace;">
/dev/sda4          
10946       14593   
29302560   a9  NetBSD





Si deseas obtener la lista de los sistemas disponibles, teclea style="font-style: italic;">'L' cuando el tipo de sistema.



Por ejemplo, para conocer el número de sistema para el Solaris:



style="font-family: Courier New,Courier,monospace;">Command (m for
help): t

Partition
number (1-4): 1
style="font-family: Courier New,Courier,monospace;">
Hex code
(type L to list codes): L
style="font-family: Courier New,Courier,monospace;">


 0 
Empty          
1e  Hidden W95 FAT1 80  Old
Minix       be  Solaris
boot  
style="font-family: Courier New,Courier,monospace;">
 1 
FAT12          
24  NEC DOS        
81  Minix / old Lin bf 
Solaris       
style="font-family: Courier New,Courier,monospace;">
 2 
XENIX root      39  Plan
9          82  Linux
swap / So c1  DRDOS/sec (FAT-
style="font-family: Courier New,Courier,monospace;">
 3 
XENIX usr       3c 
PartitionMagic  83 
Linux          
c4  DRDOS/sec (FAT-
style="font-family: Courier New,Courier,monospace;">
 4 
FAT16 <32M      40  Venix
80286     84  OS/2 hidden C:  c6 
DRDOS/sec (FAT-
style="font-family: Courier New,Courier,monospace;">
 5 
Extended        41  PPC PReP
Boot   85  Linux extended  c7 
Syrinx        
style="font-family: Courier New,Courier,monospace;">
 6 
FAT16          
42 
SFS            
86  NTFS volume set da  Non-FS data   
style="font-family: Courier New,Courier,monospace;">
 7 
HPFS/NTFS       4d 
QNX4.x          87 
NTFS volume set db  CP/M / CTOS / .
style="font-family: Courier New,Courier,monospace;">
 8 
AIX            
4e  QNX4.x 2nd part 88  Linux plaintext de  Dell
Utility  
style="font-family: Courier New,Courier,monospace;">
 9 
AIX bootable    4f  QNX4.x 3rd part 8e  Linux
LVM       df 
BootIt        
style="font-family: Courier New,Courier,monospace;">
 a 
OS/2 Boot Manag 50  OnTrack DM     
93  Amoeba         
e1  DOS access    
style="font-family: Courier New,Courier,monospace;">
 b 
W95 FAT32       51  OnTrack DM6 Aux
94  Amoeba BBT      e3  DOS
R/O       
style="font-family: Courier New,Courier,monospace;">
 c 
W95 FAT32 (LBA) 52 
CP/M           
9f  BSD/OS         
e4  SpeedStor     
style="font-family: Courier New,Courier,monospace;">
 e 
W95 FAT16 (LBA) 53  OnTrack DM6 Aux a0  IBM Thinkpad hi
eb  BeOS fs       
style="font-family: Courier New,Courier,monospace;">
 f 
W95 Ext'd (LBA) 54  OnTrackDM6     
a5  FreeBSD        
ee  EFI GPT       
style="font-family: Courier New,Courier,monospace;">
10 
OPUS           
55  EZ-Drive        a6 
OpenBSD         ef  EFI
(FAT-12/16/
style="font-family: Courier New,Courier,monospace;">
11 
Hidden FAT12    56  Golden
Bow      a7 
NeXTSTEP        f0 
Linux/PA-RISC b
style="font-family: Courier New,Courier,monospace;">
12 
Compaq diagnost 5c  Priam Edisk     a8 
Darwin UFS      f1 
SpeedStor     
style="font-family: Courier New,Courier,monospace;">
14 
Hidden FAT16 <3 61 
SpeedStor       a9 
NetBSD          f4 
SpeedStor     
style="font-family: Courier New,Courier,monospace;">
16 
Hidden FAT16    63  GNU HURD or Sys ab  Darwin
boot     f2  DOS secondary 
style="font-family: Courier New,Courier,monospace;">
17 
Hidden HPFS/NTF 64  Novell Netware  b7  BSDI
fs         fd  Linux raid
auto


18  AST
SmartSleep  65  Novell Netware  b8  BSDI
swap       fe 
LANstep       
style="font-family: Courier New,Courier,monospace;">
1b 
Hidden W95 FAT3 70  DiskSecure Mult bb  Boot Wizard hid
ff 
BBT           
style="font-family: Courier New,Courier,monospace;">
1c 
Hidden W95 FAT3 75 
PC/IX         
style="font-family: Courier New,Courier,monospace;">
Hex code
(type L to list codes): bf
style="font-family: Courier New,Courier,monospace;">
Changed
system type of partition 1 to bf (Solaris)





Guardando los cambios


Si algo falla podemos empezar de nuevo las veces que sea necesario
*ANTES* de escribir los
cambios, fdisk no toca el disco duro hasta que
no le des el comando 'w':



style="font-family: Courier New,Courier,monospace;">Command (m for
help): w




Puedes incluso "jugar" con el
fdisk con el sistema actual que
estás usando pero sinceramente no te lo recomiendo ya que puedes
eliminar la partición "horny"
y ni Dios lo quiera.



Si llegase a pasar, apaga inmediatamente la máquina, imprime
este
documeto "href="http://www.tldp.org/HOWTO/Partition-Rescue/index.html"
target="_top">Partition-Rescue,
Partition Rescue mini HOWTO" y mucha suerte
recuperando tu partición.



Y listo.



¿Y tu, cómo particionas tu disco duro?