Getting errors when running sfdisk to create partitions using sectors

Solution Unverified - Updated -

Issue

  • As part of the SAN provisioning, we create partitions using sfdisk using the units of 'sectors'. for large disks (19GB), the script works fine. For smaller disks (5.6GB), it fails and reports discrepancies between the C/H/S geometry.
[root@hostname ~]# for L in $( < l.txt ); do  echo "1,,L" | sfdisk -L -uS /dev/mapper/$L; done

Environment

  • Red Hat Enterprise Linux 6.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content