Bug 2791

Summary: Lost all the partition layout edited when try to use "rescan disk"
Product: Mageia Reporter: yu zhang <pswzyu>
Component: RPM PackagesAssignee: Pascal Terjan <pterjan>
Status: RESOLVED DUPLICATE QA Contact:
Severity: major    
Priority: Normal CC: fri, mageia, marja11, thierry.vignaud, zen25000
Version: CauldronKeywords: NEEDINFO
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: drakx-installer-stage2 CVE:
Status comment:
Attachments: screen shot of the problem

Description yu zhang 2011-09-20 15:08:59 CEST
Description of problem:
Lost all the partition layout edited when try to use "rescan disk"

Version-Release number of selected component (if applicable):


How reproducible:
everytime

Steps to Reproduce:
1.select "rescan disk" in "advance" in the step of disk editting 
2.the layout you had made would lost
Comment 1 Manuel Hiebel 2011-09-21 11:21:53 CEST
Can you *attach* the file: /root/drakx/report.bug.gz ?
Comment 2 yu zhang 2011-09-23 14:07:14 CEST
Hello!
Its my pleasure to do something for Megeia.


How can I get the file when Im in setup scene?
Comment 3 yu zhang 2011-09-23 14:10:52 CEST
Created attachment 820 [details]
screen shot of the problem
Comment 4 Manuel Hiebel 2011-10-04 20:57:16 CEST
(In reply to comment #2)
> How can I get the file when Im in setup scene?

Open one console then:
su - (enter your password) then
cp /root/drakx/report.bug.gz /home/your_user/ (with your_user your real user)
then attach the file at the bugzilla.
and at the end you can remove the file on your home:
rm /home/your_user/report.bug.gz (as root)
Comment 5 Manuel Hiebel 2011-10-26 18:08:25 CEST
(In reply to comment #3)
> Created attachment 820 [details]
> screen shot of the problem

ok it's the same thing with installer and in the drakxtools, but I don't know what we need. fdisk -l ?

Component: Installer => RPM Packages
Source RPM: (none) => drakxtools

Manuel Hiebel 2011-10-26 18:21:11 CEST

Assignee: bugsquad => thierry.vignaud

Comment 6 Barry Jackson 2011-12-27 01:11:15 CET
(In reply to comment #0)
> Description of problem:
> Lost all the partition layout edited when try to use "rescan disk"
> 
> Version-Release number of selected component (if applicable):
> 
> 
> How reproducible:
> everytime
> 
> Steps to Reproduce:
> 1.select "rescan disk" in "advance" in the step of disk editting 
> 2.the layout you had made would lost

Is this not expected behaviour?
Assuming you start with a blank drive and part way through editing the partition table you re-scan the drive, then surely the drive will still be blank as you have not yet written any changes to the partition table.
I must admit that I have never seen a "re-scan drive" option in the advanced section of diskdrake (or anywhere in diskdrake).
I don't understand why you would want to re-scan the drive in the middle of an installation.
AKAIK the partiton table is not written until the partitioning screen is exited, and all the new information has been collected. If there is a re-scan button as you say, then I can only assume it is there to allow someone to re-start the partition setup from the beginning again with no changes present.

CC: (none) => zen25000

Comment 7 yu zhang 2011-12-29 01:54:07 CET
It is not a expected behavior, the disk is a ALREADY partitioned disk, and the "blank" is not means that it shows "no partitions", but it is a display error, the bar that should be there to show the partition status is MISSING
Comment 8 yu zhang 2011-12-29 01:54:33 CET
I can't find the file Manuel Hiebel mentioned
Comment 9 Morgan Leijström 2012-01-22 12:32:01 CET
NOTE the reporter apparently runs it in Virtualbox VM

1) Did it make any (right or wrong) change to partitions? (or just failed reading)

2) Are you setting it up with LVM and/or encryption?

(For me on a physical PC, it borked in some scenarios there for me while it itself initiated rescan if i remember correctly i have just been too lazy to investigate and report...)

3) If you have the time, could you try with mageia 2 alpha or later ?

CC: (none) => fri

Comment 10 Marja Van Waes 2012-04-26 22:10:15 CEST
3-monthly ping

@ yu zhang

Thanks for your willingness to help.

Could you please reply to the questions in comment 9 ? Please test with Mga2b3 or rc (available next week)

Keywords: (none) => NEEDINFO
CC: (none) => marja11

Comment 11 yu zhang 2012-04-27 15:24:03 CEST
NOTE the reporter apparently runs it in Virtualbox VM

A:I can reproduce the problem in a real pc (ssd sda + sata hdd sdb)
 I reported the bug in vm just because I need to make a screenshot ^_^

1) Did it make any (right or wrong) change to partitions? (or just failed
reading)

A:It does not made any change to my disk since I reboot my pc for fearing of that happening.

2) Are you setting it up with LVM and/or encryption?

(For me on a physical PC, it borked in some scenarios there for me while it
itself initiated rescan if i remember correctly i have just been too lazy to
investigate and report...)

A: Nor of them.I didn't setting it up with LVM nor encryption since I don't know how to handle them~ And what's more, I rescaned only the hdd(not the ssd)

3) If you have the time, could you try with mageia 2 alpha or later ?

A:I will try it after 5.27 since I have to prepare my gre exam brfore that~
I think this bug is a upstream bug from mandriva installer, since I can reproduce the bug in mandriva 2010
Comment 12 Thierry Vignaud 2012-04-27 15:57:34 CEST
Current cauldron (past mga2b3) is still affected.

CC: (none) => thierry.vignaud
Version: 1 => Cauldron
Assignee: thierry.vignaud => pterjan
Source RPM: drakxtools => drakx-installer-stage2

Thierry Vignaud 2012-04-27 16:02:29 CEST

CC: (none) => mageia

Comment 13 Thierry Vignaud 2012-04-27 16:05:39 CEST
Bug probably is $do_force_reload in fs/partitioning_wizard.pm

Status: NEW => ASSIGNED

Comment 14 Thierry Vignaud 2012-04-27 16:15:49 CEST
Dup

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

Status: ASSIGNED => RESOLVED
Resolution: (none) => DUPLICATE