Bug 49356

Summary: sfdisk reload partitions don't work
Product: [Retired] Red Hat Linux Reporter: eric gerbier <eric.gerbier>
Component: util-linuxAssignee: Elliot Lee <sopwith>
Status: CLOSED WONTFIX QA Contact: David Lawrence <dkl>
Severity: high Docs Contact:
Priority: medium    
Version: 7.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-07-19 11:18:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description eric gerbier 2001-07-18 15:12:28 UTC
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:

Comment 1 eric gerbier 2001-07-19 09:39:22 UTC
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 !!!!



Comment 2 eric gerbier 2001-07-19 11:18:51 UTC
this is a translation problem (gettext) :
in french, the first line writed by sfdisk don't begin with a #