Este contenido no está disponible en el idioma seleccionado.

13.4. Resizing a Partition


Warning

Do not attempt to resize a partition on a device that is in use.

Procedure 13.4. Resize a partition

  1. Before resizing a partition, boot into rescue mode (or unmount any partitions on the device and turn off any swap space on the device).
  2. Start parted, where /dev/sda is the device on which to resize the partition:
    # parted /dev/sda
  3. View the current partition table to determine the minor number of the partition to resize as well as the start and end points for the partition:
    # print
  4. To resize the partition, use the resize command followed by the minor number for the partition, the starting place in megabytes, and the end place in megabytes.

    Example 13.2. Resize a partition

    For example:
    resize 3 1024 2048

    Warning

    A partition cannot be made larger than the space available on the device
  5. After resizing the partition, use the print command to confirm that the partition has been resized correctly, is the correct partition type, and is the correct file system type.
  6. After rebooting the system into normal mode, use the command df to make sure the partition was mounted and is recognized with the new size.
Red Hat logoGithubRedditYoutubeTwitter

Aprender

Pruebe, compre y venda

Comunidades

Acerca de la documentación de Red Hat

Ayudamos a los usuarios de Red Hat a innovar y alcanzar sus objetivos con nuestros productos y servicios con contenido en el que pueden confiar. Explore nuestras recientes actualizaciones.

Hacer que el código abierto sea más inclusivo

Red Hat se compromete a reemplazar el lenguaje problemático en nuestro código, documentación y propiedades web. Para más detalles, consulte el Blog de Red Hat.

Acerca de Red Hat

Ofrecemos soluciones reforzadas que facilitan a las empresas trabajar en plataformas y entornos, desde el centro de datos central hasta el perímetro de la red.

© 2024 Red Hat, Inc.