Description of Problem: I follow the man page to save and reload : I save my partitions to a file with sfdisk -d but I can't reload with a sfdisk < my_fic the problem seem with units (it save in sectors, and it want to load cylinders) the -u option don't change anything (does it work ?) How Reproducible: very easy Steps to Reproduce: 1. sfdisk -d /dev/hda > /tmp/toto 2. sfdisk /dev/hda < /tmp/toto 3. Actual Results: Expected Results: Additional Information:
I just made some test, and I found that the program failed on the first line : "N0 table de partition de /dev/hda" The following commands works sfdisk -uS -d /dev/hda > /tmp/hda awk 'NR > 1' /tmp/hda | sfdisk -uS /dev/hda So I have to change my locale to posix (I have LANG=fr_FR ) and it works well with the first line : it's a LANG problem !!!!
this is a translation problem (gettext) : in french, the first line writed by sfdisk don't begin with a #