How do I do to fix /dev/sda1 as a boot partition?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 5.4

Issue

  • How do I do to fix /dev/sda1 as a boot partition when installing?

Resolution

In setting partitions on anaconda, you can't do it.
When you see the setting, you can move to CUI console by entering Ctrl+Alt+F2, and do partitioning as you expected by using fdisk command.

1. Change to CUI console by entering Ctrl-Alt+F2 during the following screen.

  - Install Red Hat Enterprise Linux Server
  - Upgrade an existing Installation

2. Set partition with fdisk command

  Example of setting partition for /boot:

  # fdisk /dev/sda

  command (m for help): p  <- confirm partition information

  Disk /dev/sda: 4294 MB, 4294967296 bytes
  255 heads, 63 sectors/track, 522 cylinders
  Units = cylinders of 16065 * 512 = 8225280 bytes

     Device Boot      Start         End      Blocks   Id  System
  /dev/sda1               1         522     4192933+  83  Linux

  command (m for help): d  <- remove the above partition
  Selected partition 1

  command (m for help): p  <- confirm partition information

  Disk /dev/sda: 4294 MB, 4294967296 bytes
  255 heads, 63 sectors/track, 522 cylinders
  Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot      Start         End      Blocks   Id  System

  command (m for help): n  <- create a new partition
  command action
     e   extended
     p   primary partition (1-4)
  p                        <- select primary partition (enter 'p')
  Partition number (1-4): 1  <- configure /dev/sda1
  First cylinder (1-522, default 1):  <- enter 'Enter'
  Using default value 1
  Last cylinder or +size or +sizeM or +sizeK (1-522, default 522): +250M

  command (m for help): p  <- confirm partition information

  Disk /dev/sda: 4294 MB, 4294967296 bytes
  255 heads, 63 sectors/track, 522 cylinders
  Units = cylinders of 16065 * 512 = 8225280 bytes

     Device Boot      Start         End      Blocks   Id  System
  /dev/sda1               1          31      248976   83  Linux

Not need to set a partition type.

3. Go back to anaconda screen with Ctrl + Alt + F6
   Select the below and proceed.

  - Install Red Hat Enterprise Linux Server

4. Select 'Create custom layout'

5. Configure each label, format and type of partition

In addition, after installation, you can't change partition name for / and /boot.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments