parted “Error: Can’t have a partition outside the disk!” sometimes means you’ve a bogus DVD inserted
Posted by jpluimers on 2016/11/07
At first sight I thought I had a damaged partition table on the HDD, but then I realised it was a bogus DVD.
parted -l would give me this:
Error: Can't have a partition outside the disk! Ignore/Cancel? i Error: Can't have a partition outside the disk! Ignore/Cancel? i Model: NECVMWar VMware IDE CDR10 (scsi) Disk /dev/sr0: 4647MB Sector size (logical/physical): 2048B/2048B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 7340kB 23.9MB 16.5MB primary esp, type=ef 2 23.9MB 18.6GB 18.6GB primary boot, hidden, type=17
eject /dev/sr0 solved the issue.
Too bad there is no way to force
parted to ignore errors (or specify a default answer).