I resized (shrank) my root partition (only partition except swap) by about 100GB of my main drive which was not even half full. I did this using a live USB and gnome disks and it seemed the resize was successful. fsck came back clean and I was able to mount the partition on the live USB and test play some video files. After rebooting grub came up like normal, but after selecting the OS systemd did not appear and it seems the init process failed:
I thought maybe it had something to do with my swap partition because I use hibernate and I set my swap as the resume device. So I removed my swap partition from /etc/initramfs-tools/conf.d/resume and the /etc/fstab files. I also added 'noresume' to the boot options in /boot/grub/grub.cfg:
Code:
linux/boot/vmlinuz-6.6.15-custom root=UUID=e27cfff9-2347-418e-ac88-dcf73b2a84e1 ro intel_iommu=on iommu=pt quiet noresume
I made sure the UUID outputted by blkid matches in both /etc/fstab and /boot/grub/grub.cfg On reboot I get the same error from initramfs but it skips checking for the resume/suspend device as expected. Steps I have taken so far to try to fix while as chroot on the root partition:
1. update/reinstall grub
2. update-initramfs -u/-c
/etc/fstab (no swap):
Code:
# /etc/fstab: static file system information.## Use 'blkid' to print the universally unique identifier for a# device; this may be used with UUID= as a more robust way to name devices# that works even if disks are added and removed. See fstab(5).## systemd generates mount units based on this file, see systemd.mount(5).# Please run 'systemctl daemon-reload' after making changes here.## <file system> <mount point> <type> <options> <dump> <pass># / was on /dev/sdb1 during installationUUID=e27cfff9-2347-418e-ac88-dcf73b2a84e1 / ext4 errors=remount-ro 0 1# swap 17G just in case
blkid (sda1 is the root partition):
Code:
/dev/sda1: UUID="e27cfff9-2347-418e-ac88-dcf73b2a84e1" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="a6ae1cf8-01"/dev/sdb1: BLOCK_SIZE="512" UUID="D6C00389C0036F55" TYPE="ntfs" PARTUUID="6b371de0-01"/dev/sdb2: BLOCK_SIZE="512" UUID="FCEE6410EE63C20E" TYPE="ntfs" PARTUUID="6b371de0-02"/dev/sdc1: BLOCK_SIZE="2048" UUID="2023-07-11-16-54-30-00" LABEL="Linux Mint 21.2 Cinnamon 64-bit" TYPE="iso9660" PARTLABEL="ISO9660" PARTUUID="7f710194-a624-43fa-9ba3-5155cfb1273a"
/boot/grub/grub.cfg:
Code:
## DO NOT EDIT THIS FILE## It is automatically generated by grub-mkconfig using templates# from /etc/grub.d and settings from /etc/default/grub#### BEGIN /etc/grub.d/00_header ###if [ -s $prefix/grubenv ]; then set have_grubenv=true load_envfiif [ "${next_entry}" ] ; then set default="${next_entry}" set next_entry= save_env next_entry set boot_once=trueelse set default="0"fiif [ x"${feature_menuentry_id}" = xy ]; then menuentry_id_option="--id"else menuentry_id_option=""fiexport menuentry_id_optionif [ "${prev_saved_entry}" ]; then set saved_entry="${prev_saved_entry}" save_env saved_entry set prev_saved_entry= save_env prev_saved_entry set boot_once=truefifunction savedefault { if [ -z "${boot_once}" ]; then saved_entry="${chosen}" save_env saved_entry fi}function load_video { if [ x$feature_all_video_module = xy ]; then insmod all_video else insmod efi_gop insmod efi_uga insmod ieee1275_fb insmod vbe insmod vga insmod video_bochs insmod video_cirrus fi}if [ x$feature_default_font_path = xy ] ; then font=unicodeelseinsmod part_msdosinsmod ext2set root='hd0,msdos1'if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 e27cfff9-2347-418e-ac88-dcf73b2a84e1else search --no-floppy --fs-uuid --set=root e27cfff9-2347-418e-ac88-dcf73b2a84e1fi font="/usr/share/grub/unicode.pf2"fiif loadfont $font ; then set gfxmode=auto load_video insmod gfxtermfiterminal_output gfxtermif [ "${recordfail}" = 1 ] ; then set timeout=30else if [ x$feature_timeout_style = xy ] ; then set timeout_style=menu set timeout=10 # Fallback normal timeout code in case the timeout_style feature is # unavailable. else set timeout=10 fifi### END /etc/grub.d/00_header ###### BEGIN /etc/grub.d/05_debian_theme ###insmod part_msdosinsmod ext2set root='hd0,msdos1'if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 e27cfff9-2347-418e-ac88-dcf73b2a84e1else search --no-floppy --fs-uuid --set=root e27cfff9-2347-418e-ac88-dcf73b2a84e1fiinsmod pngif background_image /usr/share/desktop-base/emerald-theme/grub/grub-4x3.png; then set color_normal=white/black set color_highlight=black/whiteelse set menu_color_normal=cyan/blue set menu_color_highlight=white/bluefi### END /etc/grub.d/05_debian_theme ###### BEGIN /etc/grub.d/10_linux ###function gfxmode {set gfxpayload="${1}"}set linux_gfx_mode=export linux_gfx_modemenuentry 'Debian GNU/Linux GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-e27cfff9-2347-418e-ac88-dcf73b2a84e1' {load_videoinsmod gzioif [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fiinsmod part_msdosinsmod ext2set root='hd0,msdos1'if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 e27cfff9-2347-418e-ac88-dcf73b2a84e1else search --no-floppy --fs-uuid --set=root e27cfff9-2347-418e-ac88-dcf73b2a84e1fiecho'Loading Linux 6.6.15-custom ...'linux/boot/vmlinuz-6.6.15-custom root=UUID=e27cfff9-2347-418e-ac88-dcf73b2a84e1 ro intel_iommu=on iommu=pt quiet noresumeecho'Loading initial ramdisk ...'initrd/boot/initrd.img-6.6.15-custom}submenu 'Advanced options for Debian GNU/Linux GNU/Linux' $menuentry_id_option 'gnulinux-advanced-e27cfff9-2347-418e-ac88-dcf73b2a84e1' {menuentry 'Debian GNU/Linux GNU/Linux, with Linux 6.6.15-custom' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.15-custom-advanced-e27cfff9-2347-418e-ac88-dcf73b2a84e1' {load_videoinsmod gzioif [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fiinsmod part_msdosinsmod ext2set root='hd0,msdos1'if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 e27cfff9-2347-418e-ac88-dcf73b2a84e1else search --no-floppy --fs-uuid --set=root e27cfff9-2347-418e-ac88-dcf73b2a84e1fiecho'Loading Linux 6.6.15-custom ...'linux/boot/vmlinuz-6.6.15-custom root=UUID=e27cfff9-2347-418e-ac88-dcf73b2a84e1 ro intel_iommu=on iommu=pt quiet noresumeecho'Loading initial ramdisk ...'initrd/boot/initrd.img-6.6.15-custom}menuentry 'Debian GNU/Linux GNU/Linux, with Linux 6.6.15-custom (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.15-custom-recovery-e27cfff9-2347-418e-ac88-dcf73b2a84e1' {load_videoinsmod gzioif [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fiinsmod part_msdosinsmod ext2set root='hd0,msdos1'if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 e27cfff9-2347-418e-ac88-dcf73b2a84e1else search --no-floppy --fs-uuid --set=root e27cfff9-2347-418e-ac88-dcf73b2a84e1fiecho'Loading Linux 6.6.15-custom ...'linux/boot/vmlinuz-6.6.15-custom root=UUID=e27cfff9-2347-418e-ac88-dcf73b2a84e1 ro single dis_ucode_ldr intel_iommu=on iommu=ptecho'Loading initial ramdisk ...'initrd/boot/initrd.img-6.6.15-custom}}### END /etc/grub.d/10_linux ###### BEGIN /etc/grub.d/20_linux_xen ###### END /etc/grub.d/20_linux_xen ###### BEGIN /etc/grub.d/25_bli ###if [ "$grub_platform" = "efi" ]; then insmod blifi### END /etc/grub.d/25_bli ###### BEGIN /etc/grub.d/30_os-prober ###menuentry 'Windows 10 (on /dev/sdb1)' --class windows --class os $menuentry_id_option 'osprober-chain-D6C00389C0036F55' {insmod part_msdosinsmod ntfsset root='hd1,msdos1'if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 D6C00389C0036F55else search --no-floppy --fs-uuid --set=root D6C00389C0036F55fiparttool ${root} hidden-drivemap -s (hd0) ${root}chainloader +1}menuentry 'Windows 10 (on /dev/sdb2)' --class windows --class os $menuentry_id_option 'osprober-chain-FCEE6410EE63C20E' {insmod part_msdosinsmod ntfsset root='hd1,msdos2'if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2 FCEE6410EE63C20Eelse search --no-floppy --fs-uuid --set=root FCEE6410EE63C20Efiparttool ${root} hidden-drivemap -s (hd0) ${root}chainloader +1}### END /etc/grub.d/30_os-prober ###### BEGIN /etc/grub.d/30_uefi-firmware ###if [ "$grub_platform" = "efi" ]; thenfwsetup --is-supportedif [ "$?" = 0 ]; thenmenuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {fwsetup}fifi### END /etc/grub.d/30_uefi-firmware ###### BEGIN /etc/grub.d/40_custom #### This file provides an easy way to add custom menu entries. Simply type the# menu entries you want to add after this comment. Be careful not to change# the 'exec tail' line above.### END /etc/grub.d/40_custom ###### BEGIN /etc/grub.d/41_custom ###if [ -f ${config_directory}/custom.cfg ]; then source ${config_directory}/custom.cfgelif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then source $prefix/custom.cfgfi### END /etc/grub.d/41_custom ###
fsck output:
Code:
mint@mint:~$ sudo fsck /dev/sda1fsck from util-linux 2.37.2e2fsck 1.46.5 (30-Dec-2021)/dev/sda1: clean, 1976274/121036800 files, 218776696/484131072 blocks
I know resizing your root partition is considered risky but if anybody could help that would be much appreciated. Thanks!
Statistics: Posted by moxxos β 2025-04-06 23:56