AppArmor won't let Firefox Snap save credit cards https://askubuntu.com/questions/1559602/apparmor-wont-let-firefox-snap-save-credit-cards

Firefox has not saved credit card numbers for me since I upgraded to the Snap version. When I try to save a credit card number I see messages like this in the syslog:

dbus-daemon[3656]: apparmor="DENIED" operation="dbus_method_call"  bus="session" path="/org/freedesktop/secrets" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.6" pid=5121 label="snap.firefox.firefox" peer_pid=3655 peer_label="unconfined"
dbus-daemon[3656]: apparmor="DENIED" operation="dbus_method_call"  bus="session" path="/org/freedesktop/secrets" interface="org.freedesktop.Secret.Service" member="OpenSession" mask="send" name=":1.6" pid=5121 label="snap.firefox.firefox" peer_pid=3655 peer_label="unconfined"

I spent about an hour grepping in the AppArmor config files, Googling, and searching Stack Exchange to no avail. What's the secret method to enable this commonly used feature for the snap?

Firefox 144.0.2 Ubuntu 24.04.3 LTS

Help installing drivers on ubuntu based system [closed] https://askubuntu.com/questions/1559597/help-installing-drivers-on-ubuntu-based-system

Im new here and also kinda new to linux world. Recently I just moved from windows 11 to pop os because I was tired of microsoft and windows in general. Everything went smooth on the installation but when it finished I realized that my pce wifi adapter wanst being recognized. So I found out that there is no official suport from asus for it, this is exact model that I have https://www.asus.com/networking-iot-servers/adapters/all-series/pceac68/ (It's a Asus pc1900 ac68 wich is conected directly on the motherboard). I've looked around and searched a bit while looking for any third parties solutions, I found some repositories but none of them actually worked. Someone with more experience would kindly guide me through this journey? I had some experience with linux before (mostly mint and ubuntu) but never had to deal with installing third party drivers. I think I actually broke my kernel and will re-install everything from scratch lmao

Pop os cant select resolution for monitors over 1600 x 920 after adding "UseEDID" "FALSE" to xorg [closed] https://askubuntu.com/questions/1559596/pop-os-cant-select-resolution-for-monitors-over-1600-x-920-after-adding-useedid

i was trying to solve an issue of my new monitor not going over 1600 x 920 when its a 2560x1440 monitor for insight GIGABYTE MO27Q2
Popos 22.04
Gnome 42.9
nvidia driver 580.82.09

i tried using Xrandr but i kept getting the error of X Error of failed request: BadMatch (invalid parameter attributes)

Major opcode of failed request: 140 (RANDR)

Minor opcode of failed request: 18 (RRAddOutputMode)

Serial number of failed request: 45

Current serial number in output stream: 46

so i followed this guide How to set native resolution via xorg.conf overriding EDID?
to add "UseEDID" "FALSE" to xorg
it worked but now all my monitors (including my previous one that worked as intended) cant go over 1600 x 920
So i retried xrandr to manually set them but i still get

xrandr --addmode DP-0 2560x1440_240
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  18 (RRAddOutputMode)
  Serial number of failed request:  45
  Current serial number in output stream:   46

im trying to understand this but its not going well and there is so much info that im not sure how to fix this
Any help is greatly appreciated

Trying to install Synthesizer V 2 on Kubuntu Bottles. Can't find the URI handler synthesizer V 2 uses to interface with the browser's login https://askubuntu.com/questions/1559595/trying-to-install-synthesizer-v-2-on-kubuntu-bottles-cant-find-the-uri-handler

I am trying to follow the advice on https://forum.dreamtonics.com/t/consider-supporting-linux-for-synthesizer-v-studio-2/1168/105 for installing synthesizer V 2 on Kubuntu (to those who don't know, Synthesizer V is a cutting-edge Vocaloid system), and what I'm having a problem with is that firefox is not giving me the prompt to interact with a log-in once I type in my information. Has anyone here installed Synthesizer V 2 on Kubuntu?

Nvidia Drivers appear to be installed but don't run https://askubuntu.com/questions/1559592/nvidia-drivers-appear-to-be-installed-but-dont-run

I ran sudo apt install nvidia-driver-550 and it appeared to install the driver correctly. The "System Details" screen still shows it using Intel graphics. I tried prime-select nvidia and it appeared to work but running sudo nvidia-smi returns an error message "NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running."

So I assume the driver is installed but not running. Running Nvidia settings does open the settings windows but also throws multiple terminal errors. (I'm not typing all that I'm gonna take a picture with my phone.)

1

I have exhausted every solution that Google had offered me, I just want to use the GPU that is in the laptop that I own. Please help me Linux computer geeks, I cannot do this.

How can I run or use Paint 3D on Ubuntu 24.04? https://askubuntu.com/questions/1559591/how-can-i-run-or-use-paint-3d-on-ubuntu-24-04

I’ve recently switched to Ubuntu 24.04 and I really miss using Paint 3D especially for its easy 3D modeling and texture tools. I know it’s a Windows-only app, but I was wondering if there’s any reliable way to install or run Paint 3D on Ubuntu, maybe through Wine, Proton, or an alternative open-source tool that works similarly.

I checked the website (https://www.thepaint3d.com), but it seems there’s no native Linux version available yet.

If anyone has managed to get it running (even partially) or knows of a good Paint 3D equivalent for Ubuntu, I’d love some advice!

Thanks in advance for any help or recommendations.

Can't access smb share on ubuntu 24.04 from windows 11 https://askubuntu.com/questions/1559589/cant-access-smb-share-on-ubuntu-24-04-from-windows-11

I just installed ubuntu 24.04 on a pc and would like to share a drive with the windows 11 PCs on my network. I have installed and configured samba. I can see the windows 11 pcs in ubuntu, but I can't see the ubuntu share on the windows 11 pcs. I can ping the ubuntu pc from the windows 11 pcs but when I try to connect to the share using the ip address, I'm told windows can't connect to the server. Does anybody have any suggestions?

Thank you, Steve

Question on build a customized Xubuntu live USB based on xubuntu-24.04.3-minimal-amd64.iso https://askubuntu.com/questions/1559588/question-on-build-a-customized-xubuntu-live-usb-based-on-xubuntu-24-04-3-minimal

I’m trying to build a customized Xubuntu live USB based on xubuntu-24.04.3-minimal-amd64.iso.
I don’t need to install it to a hard drive—just run it from a bootable USB.

In a chroot environment, I removed the installer and added Chrome.
I noticed the ISO now has two squashfs images:

/casper/minimal.squashfs
/casper/minimal.live.squashfs

(22.04 ISO only had one squashfs file/casper/filesystem.squashfs.)

I built an ISO with just filesystem.squashfs, but it fails to boot with:

KERNEL PANIC! VFS: Unable to mount root fs on unknown-block(0,0)

Question:
Does initrd/initramfs automatically load /casper/filesystem.squashfs?
Or does 24.04 require the new layout (minimal.squashfs + minimal.live.squashfs)?
If so, how should I build the ISO correctly?

WiFi and Bluetooth (MediaTek MT7902 [14c3:7902]) not working on ASUS Vivobook X1404ZA, Ubuntu 24.04 https://askubuntu.com/questions/1559587/wifi-and-bluetooth-mediatek-mt7902-14c37902-not-working-on-asus-vivobook-x1

I have a new ASUS Vivobook X1404ZA laptop. I installed Ubuntu, but the Wi-Fi and Bluetooth are not working. The Wi-Fi icon doesn't show any networks, and Bluetooth seems to be missing. Here is my technical information: --- **

1. My Wi-Fi/Network Controller:** (Output of `lspci -nn | grep -i network`)

03:00.0 Network controller [0280]: MEDIATEK Corp. Device [14c3:7902]


---

**2. My Kernel Version:**

6.17.7-061707-generic

---

**3. My Kernel Log (dmesg):**

(Output of `sudo dmesg | grep -iE 'mt79|7902'`)

[ 0.276113] pci 0000:03:00.0: [14c3:7902] type 00 class 0x028000 PCIe Endpoint

[ 221.622095] mt7921e: unknown parameter 'disable_usb_sg' ignored

*(Note: My `dmesg` also shows many `mt7921e` errors, but this seems to be the wrong driver for my [14c3:7902] hardware).*

---

**4. RFKill Status:**

(Output of `rfkill list`)

0: hci0: Bluetooth

Soft blocked: no

Hard blocked: no

*(As you can see, `rfkill` only detects Bluetooth, not the Wi-Fi device, confirming the kernel is not loading the Wi-Fi driver).*

---

What is the correct driver for the MediaTek MT7902? I tried loading `mt7925e` but it didn't seem to work. How can I get this hardware enabled?

Thank you.
Wi-Fi not detected on Ubuntu 24.04.3 (r8168e-2 Realtek) https://askubuntu.com/questions/1559583/wi-fi-not-detected-on-ubuntu-24-04-3-r8168e-2-realtek
lsblk 

$ lsblk -e7 -o NAME,UUID,SIZE,FSTYPE,MOUNTPOINTS
NAME                    UUID                                    SIZE FSTYPE      MOUNTPOINTS
sda                                                               1.4T
├─sda1                  8A08-858A                                 1G  vfat        /boot/efi
├─sda2                  8ac8da88-0a6e-4a18-abca-3068fd988c29      2G  ext4        /boot
└─sda3                  DwDsJbSh-T70y-l8NY-oWaz-boath-Lzld-pZFzlC 1.4T LVM2_member
  └─ubuntu--vg-ubuntu--lv 534f01d4-8748-41f3-be34-6c0441dc1484    1.4T ext4        

sudo lshw -C network

  *-network
       descrizione: Ethernet interface
       prodotto: RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller
       fornitore: Realtek Semiconductor Co., Ltd.
       id fisico: 0
       bus info: pci@0000:07:00.0
       nome logico: eno1
       versione: 06
       seriale: e8:39:35:3f:82:6f
       capacità: 1Gbit/s
       larghezza: 64 bits
       orologio: 33MHz
       capacità: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configurazione: autonegotiation=on broadcast=yes driver=r8169 driverversion=6.14.0-35-generic firmware=rtl_nic/rtl8168e-2.fw latency=0 link=no multicast=yes port=twisted pair
       risorse: irq:17 ioport:e000(size=256) memoria:fe400000-fe400fff memoria:d0000000-d0003fff

  *-network
       descrizione: Ethernet interface
       id fisico: 4
       bus info: usb@1:1.1
       nome logico: enx8ee83824d8ac
       seriale: 0e:e0:80:88:d8:ac
       capacità: ethernet physical
       configurazione: autonegotiation=off broadcast=yes driver=rndis_host driverversion=6.14.0-35-generic duplex=half firmware=RNDIS device ip=18.186.253.188 link=yes multicast=yes port=twisted pair


lspci -nnk | grep -A4 -i net

07:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd.
    RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 06)
    DeviceName: Onboard LAN
    Subsystem: Hewlett-Packard Company RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [103c:2abf]
    Kernel driver in use: r8169
    Kernel modules: r8169


