accessing external HDs https://askubuntu.com/questions/1564662/accessing-external-hds

i had problems with my internal HD so i was using an external one to boot from. recently i decided it was time to fix the problems i had, so i formatted the internal HD and installed ubuntu on it. now i want to copy all my documents from the external HD back to the internal one. the problem is that i can't mount the external one. when i plug it in, ubuntu only shows me a 2.1 GB partition, but the one i need is 2 TB in size. is my system FUBAR? am i doing something wrong?

BTW, booting from the external HD is not an option either, because then i can't access the internal HD. i have to enter the admin password, but that doesn't do me any good. and it won't accept my user password.

how can i get my files back?

Local CUPS to remote CUPS with authentication https://askubuntu.com/questions/1564661/local-cups-to-remote-cups-with-authentication

Currently using KDE on Ubuntu 22. I have a CUPS server that's using SSSD to provide authentication from LDAP when printing. I've got a printer that I am allowed to print since I'm in the correct group. Adding that printer to a Windows machine works as a charm (I add it, a popup asks for an username and password, all good, printing works).

The issue is when adding that same printer via the KDE Printers menu. Same, add via ipp, I'm asked for an username and password but those don't seem to work. I keep getting No authentication data provided in the local cups server, I don't even see the request on the remote cups (probably would if I'd enable debug, but since this is in use, I think that's going to make life a living hell - going through a ton of print jobs from a few tens of PCs).

