Failure applying dump from m.5 drive to SCSI drive

Bug #1921009 reported by Kevin O'Gorman
6
This bug affects 1 person
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
ProcVersionSignature: Ubuntu 5.4.0-66.74-generic 5.4.86
Uname: Linux 5.4.0-66-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.20.11-0ubuntu27.16
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: XFCE
Date: Tue Mar 23 14:39:53 2021
SourcePackage: util-linux
UpgradeStatus: Upgraded to focal on 2021-02-19 (32 days ago)

Revision history for this message
Kevin O'Gorman (kogorman-pacbell) wrote :
Revision history for this message
Kevin O'Gorman (kogorman-pacbell) wrote :

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.

Revision history for this message
Kevin O'Gorman (kogorman-pacbell) wrote :

Color me embarassed. I just tried this again on a different system, still with the same software, and it worked perfectly, using the same source and destination drives as when I first had a problem.

Mark this "worksforme" I guess.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.