dmesg | grep -i renamed  
 
[    1.104046] r8169 0000:07:00.0 eno1: renamed from eth0 
[    1.456097] rndis_host 1-1.1:1.0 enx8ee83824d8ac: renamed from usb0 
[ 3742.091782] rndis_host 1-1.1:1.0 enx8ee83824d8ac: renamed from usb0  

cat /var/lib/NetworkManager/NetworkManager.state

[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true


/usr/sbin/rfkill   
-- null --  


gh repo clone mtorromeo/r8168  

Clone in 'r8168' in corso... 
remote: Enumerating objects: 305, done. 
remote: Counting objects: 100% (40/40), done. 
remote: Compressing objects: 100% (18/18), done. 
remote: Total 305 (delta 32), reused 22 (delta 22), pack-reused 265 (from 2) Ricezione degli oggetti: 100% (305/305), 879.57 KiB | 869.00 KiB/s, fatto. Risoluzione dei delta: 100% (208/208), fatto.   


dmesg | grep -i wireless # Verifica WiFi attivi e relativi firmware 
 
-- null -- 

  
sudo -i apt-get update 
apt-get autoremove 
apt-get clean 
UNUSCONF=$(dpkg -l|grep "^rc" | awk '{print $2}') apt-get remove --purge $UNUSCONF NEWKERNEL=$(uname -r|sed 's/-*[a-z]//g'|sed 's/-386//g') 
ADDKERNEL="linux-(image|headers|ubuntu-modules|restricted-modules)" METAKERNEL="linux-(image|headers|restricted-modules)-(generic|i386|server|common|rt|xen)"  

update-grub   


--   

lspci

00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b5)
00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 (rev b5)
00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b5)
00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b5)
00:1c.5 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 6 (rev b5)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation H61 Express Chipset LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port Desktop SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller (rev 06)

lsusb
Bus 001 Device 001: ID -d6b:000- Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 808-:002- Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 004: ID -3-b:1-8- USB tethering
Bus 002 Device 001: ID 1--b:0--2 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 8--7:0--4 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 003: ID 0--1:4--7 Primax Electronics, Ltd HP USB Multimedia Keyboard
Bus 002 Device 004: ID 0--d:c--a Logitech, Inc. M90/M100 Optical Mouse
Bus 002 Device 005: ID 0--f:6--6 Alcor Micro Corp. Multi Flash Reader

Sandisk Mini USB Disconnects when Laptop Suspends on Battery https://askubuntu.com/questions/1559554/sandisk-mini-usb-disconnects-when-laptop-suspends-on-battery

I have a 128Gb Sandisk mini USB device that I am using for extra storage on an old Lenovo V145-15AST (model 81MT) running Xubuntu 24.04.2.

I have it mounted using fstab and everything works as intended.

# mount Sandisk 128Gb USB
/dev/disk/by-uuid/3936-3889 /media/Sandisk    auto  x-gvfs-name=USB-Sandisk,x-gvfs-show,uid=1000,gid=1000   0 1

Initially, the presence of the USB drive would cause the system to hang when waking from suspend, but only when running on battery power. The following command

echo "XHC0" | sudo tee /proc/acpi/wakeup

fixed the problem, so that is now automated on startup.

Then I noticed that the USB device would just "disappear" if I left it suspended on battery for longer than an hour. I assume that is to do with power states and entering a deeper suspend/freeze. So I tried disabling auto-suspend by editing GRUB.

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.autosuspend=-1"

And checking

cat /sys/module/usbcore/parameters/autosuspend

gives -1 on a reboot.

lsusb gives the following:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 0438:7900 Advanced Micro Devices, Inc. Root Hub
Bus 002 Device 003: ID 0bda:c024 Realtek Semiconductor Corp. Bluetooth Radio 
Bus 002 Device 004: ID 13d3:5a02 IMC Networks EasyCamera
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 0781:5583 SanDisk Corp. Ultra Fit

So I added the below rule to /etc/udev/rules.d/92-usb-input-no-powersave.rules

ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0781", ATTR{idProduct}=="5583", TEST=="power/control", ATTR{power/control}="on"

I also tried with SUBSYSTEMS=="usb", but the USB device is still powered off after an hour. (again, this only happens on battery power).

udevadm info -a /dev/sda