Also, in the local cups server I see password_cb(prompts=\"Password for <username> on <cups server>? \" [...] password=(nil) so if I get this right, it uses no password to authenticate, even though the user is correct - so the username is taken from somewhere (not the same user as the local user).

Any help would be greatly appreciated.

Thank you!

Okular won't start, gives error https://askubuntu.com/questions/1564653/okular-wont-start-gives-error

When I try to start Okular to view PDFs, I get this error:

/snap/okular/173/usr/bin/okular: error while loading shared libraries: libPlasmaActivities.so.6: cannot open shared object file: No such file or directory

Also, I'm not sure if this is related, but when I start the Snap Store and click on "Installed" to try to view the installed applications, the page is completely blank. Nothing ever loads.

If I run

snap list

on the command line I can see all the installed applications and okular shows up.

I tried running

sudo snap refresh
sudo snap remove okular && sudo snap install okular

to fix ocular, but it still gives the error above. On the command line after running that last command I get:

okular removed (snap data snapshot saved)
okular 25.04.3 from KDE✓ installed 
What command line methods can I use to to disconnect, and then reconnect, a rotated monitor on Ubuntu 24.04 Wayland https://askubuntu.com/questions/1564649/what-command-line-methods-can-i-use-to-to-disconnect-and-then-reconnect-a-rota

Context

I have a dual monitor setup for normal daily use. My primary monitor (DP-1) is in landscape orientation and my secondary monitor (DP-2) is rotated 90 degrees clockwise (portrait right). This layout is easy to setup with Ubuntu's Setttings > Displays.

However, in some situations it is preferable to disconnect the secondary display and only use the primary. Going back into the settings and manually switching between these two "profiles" happens often enough that it is a bit annoying.

My ideal workflow would be to setup a hotkey shortcut (e.g., win+p) to run a script that swaps between these two setups. However, nothing I've tried or found online works:

xrandr recognizes my monitors and provides info (xrandr -q) but is unable to actually change anything:

xrandr [-d :1] --output DP-2 --off

#> X Error of failed request:  BadMatch (invalid parameter attributes)
#>   Major opcode of failed request:  139 (RANDR)
#>   Minor opcode of failed request:  7 (RRSetScreenSize)
#>   Serial number of failed request:  28
#>   Current serial number in output stream:  29
# Nothing happens...
xrandr --output DP-2 --rotate left

It appears that this is probably because my distro uses Wayland instead of X11, which has been great for most things. But, I haven't figured out how to manage Wayland displays from the terminal.


Specs

# list display names and modes
xrandr --listactivemonitors

#> Monitors: 2
#>  0: +*DP-1 2560/600x1440/340+0+0  DP-1
#>  1: +DP-2 1080/600x1920/340+2560+0  DP-2
# distro release
lsb_release -a

#> Distributor ID:  Ubuntu
#> Description: Ubuntu 24.04.4 LTS
#> Release: 24.04
#> Codename:    noble
# kernel version
uname -r

#> 6.17.0-14-generic

Question

How can I swap between these two "profiles" with a script and/or shortcut, macro, etc.?

Shortcut keeps coming back [closed] https://askubuntu.com/questions/1564648/shortcut-keeps-coming-back

I think I have made the mistake of installing Ubuntu based Winux. I have uninstalled the microsoft edge browser but the desktop shortcut keep coming back on restart/reboot.

Any suggestions on how to get rid of this pesky shortcut would be greatly appreciated.

UI problems after 25.10 https://askubuntu.com/questions/1562345/ui-problems-after-25-10

I updated to 25.10 a couple of days ago. Everything seemed to work fine but...

  • VMware Workstation 25H2: does not update correctly its window and menu bar components. Sometimes the virtual machine looks online when its shutdown. Sometimes resizing the workstation window does not affect the virtual machine desktop (when it should, of course). Sometimes the menu selected/m-over option is not highlighted, but it is clickable. It's kind of weird.

  • Audacity: The UI components are clickable but they're not updated on screen. This has been fixed by switching to Gt mode from GTK mode.

Has anyone had similar issues? Do you have any idea how to fix them?

Google Chrome is not displaying websites correctly https://askubuntu.com/questions/1477735/google-chrome-is-not-displaying-websites-correctly

Google Chrome is not displaying websites correctly. This issue has made Google Chrome completely unusable, however Firefox works just fine. Here is a screenshot of what I am talking about.

Screenshot of Ubuntu stack exchange with corrupted page from Google Chrome

Interestingly, when I was taking the screenshot the bug was even effecting the display of the screenshot box, so the issue effects the screen outside of just Chrome.

I think the problem could be with the graphics driver for my computer. Another issue I have is the computer won't go into Suspend when I close the lid and if it is in my backpack it will get warm. I have dug a lot into that issue, and it seems like the graphics driver could be the culprit as well.

Specs:

  • Ubuntu 22.04.2 LTS
  • Computer Model: Dell Inspiron 7415 2-in-1
  • Processor: AMD Ryzen 5 5500u with radeon graphics x 12
  • Graphics: RENOIR (renoir, LLVM 15.0.7, DRM 3.47, 5.19.0-46-generic)

When doing sudo lshw -c video:

  • description: VGA compatible controller
  • product: Lucienne
  • vendor: AMD/ATI
  • ...
  • width: 64 bits
  • clock: 33MHz
  • capabilities: pm pciexpress msi msix vga_controller bus_master cap_list fb
  • configuration: depth=32 driver=amdgpu latency=0 mode=1920x1080 resolution=1920,1080 visual=truecolor xres=1920 yres=1080
Generating TOTP for 2FA directly from the computer (no mobile device) https://askubuntu.com/questions/1460640/generating-totp-for-2fa-directly-from-the-computer-no-mobile-device

On Ubuntu 22.04.2, I would be glad to ear about a native and secure way to generate TOTP codes for using in any given application which needs 2FA.

Do you know an open-source way of doing that directly on an Ubuntu computer?

All tutorial I can find are based on the "mobile app" way (e.g. using Google Authenticator), which I cannot use because I don't have any other mobile device than a laptop.

Ubuntu 22.04 cable network does not work, only wifi https://askubuntu.com/questions/1434794/ubuntu-22-04-cable-network-does-not-work-only-wifi

I installed Ubuntu 22.04 in dual boot with Windows but my wired network doesn't work in Ubuntu. WiFi does work. I tried several tutorials on the internet, but none of them work in my case. My system is a fresh installation. I didn't modify any network configuration.

My cable is plugged in and works on Windows so it's not a physical issue or a router issue.

I use Ubuntu with WiFi at work, at home I connect the PC with the cable internet (I don't have WiFi at home). I start Ubuntu and the internet does not work. I have tried a lot to solve this, but nothing works. I am running on Windows to ask for help here because I have internet on the wired connection in Windows. I came back to Ubuntu to take some screenshots of my internet connection, but now the internet works. What is going on? It seems that it began to work again after I started Windows and came back to Ubuntu.

(It happened more than once).

Results of ip addr:

ip addr

Results of sudo dhclient:

dhclient

Results of netplan yaml (01-network-manager-all.yaml):

netplan yaml (01-network-manager-all.yaml)

Results of sudo lshw -C network:

sudo lshw -C network

About the Fast Boot, it was already disabled.

fast boot is disabled on windows

My wired settings:

IPv4: automatic(DHCP)
IPv6: Disable

------------ Solution ---------------

My internet driver was wrong. It was for 8169, but my hardware is for 8168 driver.

Running sudo apt install r8168-dkms solved the problem. You will only need to set a password (write it down) and after a reboot use this password to set MOK.

Steps after sudo apt install r8168-dkms and reboot:

Steps after sudo apt install r8168-dkms and reboot

Ryzen CPU Core and Socket Temps - Is this available via sensors? https://askubuntu.com/questions/1423242/ryzen-cpu-core-and-socket-temps-is-this-available-via-sensors

Evening!

I'm trying to find a way to display Ryzen CPU Core and Socket temperatures... I'm not sure if there's a way or not.

Here's the output of 'lscpu'

server:~$ sudo lscpu
Architecture:            x86_64
  CPU op-mode(s):        32-bit, 64-bit
  Address sizes:         43 bits physical, 48 bits virtual
  Byte Order:            Little Endian
CPU(s):                  8
  On-line CPU(s) list:   0-7
Vendor ID:               AuthenticAMD
  Model name:            AMD Ryzen 5 1400 Quad-Core Processor
    CPU family:          23
    Model:               1
    Thread(s) per core:  2
    Core(s) per socket:  4
    Socket(s):           1
    Stepping:            1
    Frequency boost:     enabled
    CPU max MHz:         3200.0000
    CPU min MHz:         1550.0000
    BogoMIPS:            6387.11
    Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_
                         tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a m
                         isalignsse 3dnowprefetch osvw skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb hw_pstate ssbd vmmcall fsgsbase bmi1 avx2 smep bmi2 rdseed adx smap clflush
                         opt sha_ni xsaveopt xsavec xgetbv1 xsaves clzero irperf xsaveerptr arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vms
                         ave_vmload vgif overflow_recov succor smca sme sev
Virtualisation features:
  Virtualisation:        AMD-V
Caches (sum of all):
  L1d:                   128 KiB (4 instances)
  L1i:                   256 KiB (4 instances)
  L2:                    2 MiB (4 instances)
  L3:                    8 MiB (2 instances)
NUMA:
  NUMA node(s):          1
  NUMA node0 CPU(s):     0-7
Vulnerabilities:
  Itlb multihit:         Not affected
  L1tf:                  Not affected
  Mds:                   Not affected
  Meltdown:              Not affected
  Mmio stale data:       Not affected
  Retbleed:              Mitigation; untrained return thunk; SMT vulnerable
  Spec store bypass:     Mitigation; Speculative Store Bypass disabled via prctl and seccomp
  Spectre v1:            Mitigation; usercopy/swapgs barriers and __user pointer sanitization
  Spectre v2:            Mitigation; Retpolines, STIBP disabled, RSB filling
  Srbds:                 Not affected
  Tsx async abort:       Not affected

This is the output of 'sensors'

server:~$ sudo sensors
radeon-pci-0900
Adapter: PCI adapter
temp1:        +43.0°C  (crit = +120.0°C, hyst = +90.0°C)

it8792-isa-0a60
Adapter: ISA adapter
in0:           1.10 V  (min =  +0.00 V, max =  +2.78 V)
in1:           1.09 V  (min =  +0.00 V, max =  +2.78 V)
in2:           1.08 V  (min =  +0.00 V, max =  +2.78 V)
+3.3V:         1.67 V  (min =  +0.00 V, max =  +2.78 V)
in4:           1.30 V  (min =  +0.00 V, max =  +2.78 V)
in5:           1.11 V  (min =  +0.00 V, max =  +2.78 V)
in6:           2.78 V  (min =  +0.00 V, max =  +2.78 V)  ALARM
3VSB:          1.66 V  (min =  +0.00 V, max =  +2.78 V)
Vbat:          1.54 V
fan1:           0 RPM  (min =    0 RPM)
fan2:           0 RPM  (min =    0 RPM)
fan3:           0 RPM  (min =    0 RPM)
temp1:        +30.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermistor
temp2:        +34.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = Intel PECI
temp3:        +37.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermistor
intrusion0:  ALARM

k10temp-pci-00c3
Adapter: PCI adapter
Tctl:         +60.1°C

The temp1/temp2/temp3 are not from the CPU - I think they're from sensors on the motherboard - and they havne't changed

The k10temp 'Tctl' value is the temperature of the CPU...

I'm running a Gigabyte AB350-Gaming 3-CF motherboard.

Is there anyway of getting the individual CPU temps?

Where is the driver folder in Ubuntu? https://askubuntu.com/questions/1420332/where-is-the-driver-folder-in-ubuntu

I need to access an option.c file inside the path [linux-src]/drivers/usb/serial/option.c. I update my kernel version:

    admin@sintrones-abox:~$ uname -r
    5.18.14-051814-generic

Inside the folder /usr/src I still have the older kernels directories:

admin@sintrones-abox:/usr/src$ ls
backport-iwlwifi-8324            linux-hwe-5.4-headers-5.4.0-122
linux-headers-5.18.14-051814     Quectel_Linux_USB_Driver
linux-headers-5.4.0-122-generic

I tried to search:

admin@sintrones-abox:/usr/src$ locate -b '\serial'
/home/admin/drivers/usb/serial
/lib/modules/4.15.0-189-generic/kernel/drivers/tty/serial
/lib/modules/5.4.0-122-generic/kernel/drivers/tty/serial
/lib/modules/5.4.0-122-generic/kernel/drivers/usb/serial
/snap/core20/1518/usr/lib/python3/dist-packages/serial
/snap/core20/1581/usr/lib/python3/dist-packages/serial
/usr/lib/python3/dist-packages/serial
/usr/src/Quectel_Linux_USB_Driver/drivers/usb/serial
/usr/src/linux-headers-5.4.0-122-generic/include/config/serial
/usr/src/linux-headers-5.4.0-122-generic/include/config/ir/serial
/usr/src/linux-headers-5.4.0-122-generic/include/config/kgdb/serial
/usr/src/linux-headers-5.4.0-122-generic/include/config/snd/serial
/usr/src/linux-headers-5.4.0-122-generic/include/config/tablet/serial
/usr/src/linux-headers-5.4.0-122-generic/include/config/u/serial
/usr/src/linux-headers-5.4.0-122-generic/include/config/usb/serial
/usr/src/linux-hwe-5.4-headers-5.4.0-122/drivers/tty/serial
/usr/src/linux-hwe-5.4-headers-5.4.0-122/drivers/usb/serial
/var/lib/snapd/assertions/asserts-v0/serial

But none of them contains an option.c file. It is automatic generated file from Linux? Where can I find it? How can I re-generate it?

Problem when installing Microsoft SQL Server 2019 https://askubuntu.com/questions/1416777/problem-when-installing-microsoft-sql-server-2019

I tried to install MSSQL-Server using Microsoft's guide but I get this error during the installation, I tried Synaptic but it did not work, I browsed trough Stackexchange running some terminal codes but it did not help either, here is the error:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 mssql-server : Depends: libldap-2.4-2 but it is not installable
E: Unable to correct problems, you have held broken packages.

And here is the other error when I try to update:

dpkg: error processing package msodbcsql17 (--configure):
 installed msodbcsql17 package post-installation script subprocess returned erro
r exit status 127
dpkg: dependency problems prevent configuration of mssql-tools:
 mssql-tools depends on msodbcsql17 (>= 17.3.0.0); however:
  Package msodbcsql17 is not configured yet.

dpkg: error processing package mssql-tools (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup erro
r from a previous failure.
                          Errors were encountered while processing:
 msodbcsql17
 mssql-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

I apologize if its too long.

Unable to ping IP of device connected by Ethernet on Ubuntu 20.04 https://askubuntu.com/questions/1403812/unable-to-ping-ip-of-device-connected-by-ethernet-on-ubuntu-20-04

Problem

From these screenshots below, I believe that I have successfully configured my Ethernet adapter.

Using lshw to showcase the established interfaces:

Using lshw to showcase the established interfaces

Using ifconfig to show the configuration of the network interfaces:

Using ifconfig to show the configuration of the network interfaces

After configuring my Ethernet adapter, I connected local device to my desktop and attempted to ping it to test whether there is a successful connection. Below is the result of that ping:

Result of pinging 4 packets to device IP address

Initially, there was some weirdness surrounding whether the interface was able to detect a connection.

Showing that I set my Ethernet IPv4 settings to manual instead of automatic DHCP:

Showing that I set my Ethernet IPv4 settings to manual instead of automatic DHCP

When this was set to Automatic (DHCP), the Wired part of the settings would fail to connect with Ethernet. As a result, I manually configured my address, netmask, and gateway, as you can see through the previous screenshot. After this, the settings menu began to show that I was connected to some device via Ethernet, as shown here:

Showing that the UI says that the Ethernet is connected

Therefore, my problem is that I should be able to ping the device that is directly connected, but I am unable to. I hooked up the device to another desktop via Ethernet and saw successful pings, so I wanted to know why the pings were failing for a device directly connected to the desktop in question.

What I've Tried

  • I have done power cycling on both the device and my desktop, and I have checked for loose connections

  • I have looked into the potential of ACLs, rate limiters, and other such firewalls, blocking the receipt of packets. I am very new to network security, so I might have missed something, but I do not believe that this is the issue, since nothing really showed up.

  • I have tried directly adding the IP I'm trying to ping and its host name into my route

  • On that note, I have run traceroute -I 192.168.137.11 and only the IP of my PC appeared

Possibly Useful Background

The desktop in question was newly built with a motherboard with a component that only works for kernel versions 5.15 onwards. The desktop is running Ubuntu 20.04 because I need to use a feature that is exclusive to the MoveIt version for ROS Noetic, among other things. Thus, I am currently using kernel version 5.15.31. My Ethernet interface is a Realtek RTL8125. Installing the drivers for it was a hassle because most everything I've tried through the Realtek website:

https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software

and through using sudo apt-get install r8168-dkms have failed, mostly due to issues involving Linux headers. After removing several other kernel versions, removing and reinstalling other packages, what eventually allowed me to interact with the Ethernet interface (I think) was by running:

sudo apt install realtek-r8125-dkms

I believe the successful installation of this package, as well as the earlier screenshots, indicates that the driver has been installed, but I don't really know if this is true, and I have no idea if the kernel version that I am using is interfering at all with the networking.

Node.js is installed but not working https://askubuntu.com/questions/1403763/node-js-is-installed-but-not-working

Node.js is installed but not working. How to solve it?

$ nvm install node
Downloading and installing node v18.0.0...
Downloading https://nodejs.org/dist/v18.0.0/node-v18.0.0-linux-x64.tar.xz...
######################################################################## 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v18.0.0 (npm v)
Creating default alias: default -> node (-> v18.0.0)
$ node -v
node: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by node)
node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by node)
node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by node)
External USB disk I/O error after sleep/wake https://askubuntu.com/questions/1386130/external-usb-disk-i-o-error-after-sleep-wake

