Unable to mount root partition after resize

Bug #1899901 reported by jannick weiss
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
cloud-initramfs-tools
New
Undecided
Unassigned

Bug Description

This is a continuation of this issue: https://bugs.launchpad.net/cloud-initramfs-tools/+bug/1834875.
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/init-premount ... done.
Begin: Mounting root file system ... Begin Running /scripts/local-top ... done.
Begin Running /scripts/local-premount ... [ 1.923030] Btrfs loaded, crc32c=crc32c-generic
Scanning for Btrfs filesystems
done.
Begin: Will now check root file system ... fsck from util-linux 2.34
[/usr/sbin/fsck.ext3 (1) -- /dev/vda1] fsck.ext4 -a -C0 /dev/vda1
/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/local-bottom ... [ 2.060032] random: fast init done
[ 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/init-bottom ... mount: mounting /dev on /root/dev failed: no such file or directory
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)

Revision history for this message
Simon Kirby (simon-tagadab) wrote :
Download full text (3.8 KiB)

Seeing exactly the same thing:

done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... [ 15.515026] Btrfs loaded, crc32c=crc32c-generic
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/local-bottom ... [ 17.367498] sda: sda1 sda2
GROWROOT: CHANGED: partition=2 start=1050624 old: size=124778463 end=125829087 new: size=135264223 end=136314847
done.
Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev failed: No such file or directory
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.3) multi-call binary.

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
 -d CAPS Drop capabilities
 -n Dry run
Target filesystem doesn't have requested /sbin/init.
BusyBox v1.30.1 (Ubuntu 1:1.30.1-4ubuntu6.3) multi-call binary.

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
 -d CAPS Drop capabilities
 -n Dry run
BusyBox v1.30.1 (Ubuntu 1:1.30.1-4ubuntu6.3) multi-call binary.

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
 -d CAPS Drop capabilities
 -n Dry run
BusyBox v1.30.1 (Ubuntu 1:1.30.1-4ubuntu6.3) multi-call binary.

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
 -d CAPS Drop capabilities
 -n Dry run
BusyBox v1.30.1 (Ubuntu 1:1.30.1-4ubuntu6.3) multi-call binary.

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
 -d CAPS Drop capabilities
 -n Dry run
BusyBox v1.30.1 (Ubuntu 1:1.30.1-4ubuntu6.3) multi-call binary.

Usage: run-init [-d CAP,CA...

Read more...

Revision history for this message
Simon Kirby (simon-tagadab) wrote :

Fwiw, cloud-initramfs-growroot isn't needed. The disk resizes properly if that package is not installed.

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.