outputs the below:

  looking at device '/devices/pci0000:00/0000:00:10.0/usb3/3-3/3-3:1.0/host0/target0:0:0/0:0:0:0/block/sda':
    KERNEL=="sda"
    SUBSYSTEM=="block"
    DRIVER==""
    ATTR{alignment_offset}=="0"
    ATTR{capability}=="0"
    ATTR{discard_alignment}=="0"
    ATTR{diskseq}=="53"
    ATTR{events}=="media_change"
    ATTR{events_async}==""
    ATTR{events_poll_msecs}=="-1"
    ATTR{ext_range}=="256"
    ATTR{hidden}=="0"
    ATTR{inflight}=="       0        0"
    ATTR{integrity/device_is_integrity_capable}=="0"
    ATTR{integrity/format}=="none"
    ATTR{integrity/protection_interval_bytes}=="0"
    ATTR{integrity/read_verify}=="0"
    ATTR{integrity/tag_size}=="0"
    ATTR{integrity/write_generate}=="0"
    ATTR{mq/0/cpu_list}=="0, 1, 2, 3"
    ATTR{mq/0/nr_reserved_tags}=="0"
    ATTR{mq/0/nr_tags}=="2"
    ATTR{partscan}=="1"
    ATTR{power/async}=="disabled"
    ATTR{power/control}=="auto"
    ATTR{power/runtime_active_kids}=="0"
    ATTR{power/runtime_active_time}=="0"
    ATTR{power/runtime_enabled}=="disabled"
    ATTR{power/runtime_status}=="unsupported"
    ATTR{power/runtime_suspended_time}=="0"
    ATTR{power/runtime_usage}=="0"
    ATTR{queue/add_random}=="1"
    ATTR{queue/atomic_write_boundary_bytes}=="0"
    ATTR{queue/atomic_write_max_bytes}=="0"
    ATTR{queue/atomic_write_unit_max_bytes}=="0"
    ATTR{queue/atomic_write_unit_min_bytes}=="0"
    ATTR{queue/chunk_sectors}=="0"
    ATTR{queue/dax}=="0"
    ATTR{queue/discard_granularity}=="512"
    ATTR{queue/discard_max_bytes}=="0"
    ATTR{queue/discard_max_hw_bytes}=="0"
    ATTR{queue/discard_zeroes_data}=="0"
    ATTR{queue/dma_alignment}=="511"
    ATTR{queue/fua}=="0"
    ATTR{queue/hw_sector_size}=="512"
    ATTR{queue/io_poll}=="0"
    ATTR{queue/io_poll_delay}=="-1"
    ATTR{queue/io_timeout}=="30000"
    ATTR{queue/iosched/async_depth}=="4"
    ATTR{queue/iosched/fifo_batch}=="16"
    ATTR{queue/iosched/front_merges}=="1"
    ATTR{queue/iosched/prio_aging_expire}=="10000"
    ATTR{queue/iosched/read_expire}=="500"
    ATTR{queue/iosched/write_expire}=="5000"
    ATTR{queue/iosched/writes_starved}=="2"
    ATTR{queue/iostats}=="1"
    ATTR{queue/iostats_passthrough}=="0"
    ATTR{queue/logical_block_size}=="512"
    ATTR{queue/max_discard_segments}=="1"
    ATTR{queue/max_hw_sectors_kb}=="512"
    ATTR{queue/max_integrity_segments}=="0"
    ATTR{queue/max_sectors_kb}=="512"
    ATTR{queue/max_segment_size}=="65536"
    ATTR{queue/max_segments}=="2048"
    ATTR{queue/minimum_io_size}=="4096"
    ATTR{queue/nomerges}=="0"
    ATTR{queue/nr_requests}=="4"
    ATTR{queue/nr_zones}=="0"
    ATTR{queue/optimal_io_size}=="0"
    ATTR{queue/physical_block_size}=="512"
    ATTR{queue/read_ahead_kb}=="128"
    ATTR{queue/rotational}=="1"
    ATTR{queue/rq_affinity}=="1"
    ATTR{queue/scheduler}=="none [mq-deadline] "
    ATTR{queue/stable_writes}=="0"
    ATTR{queue/virt_boundary_mask}=="0"
    ATTR{queue/wbt_lat_usec}=="75000"
    ATTR{queue/write_cache}=="write back"
    ATTR{queue/write_same_max_bytes}=="0"
    ATTR{queue/write_zeroes_max_bytes}=="33553920"
    ATTR{queue/zone_append_max_bytes}=="0"
    ATTR{queue/zone_write_granularity}=="0"
    ATTR{queue/zoned}=="none"
    ATTR{range}=="16"
    ATTR{removable}=="1"
    ATTR{ro}=="0"
    ATTR{size}=="240328704"
    ATTR{stat}=="     265    28681    35982     5139        1        0        1        3        0     2477     5143        0        0  >
    ATTR{trace/act_mask}=="disabled"
    ATTR{trace/enable}=="0"
    ATTR{trace/end_lba}=="disabled"
    ATTR{trace/pid}=="disabled"
    ATTR{trace/start_lba}=="disabled"

  looking at parent device '/devices/pci0000:00/0000:00:10.0/usb3/3-3/3-3:1.0/host0/target0:0:0/0:0:0:0':
    KERNELS=="0:0:0:0"
    SUBSYSTEMS=="scsi"
    DRIVERS=="sd"
    ATTRS{blacklist}=="SKIP_IO_HINTS"
    ATTRS{cdl_enable}=="0"
    ATTRS{cdl_supported}=="0"
    ATTRS{delete}=="(not readable)"
    ATTRS{device_blocked}=="0"
    ATTRS{device_busy}=="0"
    ATTRS{dh_state}=="detached"
    ATTRS{eh_timeout}=="10"
    ATTRS{evt_capacity_change_reported}=="0"
    ATTRS{evt_inquiry_change_reported}=="0"
    ATTRS{evt_lun_change_reported}=="0"
    ATTRS{evt_media_change}=="0"
    ATTRS{evt_mode_parameter_change_reported}=="0"
    ATTRS{evt_soft_threshold_reached}=="0"
    ATTRS{inquiry}==""
    ATTRS{iocounterbits}=="32"
    ATTRS{iodone_cnt}=="0x3d1f"
    ATTRS{ioerr_cnt}=="0x4"
    ATTRS{iorequest_cnt}=="0x3d1f"
    ATTRS{iotmo_cnt}=="0x0"
    ATTRS{model}==" SanDisk 3.2Gen1"
    ATTRS{power/async}=="enabled"
    ATTRS{power/autosuspend_delay_ms}=="-1"
    ATTRS{power/control}=="on"
    ATTRS{power/runtime_active_kids}=="0"
    ATTRS{power/runtime_active_time}=="31342045"
    ATTRS{power/runtime_enabled}=="forbidden"
    ATTRS{power/runtime_status}=="active"
    ATTRS{power/runtime_suspended_time}=="0"
    ATTRS{power/runtime_usage}=="2"
    ATTRS{queue_depth}=="2"
    ATTRS{queue_type}=="simple"
    ATTRS{rescan}=="(not readable)"
    ATTRS{rev}=="1.00"
    ATTRS{scsi_level}=="8"
    ATTRS{state}=="running"
    ATTRS{timeout}=="30"
    ATTRS{type}=="0"
    ATTRS{vendor}==" USB    "
    ATTRS{vpd_pg0}==""
    ATTRS{vpd_pg80}==""
    ATTRS{vpd_pg83}==""
    ATTRS{vpd_pgb0}==""
    ATTRS{wwid}=="t10. USB\0\0\0\0 SanDisk 3.2Gen10002321502222516"

  looking at parent device '/devices/pci0000:00/0000:00:10.0/usb3/3-3/3-3:1.0/host0/target0:0:0':
    KERNELS=="target0:0:0"
    SUBSYSTEMS=="scsi"
    DRIVERS==""
    ATTRS{power/async}=="enabled"
    ATTRS{power/control}=="auto"
    ATTRS{power/runtime_active_kids}=="1"
    ATTRS{power/runtime_active_time}=="31342046"
    ATTRS{power/runtime_enabled}=="enabled"
    ATTRS{power/runtime_status}=="active"
    ATTRS{power/runtime_suspended_time}=="0"
    ATTRS{power/runtime_usage}=="0"

  looking at parent device '/devices/pci0000:00/0000:00:10.0/usb3/3-3/3-3:1.0/host0':
    KERNELS=="host0"
    SUBSYSTEMS=="scsi"
    DRIVERS==""
    ATTRS{power/async}=="enabled"
    ATTRS{power/control}=="auto"
    ATTRS{power/runtime_active_kids}=="1"
    ATTRS{power/runtime_active_time}=="31342153"
    ATTRS{power/runtime_enabled}=="enabled"
    ATTRS{power/runtime_status}=="active"
    ATTRS{power/runtime_suspended_time}=="0"
    ATTRS{power/runtime_usage}=="0"

  looking at parent device '/devices/pci0000:00/0000:00:10.0/usb3/3-3/3-3:1.0':
    KERNELS=="3-3:1.0"
    SUBSYSTEMS=="usb"
    DRIVERS=="uas"
    ATTRS{authorized}=="1"
    ATTRS{bAlternateSetting}==" 1"
    ATTRS{bInterfaceClass}=="08"
    ATTRS{bInterfaceNumber}=="00"
    ATTRS{bInterfaceProtocol}=="62"
    ATTRS{bInterfaceSubClass}=="06"
    ATTRS{bNumEndpoints}=="04"
    ATTRS{physical_location/dock}=="no"
    ATTRS{physical_location/horizontal_position}=="left"
    ATTRS{physical_location/lid}=="no"
    ATTRS{physical_location/panel}=="unknown"
    ATTRS{physical_location/vertical_position}=="upper"
    ATTRS{power/async}=="enabled"
    ATTRS{power/runtime_active_kids}=="1"
    ATTRS{power/runtime_enabled}=="disabled"
    ATTRS{power/runtime_status}=="unsupported"
    ATTRS{power/runtime_usage}=="0"
    ATTRS{supports_autosuspend}=="0"

  looking at parent device '/devices/pci0000:00/0000:00:10.0/usb3/3-3':
    KERNELS=="3-3"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{authorized}=="1"
    ATTRS{avoid_reset_quirk}=="0"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bDeviceClass}=="00"
    ATTRS{bDeviceProtocol}=="00"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bMaxPacketSize0}=="9"
    ATTRS{bMaxPower}=="896mA"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bNumInterfaces}==" 1"
    ATTRS{bcdDevice}=="0100"
    ATTRS{bmAttributes}=="80"
    ATTRS{busnum}=="3"
    ATTRS{configuration}==""
    ATTRS{devnum}=="4"
    ATTRS{devpath}=="3"
    ATTRS{idProduct}=="5583"
    ATTRS{idVendor}=="0781"
    ATTRS{ltm_capable}=="no"
    ATTRS{manufacturer}==" USB"
    ATTRS{maxchild}=="0"
    ATTRS{physical_location/dock}=="no"
    ATTRS{physical_location/horizontal_position}=="left"
    ATTRS{physical_location/lid}=="no"
    ATTRS{physical_location/panel}=="unknown"
    ATTRS{physical_location/vertical_position}=="upper"
    ATTRS{power/active_duration}=="31341730"
    ATTRS{power/async}=="enabled"
    ATTRS{power/autosuspend}=="-1"
    ATTRS{power/autosuspend_delay_ms}=="-1000"
    ATTRS{power/connected_duration}=="31342655"
    ATTRS{power/control}=="on"
    ATTRS{power/level}=="on"
    ATTRS{power/persist}=="1"
    ATTRS{power/runtime_active_kids}=="1"
    ATTRS{power/runtime_active_time}=="31342168"
    ATTRS{power/runtime_enabled}=="forbidden"
    ATTRS{power/runtime_status}=="active"
    ATTRS{power/runtime_suspended_time}=="0"
    ATTRS{power/runtime_usage}=="2"
    ATTRS{product}==" SanDisk 3.2Gen1"
    ATTRS{quirks}=="0x400"
    ATTRS{removable}=="removable"
    ATTRS{remove}=="(not readable)"
    ATTRS{rx_lanes}=="1"
    ATTRS{serial}=="00023215022225165640"
    ATTRS{speed}=="5000"
    ATTRS{tx_lanes}=="1"
    ATTRS{urbnum}=="31631"
    ATTRS{version}==" 3.20"

  looking at parent device '/devices/pci0000:00/0000:00:10.0/usb3':
    KERNELS=="usb3"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{authorized}=="1"
    ATTRS{authorized_default}=="1"
    ATTRS{avoid_reset_quirk}=="0"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bDeviceClass}=="09"
    ATTRS{bDeviceProtocol}=="03"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bMaxPacketSize0}=="9"
    ATTRS{bMaxPower}=="0mA"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bNumInterfaces}==" 1"
    ATTRS{bcdDevice}=="0614"
    ATTRS{bmAttributes}=="e0"
    ATTRS{busnum}=="3"
    ATTRS{configuration}==""
    ATTRS{devnum}=="1"
    ATTRS{devpath}=="0"
    ATTRS{idProduct}=="0003"
    ATTRS{idVendor}=="1d6b"
    ATTRS{interface_authorized_default}=="1"
    ATTRS{ltm_capable}=="yes"
    ATTRS{manufacturer}=="Linux 6.14.0-35-generic xhci-hcd"
    ATTRS{maxchild}=="4"
    ATTRS{power/active_duration}=="31998874"
    ATTRS{power/async}=="enabled"
    ATTRS{power/autosuspend}=="-1"
    ATTRS{power/autosuspend_delay_ms}=="-1000"
    ATTRS{power/connected_duration}=="31999661"
    ATTRS{power/control}=="on"
    ATTRS{power/level}=="on"
    ATTRS{power/runtime_active_kids}=="1"
    ATTRS{power/runtime_active_time}=="31999200"
    ATTRS{power/runtime_enabled}=="forbidden"
    ATTRS{power/runtime_status}=="active"
    ATTRS{power/runtime_suspended_time}=="0"
    ATTRS{power/runtime_usage}=="2"
    ATTRS{power/wakeup}=="disabled"
    ATTRS{power/wakeup_abort_count}==""
    ATTRS{power/wakeup_active}==""
    ATTRS{power/wakeup_active_count}==""
    ATTRS{power/wakeup_count}==""
    ATTRS{power/wakeup_expire_count}==""
    ATTRS{power/wakeup_last_time_ms}==""
    ATTRS{power/wakeup_max_time_ms}==""
    ATTRS{power/wakeup_total_time_ms}==""
    ATTRS{product}=="xHCI Host Controller"
    ATTRS{quirks}=="0x0"
    ATTRS{removable}=="unknown"
    ATTRS{remove}=="(not readable)"
    ATTRS{rx_lanes}=="1"
    ATTRS{serial}=="0000:00:10.0"
    ATTRS{speed}=="5000"
    ATTRS{tx_lanes}=="1"
    ATTRS{urbnum}=="242"
    ATTRS{version}==" 3.00"

  looking at parent device '/devices/pci0000:00/0000:00:10.0':
    KERNELS=="0000:00:10.0"
    SUBSYSTEMS=="pci"
    DRIVERS=="xhci_hcd"
    ATTRS{ari_enabled}=="0"
    ATTRS{broken_parity_status}=="0"
    ATTRS{class}=="0x0c0330"
    ATTRS{consistent_dma_mask_bits}=="64"
    ATTRS{current_link_speed}=="Unknown"
    ATTRS{current_link_width}=="0"
    ATTRS{d3cold_allowed}=="1"
    ATTRS{dbc}=="disabled"
    ATTRS{dbc_bInterfaceProtocol}=="01"
    ATTRS{dbc_bcdDevice}=="0010"
    ATTRS{dbc_idProduct}=="0010"
    ATTRS{dbc_idVendor}=="1d6b"
    ATTRS{dbc_poll_interval_ms}=="64"
    ATTRS{device}=="0x7914"
    ATTRS{dma_mask_bits}=="64"
    ATTRS{driver_override}=="(null)"
    ATTRS{enable}=="1"
    ATTRS{irq}=="18"
    ATTRS{local_cpulist}=="0-1"
    ATTRS{local_cpus}=="3"
    ATTRS{max_link_speed}=="Unknown"
    ATTRS{max_link_width}=="255"
    ATTRS{msi_bus}=="1"
    ATTRS{msi_irqs/27}=="msix"
    ATTRS{msi_irqs/28}=="msix"
    ATTRS{msi_irqs/29}=="msix"
    ATTRS{numa_node}=="-1"
    ATTRS{power/async}=="enabled"
    ATTRS{power/control}=="on"
    ATTRS{power/runtime_active_kids}=="2"
    ATTRS{power/runtime_active_time}=="31999531"
    ATTRS{power/runtime_enabled}=="forbidden"
    ATTRS{power/runtime_status}=="active"
    ATTRS{power/runtime_suspended_time}=="0"
    ATTRS{power/runtime_usage}=="3"
    ATTRS{power/wakeup}=="disabled"
    ATTRS{power/wakeup_abort_count}==""
    ATTRS{power/wakeup_active}==""
    ATTRS{power/wakeup_active_count}==""
    ATTRS{power/wakeup_count}==""
    ATTRS{power/wakeup_expire_count}==""
    ATTRS{power/wakeup_last_time_ms}==""
    ATTRS{power/wakeup_max_time_ms}==""
    ATTRS{power/wakeup_total_time_ms}==""
    ATTRS{power_state}=="D0"
    ATTRS{remove}=="(not readable)"
    ATTRS{rescan}=="(not readable)"
    ATTRS{resource0}=="(not readable)"
    ATTRS{revision}=="0x20"
    ATTRS{subsystem_device}=="0x380b"
    ATTRS{subsystem_vendor}=="0x17aa"
    ATTRS{vendor}=="0x1022"

  looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""
    ATTRS{power/async}=="enabled"
    ATTRS{power/control}=="auto"
    ATTRS{power/runtime_active_kids}=="21"
    ATTRS{power/runtime_active_time}=="0"
    ATTRS{power/runtime_enabled}=="disabled"
    ATTRS{power/runtime_status}=="unsupported"
    ATTRS{power/runtime_suspended_time}=="0"
    ATTRS{power/runtime_usage}=="0"
    ATTRS{waiting_for_supplier}=="0"

