This bug was originally filed in Launchpad as LP: #1851438
Launchpad details
affected_projects = ['util-linux (Ubuntu)', 'util-linux (Ubuntu Xenial)', 'util-linux (Ubuntu Bionic)', 'util-linux (Ubuntu Eoan)', 'util-linux (Ubuntu Focal)']
assignee = None
assignee_name = None
date_closed = 2023-02-22T16:52:15.582654+00:00
date_created = 2019-11-05T21:58:53.627476+00:00
date_fix_committed = 2023-01-05T16:55:12.572257+00:00
date_fix_released = 2023-02-22T16:52:15.582654+00:00
id = 1851438
importance = medium
is_complete = True
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1851438
milestone = None
owner = csaikia
owner_name = Chaynika Saikia
private = False
status = fix_released
submitter = csaikia
submitter_name = Chaynika Saikia
tags = ['cloud-init']
duplicates = []
Launchpad user Chaynika Saikia(csaikia) wrote on 2019-11-05T21:58:53.627476+00:00
Pasting disk_setup for cloud-config:
disk_setup:
/dev/xvde:
layout: True
overwrite: False
type: mbr
fs_setup:
-device: /dev/xvde
filesystem: ext4
label: data
overwrite: false
partition: auto
I want to attach and mount a /data disk on the VM using cloud-init so I just want to single partition 100% of the disk.
Error while running the sfdisk command for partitioning the disk (please see attached file).
OS: Ubuntu18
How I repro-ed it outside cloud-init environment:
- Open XenCenter, add a new disk, say /dev/xvdc
- Run
/sbin/sfdisk --Linux --unit=S --force /dev/xvdc and specify start sector as 0. Because from the cloud-init logs and source code, I figured that it was picking start sector as 0. Save it and see the error.
This bug was originally filed in Launchpad as LP: #1851438
Launchpad details
Launchpad user Chaynika Saikia(csaikia) wrote on 2019-11-05T21:58:53.627476+00:00
Pasting disk_setup for cloud-config:
disk_setup:
/dev/xvde:
layout: True
overwrite: False
type: mbr
fs_setup:
-device: /dev/xvde
filesystem: ext4
label: data
overwrite: false
partition: auto
I want to attach and mount a /data disk on the VM using cloud-init so I just want to single partition 100% of the disk.
Error while running the sfdisk command for partitioning the disk (please see attached file).
OS: Ubuntu18
How I repro-ed it outside cloud-init environment:
/sbin/sfdisk --Linux --unit=S --force /dev/xvdcand specify start sector as 0. Because from the cloud-init logs and source code, I figured that it was picking start sector as 0. Save it and see the error.