Ticket #805 (reopened enhancement)

Opened 7 months ago

Last modified 3 weeks ago

mr-parted2fdisk should use parted when there's a lot of disks

Reported by: vicgat Owned by: bruno
Priority: high Milestone: 3.3.0
Component: mindi Version: 3.2.2
Severity: critical Keywords: mr-parted2fdisk fdisk parted
Cc: victor_gattegno@…


When there's a lot of disks, some fdisk fail to list it all, and then, may not list the boot device.

In that case, boot device will not be found by mr-parted2fdisk because it's using fdisk (and parted only in some issues).

So the solution in this case (a lot of disks to scan) is to use parted instead of fdisk in mr-parted2fdisk.

Change History

comment:1 Changed 7 months ago by vicgat

A solution in mr-parted2fdisk program could be to check if boot partition is listed in the result of 'fdisk -l', and, if not, to check it through parted.

That would workaround any fdisk bug (example :  https://access.redhat.com/solutions/783403 bug, fixed in util-linux-ng-2.17.2-12.24).

comment:2 Changed 3 months ago by bruno

  • Status changed from new to assigned

Should be fixed with rev [3647]

Victor could you check by just using that version of mr-parted2fdisk with th existing mindi setup (replacing it should be all you need to do) and report back.

Thanks !

comment:3 Changed 3 weeks ago by bruno

  • Status changed from assigned to closed
  • Resolution set to fixed

Closing for now. Please reopen if needed.

comment:4 Changed 3 weeks ago by vicgat

  • Status changed from closed to reopened
  • Resolution fixed deleted

comment:5 Changed 3 weeks ago by vicgat

mr-parted2fdisk [rev 3647 http://trac.mondorescue.org/changeset/3647] was tested on a lot of disks with the "1000" limit, and also with the limit set to "30" :

$use_parted = 1 if ($lines >= 30)

But it still doesn't detect the boot partition.

I emailed to Bruno the result.

Note: See TracTickets for help on using tickets.