I notice from some manual experimenting with unmounting/remounting and unbinding/rebinding that the sda block is simply gone, and after a replug the drive is reconfigured under sdc (sdb is the main internal drive). Issuing the below on a normal working system:

echo 0000:00:10.0 > /sys/bus/pci/drivers/xhci_hcd/unbind

then suspending the system for a while before waking then issuing

echo 0000:00:10.0 > /sys/bus/pci/drivers/xhci_hcd/bind

works fine IF the system wake happens before an hour elapses (I think it was an hour but I could be wrong on the exact time it takes to enter a deeper suspend state). At any rate, if I leave it suspended for too long on battery the block device disappears.

Here is dmesg when running on power:

[ 2606.418682] PM: suspend entry (deep)
[ 2606.430180] Filesystems sync: 0.011 seconds
[ 2606.434316] Freezing user space processes
[ 2606.436191] Freezing user space processes completed (elapsed 0.001 seconds)
[ 2606.436200] OOM killer disabled.
[ 2606.436202] Freezing remaining freezable tasks
[ 2613.235524] Freezing remaining freezable tasks completed (elapsed 6.799 seconds)
[ 2613.235589] printk: Suspending console(s) (use no_console_suspend to debug)
[ 2613.240341] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[ 2613.240533] sd 1:0:0:0: [sdb] Synchronizing SCSI cache
[ 2613.243870] ata1.00: Entering standby power mode
[ 2613.304485] ACPI: EC: interrupt blocked
[ 2613.329275] ACPI: PM: Preparing to enter system sleep state S3
[ 2613.333134] ACPI: EC: event blocked
[ 2613.333138] ACPI: EC: EC stopped
[ 2613.333140] ACPI: PM: Saving platform NVS memory
[ 2613.333257] Disabling non-boot CPUs ...
[ 2613.335495] smpboot: CPU 1 is now offline
[ 2613.338153] ACPI: PM: Low-level resume complete
[ 2613.338178] ACPI: EC: EC started
[ 2613.338179] ACPI: PM: Restoring platform NVS memory
[ 2613.338253] LVT offset 0 assigned for vector 0x400
[ 2613.338687] Enabling non-boot CPUs ...
[ 2613.338789] smpboot: Booting Node 0 Processor 1 APIC 0x11
[ 2613.338970] [Firmware Bug]: CPU   1: APIC ID mismatch. CPUID: 0x0001 APIC: 0x0011
[ 2613.360203] CPU1 is up
[ 2613.360680] ACPI: PM: Waking up from system sleep state S3
[ 2613.391367] ACPI: EC: interrupt unblocked
[ 2613.393584] ACPI: EC: event unblocked
[ 2613.395892] [drm] PCIE GART of 1024M enabled (table at 0x000000F400600000).
[ 2613.395917] amdgpu: smu version 26.17.00
[ 2613.601597] amdgpu 0000:00:01.0: [drm:amdgpu_ring_test_helper [amdgpu]] *ERROR* ring comp_1.0.1 test failed (-110)
[ 2613.648811] usb 1-1.2: reset full-speed USB device number 3 using ehci-pci
[ 2613.782015] amdgpu 0000:00:01.0: [drm:amdgpu_ring_test_helper [amdgpu]] *ERROR* ring comp_1.0.3 test failed (-110)
[ 2613.809755] usb 1-1.3: reset high-speed USB device number 4 using ehci-pci
[ 2613.811213] [drm] UVD initialized successfully.
[ 2613.859755] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 2613.861726] sd 1:0:0:0: [sdb] Starting disk
[ 2613.863571] ata1.00: configured for UDMA/133
[ 2613.912182] [drm] VCE initialized successfully.
[ 2613.919040] OOM killer enabled.
[ 2613.919045] Restarting tasks ... 
[ 2613.927449] Bluetooth: hci0: RTL: examining hci_ver=08 hci_rev=000c lmp_ver=08 lmp_subver=8821
[ 2613.928509] Bluetooth: hci0: RTL: rom_version status=0 version=1
[ 2613.928520] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_fw.bin
[ 2613.929187] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_config.bin
[ 2613.929333] Bluetooth: hci0: RTL: cfg_sz 10, total sz 34926
[ 2613.936337] done.
[ 2613.936351] random: crng reseeded on system resumption
[ 2614.099169] PM: suspend exit
[ 2614.369794] Generic FE-GE Realtek PHY r8169-0-100:00: attached PHY driver (mii_bus:phy_addr=r8169-0-100:00, irq=MAC)
[ 2614.400411] Bluetooth: hci0: RTL: fw version 0x75b8f098
[ 2614.469674] Bluetooth: MGMT ver 1.23
[ 2614.549849] r8169 0000:01:00.0 enp1s0: Link is Down

