Opened 14 months ago

Last modified 5 months ago

#805 reopened enhancement

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@…

Description

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 (6)

comment:1 Changed 14 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 9 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 8 months ago by bruno

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

Closing for now. Please reopen if needed.

comment:4 Changed 7 months ago by vicgat

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:5 Changed 7 months 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.

comment:6 Changed 5 months ago by bruno

This should be finally much improved with rev [3666]. Please check again and report back your findings !

Note: See TracTickets for help on using tickets.