Failure applying dump from m.5 drive to SCSI drive
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
util-linux (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I have a dump from an M.5 drive named "/dev/nvme0n1" that I wanted to apply to a regular SCSI drive /dev/sdc. This got the GPT built but when it tried to work on partitions, it failed, giving the error message sfdisk: failed to parse partition number: '/dev/sdc'
This is probably due to the oddity of drive names for M.5 drives -- they end in a digit, so a "p" is inserted before the actual partition numbers. So the first partition may appear to be "p1" instead of "1". I know, I ran into it working on some software of my own.
Anyway, the dump is attached. Try applying it to a regular "/dev/sd?" drive and you will prpbably see the same thing.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: fdisk 2.34-0.1ubuntu9.1
ProcVersionSign
Uname: Linux 5.4.0-66-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: XFCE
Date: Tue Mar 23 14:39:53 2021
SourcePackage: util-linux
UpgradeStatus: Upgraded to focal on 2021-02-19 (32 days ago)
There is probably more going on than I realized. I edited the file so that all references were to /dev/sdc without those added "p" characters. It still complained about parsing sdc. Now I'm completely puzzled and would ask for a better error message.