I have a 1TB Toshiba USB HDD connected to the USB 3.0 port in my laptop (Asus X550C). I am using Ubuntu 18.04 (kernel 4.15.0-166-generic).

I used to sleep/wake up the computer with the USB drive attached and everything resumed normally. However, since one Ubuntu update (I cannot tell which one) I get I/O errors from the USB disk after waking up:

user@asus:/media/user/HDD$ ls
ls: reading directory '.': Input/output error

All programs that have a file opened from the USB disk crash after resume because they cannot access the disk.

What I have observed by trial and error:

  • New programs can access the disk successfully. However, those programs that went through the sleep/wake up cycle never recover access, even though the disk is working again
  • There is one exception: if I leave a shell opened and pointing to a directory in the disk, I get I/O errors. However, if I type cd . errors go away and HDD works again (only cd ., any other command results in IO error)
  • If I attach the HDD to the USB 2.0 port, it wakes up successfully
  • If I attach a USB flash drive (not HDD), it wakes up successfully

It is like the current directory is somehow lost for programs that go through the sleep/wake up process. Programs opened after wake up work nicely. This only happens for an HDD connected to the USB 3.0 (like some kind of racing condition).

$ sudo fdisk -l
Disk /dev/sda: 447.1 GiB, 480103981056 bytes, 937703088 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x8cc1ecc7

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1  *         2048    206847    204800   100M  7 HPFS/NTFS/exFAT
/dev/sda2          206848 440526847 440320000   210G  7 HPFS/NTFS/exFAT
/dev/sda3       440526848 937701375 497174528 237.1G 83 Linux


Disk /dev/sdc: 931.5 GiB, 1000204883968 bytes, 1953525164 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x9b0f78c0

Device     Boot     Start        End   Sectors   Size Id Type
/dev/sdc1            2048  983042047 983040000 468.8G  7 HPFS/NTFS/exFAT
/dev/sdc2       983042048 1953525163 970483116 462.8G 83 Linux
$ lsusb 
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 04f2:b40a Chicony Electronics Co., Ltd 
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 021: ID 0480:a00c Toshiba America Inc 
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 007: ID 0835:8502 Action Star Enterprise Co., Ltd 
Bus 003 Device 006: ID 0835:8500 Action Star Enterprise Co., Ltd 
Bus 003 Device 005: ID 046d:c31c Logitech, Inc. Keyboard K120
Bus 003 Device 004: ID 046d:c03e Logitech, Inc. Premium Optical Wheel Mouse (M-BT58)
Bus 003 Device 003: ID 0835:8501 Action Star Enterprise Co., Ltd 
Bus 003 Device 002: ID 0835:8500 Action Star Enterprise Co., Ltd 
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

dmes output with USB 3.0 (error reproduced):