Here is dmesg when running on battery:

[ 1286.383813] PM: suspend entry (deep)
[ 1286.392576] Filesystems sync: 0.008 seconds
[ 1286.396463] Freezing user space processes ... (elapsed 0.002 seconds) done.
[ 1286.398976] OOM killer disabled.
[ 1286.398977] Freezing remaining freezable tasks ... (elapsed 5.641 seconds) done.
[ 1292.040416] printk: Suspending console(s) (use no_console_suspend to debug)
[ 1292.054616] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[ 1292.054616] sd 1:0:0:0: [sdb] Synchronizing SCSI cache
[ 1292.057289] sd 0:0:0:0: [sda] Stopping disk
[ 1292.170613] ACPI: EC: interrupt blocked
[ 1292.206741] ACPI: PM: Preparing to enter system sleep state S3
[ 1292.211027] ACPI: EC: event blocked
[ 1292.211029] ACPI: EC: EC stopped
[ 1292.211030] ACPI: PM: Saving platform NVS memory
[ 1292.211136] Disabling non-boot CPUs ...
[ 1292.212971] smpboot: CPU 1 is now offline
[ 1292.214198] ACPI: PM: Low-level resume complete
[ 1292.214221] ACPI: EC: EC started
[ 1292.214222] ACPI: PM: Restoring platform NVS memory
[ 1292.214308] LVT offset 0 assigned for vector 0x400
[ 1292.214607] Enabling non-boot CPUs ...
[ 1292.214669] x86: Booting SMP configuration:
[ 1292.214670] smpboot: Booting Node 0 Processor 1 APIC 0x11
[ 1292.214842] microcode: CPU1: patch_level=0x06006705
[ 1292.217125] ACPI: \_PR_.C001: Found 2 idle states
[ 1292.217615] CPU1 is up
[ 1292.218078] ACPI: PM: Waking up from system sleep state S3
[ 1292.249120] ACPI: EC: interrupt unblocked
[ 1292.250992] ACPI: EC: event unblocked
[ 1292.251039] [drm] PCIE GART of 1024M enabled (table at 0x000000F400401000).
[ 1292.251056] amdgpu: smu version 26.17.00
[ 1292.253742] sd 0:0:0:0: [sda] Starting disk
[ 1292.307774] [drm] UVD initialized successfully.
[ 1292.408004] [drm] VCE initialized successfully.
[ 1292.535374] usb 1-1.2: reset full-speed USB device number 3 using ehci-pci
[ 1292.723334] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 1292.723339] usb 1-1.3: reset high-speed USB device number 4 using ehci-pci
[ 1292.728037] ata1.00: configured for UDMA/133
[ 1295.213277] OOM killer enabled.
[ 1295.213282] Restarting tasks ... 
[ 1295.223222] usb 3-3: USB disconnect, device number 2
[ 1295.252225] Bluetooth: hci0: RTL: examining hci_ver=08 hci_rev=000c lmp_ver=08 lmp_subver=8821
[ 1295.253226] Bluetooth: hci0: RTL: rom_version status=0 version=1
[ 1295.253234] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_fw.bin
[ 1295.253263] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_config.bin
[ 1295.253303] Bluetooth: hci0: RTL: cfg_sz 10, total sz 34926
[ 1295.267355] done.
[ 1295.511257] PM: suspend exit
[ 1295.703193] Generic FE-GE Realtek PHY r8169-0-100:00: attached PHY driver (mii_bus:phy_addr=r8169-0-100:00, irq=MAC)
[ 1295.730166] Bluetooth: hci0: RTL: fw version 0x75b8f098
[ 1295.903351] r8169 0000:01:00.0 enp1s0: Link is Down
[ 1296.115463] usb 3-3: new SuperSpeed USB device number 3 using xhci_hcd
[ 1296.140769] usb 3-3: New USB device found, idVendor=0781, idProduct=5583, bcdDevice= 1.00
[ 1296.140779] usb 3-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1296.140783] usb 3-3: Product:  SanDisk 3.2Gen1
[ 1296.140786] usb 3-3: Manufacturer:  USB
[ 1296.140788] usb 3-3: SerialNumber: 00023215022225165640
[ 1296.157509] scsi host2: uas
[ 1296.296102] FAT-fs (sdb1): unable to read boot sector to mark fs as dirty
[ 1297.260340] kauditd_printk_skb: 16 callbacks suppressed
[ 1297.260345] audit: type=1400 audit(1762975487.044:186): apparmor="DENIED" operation="open" profile="snap.firmware-updater.firmware-notifier" name="/proc/sys/vm/max_map_count" pid=9291 comm="firmware-notifi" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 1301.369265] IPv6: ADDRCONF(NETDEV_CHANGE): wlp2s0: link becomes ready
[ 1304.127460] [UFW BLOCK] IN=wlp2s0 OUT= MAC=01:00:5e:00:00:01:20:37:f0:59:a3:0e:08:00 SRC=0.0.0.0 DST=224.0.0.1 LEN=36 TOS=0x00 PREC=0x00 TTL=1 ID=1 PROTO=2 
[ 1316.715011] scsi 2:0:0:0: tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD IN 
[ 1316.715029] scsi 2:0:0:0: tag#0 CDB: Inquiry 12 00 00 00 24 00
[ 1316.730989] scsi host2: uas_eh_device_reset_handler start
[ 1316.860744] usb 3-3: reset SuperSpeed USB device number 3 using xhci_hcd
[ 1316.886773] scsi host2: uas_eh_device_reset_handler success
[ 1316.890848] scsi 2:0:0:0: tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD 
[ 1316.890863] scsi 2:0:0:0: tag#0 CDB: Test Unit Ready 00 00 00 00 00 00
[ 1316.890869] scsi host2: uas_eh_device_reset_handler start
[ 1317.020618] usb 3-3: reset SuperSpeed USB device number 3 using xhci_hcd
[ 1317.047049] scsi host2: uas_eh_device_reset_handler success
[ 1317.047065] scsi 2:0:0:0: Device offlined - not ready after error recovery

