Unable to mount root partition after resize
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-initramfs-tools |
New
|
Undecided
|
Unassigned |
Bug Description
This is a continuation of this issue: https:/
The issue that this bug report is focused on is described in comment #102.
In short, after the root partition has been resized, it can't be mounted, though the system will boot normally on the resized disk after a reboot.
Console log:
=======
Begin: Running /scripts/
Begin: Mounting root file system ... Begin Running /scripts/local-top ... done.
Begin Running /scripts/
Scanning for Btrfs filesystems
done.
Begin: Will now check root file system ... fsck from util-linux 2.34
[/usr/sbin/
/dev/vda1: clean, 73663/320000 files, 379270/1279488 blocks
done.
[ 1.98660] EXT4-fs (vda1): mounted filesystem with ordered data mode. Opts: (null)
dine.
Begin: Running /scripts/
[ 2.315525] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[ 2.315584] vda: vda1
[ 2.316109] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[ 2.317158] random: systemd-udevd: uninitialized urandom read (16 bytes read)
GROWROOT: CHANGED: partition=1 start=2048 old: size=10235904 end=10237952 new: size=20959439 end=20971487
done.
Begin: Running /scripts/
mount: mounting /dev on /root/dev failed: no such file or directory
done.
mount: mounting /run on /root/run failed: no such file or directory
BusyBox v1.30.1 (Ubuntu 1:1.30.1-4ubuntu6) multi-call binary.
=======
This issue is present in Ubuntu focal (20.04)
Seeing exactly the same thing:
done. init-premount ... done. local-premount ... [ 15.515026] Btrfs loaded, crc32c= crc32c- generic local-bottom ... [ 17.367498] sda: sda1 sda2 init-bottom ... mount: mounting /dev on /root/dev failed: No such file or directory 1-4ubuntu6. 3) multi-call binary.
Begin: Running /scripts/
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/
Scanning for Btrfs filesystems
done.
Warning: fsck not present, so skipping root file system
[ 15.630918] EXT4-fs (sda2): INFO: recovery required on readonly filesystem
[ 15.675407] EXT4-fs (sda2): write access will be enabled during recovery
[ 16.636918] EXT4-fs (sda2): recovery complete
[ 16.663103] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/
GROWROOT: CHANGED: partition=2 start=1050624 old: size=124778463 end=125829087 new: size=135264223 end=136314847
done.
Begin: Running /scripts/
mount: mounting /dev on /root/dev failed: No such file or directory
done.
mount: mounting /run on /root/run failed: No such file or directory
BusyBox v1.30.1 (Ubuntu 1:1.30.
Usage: run-init [-d CAP,CAP...] [-n] [-c CONSOLE_DEV] NEW_ROOT NEW_INIT [ARGS]
Free initramfs and switch to another root fs:
chroot to NEW_ROOT, delete all in /, move NEW_ROOT to /,
execute NEW_INIT. PID must be 1. NEW_ROOT must be a mountpoint.
-c DEV Reopen stdio to DEV after switch 1-4ubuntu6. 3) multi-call binary.
-d CAPS Drop capabilities
-n Dry run
Target filesystem doesn't have requested /sbin/init.
BusyBox v1.30.1 (Ubuntu 1:1.30.
Usage: run-init [-d CAP,CAP...] [-n] [-c CONSOLE_DEV] NEW_ROOT NEW_INIT [ARGS]
Free initramfs and switch to another root fs:
chroot to NEW_ROOT, delete all in /, move NEW_ROOT to /,
execute NEW_INIT. PID must be 1. NEW_ROOT must be a mountpoint.
-c DEV Reopen stdio to DEV after switch 1-4ubuntu6. 3) multi-call binary.
-d CAPS Drop capabilities
-n Dry run
BusyBox v1.30.1 (Ubuntu 1:1.30.
Usage: run-init [-d CAP,CAP...] [-n] [-c CONSOLE_DEV] NEW_ROOT NEW_INIT [ARGS]
Free initramfs and switch to another root fs:
chroot to NEW_ROOT, delete all in /, move NEW_ROOT to /,
execute NEW_INIT. PID must be 1. NEW_ROOT must be a mountpoint.
-c DEV Reopen stdio to DEV after switch 1-4ubuntu6. 3) multi-call binary.
-d CAPS Drop capabilities
-n Dry run
BusyBox v1.30.1 (Ubuntu 1:1.30.
Usage: run-init [-d CAP,CAP...] [-n] [-c CONSOLE_DEV] NEW_ROOT NEW_INIT [ARGS]
Free initramfs and switch to another root fs:
chroot to NEW_ROOT, delete all in /, move NEW_ROOT to /,
execute NEW_INIT. PID must be 1. NEW_ROOT must be a mountpoint.
-c DEV Reopen stdio to DEV after switch 1-4ubuntu6. 3) multi-call binary.
-d CAPS Drop capabilities
-n Dry run
BusyBox v1.30.1 (Ubuntu 1:1.30.
Usage: run-init [-d CAP,CAP...] [-n] [-c CONSOLE_DEV] NEW_ROOT NEW_INIT [ARGS]
Free initramfs and switch to another root fs:
chroot to NEW_ROOT, delete all in /, move NEW_ROOT to /,
execute NEW_INIT. PID must be 1. NEW_ROOT must be a mountpoint.
-c DEV Reopen stdio to DEV after switch 1-4ubuntu6. 3) multi-call binary.
-d CAPS Drop capabilities
-n Dry run
BusyBox v1.30.1 (Ubuntu 1:1.30.
Usage: run-init [-d CAP,CA...