[   80.707547] wlp2s0: deauthenticating from 54:a0:50:e4:82:30 by local choice (Reason: 3=DEAUTH_LEAVING)
[   83.020979] PM: suspend entry (deep)
[   83.020982] PM: Syncing filesystems ... done.
[   83.034082] Freezing user space processes ... (elapsed 0.002 seconds) done.
[   83.036245] OOM killer disabled.
[   83.036246] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[   83.037516] Suspending console(s) (use no_console_suspend to debug)
[   83.056384] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[   83.056445] sd 0:0:0:0: [sda] Stopping disk
[   83.064227] sd 6:0:0:0: [sdb] Synchronizing SCSI cache
[   83.225059] ACPI: EC: interrupt blocked
[   83.244915] ACPI: Preparing to enter system sleep state S3
[   83.252323] ACPI: EC: event blocked
[   83.252325] ACPI: EC: EC stopped
[   83.252326] PM: Saving platform NVS memory
[   83.252516] Disabling non-boot CPUs ...
[   83.268409] IRQ 31: no longer affine to CPU1
[   83.269427] smpboot: CPU 1 is now offline
[   83.294105] smpboot: CPU 2 is now offline
[   83.316526] IRQ 23: no longer affine to CPU3
[   83.316533] IRQ 26: no longer affine to CPU3
[   83.316541] IRQ 29: no longer affine to CPU3
[   83.317557] smpboot: CPU 3 is now offline
[   83.319808] ACPI: Low-level resume complete
[   83.319884] ACPI: EC: EC started
[   83.319885] PM: Restoring platform NVS memory
[   83.321732] Enabling non-boot CPUs ...
[   83.321805] x86: Booting SMP configuration:
[   83.321806] smpboot: Booting Node 0 Processor 1 APIC 0x2
[   83.325400]  cache: parent cpu1 should not be sleeping
[   83.325731] CPU1 is up
[   83.325772] smpboot: Booting Node 0 Processor 2 APIC 0x1
[   83.328403]  cache: parent cpu2 should not be sleeping
[   83.329072] CPU2 is up
[   83.329111] smpboot: Booting Node 0 Processor 3 APIC 0x3
[   83.331670]  cache: parent cpu3 should not be sleeping
[   83.332147] CPU3 is up
[   83.336322] ACPI: Waking up from system sleep state S3
[   83.415767] ACPI: EC: interrupt unblocked
[   83.436652] ACPI: EC: event unblocked
[   83.436704] usb usb3: root hub lost power or was reset
[   83.436709] usb usb4: root hub lost power or was reset
[   83.437112] usb usb1: root hub lost power or was reset
[   83.437889] usb usb2: root hub lost power or was reset
[   83.441029] ehci-pci 0000:00:1a.0: cache line size of 64 is not supported
[   83.441796] ehci-pci 0000:00:1d.0: cache line size of 64 is not supported
[   83.444014] sd 0:0:0:0: [sda] Starting disk
[   83.552768] r8169 0000:03:00.2 enp3s0f2: link down
[   83.734197] usb 2-1: reset high-speed USB device number 2 using ehci-pci
[   83.734220] usb 1-1: reset high-speed USB device number 2 using ehci-pci
[   83.768919] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[   83.768963] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[   83.770066] ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
[   83.770934] ata1.00: ACPI cmd ef/10:06:00:00:00:a0 (SET FEATURES) succeeded
[   83.770939] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
[   83.771145] ata3.00: ACPI cmd ef/10:06:00:00:00:a0 (SET FEATURES) succeeded
[   83.771152] ata3.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
[   83.772458] ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
[   83.772534] ata1.00: ACPI cmd ef/10:06:00:00:00:a0 (SET FEATURES) succeeded
[   83.772539] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
[   83.772644] ata1.00: configured for UDMA/133
[   83.776606] ata3.00: ACPI cmd ef/10:06:00:00:00:a0 (SET FEATURES) succeeded
[   83.776612] ata3.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
[   83.778387] ata3.00: configured for UDMA/133
[   84.205989] usb 1-1.3: reset high-speed USB device number 3 using ehci-pci
[   86.415072] OOM killer enabled.
[   86.415075] Restarting tasks ... 
[   86.415368] usb 4-1: USB disconnect, device number 2
[   86.422799] done.
[   86.425772] print_req_error: I/O error, dev sdb, sector 0
[   86.437800] sd 6:0:0:0: [sdb] Synchronizing SCSI cache
[   86.437843] sd 6:0:0:0: [sdb] Synchronize Cache(10) failed: Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
[   86.493540] blk_partition_remap: fail for partition 2
[   86.493568] Buffer I/O error on dev sdb2, logical block 60325888, lost sync page write
[   86.493581] JBD2: Error -5 detected when updating journal superblock for sdb2-8.
[   86.493583] Aborting journal on device sdb2-8.
[   86.493587] blk_partition_remap: fail for partition 2
[   86.493588] Buffer I/O error on dev sdb2, logical block 60325888, lost sync page write
[   86.493590] JBD2: Error -5 detected when updating journal superblock for sdb2-8.
[   86.638576] PM: suspend exit
[   86.746072] IPv6: ADDRCONF(NETDEV_UP): enp3s0f2: link is not ready
[   86.843335] r8169 0000:03:00.2 enp3s0f2: link down
[   86.843517] IPv6: ADDRCONF(NETDEV_UP): enp3s0f2: link is not ready
[   86.846125] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
[   86.996625] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
[   87.053851] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
[   87.320988] usb 4-1: new SuperSpeed USB device number 3 using xhci_hcd
[   87.344753] usb 4-1: New USB device found, idVendor=0480, idProduct=a00c
[   87.344757] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   87.344759] usb 4-1: Product: External USB 3.0
[   87.344760] usb 4-1: Manufacturer: TOSHIBA
[   87.344762] usb 4-1: SerialNumber: 20140114057420
[   87.345967] usb-storage 4-1:1.0: USB Mass Storage device detected
[   87.347590] usb-storage 4-1:1.0: Quirks match for vid 0480 pid a00c: 800000
[   87.347626] scsi host6: usb-storage 4-1:1.0
[   88.175858] wlp2s0: authenticate with 54:a0:50:e4:82:30
[   88.185166] wlp2s0: send auth to 54:a0:50:e4:82:30 (try 1/3)
[   88.186656] wlp2s0: authenticated
[   88.188952] wlp2s0: associate with 54:a0:50:e4:82:30 (try 1/3)
[   88.192934] wlp2s0: RX AssocResp from 54:a0:50:e4:82:30 (capab=0x1411 status=0 aid=5)
[   88.193029] wlp2s0: associated
[   88.214555] IPv6: ADDRCONF(NETDEV_CHANGE): wlp2s0: link becomes ready
[   88.377019] scsi 6:0:0:0: Direct-Access     TOSHIBA  External USB 3.0 5438 PQ: 0 ANSI: 6
[   88.381543] sd 6:0:0:0: Attached scsi generic sg2 type 0
[   88.382630] sd 6:0:0:0: [sdb] 1953525164 512-byte logical blocks: (1.00 TB/932 GiB)
[   88.382979] sd 6:0:0:0: [sdb] Write Protect is off
[   88.382982] sd 6:0:0:0: [sdb] Mode Sense: 23 00 00 00
[   88.383327] sd 6:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   90.948674]  sdb: sdb1 sdb2
[   90.960736] sd 6:0:0:0: [sdb] Attached SCSI disk
[   92.224427] EXT4-fs (sdb2): recovery complete
[   92.284931] EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: (null)

dmes output with USB 2.0 (no errors):