So this appears to be the problem:

[ 1296.296102] FAT-fs (sdb1): unable to read boot sector to mark fs as dirty

and then a few lines later:

[ 1317.047065] scsi 2:0:0:0: Device offlined - not ready after error recovery

After a replug and running

sudo fsck.vfat -a /dev/sdb1

Gives this:

fsck.fat 4.2 (2021-01-31)
There are differences between boot sector and its backup.
This is mostly harmless. Differences: (offset:original/backup)
  65:01/00
  Not automatically fixing this.
Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
 Automatically removing dirty bit.

*** Filesystem was changed ***
Writing changes.
/dev/sdb1: 4083 files, 912858/3754218 clusters

So I will double check and add the below to the /lib/systemd/system-sleep folder:

#!/bin/sh
# rebind sandisk usb
case "$1" in
    pre)
     # unmount sandisk usb before suspend
     umount /dev/disk/by-uuid/3936-3889 
    ;;  
    post)
     # rebind sandisk usb when waking
     sleep 1 
     mount /dev/disk/by-uuid/3936-3889
    ;;
esac

This isn't a huge deal since I don't often suspend on battery for any great length of time, and a replug of the USB device is all that is necessary. However, it does happen occasionally and I would prefer to minimise physical replugging if there is another way.

Any ideas? I suspect it might not be possible with that USB device and the 'proper' solution is a bigger SSD. Still, I am open to suggestions.

TIA

EDIT I have added the fstab entry above and dmesg logs of a clean suspend/resume on power versus a failed suspend/resume on battery. I am also going to change the drive from fat to ext4 and retest.

-- Mark

Ubuntu 24.04 LTS Gnome randomly locks up while using file manager, Firefox, and gedit to edit PHP program https://askubuntu.com/questions/1559504/ubuntu-24-04-lts-gnome-randomly-locks-up-while-using-file-manager-firefox-and

I replaced my Windows 10 Pro with Ubuntu 24.04 recently...I'm not new to Linux or Ubuntu.

My computer is an HP Compaq 8200 Elite with 8gb RAM and an i5 processor. It is EFI capable but does not have the secure boot available. I did update my Grub to reflect this. It should be okay for what I'm doing as I understand things.

Ubuntu keeps randomly locking up while I'm editing my Zen Cart PHP files.

I usually have 2 to 4 tabs open in Firefox, 3 or 4 files in gedit or text edit, and 2 to 4 nautilus file manger windows.

I have reduced a Firefox setting for "instances" from 8 to 4, tried running in the alternative graphics environment, printed journalctl, and kept open programs to a minimum when possible.

When it locks up, I've tried Alt SysRq REISUB but it will not work...even if I wait 10 second between each letter. Ctl Alt Del...nothing happens. Plugging in a wired mouse and keyboard does not work. My Blackweb RF keyboard becomes unresponsive. I have disconnected and reconnected it to try and unfreeze the system but nothing happens. The only way to get out of the freeze is a hard power off reset and I know that is not the correct way to exit a freeze...but necessary in my case.

I'm writing this in the alternate graphics startup so I don't know if running in this mode is going to fix my issue.

My system is up to date.

Could someone, please, guide me in the correct direction to resolve this?

Thanks.

Edit for @mchid:

After startup:

$ free -h
               total        used        free      shared  buff/cache   available
Mem:           7.6Gi       1.3Gi       5.5Gi       137Mi       1.3Gi       6.4Gi
Swap:          4.0Gi          0B       4.0Gi

After opening Firefox, phpMyAdmin, Zen Cart admin, Zen Cart catalog, Zen Cart clean install admin, and Zen Cart clean install catalog; text editor with 4 files; Nautilus SSD drive, and Nautilus backup drive hard disk: $free -h

               total        used        free      shared  buff/cache   available
Mem:           7.6Gi       2.1Gi       3.7Gi       374Mi       2.4Gi       5.5Gi
Swap:          4.0Gi          0B       4.0Gi

Edit 2:

After downloading 240 products with my Zen Cart plugin:

total        used        free      shared  buff/cache   available
Mem:           7.6Gi       2.4Gi       3.3Gi       417Mi       2.5Gi       5.3Gi
Swap:          4.0Gi          0B       4.0Gi

While running my Zen Cart plugin to resize 804 images:

total        used        free      shared  buff/cache   available
Mem:           7.6Gi       2.4Gi       3.2Gi       412Mi       2.5Gi       5.3Gi
Swap:          4.0Gi          0B       4.0Gi

First lock up / freeze after reporting this...

journalctl --since "15 minutes ago" -p err
Nov 12 17:30:57 mike-desktop kernel: ipmi:dmi: Base address is zero, assuming no IPMI interface
Nov 12 17:31:02 mike-desktop canonical-livepatch.canonical-livepatchd[1316]: refresh patch failed: livepatch check failed: POST reques>
Nov 12 17:31:02 mike-desktop canonical-livepatch.canonical-livepatchd[1316]: Task "refresh" returned an error: livepatch check failed:>
Nov 12 17:31:15 mike-desktop gdm-password][2075]: gkr-pam: unable to locate daemon control file
Nov 12 17:31:16 mike-desktop gdm3[1404]: Gdm: on_display_added: assertion 'GDM_IS_REMOTE_DISPLAY (display)' failed
Nov 12 17:31:16 mike-desktop systemd[2099]: Failed to start app-gnome-gnome\x2dkeyring\x2dsecrets-2348.scope - Application launched by>
Nov 12 17:31:16 mike-desktop systemd[2099]: Failed to start app-gnome-gnome\x2dkeyring\x2dssh-2341.scope - Application launched by gno>
Nov 12 17:31:17 mike-desktop systemd[2099]: Failed to start app-gnome-im\x2dlaunch-2565.scope - Application launched by gnome-session->
Nov 12 17:31:19 mike-desktop gdm3[1404]: Gdm: on_display_removed: assertion 'GDM_IS_REMOTE_DISPLAY (display)' failed 

I ran sudo pro disable livepatch and will manually do updates...we'll see if this works.

Edit: graphics information

sudo lshw -C display
[sudo] password for mike: 
  *-display                 
       description: VGA compatible controller
       product: 2nd Generation Core Processor Family Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       logical name: /dev/fb0
       version: 09
       width: 64 bits
       clock: 33MHz
       capabilities: msi pm vga_controller bus_master cap_list rom fb
       configuration: depth=32 driver=i915 latency=0 resolution=1366,768
       resources: irq:33 memory:fe000000-fe3fffff memory:d0000000-dfffffff ioport:f000(size=64) memory:c0000-dffff
