updated partition detection