[  101.037552] wlp2s0: deauthenticating from 54:a0:50:e4:82:30 by local choice (Reason: 3=DEAUTH_LEAVING)
[  103.385167] PM: suspend entry (deep)
[  103.385170] PM: Syncing filesystems ... done.
[  103.397551] Freezing user space processes ... (elapsed 0.002 seconds) done.
[  103.399954] OOM killer disabled.
[  103.399955] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[  103.401220] Suspending console(s) (use no_console_suspend to debug)
[  103.433979] sd 6:0:0:0: [sdb] Synchronizing SCSI cache
[  103.433981] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[  103.434395] sd 0:0:0:0: [sda] Stopping disk
[  103.603845] ACPI: EC: interrupt blocked
[  103.623791] ACPI: Preparing to enter system sleep state S3
[  103.755715] ACPI: EC: event blocked
[  103.755717] ACPI: EC: EC stopped
[  103.755718] PM: Saving platform NVS memory
[  103.755866] Disabling non-boot CPUs ...
[  103.771717] IRQ 31: no longer affine to CPU1
[  103.772734] smpboot: CPU 1 is now offline
[  103.797121] smpboot: CPU 2 is now offline
[  103.819706] IRQ 23: no longer affine to CPU3
[  103.819714] IRQ 26: no longer affine to CPU3
[  103.819719] IRQ 27: no longer affine to CPU3
[  103.820738] smpboot: CPU 3 is now offline
[  103.823007] ACPI: Low-level resume complete
[  103.823087] ACPI: EC: EC started
[  103.823089] PM: Restoring platform NVS memory
[  103.824934] Enabling non-boot CPUs ...
[  103.825037] x86: Booting SMP configuration:
[  103.825038] smpboot: Booting Node 0 Processor 1 APIC 0x2
[  103.828655]  cache: parent cpu1 should not be sleeping
[  103.828991] CPU1 is up
[  103.829030] smpboot: Booting Node 0 Processor 2 APIC 0x1
[  103.831690]  cache: parent cpu2 should not be sleeping
[  103.832340] CPU2 is up
[  103.832389] smpboot: Booting Node 0 Processor 3 APIC 0x3
[  103.834918]  cache: parent cpu3 should not be sleeping
[  103.835416] CPU3 is up
[  103.839605] ACPI: Waking up from system sleep state S3
[  103.902963] ACPI: EC: interrupt unblocked
[  103.923403] ACPI: EC: event unblocked
[  103.923449] usb usb3: root hub lost power or was reset
[  103.923454] usb usb4: root hub lost power or was reset
[  103.925642] usb usb1: root hub lost power or was reset
[  103.927446] usb usb2: root hub lost power or was reset
[  103.929543] ehci-pci 0000:00:1a.0: cache line size of 64 is not supported
[  103.931347] ehci-pci 0000:00:1d.0: cache line size of 64 is not supported
[  103.935308] sd 0:0:0:0: [sda] Starting disk
[  104.035971] r8169 0000:03:00.2 enp3s0f2: link down
[  104.225463] usb 1-1: reset high-speed USB device number 2 using ehci-pci
[  104.225473] usb 2-1: reset high-speed USB device number 2 using ehci-pci
[  104.320371] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[  104.320409] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[  104.321734] ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
[  104.322970] ata1.00: ACPI cmd ef/10:06:00:00:00:a0 (SET FEATURES) succeeded
[  104.322978] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
[  104.323150] ata3.00: ACPI cmd ef/10:06:00:00:00:a0 (SET FEATURES) succeeded
[  104.323158] ata3.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
[  104.324340] ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
[  104.324379] ata1.00: ACPI cmd ef/10:06:00:00:00:a0 (SET FEATURES) succeeded
[  104.324383] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
[  104.324562] ata1.00: configured for UDMA/133
[  104.328629] ata3.00: ACPI cmd ef/10:06:00:00:00:a0 (SET FEATURES) succeeded
[  104.328647] ata3.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
[  104.330415] ata3.00: configured for UDMA/133
[  104.341631] usb 3-2: reset high-speed USB device number 2 using xhci_hcd
[  104.697412] usb 1-1.3: reset high-speed USB device number 3 using ehci-pci
[  104.837895] OOM killer enabled.
[  104.837899] Restarting tasks ... done.
[  105.098906] PM: suspend exit
[  105.182497] IPv6: ADDRCONF(NETDEV_UP): enp3s0f2: link is not ready
[  105.283583] r8169 0000:03:00.2 enp3s0f2: link down
[  105.283671] IPv6: ADDRCONF(NETDEV_UP): enp3s0f2: link is not ready
[  105.285124] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
[  105.433822] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
[  105.482910] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
[  106.622874] wlp2s0: authenticate with 54:a0:50:e4:82:30
[  106.627239] wlp2s0: send auth to 54:a0:50:e4:82:30 (try 1/3)
[  106.630373] wlp2s0: authenticated
[  106.633249] wlp2s0: associate with 54:a0:50:e4:82:30 (try 1/3)
[  106.649449] wlp2s0: RX AssocResp from 54:a0:50:e4:82:30 (capab=0x1411 status=0 aid=5)
[  106.649543] wlp2s0: associated
[  106.671964] IPv6: ADDRCONF(NETDEV_CHANGE): wlp2s0: link becomes ready

As you can see, the only difference between the two logs is that in the USB 3.0 the HDD gets disconnected from the USB bus:

...
[   86.415368] usb 4-1: USB disconnect, device number 2
...

So when the OS tries to access files from the HDD, the HDD is not ready and the error happens.

Any idea what might be causing this disconnection only under USB 3.0?

Thank you very much in advance.

How to use software-properties-gtk --enable-component=ENABLE_COMPONENT? https://askubuntu.com/questions/1355514/how-to-use-software-properties-gtk-enable-component-enable-component

I would like to enable or disable certain options in the software-properties-gtk application via the command line.

Examples of the options that I am interested to control via the command line are shown below:

a

b

I suspect the command software-properties-gtk --enable-component=ENABLE_COMPONENT would allow me to implement what I want, however manpage does not elaborate what values can be used to replace ENABLE_COMPONENT.

$ software-properties-gtk -h
Usage: software-properties-gtk [options]

Options:
  -h, --help            show this help message and exit
  -d, --debug           Print some debug information to the command line
  -m, --massive-debug   Print a lot of debug information to the command line
  -n, --no-update       No update on repository change (useful if called from
                        an external program).
  -t TOPLEVEL, --toplevel=TOPLEVEL
                        Set x-window-id of the toplevel parent for the dialog
                        (useful for embedding)
  -e ENABLE_COMPONENT, --enable-component=ENABLE_COMPONENT
                        Enable the specified component of the distro's
                        repositories
  --open-tab=OPEN_TAB   Open specific tab number on startup
  --enable-ppa=ENABLE_PPA
                        Enable PPA with the given name
  -k KEYSERVER, --keyserver=KEYSERVER
                        Legacy option, unused
  --data-dir=DATA_DIR   Use data files (UI) from the given directory

I would appreciate instructions on using this command.

Kubuntu randomly freezes on a new laptop after a few hours of use https://askubuntu.com/questions/1353217/kubuntu-randomly-freezes-on-a-new-laptop-after-a-few-hours-of-use

I have a Lenovo IdeaPad 14 G3 (AMD Ryzen 7 5700U, 16GB RAM), which is only a week old. It came with one 512GB NVMe SSD and Windows installed on it. I installed a second 500GB NVMe SSD and installed Kubuntu on that drive to have a dual boot system.

Everything seemed to be working fine, but after a few hours of use the laptop randomly crashes in a weird way. First it starts behaving weird like I can't save or open files, the context menu of Dolphin or the desktop has missing entries. Then after a few seconds some Icons start to disappear and finally the screen turns black and I only see my mouse cursor. I then have to hold down the power button until the laptop shuts off and restart it, after which everything works fine until the next freeze in a few hours.

While it was slowly freezing I saw that Dolphin only showed my first SSD with Windows on it, but not the second with Linux on it. Maybe the second SSD is randomly disconnecting?

It happened both on battery and while plugged in, I also disabled secure boot in the UEFI, but the error persists.

The last freeze was Jul 21st at 16:32 local time, I shut it down that minute and waited with the restart until 16:34, but my syslog only has entries after the restart, it does contain some weird characters that break this post tho, so here it is as a screenshot:

Syslog
Click image to enlarge it.

This is a snapshot of syslog around that time. Sadly I have no idea how to troubleshoot this I don't know if there are any other logs that could be useful or any commands I could check my SSD with. I suspect the SSD with Kubuntu on it is randomly disconnecting and the system freezes up as it gradually tries to load stuff into RAM, but I don't know how to go about validating and fixing this theory.

free -h :

    total        used        free      shared  buff/cache   available
Mem:           13Gi       870Mi        12Gi        26Mi       582Mi        12Gi
Swap:         5,6Gi          0B       5,6Gi

vm-swapiness:

vm.swappiness = 60

grep -i FPDMA /var/log/syslog* is empty.

sudo dmidecode -s bios-version

GQCN20WW(V1.06)

grep -i sda /var/log/syslog* also empty.

grep -i sdb /var/log/syslog* :

Jul 15 23:38:33 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 15 23:38:33 rouben-ThinkBook-14-G3-ACL smartd[986]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 15 23:38:33 rouben-ThinkBook-14-G3-ACL smartd[986]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 15 23:47:48 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 15 23:47:48 rouben-ThinkBook-14-G3-ACL smartd[812]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 15 23:47:48 rouben-ThinkBook-14-G3-ACL smartd[812]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 15 23:47:48 rouben-ThinkBook-14-G3-ACL smartd[812]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 15 23:49:26 rouben-ThinkBook-14-G3-ACL PackageKit: in /7_acbedbed for update-packages package samba-dsdb-modules;2:4.13.3+dfsg-1ubuntu2.1;amd64;ubuntu-hirsute-updates-main was updating for uid 0
Jul 15 23:51:03 rouben-ThinkBook-14-G3-ACL PackageKit: in /8_abdabedc for update-packages package samba-dsdb-modules;2:4.13.3+dfsg-1ubuntu2.1;amd64;ubuntu-hirsute-updates-main was installing for uid 0
Jul 15 23:51:03 rouben-ThinkBook-14-G3-ACL PackageKit: in /8_abdabedc for update-packages package samba-dsdb-modules;2:4.13.3+dfsg-1ubuntu2.1;amd64;ubuntu-hirsute-updates-main was installing for uid 0
Jul 16 13:18:38 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 16 13:18:38 rouben-ThinkBook-14-G3-ACL smartd[800]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 16 13:18:38 rouben-ThinkBook-14-G3-ACL smartd[800]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 13:18:38 rouben-ThinkBook-14-G3-ACL smartd[800]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 13:26:53 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 16 13:26:53 rouben-ThinkBook-14-G3-ACL smartd[766]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 16 13:26:53 rouben-ThinkBook-14-G3-ACL smartd[766]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 13:26:53 rouben-ThinkBook-14-G3-ACL smartd[766]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 13:31:54 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 16 13:31:54 rouben-ThinkBook-14-G3-ACL smartd[752]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 16 13:31:54 rouben-ThinkBook-14-G3-ACL smartd[752]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 13:31:54 rouben-ThinkBook-14-G3-ACL smartd[752]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 13:57:23 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 16 13:57:23 rouben-ThinkBook-14-G3-ACL smartd[758]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 16 13:57:23 rouben-ThinkBook-14-G3-ACL smartd[758]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 13:57:23 rouben-ThinkBook-14-G3-ACL smartd[758]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 15:42:23 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 16 15:42:23 rouben-ThinkBook-14-G3-ACL smartd[745]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 16 15:42:23 rouben-ThinkBook-14-G3-ACL smartd[745]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 15:42:23 rouben-ThinkBook-14-G3-ACL smartd[745]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 16:03:14 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 16 16:03:14 rouben-ThinkBook-14-G3-ACL smartd[748]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 16 16:03:14 rouben-ThinkBook-14-G3-ACL smartd[748]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 16:03:14 rouben-ThinkBook-14-G3-ACL smartd[748]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 19:38:55 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 16 19:38:55 rouben-ThinkBook-14-G3-ACL smartd[756]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 16 19:38:55 rouben-ThinkBook-14-G3-ACL smartd[756]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 19:38:55 rouben-ThinkBook-14-G3-ACL smartd[756]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 19:40:52 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 16 19:40:52 rouben-ThinkBook-14-G3-ACL smartd[750]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 16 19:40:52 rouben-ThinkBook-14-G3-ACL smartd[750]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 19:40:52 rouben-ThinkBook-14-G3-ACL smartd[750]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 19:47:51 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 16 19:47:51 rouben-ThinkBook-14-G3-ACL smartd[761]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 16 19:47:51 rouben-ThinkBook-14-G3-ACL smartd[761]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 19:47:51 rouben-ThinkBook-14-G3-ACL smartd[761]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 20:41:28 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 16 20:41:28 rouben-ThinkBook-14-G3-ACL smartd[760]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 16 20:41:28 rouben-ThinkBook-14-G3-ACL smartd[760]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 20:41:28 rouben-ThinkBook-14-G3-ACL smartd[760]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 22:01:53 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 16 22:01:53 rouben-ThinkBook-14-G3-ACL smartd[776]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 16 22:01:53 rouben-ThinkBook-14-G3-ACL smartd[776]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 16 22:01:53 rouben-ThinkBook-14-G3-ACL smartd[776]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 18 18:49:15 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 18 18:49:15 rouben-ThinkBook-14-G3-ACL smartd[762]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 18 18:49:15 rouben-ThinkBook-14-G3-ACL smartd[762]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 18 18:49:15 rouben-ThinkBook-14-G3-ACL smartd[762]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 18 22:32:00 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 18 22:32:00 rouben-ThinkBook-14-G3-ACL smartd[763]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 18 22:32:00 rouben-ThinkBook-14-G3-ACL smartd[763]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 18 22:32:00 rouben-ThinkBook-14-G3-ACL smartd[763]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 18 22:40:19 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 18 22:40:19 rouben-ThinkBook-14-G3-ACL smartd[762]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 18 22:40:19 rouben-ThinkBook-14-G3-ACL smartd[762]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 18 22:40:19 rouben-ThinkBook-14-G3-ACL smartd[762]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 18 22:48:54 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 18 22:48:54 rouben-ThinkBook-14-G3-ACL smartd[762]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 18 22:48:54 rouben-ThinkBook-14-G3-ACL smartd[762]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 18 22:48:54 rouben-ThinkBook-14-G3-ACL smartd[762]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 19 12:15:52 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 19 12:15:52 rouben-ThinkBook-14-G3-ACL smartd[745]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 19 12:15:52 rouben-ThinkBook-14-G3-ACL smartd[745]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 19 12:15:52 rouben-ThinkBook-14-G3-ACL smartd[745]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 19 15:20:52 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 19 15:20:52 rouben-ThinkBook-14-G3-ACL smartd[763]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 19 15:20:52 rouben-ThinkBook-14-G3-ACL smartd[763]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 19 15:20:52 rouben-ThinkBook-14-G3-ACL smartd[763]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 19 18:30:37 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 19 18:30:37 rouben-ThinkBook-14-G3-ACL smartd[762]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 19 18:30:37 rouben-ThinkBook-14-G3-ACL smartd[762]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 19 18:30:37 rouben-ThinkBook-14-G3-ACL smartd[762]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 19 20:27:19 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 19 20:27:19 rouben-ThinkBook-14-G3-ACL smartd[748]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 19 20:27:19 rouben-ThinkBook-14-G3-ACL smartd[748]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 19 20:27:19 rouben-ThinkBook-14-G3-ACL smartd[748]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 20 14:13:17 rouben-ThinkBook-14-G3-ACL systemd[1]: Found device WDC PC SN530 SDBPMPZ-512G-1101 EFI\x20system\x20partition.
Jul 20 14:13:17 rouben-ThinkBook-14-G3-ACL smartd[748]: Device: /dev/nvme0, WDC PC SN530 SDBPMPZ-512G-1101, S/N:210248804767, FW:21160001, 512 GB
Jul 20 14:13:17 rouben-ThinkBook-14-G3-ACL smartd[748]: Device: /dev/nvme0, state read from /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
Jul 20 14:13:17 rouben-ThinkBook-14-G3-ACL smartd[748]: Device: /dev/nvme0, state written to /var/lib/smartmontools/smartd.WDC_PC_SN530_SDBPMPZ_512G_1101-210248804767.nvme.state
grep: /var/log/syslog: binary file matches

grep -i nvme /var/log/syslog* https://paste.ubuntu.com/p/GMT4BvQ7jX/

sudo lshw -C memory:

*-firmware                
       description: BIOS
       vendor: LENOVO
       physical id: 0
       version: GQCN20WW(V1.06)
       date: 04/29/2021
       size: 128KiB
       capacity: 32MiB
       capabilities: pci upgrade shadowing cdboot bootselect edd int13floppynec int13floppytoshiba int13floppy360 int13floppy1200 int13floppy720 int13floppy2880 int9keyboard int10video acpi usb biosbootspecification uefi
  *-cache:0
       description: L1 cache
       physical id: 5
       slot: L1 - Cache
       size: 512KiB
       capacity: 512KiB
       clock: 1GHz (1.0ns)
       capabilities: pipeline-burst internal write-back unified
       configuration: level=1
  *-cache:1
       description: L2 cache
       physical id: 6
       slot: L2 - Cache
       size: 4MiB
       capacity: 4MiB
       clock: 1GHz (1.0ns)
       capabilities: pipeline-burst internal write-back unified
       configuration: level=2
  *-cache:2
       description: L3 cache
       physical id: 7
       slot: L3 - Cache
       size: 8MiB
       capacity: 8MiB
       clock: 1GHz (1.0ns)
       capabilities: pipeline-burst internal write-back unified
       configuration: level=3
  *-memory
       description: System Memory
       physical id: 22
       slot: System board or motherboard
       size: 16GiB
     *-bank:0
          description: SODIMM DDR4 Synchronous Unbuffered (Unregistered) 3200 MHz (0,3 ns)
          product: HMAA1GS6CJR6N-XN
          vendor: Hynix
          physical id: 0
          serial: 22964AED
          slot: DIMM 0
          size: 8GiB
          width: 64 bits
          clock: 3200MHz (0.3ns)
     *-bank:1
          description: SODIMM DDR4 Synchronous Unbuffered (Unregistered) 3200 MHz (0,3 ns)
          product: M471A1G44AB0-CWE
          vendor: Samsung
          physical id: 1
          serial: 00000000
          slot: DIMM 0
          size: 8GiB
          width: 64 bits
          clock: 3200MHz (0.3ns)