locale problem in 25.10 https://askubuntu.com/questions/1559394/locale-problem-in-25-10

After update from Ubuntu 25.04 to 25.10, there is something wrong with locales and / or the date command:

Normally date should output (as in 25.04):

$ LC_TIME=en_GB.UTF-8 date 
Fri  7 Nov 19:29:29 +03 2025

But, in 25.10 it outputs:

$ LC_TIME=en_GB.UTF-8 date 
Fri Nov  7 19:31:06 +03 2025

like the US (default) format.

I also ran the following, but nothing changed:

$ sudo locale-gen --purge
Generating locales (this might take a while)...
  en_AG.UTF-8... done
  en_AU.UTF-8... done
  en_BW.UTF-8... done
  en_CA.UTF-8... done
  en_DK.UTF-8... done
  en_GB.UTF-8... done
  en_HK.UTF-8... done
  en_IE.UTF-8... done
  en_IL.UTF-8... done
  en_IN.UTF-8... done
  en_NG.UTF-8... done
  en_NZ.UTF-8... done
  en_PH.UTF-8... done
  en_SG.UTF-8... done
  en_US.ISO-8859-1... done
  en_US.UTF-8... done
  en_ZA.UTF-8... done
  en_ZM.UTF-8... done
  en_ZW.UTF-8... done
  tr_TR.UTF-8... done
Generation complete.

$ sudo update-locale

$ sudo locale -a
C
C.utf8
en_AG
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IL
en_IL.utf8
en_IN
en_IN.utf8
en_NG
en_NG.utf8
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US
en_US.iso88591
en_US.utf8
en_ZA.utf8
en_ZM
en_ZM.utf8
en_ZW.utf8
POSIX
tr_TR.utf8

$ ls -lh /usr/lib/locale/locale-archive
-rw-r--r-- 1 root root 8.5M Nov  7 19:32 /usr/lib/locale/locale-archive

$ LC_TIME=en_GB.UTF-8 date 
Fri Nov  7 19:34:20 +03 2025

How can I properly format the output of date command according to the active locale (e.g. en_GB)?


The cause of the problem seems to be the /usr/lib/cargo/bin/coreutils/date command to which the date command is linked by default. Because:

$ LC_TIME=en_GB.UTF-8 /snap/core20/2683/usr/bin/date
Fri  7 Nov 21:13:50 +03 2025

works OK.

$ date --version
date (uutils coreutils) 0.2.2

$ /snap/core20/2683/usr/bin/date --version
date (GNU coreutils) 8.30
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David MacKenzie.

So, my question is possibly related to this answer. However, I am searching for another, more simplistic solution.

If one of my monitors is bigger than the other, how can I stop my mouse getting stuck on corners? https://askubuntu.com/questions/1559220/if-one-of-my-monitors-is-bigger-than-the-other-how-can-i-stop-my-mouse-getting

I run Xubuntu 24.04.3 LTS x86_64. The Xfce version is Xfce 4.18. I have multiple monitors, but one is much bigger than the other. I am always able to move my mouse from the small monitor to the big one. However, as the screenshot below suggests, I can never move my mouse from the bottom left side of the big monitor to the little one. The mouse hits a "wall" and will move up rather than left until it is over the wall and able to move to the smaller monitor.

display settings

How can I knock down this wall? If one of my monitors is bigger than the other, how can I stop my mouse getting stuck on corners?

For comparison, I'm pretty sure that Windows would let me increase the size of both screens in this GUI and handle the borders intelligently.

I have seen answers mentioning edge resistance. As far as I can tell, none of those settings do anything at all. I have also not seen any Xfce settings related to sticky corners.

Custom ssh port configuration will listen only on IPv6 of the system https://askubuntu.com/questions/1532433/custom-ssh-port-configuration-will-listen-only-on-ipv6-of-the-system

After today's update of openssh-server (1:9.6p1-3ubuntu13.5 ⇒ 1:9.6p1-3ubuntu13.7) any custom port definition on systemctl edit ssh.socket configuration like this will not cause ssh.socket to listen on the IPv4 of the system:

ListenStream=2222

init will listen only on the IPv6 of the system.

MokListRT error: volume full - delete and reinstall keys https://askubuntu.com/questions/1514274/moklistrt-error-volume-full-delete-and-reinstall-keys

I have the same error as described here... Couldn't Create Moklist: Volume Full - grub doesn't start at all

Disabling secure boot did not help.

I cannot boot into my OS and also with a liveUSB I cannot boot.

Laptop is an old ASUS. The OS on my HDD is Ubuntu and that is the only want I want.

I also read here... https://www.reddit.com/r/Fedora/comments/172azxc/live_usb_wont_boot_volume_full/ - that the only solution is to delete all the keys, reinstall them, save, and restart. I am just not sure how to do it. MY QUESTION: What I do first, second, third, etc.? It seems not recommended to do this (= risky), but I have no choice, so I want to do it right. Do I delete all keys at once and then what as to how to reinstall? Or do I just do the Platform Key (PK) and then either "set new key" or first "delete key" and then what? Or another or all listed secure boot variables?

Here some screenshots:

MokListRT_ERROR:

MokListRT_ERROR

Delete_All_Secure_Boot_Variables:

Delete_All_Secure_Boot_Variables

Key_Management_Set_New_Key_Delete_Key:

Key_Management_Set_New_Key_Delete_Key

Secure_Boot_Secure_Boot_Control_Disabled:

Secure_Boot_Secure_Boot_Control_Disabled

MPV | configure shortcut to play next video file in a folder https://askubuntu.com/questions/1463056/mpv-configure-shortcut-to-play-next-video-file-in-a-folder

OS: Ubuntu 22.04.2 LTS

Hey there! A friend advertised mpv to me as the holy grail of media players, so I installed it, and I was wondering how to set a custom shortcut for going to the next file in a folder! Example:

name@computer:~/Videos$ ls
1.mkv 2.mkv 3.mkv 4.mkv
name@computer:~$ mpv 1.mkv

mpv now opened. We are playing the file 1.mkv. I wanna set a custom shortcut, on F11, to play the file 2.mkv. If I then pressed F11 again, 3.mkv should play.

I already modified the default shortcuts by doing:

name@computer:~$ vim ~/.config/mpv/input.conf

and writing:

d add speed 0.1
s add speed -0.1
+ add speed 0.5
- add speed -0.5
ENTER add chapter 1

and stuff like that. It all worked flawlessly, and was very intuitive. But now I've hit a roadblock. I tried to add the functionality I described above, but couldn't. I looked everywhere, at the mpv website, at the github page, but nowhere could I find how to do this. There were options like "playlist-next" and "playlist-prev" but they didn't work at all, even tho the described functionality was "skip to the next/previous file". input.conf on github

So my question is: What do I have to do (or write into input.conf) in order to have a shortcut to go back and forth between video files in a folder?

Thanks in advance!

"Invalid cross-device link" hard for directories on the same filesystem https://askubuntu.com/questions/1439604/invalid-cross-device-link-hard-for-directories-on-the-same-filesystem

I know hard links can't cross filesystems, but trying to link files via bind mounts that physically live on the same filesystem fails as well. I detailed things below to visualize it better, but the TLDR of my question is why is ln treating the mounted directories as though they live separately?

Basically, copying files into a share folder would be best-served with hardlinks so I'm not duplicating space:


mymedia/
├─ share/
│  ├─ pics/
│  │  ├─ pic2.tif
│  ├─ vids/
│  │  ├─ vid1.mov
├─ homevid/
│  ├─ vid1.mov
│  ├─ vid2.mov
│  ├─ vid3.mov
├─ homepic/
│  ├─ pic1.tif
│  ├─ pic2.tif
├─ training/




mymedia/share is on one drive (Media1), whereas homepic is on Media2 and homevid on Media3. The two folders in share are mounted from Media2/Media3. This is from fstab:

/dev/disk/by-uuid/UUID_1 /mnt/Media1 auto 0 0  
/dev/disk/by-uuid/UUID_2 /mnt/Media2 auto 0 0  
/dev/disk/by-uuid/UUID_3 /mnt/Media3 auto 0 0  
/mnt/Media1 /mnt/mymedia none bind 
/mnt/Media2/homepic /mnt/mymedia/homepic none bind
/mnt/Media2/share /mnt/mymedia/share/pics none bind
/mnt/Media3/homevid /mnt/mymedia/homevid none bind
/mnt/Media3/share /mnt/mymedia/share/vids none bind

