Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I'm trying to kickstart a 6.3 server, however I am getting an error: The following problem occurred on line 38 of the kickstart file: Specified nonexistent partition sda1 in ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2012
    Posts
    5

    RHEL6 - Kickstart problem


    Hi,

    I'm trying to kickstart a 6.3 server, however I am getting an error:
    The following problem occurred on line 38 of the kickstart file:

    Specified nonexistent partition sda1 in partition command.

    ------
    My kickstart file (the bit with disk structure) is:
    # Disk partitioning information
    part /boot --asprimary --fstype="ext4" --onpart sda1
    part pv.02 --size=10 --grow --onpart=sda2
    part pv.03 --size=10 --grow --ondisk=sdb
    volgroup vg00 pv.02
    volgroup vg01 pv.03
    logvol / --fstype="ext4" --vgname=vg00 --size=8192 --name=lv_root
    logvol swap --fstype="swap" --vgname=vg00 --size=4096 --name=lv_swap
    logvol /var --fstype="ext4" --vgname=vg00 --size=4096 --name=lv_var
    logvol /home --fstype="ext4" --vgname=vg00 --size=2048 --name=lv_home
    logvol /repository --fstype="ext4" --grow --vgname=vg01 --size=0 --name=lv_repos
    #
    %pre
    dd if=/dev/zero of=/dev/sda bs=512 count=1
    parted -s /dev/sda mklabel msdos
    parted -s /dev/sda mkpart primary ext4 0 250
    parted -s /dev/sda mkpart primary 250 100%
    parted -s /dev/sda set 2 lvm on


    Why do I get this error?

    After the error I can boot the server of the DVD into rescue mode and I have the following - fdisk -l:

    Disk /dev/sda: 21.5 GB, 21474836480 bytes
    Device Boot Start End Blocks ID System
    /dev/sda1 1 239 244140+ 83 Linux
    /dev/sda2 239 20480 20727379 8e Linux LVM

    So it LOOKS like it's creating the partitions correctly.
    So why does the 'part' command error? I thought I confirmed the syntax was correct.......

    Thank you in advance.
    Craig.

  2. #2
    Linux Engineer
    Join Date
    Apr 2012
    Location
    Virginia, USA
    Posts
    896
    I recommend installing via normal install into a VM or what have you, and then copy partition section from /root/ananconda-ks.cfg

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •