Results 1 to 5 of 5

Thread: SLES 10 SP4 doesn't create Sector aligned partitions

Threaded View

  1. #1

    SLES 10 SP4 doesn't create Sector aligned partitions

    Hi Experts & Admins,

    OS Ver: SLES 10 SP4, HW : HP Proliant DL 3xx
    I was trying to create a customized DVD image for SLES 10 SP4 installation using autoyast/autoinst.xml methods. I want to create all my paritions to be sector aligned (starting sector is multiple of 8 or 4K) at the time of installation itself.

    When I use <partitions><size></size></partitions> method to create partitions, it is creating the parition starting from Sector #63, not a multiple of 8 (4K). I guess, this is because of SLES 10 SP4 kernel detected my drive's geometry as 255 Heads/63 Sectors and it creates Cylinder aligned paritions by default. <region_entry> list also not helping to start the parition at specific sector.

    So, I added a small code in pre-script to create aligned partitions using parted as follows. (/dev/cciss/c0d0 is disk device name of HP SmartArray disk)

    <pre-scripts config:type="list">
    <feedback config:type="boolean">true</feedback>
    echo "Running Pre-installation script"

    parted -s /dev/cciss/c0d0 mklabel msdos
    parted -s /dev/cciss/c0d0 mkpart primary 2048s 990m
    parted -s /dev/cciss/c0d0 mkpart primary 2048000s 100%

    partprobe /dev/cciss/c0d0
    fdisk -ul /dev/cciss/c0d0


    When I do like this, the first partition gets created at sector 2048, but second partition gets created with some other starting sector other than 2048000s. According to documentation, the pre-script will be executed before the system doing anything else, and can be used for creating customized paritions like this (ref: ) but it is not working as expected. Sometimes, the partition changes that has been done in pre-script is not getting recognized by the installer GUI; a partprobe / sfdisk -R failing to rescan the device too.

    Is there any ways to instruct the installer create sector aligned paritions or start at specific sector?
    Is that possible to change drive geometry before the installer starts? I tried doing this by "sfdisk -S 32 -H 255" code also in pre-script; but it works at times, sometimes not.

    Thanks in advance,
    Last edited by jiantony; 10-Aug-2013 at 14:54.

Tags for this Thread


Posting Permissions

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