I can create the link while using the "real" path, like so: ln /mnt/Media2/homepic/pic2.tif /mnt/Media2/share/, and see the new file in both directories; stat confirms the inode is the same for the files, as well as same device:

Path Device
/mnt/Media2/homepic 831h/2097d
/mnt/Media2/share 831h/2097d
/mnt/mymedia/homepic 831h/2097d
/mnt/mymedia/share/pics 831h/2097d
/mnt/mymedia/training 821h/2081d

Unfortunately, using the bind mounts would be way better for my workflow (this fails): ln /mnt/mymedia/homepic/pic1.tif /mnt/mymedia/share/pics/pic2.tif

What am I missing?

Permissions do not allow pasting files in this directory https://askubuntu.com/questions/1417836/permissions-do-not-allow-pasting-files-in-this-directory

I'm using Tower PC with 500GB SSD & 1 TB HDD, installed Ubuntu 22.04 LTS on the SSD, The 1TB HDD I'm not able to use, while copy paste a file from SSD to HDD it says "Permissions do not allow pasting files in this directory". Only using Ubuntu OS.

Response received during the copy paste:

enter image description here

And here for you to look at my SSD & HDD in gparted

View of my gparted Disk of HDD:

View of my gparted Disk of HDD

and View of my gparted Disk of SSD:

View of my gparted Disk of SSD

HDD "in terminal"

sudo gdisk /dev/sda
GPT fdisk (gdisk) version 1.0.8

The protective MBR's 0xEE partition is oversized! Auto-repairing.

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

Have a look at the Properties - Permissions of the HDD:

Properties - Permissions of the HDD

I do need to utilize the 1TB HDD for accessing files such Documents, Images, Videos with read, write etc., Please help me to resolve this I'm a beginner in Linux and Ubuntu OS

dpkg error: '/etc/resolv.conf' and '/run/systemd/resolve/stub-resolv.conf' are the same file https://askubuntu.com/questions/1342562/dpkg-error-etc-resolv-conf-and-run-systemd-resolve-stub-resolv-conf-are-t

Friends,

I am trying to install the package software-properties-common on Ubuntu 20.04 but after a I run sudo apt-get install -y software-properties-common I get the following error:

cp: '/etc/resolv.conf' and '/run/systemd/resolve/stub-resolv.conf' are the same
file

dpkg: error processing package systemd (--configure):
      installed systemd package post-installation script subprocess returned 
error exit status 1
Errors were encountered while processing:
   systemd
   E: Sub-process /usr/bin/dpkg returned an error code (1)

I tried this:

sudo rm -f /etc/resolv.conf 
ln -s /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf  

After that I restarted the system and tried to install the package again but with no success. I faced the same error. Any idea how I could solve this problem?

Making the sound card's power_save parameter permanent https://askubuntu.com/questions/1285491/making-the-sound-cards-power-save-parameter-permanent

Since I upgraded to ubuntu 20.04, I have a pulsing noise most likely due to a capacitor discharge in my speaker, and I have been able to solve the problem by changing the sound card power_save parameter to 0 by using the line

echo "0" | sudo tee /sys/module/snd_hda_intel/parameters/power_save

found on the site https://www.linuxquestions.org/questions/ubuntu-63/weird-static-noise-in-headset-on-ubuntu-20-04-a-4175681180/. But each time I boot, I have to do the manipulation again. How could I turn this parameter to 0 by default ?

How to visit a webpage using PuTTY? https://askubuntu.com/questions/1109529/how-to-visit-a-webpage-using-putty

I'm using Ubuntu VPS server, and I want to do a simple thing. I want to go to a webpage through the terminal to do a couple of checks regarding my website's traffic. I just need it to open a browser (not visually of course), go to a URL, and that's it. How do I do that guys?

installing cpuminer on Ubuntu 14.04.4 x64 https://askubuntu.com/questions/792365/installing-cpuminer-on-ubuntu-14-04-4-x64

I have just set up a server and trying to install cpuminer following this: https://help.ubuntu.com/community/cpuminer

I have downloaded cpuminer which is currently located at /cpuminer.

However, I'm not quite sure how to run the compile command.

I run the following:

cd cpuminer ./autogen.sh ./configure CFLAGS="-O3" make

This just returns nothing. What am I doing wrong?

Thanks

Installed grub to wrong partition https://askubuntu.com/questions/628698/installed-grub-to-wrong-partition

I was helping a friend remotely to dual boot Ubuntu with Windows 8.

He installed Ubuntu to /dev/sda7 and when it asked for where to put the bootloader, he selected the same (/dev/sda7)

When he rebooted, windows automatically boots, no GRUB menu.

How do we fix it to re-install grub to /dev/sda or /sda1 (whichever is required)

Xrandr not working with Nvidia https://askubuntu.com/questions/518757/xrandr-not-working-with-nvidia

I have a problem. I have a lapop with an Nvidia card and an Intel one

While I am using the Nvidia one (using PRIME profiles) I cannot change the display resolution using xrandr in terminal. All it does is that the display goes black for a second then back to the native resolution. However, when using the Intel card it works without an issue.

This is an issue for me because I play a lot of old games using Wine and most of them have very low resolutions and so, when using Nvidia, they are displayed on the top-left part of the screen, instead of being stretched to fill the whole screen like they do when using the Intel card (because the screen resolution will change to that of the game)

I also noticed that changing the resolution through System Settings -> Display works on both cards but it dosen't help much...

If I could get xrandr to change the resolution on the Nvidia card then those games will work or if not then I could make a script to do it when the game launches and change back to the native one when it's closed.

My OS is Ubuntu 14.04 x64 and I use the up-to-date Nvidia proprietary stable drivers. It's a laptop if that matters

EDIT: I just noticed that if I connect an external monitor (VGA1) I can change the resolution just fine on either monitor... and the game now runs fullscreen... but as soon as I disconnect it the issue comes back :(

freetuxtv installed in 14.04 is not working https://askubuntu.com/questions/459962/freetuxtv-installed-in-14-04-is-not-working

I have installed freetuxtv and it went through the preferred language and installed my program list.

I tried an outdoor channel and it said "playing" but also showed an error message saying that the channel may be dead. I tried all the channels with the same result.

I reinstalled tuxtv and vlc again and also checked my flashplayer to see if it was installed with no joy.

How can I fix this?

Open JDK doesn't run my jar files https://askubuntu.com/questions/434282/open-jdk-doesnt-run-my-jar-files

I decided to start java programming on Linux instead of Windows, but I can only open my projects in the NetBeans IDE. When I make the distribution into a .jar file, I can't open them. I already gave it the permission to be an executable file, but when I select Open JDK jre (either 6 or 7), it just stays there. It doesn't do anything and I don't see why it happens. Any help on what to do to proceed?

PS: The program I'm trying to open has a GUI and when I run it in NetBeans it directly loads into the GUI, instead of doing something at the console

Auto-unmount USB drive https://askubuntu.com/questions/330992/auto-unmount-usb-drive

I used to work for a long time with ubuntu 10.10 and I changed to a recent machine so I had to move to Ubuntu 13.04. One feature I'm now missing is the auto umount of usb drives. I've not been able to find easy info on internet.

Investigate disk writes further to find out which process writes to my SSD https://askubuntu.com/questions/216594/investigate-disk-writes-further-to-find-out-which-process-writes-to-my-ssd

I try to minimize disk writes to my new SSD system drive. I'm stuck with iostat output:

~ > iostat -d 10 /dev/sdb
Linux 2.6.32-44-generic (Pluto)     13.11.2012  _i686_  (2 CPU)

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
sdb               8,60       212,67       119,45   21010156   11800488

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
sdb               3,00         0,00        40,00          0        400

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
sdb               1,70         0,00        18,40          0        184

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
sdb               1,20         0,00        28,80          0        288

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
sdb               2,20         0,00        32,80          0        328

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
sdb               1,20         0,00        23,20          0        232

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
sdb               3,40        19,20        42,40        192        424

As I see there are writes to sdb. How can I resolve which process writes?

I know about iotop, but it doesn't show which filesystem is being accessed.

How can I capture network traffic of a single process? https://askubuntu.com/questions/11709/how-can-i-capture-network-traffic-of-a-single-process

I would like to examine the network traffic being handled by a single process, but simple network captures won't work since I am dealing with such a busy system (lots of other traffic happening at the same time). Is there a way to isolate a tcpdump or wireshark capture to the networking traffic of a single specific process? (Using netstat is insufficient.)