Use trailing digit of device name as partition number.

Follow-up to a9be2883f34bec2b24b19609395446eea8ab92b8.
Block device's minor number isn't device's partition number.
Use trailing digit of device name instead.