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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.