Bug 253393

Summary: Formatting a swap partition does not work
Product: [openSUSE] openSUSE 10.2 Reporter: Ulrich Derenthal <uli.2001>
Component: InstallationAssignee: Thomas Fehr <fehr>
Status: RESOLVED DUPLICATE QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: i686   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: My yast logs, as created by save_y2logs.

Description Ulrich Derenthal 2007-03-10 16:17:38 UTC
When I try to format a partition using Yast as swap, it says:

Error during the following operation:
Setting partition for /dev/sda6 type to 82.
System error code: -1012
(This is my own translation from the german text.)

This also happened during initial setup.
Comment 1 Matej Horvath 2007-03-12 13:04:24 UTC
Please attach your yast logs and output of 'fdisk -l'.
Comment 2 Ulrich Derenthal 2007-03-14 08:48:04 UTC
> fdisk -l

Platte /dev/sda: 80.0 GByte, 80026361856 Byte
255 heads, 63 sectors/track, 9729 cylinders
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sda1               1        2612    20972857    7  HPFS/NTFS
/dev/sda2   *        9172        9729     4475520    c  W95 FAT32 (LBA)
Partition 2 endet nicht an einer Zylindergrenze.
/dev/sda3            2612        9172    52699311+   f  W95 Erw. (LBA)
/dev/sda5            2612        3917    10490413+  83  Linux
/dev/sda6            3918        4113     1574338+  82  Linux Swap / Solaris
/dev/sda7            4114        8552    35656236   83  Linux
/dev/sda8            8553        9171     4972086   83  Linux

Partitionstabelleneinträge sind nicht in Platten-Reihenfolge
Comment 3 Ulrich Derenthal 2007-03-14 08:50:30 UTC
Created attachment 124208 [details]
My yast logs, as created by save_y2logs.
Comment 4 Thomas Fehr 2007-03-14 10:25:39 UTC
Problem is fixed for SL 10.3
As a workaroung simply restart YaST2 retry it, the partition type was succesfully
changed but parted reported an error nevertheless.

*** This bug has been marked as a duplicate of bug 231887 ***
Comment 5 Ulrich Derenthal 2007-03-17 15:17:02 UTC
For FAT partitions this is similar, but the workaround does not work:

I try to format it: It complains about not being able to change the partition type. Then I restart Yast: The partition type is changed to FAT. I try to format the partition again: Here, it tries to change the partition type again, and it fails.
Comment 6 Thomas Fehr 2007-03-19 11:40:19 UTC
You are right but nevertheless this is still a duplicate.

*** This bug has been marked as a duplicate of bug 231887 ***