I am communicating thru my cell phone. I have to because UM on my my pen drive will not use my USB connection to my desktop computer using my cell phone. (Subtle hint to developers.)
Hi, @fixit7
@ericmarceau is trying to help you in the following other topic that you've opened (I've edited the title of that other topic that you created, to change it from just "Having fun today" to "Having fun today (but boot is stuck in black screen)", because a topic with a title that just said "Having fun today" would probably not get noticed by many people):
Please, follow up / reply in that other topic. Thanks.
# I need this to be booted to
#
The version on sda2 does not work. It goes to emergency mode.
Can I merge the space in sda2 into another partition?
I also installed Grub Customizer.
Thanks.
menuentry 'Ubuntu 24.04.2 LTS (24.04) (on /dev/sda6)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-1f1ca355-c825-414f-98d0-09b81820edf4' {
insmod part_gpt
#
# 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_env
fi
if [ "${initrdfail}" = 2 ]; then
set initrdfail=
elif [ "${initrdfail}" = 1 ]; then
set next_entry="${prev_entry}"
set prev_entry=
save_env prev_entry
if [ "${next_entry}" ]; then
set initrdfail=2
fi
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${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=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function initrdfail {
if [ -n "${have_grubenv}" ]; then if [ -n "${partuuid}" ]; then
if [ -z "${initrdfail}" ]; then
set initrdfail=1
if [ -n "${boot_once}" ]; then
set prev_entry="${default}"
save_env prev_entry
fi
fi
save_env initrdfail
fi; fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; 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=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 4ae1c922-c376-438c-b75e-85627897fede
else
search --no-floppy --fs-uuid --set=root 4ae1c922-c376-438c-b75e-85627897fede
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=hidden
set timeout=3
# Fallback hidden-timeout code in case the timeout_style feature is
# unavailable.
elif sleep --interruptible 3 ; then
set timeout=0
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 60,59,55; then
clear
fi
color_normal=light-gray/black
if [ -e ${prefix}/themes/ubuntu-mate/theme.txt ]; then
insmod png
theme=${prefix}/themes/ubuntu-mate/theme.txt
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if [ ${grub_platform} != pc ]; then
set linux_gfx_mode=keep
elif hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-4ae1c922-c376-438c-b75e-85627897fede' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 4ae1c922-c376-438c-b75e-85627897fede
else
search --no-floppy --fs-uuid --set=root 4ae1c922-c376-438c-b75e-85627897fede
fi
linux /boot/vmlinuz-6.11.0-26-generic root=UUID=4ae1c922-c376-438c-b75e-85627897fede ro quiet splash $vt_handoff
initrd /boot/initrd.img-6.11.0-26-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-4ae1c922-c376-438c-b75e-85627897fede' {
menuentry 'Ubuntu, with Linux 6.11.0-26-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.11.0-26-generic-advanced-4ae1c922-c376-438c-b75e-85627897fede' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 4ae1c922-c376-438c-b75e-85627897fede
else
search --no-floppy --fs-uuid --set=root 4ae1c922-c376-438c-b75e-85627897fede
fi
echo 'Loading Linux 6.11.0-26-generic ...'
linux /boot/vmlinuz-6.11.0-26-generic root=UUID=4ae1c922-c376-438c-b75e-85627897fede ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-6.11.0-26-generic
}
menuentry 'Ubuntu, with Linux 6.11.0-26-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.11.0-26-generic-recovery-4ae1c922-c376-438c-b75e-85627897fede' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 4ae1c922-c376-438c-b75e-85627897fede
else
search --no-floppy --fs-uuid --set=root 4ae1c922-c376-438c-b75e-85627897fede
fi
echo 'Loading Linux 6.11.0-26-generic ...'
linux /boot/vmlinuz-6.11.0-26-generic root=UUID=4ae1c922-c376-438c-b75e-85627897fede ro recovery nomodeset dis_ucode_ldr
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-6.11.0-26-generic
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/10_linux_zfs ###
### END /etc/grub.d/10_linux_zfs ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+x64.efi)" --class memtest $menuentry_id_option 'memtest86+' {
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 4ae1c922-c376-438c-b75e-85627897fede
else
search --no-floppy --fs-uuid --set=root 4ae1c922-c376-438c-b75e-85627897fede
fi
linux /boot/memtest86+x64.efi
}
menuentry 'Memory test (memtest86+x64.efi, serial console)' --class memtest $menuentry_id_option 'memtest86+-serial' {
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 4ae1c922-c376-438c-b75e-85627897fede
else
search --no-floppy --fs-uuid --set=root 4ae1c922-c376-438c-b75e-85627897fede
fi
linux /boot/memtest86+x64.efi console=ttyS0,115200
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/25_bli ###
if [ "$grub_platform" = "efi" ]; then
insmod bli
fi
### END /etc/grub.d/25_bli ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Ubuntu 24.04.2 LTS (24.04) (on /dev/sda2)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-26c126a6-290a-4019-a32b-f6bb290663ea' {
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 26c126a6-290a-4019-a32b-f6bb290663ea
else
search --no-floppy --fs-uuid --set=root 26c126a6-290a-4019-a32b-f6bb290663ea
fi
linux /boot/vmlinuz-6.8.0-60-generic root=UUID=26c126a6-290a-4019-a32b-f6bb290663ea ro quiet splash $vt_handoff
initrd /boot/initrd.img-6.8.0-60-generic
}
submenu 'Advanced options for Ubuntu 24.04.2 LTS (24.04) (on /dev/sda2)' $menuentry_id_option 'osprober-gnulinux-advanced-26c126a6-290a-4019-a32b-f6bb290663ea' {
menuentry 'Ubuntu (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.8.0-60-generic--26c126a6-290a-4019-a32b-f6bb290663ea' {
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 26c126a6-290a-4019-a32b-f6bb290663ea
else
search --no-floppy --fs-uuid --set=root 26c126a6-290a-4019-a32b-f6bb290663ea
fi
linux /boot/vmlinuz-6.8.0-60-generic root=UUID=26c126a6-290a-4019-a32b-f6bb290663ea ro quiet splash $vt_handoff
initrd /boot/initrd.img-6.8.0-60-generic
}
menuentry 'Ubuntu, with Linux 6.8.0-60-generic (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.8.0-60-generic--26c126a6-290a-4019-a32b-f6bb290663ea' {
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 26c126a6-290a-4019-a32b-f6bb290663ea
else
search --no-floppy --fs-uuid --set=root 26c126a6-290a-4019-a32b-f6bb290663ea
fi
linux /boot/vmlinuz-6.8.0-60-generic root=UUID=26c126a6-290a-4019-a32b-f6bb290663ea ro quiet splash $vt_handoff
initrd /boot/initrd.img-6.8.0-60-generic
}
menuentry 'Ubuntu, with Linux 6.8.0-60-generic (recovery mode) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.8.0-60-generic-root=UUID=26c126a6-290a-4019-a32b-f6bb290663ea ro recovery nomodeset dis_ucode_ldr-26c126a6-290a-4019-a32b-f6bb290663ea' {
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 26c126a6-290a-4019-a32b-f6bb290663ea
else
search --no-floppy --fs-uuid --set=root 26c126a6-290a-4019-a32b-f6bb290663ea
fi
linux /boot/vmlinuz-6.8.0-60-generic root=UUID=26c126a6-290a-4019-a32b-f6bb290663ea ro recovery nomodeset dis_ucode_ldr
initrd /boot/initrd.img-6.8.0-60-generic
}
menuentry 'Ubuntu, with Linux 6.8.0-59-generic (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.8.0-59-generic--26c126a6-290a-4019-a32b-f6bb290663ea' {
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 26c126a6-290a-4019-a32b-f6bb290663ea
else
search --no-floppy --fs-uuid --set=root 26c126a6-290a-4019-a32b-f6bb290663ea
fi
linux /boot/vmlinuz-6.8.0-59-generic root=UUID=26c126a6-290a-4019-a32b-f6bb290663ea ro quiet splash $vt_handoff
initrd /boot/initrd.img-6.8.0-59-generic
}
menuentry 'Ubuntu, with Linux 6.8.0-59-generic (recovery mode) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.8.0-59-generic-root=UUID=26c126a6-290a-4019-a32b-f6bb290663ea ro recovery nomodeset dis_ucode_ldr-26c126a6-290a-4019-a32b-f6bb290663ea' {
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 26c126a6-290a-4019-a32b-f6bb290663ea
else
search --no-floppy --fs-uuid --set=root 26c126a6-290a-4019-a32b-f6bb290663ea
fi
linux /boot/vmlinuz-6.8.0-59-generic root=UUID=26c126a6-290a-4019-a32b-f6bb290663ea ro recovery nomodeset dis_ucode_ldr
initrd /boot/initrd.img-6.8.0-59-generic
}
menuentry 'Memory test (memtest86+x64.bin) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/memtest86+x64.bin--26c126a6-290a-4019-a32b-f6bb290663ea' {
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 26c126a6-290a-4019-a32b-f6bb290663ea
else
search --no-floppy --fs-uuid --set=root 26c126a6-290a-4019-a32b-f6bb290663ea
fi
linux /boot/memtest86+x64.bin
}
menuentry 'Memory test (memtest86+x64.bin, serial console) (on /dev/sda2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/memtest86+x64.bin--26c126a6-290a-4019-a32b-f6bb290663ea' {
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 26c126a6-290a-4019-a32b-f6bb290663ea
else
search --no-floppy --fs-uuid --set=root 26c126a6-290a-4019-a32b-f6bb290663ea
fi
linux /boot/memtest86+x64.bin console=ttyS0,115200
}
}
#
# I need this to be booted to
#
menuentry 'Ubuntu 24.04.2 LTS (24.04) (on /dev/sda6)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-1f1ca355-c825-414f-98d0-09b81820edf4' {
insmod part_gpt
insmod ext2
set root='hd0,gpt6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6 1f1ca355-c825-414f-98d0-09b81820edf4
else
search --no-floppy --fs-uuid --set=root 1f1ca355-c825-414f-98d0-09b81820edf4
fi
linux /boot/vmlinuz-6.11.0-17-generic root=UUID=1f1ca355-c825-414f-98d0-09b81820edf4 ro quiet splash $vt_handoff
initrd /boot/initrd.img-6.11.0-17-generic
}
submenu 'Advanced options for Ubuntu 24.04.2 LTS (24.04) (on /dev/sda6)' $menuentry_id_option 'osprober-gnulinux-advanced-1f1ca355-c825-414f-98d0-09b81820edf4' {
menuentry 'Ubuntu (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.11.0-17-generic--1f1ca355-c825-414f-98d0-09b81820edf4' {
insmod part_gpt
insmod ext2
Did you try the Boot-Repair-Disk?
I downloaded and installed it.
How do I put it on a pendrive?
Hi, @fixit7
You wrote:
Please, DON'T merge any partitions! At this time, there should be 2 priorities:
1 (Most important) - Preserve your data. This includes NOT doing any activities that may increase the risk of losing some / all of your data. Activities such as "merging" partitions and/or deleting partitions are definitely activities that may end up deleting data that you want to preserve!
2 (Second most important) - Get your system back to a bootable state.
It's not clear to me what "UM on my pen drive" means. Most people install Ubuntu MATE to an internal drive (e.g. an SSD or a HDD). It is possible to install Ubuntu MATE on a USB and run your desktop from there - this is typically called a persistent USB (e.g. How to Create Persistent Live USB of Ubuntu). Is this what you mean? Or are you running a "Live session" of the installer image (e.g. a USB created following the instructions at Preparing a USB Image | Ubuntu MATE or similar)?
Being able to use USB tethering is a feature that will (almost always) work "out of the box" in Ubuntu MATE. So if the phone has USB tethering enabled, and the cable works, it should be as easy as plugging everything in. I can imagine, however, that if you're using a persistent USB, that the issue could be more complicated because you may have changed network settings around.
I put Ubuntu Mate on a pen drive so I have a fallback in case I can not boot into UM.
I have everything repaired.
I had multiple partitions on my Western Drive 2 Tb.
My 2 Tb drive contains UM 24.02 and my Maxtor drive is a fat32.
I copy my backup files to it.
I could not get it on my pen drive and be able to boot to it to do the repair.
So - to be clear - you're running a persistent USB, and you are not able to connect via USB tethering to your phone.
When I plug in my phone via USB (in tethering mode), I can see that the USB connection is up via lsusb
in the terminal, e.g.:
user@host:~$ lsusb
...
Bus 005 Device 023: ID 0123:4567 Samsung ... (tethering mode)
...
The network supplied by the connection can be seen via the ip
command in the terminal, on my computer it'll be the last entry :
user@host:~$ ip link show
...
5: enx02468135: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN mode DEFAULT group default qlen 1000
link/ether 01:23:45:67:89:ab brd ff:ff:ff:ff:ff:ff
This is roughly what it looks like if everything is set up OK. So my first question would be - are you able to confirm that the USB connection has been established via lsusb
, and then, is the network appearing in ip link show
? If yes (to both) - then perhaps the DHCP client on your system is not configured correctly.
My tethering works great.
lsusb
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 004: ID 045e:076d Microsoft Corp. LifeCam HD-5000
Bus 003 Device 014: ID 04e8:6863 Samsung Electronics Co.,
Ltd Galaxy series, misc. (tethering mode)
ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp1s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
link/ether 40:8d:5c:44:af:9b brd ff:ff:ff:ff:ff:ff
6: enx565fe565fdf0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN mode DEFAULT group default qlen 1000
link/ether 56:5f:e5:65:fd:f0 brd ff:ff:ff:ff:ff:ff
So the issue is resolved?
I recommend using balenaEtcher