How to clone a smaller SSD to a larger SSD on Ubuntu 18.04? https://askubuntu.com/questions/1309090/how-to-clone-a-smaller-ssd-to-a-larger-ssd-on-ubuntu-18-04

This is my first time trying to do the below task. So far I followed these links.

I'm currently running Ubuntu Linux installed on a 240 GB SSD and planning to upgrade it with a 500 GB SSD as is. Once everything is cloned (including the partitions) I plan to swap the smaller SSD with the larger SSD in the laptop and move on.

Steps I've followed so far:

  1. I've created a bootable USB flash drive for linux (Pass).

  2. Booted the laptop using the flash drive (Pass)

  3. Connected the new 500 GB SSD with laptop using the external SATA-III to USB 3.0 cable (Pass)

  4. Successfully formatted the new SSD using the Disks app (Pass).

    Screenshot inserted below for Disk formatted successfully

  5. Successfully executed the dd command to copy/clone the content of main partition from older SSD to newer SSD (Pass)

    dd completed successfully

  6. After copying I execute the sudo lshw -C disk I see the original 240 GB SSD and the flash drive details, but not the newer SSD.

    Output of lshw command

  7. I have no clue about how to bring in the remaining partitions from the 240 GB SSD onto the newer SSD

    Other partitions on old SSD

Once I swap the SSDs I wish to have similar partitions on the newer SSD. As of now I'm clueless of how to carve out the remaining two partitions on the newer SSD.

Please let me know:

  • If I can start using the newer SSD in existing condition without any partitions?
  • If I need to execute any more steps that I'm missing here.
cronjob won't save after reboot https://askubuntu.com/questions/1285452/cronjob-wont-save-after-reboot

I've created a simple script that pings a server, and reboots my machine if the server doesn't respond. if it does respond, it just exits the script.

I've added the script to cron via crontab -e, specifically as follows

*/8 * * * * /root/hive/bin/pingtest

once I add it, I can see cron executing the "pingtest" every 8 minutes just as I commanded. however, once the machine reboots (for whatever reason), that specific line in crontab is gone, it doesn't presist through reboots.

I've tried editing via root, I've tried editing via sudo, but nothing persists.

what am I doing wrong?

Having trouble with "Initramfs unpacking failed: Decoding failed" solutions https://askubuntu.com/questions/1277532/having-trouble-with-initramfs-unpacking-failed-decoding-failed-solutions

I just build my first PC, turned it on for the first time, and attempting to install Linux Ubuntu 20.04.1 LTS from a bootable USB.

As many others have had the "decoding failed" problem I cannot seem to figure out how to use any of the solutions posted to fix the issue regarding my situation.

Any or some advice would be greatly appreciated as I have no idea what I am doing nor have any technical knowledge.

--

Thank You

Image of error when attempting to boot

Ubuntu prompt (I clicked enter on the first line ubuntu)

Laptop disconnects from power then reconnects on 18.04 https://askubuntu.com/questions/1179864/laptop-disconnects-from-power-then-reconnects-on-18-04

I am experiencing a new problem after finally getting Ubuntu 18.04 to install on my laptop (could NOT get another OS besides Windows on it), but that is for another question.

The problem is, at random times my laptop will act like it disconnects from the power adapter and the reconnects. I hear the notable "tick-tick when something is disconnected from Ubuntu, then I see that the power icon at the top of the screen doesn't show the lightning bolt any more. Then a few moments later, I hear the sound of something reconnecting, and then the lightning bolt is back in its place.

I do NOT under any circumstance want to promote Windows here, but I do want to point out (because it may be helpful) that this issue wasn't present in Windows 10. I also want to point out that my hardware is very weird. Here is the output of lshw: lshw-paste-via-privatebin

Here is also a screenshot of all of the errors that show up in my logs: screenshot

I am only posting the error logs just in case someone notices that something in there is related to the issue that I am having. If I can provide more information, please tell me and I will edit my question ASAP!

I would also like to note (just in case) that I was NOT able to get ANY other flavor of Ubuntu installed besides the vanilla version. The installer would keep crashing at about 30% creating partitions, but that is for another topic itself. I also have NOT done anything special to this system, just installed the OS and added my usual programs,that you can see on the side of the screenshot.

I also just noticed these weird lines in dmesg.

[10010.674277] acpi LNXPOWER:16: Turning OFF
[10010.674344] acpi LNXPOWER:15: Turning OFF
[10010.674409] acpi LNXPOWER:14: Turning OFF
[10010.674473] acpi LNXPOWER:13: Turning OFF
[10010.674538] acpi LNXPOWER:12: Turning OFF
[10010.674603] acpi LNXPOWER:11: Turning OFF
[10010.674666] acpi LNXPOWER:10: Turning OFF
[10010.674730] acpi LNXPOWER:0f: Turning OFF
[10010.674794] acpi LNXPOWER:0e: Turning OFF
[10010.674857] acpi LNXPOWER:0d: Turning OFF
[10010.674920] acpi LNXPOWER:0c: Turning OFF
[10010.674984] acpi LNXPOWER:0b: Turning OFF
[10010.675047] acpi LNXPOWER:0a: Turning OFF
[10010.675110] acpi LNXPOWER:09: Turning OFF
[10010.675172] acpi LNXPOWER:08: Turning OFF
[10010.675236] acpi LNXPOWER:07: Turning OFF
[10010.675298] acpi LNXPOWER:06: Turning OFF
[10010.675362] acpi LNXPOWER:05: Turning OFF
[10010.675425] acpi LNXPOWER:04: Turning OFF
[10010.675488] acpi LNXPOWER:03: Turning OFF`

Are they related to what's going on?

Ubuntu server network auto configuration failed https://askubuntu.com/questions/1169915/ubuntu-server-network-auto-configuration-failed

I am trying to install ubuntu server 18.04 inside proxmox. At the network configuration page, ubuntu complains that autoconfiguration failed and gives me the choice to continue without networking. The installation, however, completed smoothly, despite the fact that no networking is present... I still have no internet access after the installation finished, so I went on to configure a static ip. Here is my netplan yaml configuration:

network:
    version: 2
    renderer: networkd
    ethernets:
        ens18:
            dhcp4: no
            addresses: [10.0.1.101/24, ]
            gateway4: 10.0.1.1
            nameservers:
                addresses: [8.8.8.8, 8.8.4.4]

ip route on the vm gives:

default via 10.0.1.1 dev ens18 proto static
10.0.1.0/24 dev ens18 proto kernel scope link src 10.0.1.101

ip route on the host gives:

default via 10.0.1.1 dev vmbr0 onlink
10.0.1.0/24 dev vmbr0 proto kernel scope link src 10.0.1.100
10.0.1.0/24 dev vmbr1 proto kernel scope link src 10.0.1.101

/etc/network/interfaces on the host contains:

auto lo
iface lo inet loopback

iface eno1 inet manual

iface eno2 inet manual

iface eno3 inet manual

iface eno4 inet manual

auto vmbr0
iface vmbr0 inet static
        address  10.0.1.100
        netmask  255.255.255.0
        gateway  10.0.1.1
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0

auto vmbr1
iface vmbr1 inet static
        address  10.0.1.101
        netmask  24
        bridge-ports eno2
        bridge-stp off
        bridge-fd 0

Pinging anything, including 10.0.1.1 the gateway, gives destination host unreachable. SSH gives no route to host

Auto mount ext4 usb so that all users can write to it https://askubuntu.com/questions/724090/auto-mount-ext4-usb-so-that-all-users-can-write-to-it

I have a usb device ext4 file system, I manually mount it like this

  mount -t ext4 /dev/sda1  /mnt/sdcard1 

then change permissions manually to enable others to write to it.

What line should I use in fstab so that all users have read/write permissions on it..

Error mounting /dev/sdb1 at /media/ on Ubuntu 14.04 LTS https://askubuntu.com/questions/586308/error-mounting-dev-sdb1-at-media-on-ubuntu-14-04-lts

How I can fix the Error mounting /dev/sdb1 at /media/... It works pretty good in the past but I made a clean installed of Ubuntu 14.04 LTS and the Error mounting coming. I try to fix it with with Gparted, ntfs-3g, pmount, but this programs can't find the external HDD. But when I boot put the USB drive with Ubuntu 14.04 on test mode this can find and read my external HDD. How I can fix it?

Grub not loading https://askubuntu.com/questions/584678/grub-not-loading

About a month ago I installed ubuntu 14.04 on my computer. I did not replace the Windows 8 that I was previously using. While ubuntu has by and large been working very well, one issue is that grub does not load when I restart my computer. If I want to switch operating systems, I have to restart my computer and then go into the BIOS and switch the boot mode from CSM to UEFI (or vice-versa).

While it is not the end of the world to have to do this, it would be more convenient for me to have grub. Also, I am planning to install another Linux distro in the near feature, and without grub working I am worried that I won't be able to switch between my Linux distros.

Does anyone have any suggestions for getting grub to work?

X Server does not show built-in ThinkPad display. Distorting everything in non-mirrored multi-display setup https://askubuntu.com/questions/571532/x-server-does-not-show-built-in-thinkpad-display-distorting-everything-in-non-m

I recently returned to Ubuntu (14.10) and I'm currently trying to get my multiple monitor setup to work properly.

It worked fine after the first setup in the desired configuration: A 1600x900 built-in monitor (Thinkpad T430) besides a 1920x1200 external Monitor (Asus VK226H) which is connected by DVI or VGA or mDP.

However, after the first reboot it greeted me with 'the selected configuration for displays could not be applied' and showed me a partially overlapping and highly distorted background with weird placement of the launcher and a non-functional mouse interaction (does not click where it's shown). Switching to mirrored mode made everything functional again.

Having a look at the X Server Configuration I've noticed that only the external monitor is being represented in the layout graphics and 'Selection' dro down menu while displays shows them both. The 'the selected configuration for displays could not be applied' started to pop up almost anytime I apply something to displays or X Server, apply something to displays, reboot or reconnect the external monitor (no matter which port).

Here are 2 screenshots with driver rev 331 showing both displays and the X Server config before and after I managed to get everything visible/not overlapping after a reboot.

enter image description here
Click image to enlarge it.

enter image description here

While it was heavily distorted along the vertical dimension (and parts of the desktop off-screen) on the physical screens this is not reflected in the screenshot*

Failing horribly with lots of X Server settings, I decided to try the legacy drivers. I've purged the current drivers via this method and installed the 304 version though Software & Updates. The same thing happened. It worked after the initial setup and installation but failed again after a reboot. The built-in monitor still did not show up in X Server.

Since this didn't achieve anything I've reverted back to 331 and tried it once more with the same result. Everything looks fine to me in lshw and dpkg.

dpkg -l | grep nvidia
ii  nvidia-331                                           331.113-0ubuntu0.1                       amd64        NVIDIA binary driver - version 331.113
ii  nvidia-331-uvm                                       331.113-0ubuntu0.1                       amd64        NVIDIA Unified Memory kernel module
ii  nvidia-opencl-icd-331                                331.113-0ubuntu0.1                       amd64        NVIDIA OpenCL ICD
ii  nvidia-prime                                         0.6.7                                    amd64        Tools to enable NVIDIA's Prime
ii  nvidia-settings                                      331.20-0ubuntu8                          amd64        Tool for configuring the NVIDIA graphics driver

sudo lshw -C display
   *-display               
        description: VGA compatible controller
    product: GF108M [NVS 5400M]
    vendor: NVIDIA Corporation
    physical id: 0
    bus info: pci@0000:01:00.0
    version: a1
    width: 64 bits
    clock: 33MHz
    capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
    configuration: driver=nvidia latency=0
    resources: irq:48 memory:f0000000-f0ffffff memory:c0000000-cfffffff memory:d000
0000-d1ffffff ioport:4000(size=128) memory:f1000000-f107ffff

At this point I have no Idea what to do since it's obviously a problem with the placement of my screens on the virtual screen but it doesn't show all of them in the configuration menu. How do I get it to show up so that I can configure everything properly?

Nvidia DVI/VGA problem https://askubuntu.com/questions/441239/nvidia-dvi-vga-problem

I have a Nvidia GT 630 with two LG Flatron E2242 screens connected. One of them is connected with a DVI/VGA connector because the card has 1 DVI and 1 VGA output.

The driver (got the latest one) can't query the one connected with the DVI/VGA connector for its EDID and I can't get it to work on a resolution bigger than 640x480.

How can I get it to work on 1920x1080 like the other one?

how to export bash arrays? any workaround tips? https://askubuntu.com/questions/295515/how-to-export-bash-arrays-any-workaround-tips

I am using the bash version 4.2.37 at ubuntu 12.10. But since ubuntu 12.04 I am unable to export arrays in bash...

This is an example (type these lines in the command line, it is not a script):

export astr=(a "b c" d)
declare -p |grep astr
bash
echo ${astr[@]}
declare -p |grep astr

echo outputs nothing...

declare -p |grep astr outputs nothing either...

What I am looking for is an workaround, because as far I know that is considered an known bash bug.

EDIT: btw, if possible, the workaround could avoid creating temporary storage files for the array as I may run the same script simultaneously on different shells.

Enable mobile broadband not working https://askubuntu.com/questions/222982/enable-mobile-broadband-not-working

I'm using an EVDO usb Modem on 12.04. It works perfectly fine for few times. But now on wards when ever I try to connect it shows not enabled in status . I tried to enable it by ticking "Enable Mobile Broadband" but still it shows not enabled but that option gets a checked(tick) mark. And when ever I restart my system "Enable Mobile Broadband" option autamatically unchecked. Any help please

Unable to mount an LVM hard drive after upgrading https://askubuntu.com/questions/161108/unable-to-mount-an-lvm-hard-drive-after-upgrading

I imagine this is a basic gotcha, but I can't see it. I have a system with 2 (physical) hard drives. The boot system (/dev/sda) was running 10.04 & the second drive (/dev/sdb) was just a mounted filesystem.

I did a clean install of Ubuntu 12.04 overwriting /dev/sda (not an upgrade) and now cannot mount the second drive, so I do not know what to enter it into fstab.

I had expected to use: /dev/sdb /tera ext4 defaults 0 2, but even manual mounting fails. (I also have tried various -t options on the off chance.)

$ sudo mount -t ext4 /dev/sdb1 /tera
mount: wrong fs type, bad option,
bad superblock on /dev/sdb1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

Output from disk queries indicate that it is a Linux LVM and it's still a healthy disk.

$ sudo lshw -C disk
  *-disk:0
       description: ATA Disk
       product: WDC WD5000AACS-0
       vendor: Western Digital
       physical id: 0
       bus info: scsi@2:0.0.0
       logical name: /dev/sda
       version: 01.0
       serial: WD-WCASU1401098
       size: 465GiB (500GB)
       capabilities: partitioned partitioned:dos
       configuration: ansiversion=5 signature=00015a55
       *-disk:1
       description: ATA Disk
       product: WDC WD10EADS-00L
       vendor: Western Digital
       physical id: 1
       bus info: scsi@3:0.0.0
       logical name: /dev/sdb
       version: 01.0
       serial: WD-WCAU47836304
       size: 931GiB (1TB)
       capabilities: partitioned partitioned:dos
       configuration: ansiversion=5

$ sudo fdisk -l
Disk /dev/sda: 500.1 GB, 500106780160 bytes 255 heads, 63
sectors/track, 60801 cylinders, total 976771055 sectors Units =
sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512
bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00015a55

   Device  Boot     Start         End      Blocks   Id  System
/dev/sda1     *      2048   972580863   486289408   83  Linux
/dev/sda2       972582910   976769023     2093057    5  Extended
/dev/sda5       972582912   976769023     2093056   82  Linux swap /
Solaris

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes 255 heads, 63
sectors/track, 121601 cylinders, total 1953525168 sectors Units =
sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512
bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

  Device   Boot    Start         End      Blocks   Id  System
dev/sdb1               1  1953525167   976762583+  8e  Linux LVM

LVM doesn't appear to be an option for mount or fstab.

Here's a SMART Data screenshot from the Disk Utility.

enter image description here