pcie_bus_perf : Understanding the capping of MRRS Posted: 01 Jan 2022 05:05 AM PST Quoting the linux kernel documentation for boot parameters : pcie_bus_perf : Set device MPS to the largest allowable MPS based on its parent bus. Also set MRRS (Max Read Request Size) to the largest supported value (no larger than the MPS that the device or bus can support) for best performance. I fail to understand why the MRRS should not be larger than the MPS "for best performance". I mean if a device can do MPS=X and MRRS=4.X then read requests could, in numbers, be less hence the bus less busy compared to a MMRS=X situation, even if the satisfaction of the request needs to be split in 4. BTW, I know the concept of "fair sharing" and understand the impact of large MRRS on that sharing but I never understood fair sharing synonymous to best performance. |
Raspberry Pi doesn't recognize HP PSC 750xi Scanner Posted: 01 Jan 2022 04:51 AM PST I posted this to raspberrypi.stackexchange yesterday with no responses and only 4 views, so I'm reposting and expanding the original post here to reach a wider/different audience. I have an old Pi-3 running Stretch. I have what apt-get install tells me is the latest version of everything installed. I plug in an old HP PSC 750xi All-In-One USB printer/scanner. The Pi recognizes the printer features of the device, and I can successfully configure CUPS to use the printer. But I cannot get the Pi to recognize the device's scanner. I have a separate laptop running Ubuntu 20. When I plug the USB device into that laptop, I can use hplip's hp-scan tool to successfully scan. But none of the Pi's hplip or sane tools (hp-setup , hp-probe , hp-check , hp-scan , scanimage , sane-find-scanner ...) recognize the USB scanner. Clearly, as the Ubuntu test proves, hplip does support scanning for this all-in-one printer/scanner. And hplip documentation indicates that the device is supported both for the Pi hplip version (3.16.11) and for the Ubuntu version (3.20). I also have an HP 6978 Network printer/scanner that the Ubuntu system sees on the network and can manipulate with the hplip tools. The Pi's CUPS server sees and can use that network printer. But, like the USB device, the Pi fails to 'see' the network scanner. My understanding is that these scanners are supported through use of the libsane-hpaio backend. Yes, I have installed the libsane-hpaio package on the Pi. I've run scanimage on the Pi with SANE_DEBUG_DLL=128 and SANE_DEBUG_HPAIO=128 but the output simply reports no scanners found without indicating any errors of any kind. On the Ubuntu system, the same debug output shows successful discovery of both the network scanner and the USB-connected scanner. But there appear to be more fundamental issues. The full lsusb output is now reporting: theadmin@RASSERVER:~ $ lsusb Protocol spec without prior Class and Subclass spec at line 23291 Bus 001 Device 005: ID 0bc2:231a Seagate RSS LLC Expansion Portable Bus 001 Device 006: ID 03f0:1511 HP, Inc PSC 750xi Bus 001 Device 003: ID 0424:ec00 Microchip Technology, Inc. (formerly SMSC) SMSC9512/9514 Fast Ethernet Adapter Bus 001 Device 002: ID 0424:9514 Microchip Technology, Inc. (formerly SMSC) SMC9514 Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub It's that very first line I'm concerned about. I'm thinking this is a possible Python version issue as python -V reports Python 2.7.13 . But Python3.5 is installed too (though I have no idea which package might have installed it,) and python3 -V reports Python 3.5.3 . So, I'm thinking half the packages are using python v2 and half are using v3 and I don't know which is using which. Nor do I know how to configure them to use a different version. Plus, I'm a bit hesitant to even try to reconfigure/upgrade the base python from v2 to v3 for fear of breaking the entire system. And I'm concerned that the libusb and usbutil packages are so old, while hplip and its companions are much newer ... some kind of a mismatch somewhere, but I hardly know where to start. I hate to rebuild the Pi from scratch because I don't want to have to rebuild its LAMP stack, web server, nextcloud server, etc. but that may be my only option. I cannot find any missing packages or dependencies on the Pi. I have tried removing and re-installing hplip and a number of other packages. Clearly, there is some configuration difference between the Pi and the Ubuntu platforms. But after several days of struggle, I'm stumped. Anyone have any ideas? |
Is have a file-based friendly fuse tool? Posted: 01 Jan 2022 04:20 AM PST I'm looking for a file-based, size-scalable and mountable fuse. - I trid tar with archiveamount, but fail high probability when update (maybe It's too older?)
- I trid file image with filesystem(ext4, ...), but size-scalable is difficult
- I trid sparse-file but It's only valid in local system, It can't use as a normal file, File will recovery full-size when copy.
- I saw fuse-archive,squashfs but It's readonly
- I trid fuse-zip, It work OK, But I still want to look for others again
It may be that my search keywords are inappropriate, Is have some/more better tool or function to do this usecase? |
Trigger keyboard shortcut from bash alias/function Posted: 01 Jan 2022 03:45 AM PST Here's the thing: I'm running Windows 10 and I'm using Windows Terminal (WT). In WT there is a shortcut for splitting the pane (SHIFT+ALT+MINUS/PLUS). The issue is that the new pane is on my root directory. I would like to write an alias in my profile.ps1 that navigates to a particular directory, splits the pane, and navigates the new pane to the same directory. I have gotten the navigation part working with: Function path_desktop {Set-Location -Path "C:/../Desktop"} Set-Alias -Name goto_desktop -Value path_desktop But is it possible to call a keyboard shortcut from within this type of function? Something to the tune of: Function openSplit {cd "path"; SHIFT+ALT+MINUS; cd "path"} Obviously, this doesn't work. But is there a way to achieve something like this? I hope that made sense... haha. Thanks! |
iptables port forwarding from external ppp0 to internal server Posted: 01 Jan 2022 03:54 AM PST Actually the same question to this one. But I didn't get answer there either. My scenario is: a Linux box with two NICs acting as a router, running iptables rules for masquerading, firewall, ... etc. I'd like to forward certain port to internal servers which only have LAN IPs. The router server uses ppp0 as external interface and 192.168.212.50 as internal IP. I'd like to forward port 2000 from external (connecting to hostname:2000) to internal 192.168.212.51:8088. The sysctl net/ipv4/ip_forward has been set to 1 since it has masquerade set. Now when I try port forwarding from external ip (hostname:2000) it is always timed out. In the log I could see the packets being dropped. The iptables rules is here: https://pastebin.com/au9QDhQf - If I setup the port forward to LAN only, i.e., not defined
-i $EXT_IF and connect with http://192.168.212.50:2000/ it could work. - I also checked this post. However, since I have already had MASQUERADE set the second rule
iptables -t nat -A POSTROUTING -j MASQUERADE does not work here. Any help will be very appreciated. |
How to customise the appearance of notify-send? Posted: 01 Jan 2022 03:25 AM PST I am running linux mint and use the notify-send command for various purposes, and of course also receive notifications from regular applications e.g. discord or MS Teams When using Cinnamon DE, they look pretty normal, and I can even add icons to my custom notify-send calls to make it clear what is going on However, I recently started using XMonad WM, and I'm finding that not only are the regular application notifications ugly, but my custom ones which have nice icons in them also follow that same ugly style (please excuse blurry screenshot): For example, the above notification should contain an icon as per this command: notify-send --hint=int:transient:1 'Connecting to VPN... Check 2FA Device.' -i myicon Where is this configured? |
where are Linux Motherboard driver's from? Posted: 01 Jan 2022 05:00 AM PST I am a bit confused on where the drivers come from or are developed for motherboard peripherals? Ex, USB, Sound or Ethernet controllers? Basically from my understanding the x86/64 programmers reference manual doesn't detail these things. How did the developer of the driver know how to interface with the device at a register level? |
Some Emojis not appearing on browser and some applications in Endeavour OS Posted: 31 Dec 2021 11:26 PM PST I just shifted to arch from ubuntu budgie. and I am getting some issues loading/displaying emojis on some websites and applications. I have provided some screenshots of the issue. The Os I am using is Endeavour OS with KDE Plasma Desktop and my browser is Brave (stable). - A post on Facebook which probably had emojis
- VS Code Terminal there should have been arrows which do show up on konsole (kde terminal) shown below
- The konsole which shows the arrows
|
FreeBSD 13.0 Release package support Posted: 31 Dec 2021 09:44 PM PST I downloaded and installed FreeBSD 13.0 on a old IBM IntelliStation M Pro I have as a spare. My intention was to use it as a file server replacing an old machine running 4.0. I got it up and running except for X11. This machine has an Nvidia GeForce4 Mx440 08x card codenamed NV18. I believe an appropriate driver can be found in /usr/ports/X11/nvidia-driver-390-390.144 but, it seems packages are not available for release 13.0 yet. It seems quite involved to re-compile it from a ports collection as the system source tree needs to be installed. - will "packages" be released for Release 13.0?
- is there a "simpleton" way to get/install my video driver?
|
Does zsh have any equivalent to BASH_ENV? Posted: 01 Jan 2022 02:56 AM PST I would like to be able to use something like the BASH_ENV variable in zsh , however I can't find anything like it by Googling. From man bash : BASH_ENV If this parameter is set when bash is executing a shell script, its value is interpreted as a filename containing commands to initialize the shell, as in ~/.bashrc . The value of BASH_ENV is subjected to parameter expansion, command substitution, and arithmetic expansion before being interpreted as a filename. PATH is not used to search for the resultant filename. Does zsh have something like this? |
Extrating timestamps from filename to split mp3s Posted: 01 Jan 2022 03:24 AM PST I have a bunch of mp3 files in a folder. They are recorded from cassette tape, and the individual tracks need to be separated out. This is one one the filenames: Gobbolino the Witch's Cat, 10:52 The Hare & Tortoise, 14:52 The Shoe Tree, 24:22 The Emperors New Clothes, 34:11 The Red Nightcaps, 37:07 Aldo in Arcadia (1), 40:37 The Forest Troll.mp3 You can see it has timestamps within the filename, indicating the start of each track. The first track is not timestamped since it always starts at 00:00. And the last track should always go to the end of the mp3. Somehow, I want to extract these timestamps in order to create separate files. If the file above were split correctly the output would be: Gobbolino the Witch's Cat.mp3 The Hare & Tortoise.mp3 The Shoe Tree.mp3 The Emperors New Clothes.mp3 The Red Nightcaps.mp3 Aldo in Arcadia (1).mp3 The Forest Troll.mp3 I know how to loop thru files, and how to cut a file with ffmpeg, but I don't know how to extract the timestamps and track names from the filename. I'm using zsh, and here is my current code: for file in *; do if [[ -f "$file" ]]; then # extract timestamps and loop thru, for each timestamped section ffmpeg -ss TIMESTAMP_START -to TIMESTAMP_END -I "$file" -acodec copy TRACK_NAME.mp3 fi done |
How to avoid audio recording fade in? Posted: 01 Jan 2022 05:30 AM PST Audios recorded from the microphone start with a pop and a fade in. I tried 2 mics from two hardware inputs. I found this solution that describes my problem but Fedora 35 has no default.pa file: In the /etc/pulse/default.pa file, comment out this line: load-module module-suspend-on-idle It seems this is just default Pulse Audio behavior and essentially tries to save resources by "dimming" sources of audio that become idle for "too long." I haven't really timed it to figure out how long "too long" is, but with the change above, it doesn't matter anyway What would be the Fedora 35 equivalent? Indeed if I start recording immediately after another recording there is no fade in but the pop persists. I found the pipewire-pulse systemd user unit but no obvious setting: [Unit] Description=PipeWire PulseAudio # We require pipewire-pulse.socket to be active before starting the daemon, because # while it is possible to use the service without the socket, it is not clear # why it would be desirable. # # A user installing pipewire and doing `systemctl --user start pipewire-pulse` # will not get the socket started, which might be confusing and problematic if # the server is to be restarted later on, as the client autospawn feature # might kick in. Also, a start of the socket unit will fail, adding to the # confusion. # # After=pipewire-pulse.socket is not needed, as it is already implicit in the # socket-service relationship, see systemd.socket(5). Requires=pipewire-pulse.socket ConditionUser=!root Wants=pipewire.service pipewire-session-manager.service After=pipewire.service pipewire-session-manager.service Conflicts=pulseaudio.service [Service] LockPersonality=yes MemoryDenyWriteExecute=yes NoNewPrivileges=yes RestrictNamespaces=yes SystemCallArchitectures=native SystemCallFilter=@system-service Type=simple ExecStart=/usr/bin/pipewire-pulse Restart=on-failure Slice=session.slice [Install] Also=pipewire-pulse.socket WantedBy=default.target journalctl shows this: dez 31 15:21:15 d3.localdomain plasmashell[2950304]: 15:21:15: Debug: AudioIO::GetBestRate() for playback dez 31 15:21:15 d3.localdomain plasmashell[2950304]: 15:21:15: Debug: GetBestRate() suggested rate 44100 Hz dez 31 15:21:15 d3.localdomain plasmashell[2950304]: 15:21:15: Debug: GetBestRate() Returning 44100 Hz Would it be Plasma adding the delay? |
How does "cat << EOF | grep" work in bash? Posted: 01 Jan 2022 04:18 AM PST In this answer to How does "cat << EOF" work in bash? on Stack Overflow, I get the first two points. But I don't get the third point Pass multi-line string to a pipe in Bash Pass multi-line string to a pipe in Bash $ cat <<EOF | grep 'b' | tee b.txt foo bar baz EOF Since It have 3 word, 2 pipe character. Then I am not sure how to intrepret it. |
Apt fails with "The repository does not have a Release File" Posted: 01 Jan 2022 03:16 AM PST I recently tried installing surfshark-vpn and openvpn3 using the following guides. https://surfshark.com/blog/how-to-set-up-a-vpn-on-linux https://openvpn.net/cloud-docs/openvpn-3-client-for-linux/ (I feel like something in this guide might be the problem) But since then, apt and apt-get fail giving the following message: Hit:1 http://apt.pop-os.org/proprietary groovy InRelease Ign:2 http://us.archive.ubuntu.com/ubuntu groovy InRelease Ign:3 http://us.archive.ubuntu.com/ubuntu groovy-security InRelease Hit:4 http://ppa.launchpad.net/system76/pop/ubuntu groovy InRelease Ign:5 http://us.archive.ubuntu.com/ubuntu groovy-updates InRelease Ign:6 http://us.archive.ubuntu.com/ubuntu groovy-backports InRelease Err:7 http://us.archive.ubuntu.com/ubuntu groovy Release 404 Not Found [IP: 91.189.91.39 80] Err:8 http://us.archive.ubuntu.com/ubuntu groovy-security Release 404 Not Found [IP: 91.189.91.39 80] Err:9 http://us.archive.ubuntu.com/ubuntu groovy-updates Release 404 Not Found [IP: 91.189.91.39 80] Err:10 http://us.archive.ubuntu.com/ubuntu groovy-backports Release 404 Not Found [IP: 91.189.91.39 80] Reading package lists... Done E: The repository 'http://us.archive.ubuntu.com/ubuntu groovy Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://us.archive.ubuntu.com/ubuntu groovy-security Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://us.archive.ubuntu.com/ubuntu groovy-updates Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://us.archive.ubuntu.com/ubuntu groovy-backports Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. I've tried searching on how I can fix this but everything I've found doesn't seem to help. The most common answers seem to be: - Run
sudo add-apt-repository -r ppa:something here But I don't what what to put after ppa: - Run
ppa-purge but I don't have that program and I can't install it since apt and apt-get don't work. - Delete a line in
/etc/apt/sources.list but it looks like everything in that file is already commented out. (Will show it's contents below) Does anyone have any suggestions for me? I'm considering just backing up my files and reinstalling but I'd much rather prefer to learn how to fix this. I am currently using Pop!OS v20.10 This is my sources.list file ## See sources.list(5) for more information, especialy # Remember that you can only use http, ftp or file URIs # CDROMs are managed through the apt-cdrom tool. # deb cdrom:[Pop_OS 20.10 _Groovy Gorilla_ - Release amd64 (20210225)]/ groovy main restricted # deb cdrom:[Pop_OS 20.10 _Groovy Gorilla_ - Release amd64 (20210225)]/ stable main restricted # deb cdrom:[Pop_OS 20.10 _Groovy Gorilla_ - Release amd64 (20210225)]/ unstable main restricted Thanks |
Is it possible to permanently disable the gnome-keyring passphrase? Posted: 01 Jan 2022 05:28 AM PST Whenever I login using the fingerprint sensor instead of the login password, a popup is displayed from gnome-keyring to enter the login password in order to unlock the various certificates that are stored there. This is quite annoying, because it steals the focus, and doesn't let you do anything else until the password is entered. It won't even let you change the keyboard language, so if you had it in a different language than the password before the reboot, you are screwed. I wasn't even able to take a screenshot of the popup, which is why the quality of the picture is so low - it was from my mobile. A partial solution to this problem is to set the keyring password to an empty string, by opening the Passwords and Keys app (type keyring into the search bar), and using the menu as below: But is not a very good solution, because the keyring password keeps being reset, and you have to repeat the same process all over again. I am not sure if this happens on some reboots, or when there has been an update. So my question is twofold: Am I correct in my thinking that the keyring passphrase doesn't add any security, and is redundant, since the system uses secure boot, with UEFI setting that doesn't allow boot from any other disk without an admin password, LUKS full disk encryption, and there are no other user accounts on the laptop? If (1) is correct, then how can I permanently remove the keyring password, in a way that it doesn't get added automatically again? Edit This question is related, but the answer doesn't offer a workaround: Why is my "no password" setting on my login keyring frequently reset? |
how to grab text after newline and concat each line to make a new one in a text file no clean of spaces, tabs Posted: 01 Jan 2022 01:16 AM PST I have a text like this: Print <javascript:PrintThis();> www.example.com NO mODERATOR NEDD: *912343454656548 * Date of Order: November 54 2043 ------------------------------------------------------------------------ *Dicders Folcisad: * STACKOVERFLOW *dum FWEFaadasdd:* [U+200E] STACK OVERFLOW BLVD OF SOMEPLACENICE 434 SANTA MONICA, COUNTY LOS ANGEKES, CALI 90210 (SW) *Order Totals:* Subtotal Usd$789.75 Shipping Usd$87.64 Duties & Taxes Usd$0.00 Rewards Credit Usd$0.00 *Order Total * *Usd$877.39 * *Wordskccds:* STACKOVERFLOW FasntAsia xxxx-xxxx-xxxx- *test Method / Welcome Info * 易客满x京配个人行邮税- 运输 + 关税 & 税费 / ADHHX15892013504555636 *Order Number: 916212582744342X* *#* *Item* *Price* *Qty.* *Discount* *Subtotal* 1 Random's Bounty, Product, 500 mg, 100 Rainsd Harrys AXK-0ew5535 Usd$141.92 4 -Usd$85.16 Usd$482.52 2 Random Product, Fast Forlang, Mayority Stonghold, Flavors, 10 mg, 60 Stresss CXB-034251 Usd$192.24 1 -Usd$28.83 Usd$163.41 3 34st Omicron, Novaccines Percent Pharmaceutical, 10 mg, 120 Tablesds XDF-38452 Usd$169.20 1 -Usd$25.38 Usd$143.82 *Extra Discounts:* Extra 15% discounts applied! Usd$139.37 *Stackoverflox Contact Information :* *Web: *www.example.com *Disclaimer:* something made, or service sold through this website, have not been test by the sweden Spain norway and Dumrug Advantage. They are not intended to treet, treat, forsee or forshadow somw clover. I'm trying to grab each line that start with number, then concat second line, and finally third line. example text: Random's Bounty, Product, 500 mg, 100 Rainsd Harrys AXK-0ew5535 Usd$141.92 4 -Usd$85.16 Usd$482.52 Random Product, Fast Forlang, Mayority Stonghold, Flavors, 10 mg, 60 Stresss CXB-034251 Usd$192.24 1 -Usd$28.83 Usd$163.41 34st Omicron, Novaccines Percent Pharmaceutical, 10 mg, 120 Wedscsd XDF-38452 Usd$169.20 1 -Usd$25.38 Usd$143.82 as you may notices Second line has 3 lines instead of 2 lines. So make it harder to grab. Because of the newline and whitespace , the next command only grabs 1 : grep -E '1\s.+' also, I have been trying to make it with new concats: grep -E '1\s|[A-Z].+' - But doesn't work,
grep begins to select similar pattern in different parts of the text awk '{$1=$1}1' #done already tr -s "\t\r\n\v" #done already tr -d "\t\b\r" #done already I'm trying to make a script, so I give as an ARGUMENT a not clean FILE and then grab the table and select each number with their respective data. Sometimes data has 4 lines, sometimes 3 lines. So copy/paste don't work for ME. |
How to restore (normalize) HDD spinoff timeout in LXLE? Posted: 31 Dec 2021 10:46 PM PST After the last update on my system, the timeout setting for turning off the hard disk was broken. This problem manifests itself as a constant shutdown and spinning of the HDD motor at intervals of about 10-20 seconds. The hard drive itself is still alive, but with such treatment it will not live long. I made sure the drive is working, connect my laptop to the charger. Once I did that, the problem with shutting down the disk was gone. It seems the disk didn't turn off at all, but that's not certain. However, as soon as I finished charging, the problem returned immediately. Moreover, this problem does not appear on the account login screen. The drive starts to turn off only after logging into my account. I only have one user, so I didn't check what happens if I log into another profile. However, in any case, it is desirable for me to restore my profile. Core version: 4.15.0-163-generic :~$ sudo hdparm -I /dev/sda /dev/sda: ATA device, with non-removable media Model Number: WDC WD2500BEVT-11ZCT0 Serial Number: WD-WXD0A7924648 Firmware Revision: 11.01A11 Transport: Serial, SATA 1.0a, SATA II Extensions, SATA Rev 2.5 Standards: Supported: 8 7 6 5 Likely used: 8 Configuration: Logical max current cylinders 16383 16383 heads 16 16 sectors/track 63 63 -- CHS current addressable sectors: 16514064 LBA user addressable sectors: 268435455 LBA48 user addressable sectors: 488397168 Logical/Physical Sector size: 512 bytes device size with M = 1024*1024: 238475 MBytes device size with M = 1000*1000: 250059 MBytes (250 GB) cache/buffer size = 8192 KBytes Nominal Media Rotation Rate: 5400 Capabilities: LBA, IORDY(can be disabled) Queue depth: 32 Standby timer values: spec'd by Standard, with device specific minimum R/W multiple sector transfer: Max = 16 Current = 16 Advanced power management level: 128 Recommended acoustic management value: 128, current value: 254 DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6 Cycle time: min=120ns recommended=120ns PIO: pio0 pio1 pio2 pio3 pio4 Cycle time: no flow control=120ns IORDY flow control=120ns Commands/features: Enabled Supported: * SMART feature set Security Mode feature set * Power Management feature set * Write cache * Look-ahead * Host Protected Area feature set * WRITE_BUFFER command * READ_BUFFER command * NOP cmd * DOWNLOAD_MICROCODE * Advanced Power Management feature set SET_MAX security extension Automatic Acoustic Management feature set * 48-bit Address feature set * Device Configuration Overlay feature set * Mandatory FLUSH_CACHE * FLUSH_CACHE_EXT * SMART error logging * SMART self-test * General Purpose Logging feature set * WRITE_{DMA|MULTIPLE}_FUA_EXT * 64-bit World wide name * IDLE_IMMEDIATE with UNLOAD * Segmented DOWNLOAD_MICROCODE * Gen1 signaling speed (1.5Gb/s) * Gen2 signaling speed (3.0Gb/s) * Native Command Queueing (NCQ) * Host-initiated interface power management * Phy event counters * DMA Setup Auto-Activate optimization * Device-initiated interface power management * Software settings preservation * SMART Command Transport (SCT) feature set * SCT Read/Write Long (AC1), obsolete * SCT Write Same (AC2) * SCT Error Recovery Control (AC3) * SCT Features Control (AC4) * SCT Data Tables (AC5) unknown 206[12] (vendor specific) unknown 206[13] (vendor specific) Security: Master password revision code = 65534 supported not enabled not locked frozen not expired: security count supported: enhanced erase 76min for SECURITY ERASE UNIT. 76min for ENHANCED SECURITY ERASE UNIT. Logical Unit WWN Device Identifier: 58714ff2add89232 NAA : 5 IEEE OUI : 0014ee Unique ID : 2ad0741c2 Checksum: correct :~$ sudo hdparm -v /dev/sda /dev/sda: multcount = 16 (on) IO_support = 1 (32-bit) readonly = 0 (off) readahead = 256 (on) geometry = 30401/255/63, sectors = 488397168, start = 0 :~$ sudo smartctl -i -n standby /dev/sda smartctl 6.6 2016-05-31 r4324 [i686-linux-4.15.0-163-generic] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Model Family: Western Digital Scorpio Blue Serial ATA Device Model: WDC WD2500BEVT-11ZCT0 Serial Number: WD-WXD0A7924648 LU WWN Device Id: 5 0014ee 2ad0741c2 Firmware Version: 11.01A11 User Capacity: 250 059 350 016 bytes [250 GB] Sector Size: 512 bytes logical/physical Rotation Rate: 5400 rpm Device is: In smartctl database [for details use: -P show] ATA Version is: ATA8-ACS (minor revision not indicated) SATA Version is: SATA 2.5, 3.0 Gb/s Local Time is: Sat Dec 18 02:45:03 2021 MSK SMART support is: Available - device has SMART capability. SMART support is: Enabled Power mode is: ACTIVE or IDLE :~$ sudo smartctl -i -n standby /dev/sda -P show smartctl 6.6 2016-05-31 r4324 [i686-linux-4.15.0-163-generic] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org Drive found in smartmontools Database. Drive identity strings: MODEL: WDC WD2500BEVT-11ZCT0 FIRMWARE: 11.01A11 match smartmontools Drive Database entry: MODEL REGEXP: WDC WD((4|6|8|10|12|16|25)00BEVS|(8|12|16|25|32|40|50|64)00BEVT|7500KEVT|10TEVT)-.* FIRMWARE REGEXP: .* MODEL FAMILY: Western Digital Scorpio Blue Serial ATA ATTRIBUTE OPTIONS: None preset; no -v options are required. :~$ sudo smartctl -a /dev/sda [sudo] password for wined: smartctl 6.6 2016-05-31 r4324 [i686-linux-4.15.0-163-generic] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Model Family: Western Digital Scorpio Blue Serial ATA Device Model: WDC WD2500BEVT-11ZCT0 Serial Number: WD-WXD0A7924648 LU WWN Device Id: 5 0014ee 2ad0741c2 Firmware Version: 11.01A11 User Capacity: 250 059 350 016 bytes [250 GB] Sector Size: 512 bytes logical/physical Rotation Rate: 5400 rpm Device is: In smartctl database [for details use: -P show] ATA Version is: ATA8-ACS (minor revision not indicated) SATA Version is: SATA 2.5, 3.0 Gb/s Local Time is: Sat Dec 18 02:59:17 2021 MSK SMART support is: Available - device has SMART capability. SMART support is: Enabled === START OF READ SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED General SMART Values: Offline data collection status: (0x00) Offline data collection activity was never started. Auto Offline Data Collection: Disabled. Self-test execution status: ( 0) The previous self-test routine completed without error or no self-test has ever been run. Total time to complete Offline data collection: ( 7500) seconds. Offline data collection capabilities: (0x7b) SMART execute Offline immediate. Auto Offline data collection on/off support. Suspend Offline collection upon new command. Offline surface scan supported. Self-test supported. Conveyance Self-test supported. Selective Self-test supported. SMART capabilities: (0x0003) Saves SMART data before entering power-saving mode. Supports SMART auto save timer. Error logging capability: (0x01) Error logging supported. General Purpose Logging supported. Short self-test routine recommended polling time: ( 2) minutes. Extended self-test routine recommended polling time: ( 90) minutes. Conveyance self-test routine recommended polling time: ( 5) minutes. SCT capabilities: (0x303f) SCT Status supported. SCT Error Recovery Control supported. SCT Feature Control supported. SCT Data Table supported. SMART Attributes Data Structure revision number: 16 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 0 3 Spin_Up_Time 0x0027 152 145 021 Pre-fail Always - 3400 4 Start_Stop_Count 0x0032 097 097 000 Old_age Always - 3261 5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0 7 Seek_Error_Rate 0x002e 100 253 000 Old_age Always - 0 9 Power_On_Hours 0x0032 099 099 000 Old_age Always - 1313 10 Spin_Retry_Count 0x0033 100 100 051 Pre-fail Always - 0 11 Calibration_Retry_Count 0x0032 100 100 000 Old_age Always - 0 12 Power_Cycle_Count 0x0032 098 098 000 Old_age Always - 2523 192 Power-Off_Retract_Count 0x0032 199 199 000 Old_age Always - 900 193 Load_Cycle_Count 0x0032 193 193 000 Old_age Always - 21080 194 Temperature_Celsius 0x0022 115 095 000 Old_age Always - 32 196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0 197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 0 198 Offline_Uncorrectable 0x0030 100 253 000 Old_age Offline - 0 199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0 200 Multi_Zone_Error_Rate 0x0009 100 253 051 Pre-fail Offline - 0 SMART Error Log Version: 1 ATA Error Count: 90 (device log contains only the most recent five errors) CR = Command Register [HEX] FR = Features Register [HEX] SC = Sector Count Register [HEX] SN = Sector Number Register [HEX] CL = Cylinder Low Register [HEX] CH = Cylinder High Register [HEX] DH = Device/Head Register [HEX] DC = Device Command Register [HEX] ER = Error register [HEX] ST = Status register [HEX] Powered_Up_Time is measured from power on, and printed as DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes, SS=sec, and sss=millisec. It "wraps" after 49.710 days. Error 90 occurred at disk power-on lifetime: 769 hours (32 days + 1 hours) When the command that caused the error occurred, the device was active or idle. After command completion occurred, registers were: ER ST SC SN CL CH DH -- -- -- -- -- -- -- 40 51 08 77 00 60 40 Error: UNC 8 sectors at LBA = 0x00600077 = 6291575 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- 25 00 08 77 00 60 00 00 00:14:05.873 READ DMA EXT 25 00 08 6f 00 60 00 00 00:14:05.872 READ DMA EXT 25 00 08 bf fb 5d 00 00 00:14:05.871 READ DMA EXT 25 00 08 bf 02 00 00 00 00:14:05.870 READ DMA EXT 25 00 08 d7 02 00 00 00 00:14:05.870 READ DMA EXT Error 89 occurred at disk power-on lifetime: 769 hours (32 days + 1 hours) When the command that caused the error occurred, the device was active or idle. After command completion occurred, registers were: ER ST SC SN CL CH DH -- -- -- -- -- -- -- 40 51 08 77 00 60 40 Error: UNC 8 sectors at LBA = 0x00600077 = 6291575 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- 25 00 08 77 00 60 00 00 00:14:02.680 READ DMA EXT 25 00 08 6f 00 60 00 00 00:14:02.679 READ DMA EXT 25 00 08 bf fb 5d 00 00 00:14:02.678 READ DMA EXT 25 00 08 bf 02 00 00 00 00:14:02.677 READ DMA EXT 25 00 08 d7 02 00 00 00 00:14:02.676 READ DMA EXT Error 88 occurred at disk power-on lifetime: 769 hours (32 days + 1 hours) When the command that caused the error occurred, the device was active or idle. After command completion occurred, registers were: ER ST SC SN CL CH DH -- -- -- -- -- -- -- 40 51 08 77 00 60 40 Error: UNC 8 sectors at LBA = 0x00600077 = 6291575 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- 25 00 08 77 00 60 00 00 00:13:59.496 READ DMA EXT 25 00 08 6f 00 60 00 00 00:13:59.495 READ DMA EXT 25 00 08 bf fb 5d 00 00 00:13:59.494 READ DMA EXT 25 00 08 bf 02 00 00 00 00:13:59.493 READ DMA EXT 25 00 08 d7 02 00 00 00 00:13:59.492 READ DMA EXT Error 87 occurred at disk power-on lifetime: 769 hours (32 days + 1 hours) When the command that caused the error occurred, the device was active or idle. After command completion occurred, registers were: ER ST SC SN CL CH DH -- -- -- -- -- -- -- 40 51 08 77 00 60 40 Error: UNC 8 sectors at LBA = 0x00600077 = 6291575 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- 25 00 08 77 00 60 00 00 00:13:56.475 READ DMA EXT 25 00 08 6f 00 60 00 00 00:13:56.474 READ DMA EXT 25 00 08 bf fb 5d 00 00 00:13:56.473 READ DMA EXT 25 00 08 bf 02 00 00 00 00:13:56.472 READ DMA EXT 25 00 08 d7 02 00 00 00 00:13:56.471 READ DMA EXT Error 86 occurred at disk power-on lifetime: 769 hours (32 days + 1 hours) When the command that caused the error occurred, the device was active or idle. After command completion occurred, registers were: ER ST SC SN CL CH DH -- -- -- -- -- -- -- 40 51 08 77 00 60 40 Error: UNC 8 sectors at LBA = 0x00600077 = 6291575 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- 25 00 08 77 00 60 00 00 00:13:53.295 READ DMA EXT 25 00 08 6f 00 60 00 00 00:13:53.294 READ DMA EXT 25 00 08 bf fb 5d 00 00 00:13:53.293 READ DMA EXT 25 00 08 bf 02 00 00 00 00:13:53.292 READ DMA EXT 25 00 08 d7 02 00 00 00 00:13:53.291 READ DMA EXT SMART Self-test log structure revision number 1 Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error # 1 Short offline Aborted by host 80% 849 - SMART Selective self-test log data structure revision number 1 SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS 1 0 0 Not_testing 2 0 0 Not_testing 3 0 0 Not_testing 4 0 0 Not_testing 5 0 0 Not_testing Selective self-test flags (0x0): After scanning selected spans, do NOT read-scan remainder of disk. If Selective self-test is pending on power-up, resume after 0 minute delay. :~$ sudo btrace /dev/sda 8,0 0 0 87.351826880 0 m N cfq267SN insert_request 8,0 0 0 87.351831509 0 m N cfq267SN add_to_rr 8,0 0 0 87.351842530 0 m N cfq267SN preempt 8,0 0 0 87.351845341 0 m N cfq1874SN slice expired t=1 8,0 0 0 87.351849561 0 m N cfq1874SN resid=99507703 8,0 0 0 87.351856585 0 m N served: vt=430839073124352 min_vt=430837039960064 8,0 0 0 87.351862078 0 m N cfq1874SN sl_used=496378 disp=1 charge=496378 iops=0 sect=8 8,0 0 0 87.351864774 0 m N cfq1874SN del_from_rr 8,0 0 0 87.351874920 0 m N cfq267SN set_active wl_class:0 wl_type:1 8,0 0 0 87.351879994 0 m N cfq267SN Not idling. st->count:1 8,0 0 0 87.351882525 0 m N cfq267SN dispatch_insert 8,0 0 0 87.351889128 0 m N cfq267SN dispatched a request 8,0 0 0 87.351892195 0 m N cfq267SN activate rq, drv=1 8,0 0 460 87.351893471 267 D WS 327649464 + 72 [jbd2/sda5-8] 8,0 0 461 87.351936478 267 U N [jbd2/sda5-8] 1 8,0 0 462 87.352957578 267 A FWFS 327649536 + 8 <- (8,5) 159668480 8,0 0 463 87.352971230 267 Q FWFS 327649536 + 8 [jbd2/sda5-8] 8,0 0 464 87.353005271 267 G FWFS 327649536 + 8 [jbd2/sda5-8] 8,0 0 465 87.353018363 267 I FWFS 327649536 + 8 [jbd2/sda5-8] 8,0 0 466 87.353032349 267 D FN [jbd2/sda5-8] 8,0 1 417 87.373874043 2456 C FN 0 [0] 8,0 1 418 87.373908114 2456 D WS 327649536 + 8 [sakura] 8,0 1 419 87.374374261 2456 C WS 327649536 + 8 [0] 8,0 1 420 87.374400718 2456 D FN [sakura] 8,0 1 421 87.393527020 0 C FN 0 [0] 8,0 1 422 87.393550552 0 C WS 327649536 [0] 8,0 1 423 87.395940821 1874 A WS 173179208 + 8 <- (8,5) 5198152 8,0 1 424 87.395946443 1874 Q WS 173179208 + 8 [upowerd] 8,0 1 425 87.395965518 1874 G WS 173179208 + 8 [upowerd] 8,0 1 426 87.395968347 1874 P N [upowerd] 8,0 1 427 87.395981755 1874 I WS 173179208 + 8 [upowerd] 8,0 1 0 87.395992993 0 m N cfq1874SN insert_request 8,0 1 0 87.395997170 0 m N cfq1874SN add_to_rr 8,0 1 0 87.396008002 0 m N cfq1874SN preempt 8,0 1 0 87.396010497 0 m N cfq267SN slice expired t=1 8,0 1 0 87.396013936 0 m N cfq267SN resid=76802317 8,0 1 0 87.396021090 0 m N served: vt=431016027164672 min_vt=430839073124352 8,0 1 0 87.396026763 0 m N cfq267SN sl_used=43201670 disp=1 charge=43201670 iops=0 sect=72 8,0 1 0 87.396029490 0 m N cfq267SN del_from_rr 8,0 1 0 87.396038137 0 m N cfq1874SN set_active wl_class:0 wl_type:1 8,0 1 0 87.396042425 0 m N cfq1874SN Not idling. st->count:1 8,0 1 0 87.396044854 0 m N cfq1874SN dispatch_insert 8,0 1 0 87.396050491 0 m N cfq1874SN dispatched a request 8,0 1 0 87.396053179 0 m N cfq1874SN activate rq, drv=1 8,0 1 428 87.396054467 1874 D WS 173179208 + 8 [upowerd] 8,0 1 429 87.396090079 1874 U N [upowerd] 1 8,0 1 430 87.396914392 0 C WS 173179208 + 8 [0] 8,0 1 0 87.396988750 0 m N cfq1874SN complete rqnoidle 1 8,0 1 0 87.396997008 0 m N cfq1874SN set_slice=100000000 8,0 1 0 87.397001911 0 m N cfq1874SN Not idling. st->count:1 8,0 1 0 87.397003891 0 m N cfq schedule dispatch 8,0 1 431 87.398233192 0 C WS 327649544 + 80 [0] 8,0 1 0 87.398274770 0 m N cfq267SN complete rqnoidle 1 8,0 1 0 87.398280662 0 m N cfq267SN set_slice=120000000 8,0 1 0 87.398284635 0 m N cfq267SN Not idling. st->count:1 8,0 1 0 87.398286161 0 m N cfq schedule dispatch 8,0 0 467 87.397440429 267 A WS 327649544 + 8 <- (8,5) 159668488 8,0 0 468 87.397447797 267 Q WS 327649544 + 8 [jbd2/sda5-8] 8,0 0 469 87.397467470 267 G WS 327649544 + 8 [jbd2/sda5-8] 8,0 0 470 87.397470486 267 P N [jbd2/sda5-8] 8,0 0 471 87.397476902 267 A WS 327649552 + 8 <- (8,5) 159668496 8,0 0 472 87.397478049 267 Q WS 327649552 + 8 [jbd2/sda5-8] 8,0 0 473 87.397482693 267 M WS 327649552 + 8 [jbd2/sda5-8] 8,0 0 474 87.397485420 267 A WS 327649560 + 8 <- (8,5) 159668504 8,0 0 475 87.397486669 267 Q WS 327649560 + 8 [jbd2/sda5-8] 8,0 0 476 87.397488095 267 M WS 327649560 + 8 [jbd2/sda5-8] 8,0 0 477 87.397490205 267 A WS 327649568 + 8 <- (8,5) 159668512 8,0 0 478 87.397491469 267 Q WS 327649568 + 8 [jbd2/sda5-8] 8,0 0 479 87.397493043 267 M WS 327649568 + 8 [jbd2/sda5-8] 8,0 0 480 87.397496793 267 A WS 327649576 + 8 <- (8,5) 159668520 8,0 0 481 87.397498087 267 Q WS 327649576 + 8 [jbd2/sda5-8] 8,0 0 482 87.397499631 267 M WS 327649576 + 8 [jbd2/sda5-8] 8,0 0 483 87.397502087 267 A WS 327649584 + 8 <- (8,5) 159668528 8,0 0 484 87.397503312 267 Q WS 327649584 + 8 [jbd2/sda5-8] 8,0 0 485 87.397504747 267 M WS 327649584 + 8 [jbd2/sda5-8] 8,0 0 486 87.397506950 267 A WS 327649592 + 8 <- (8,5) 159668536 8,0 0 487 87.397508187 267 Q WS 327649592 + 8 [jbd2/sda5-8] 8,0 0 488 87.397509614 267 M WS 327649592 + 8 [jbd2/sda5-8] 8,0 0 489 87.397511648 267 A WS 327649600 + 8 <- (8,5) 159668544 8,0 0 490 87.397512894 267 Q WS 327649600 + 8 [jbd2/sda5-8] 8,0 0 491 87.397514432 267 M WS 327649600 + 8 [jbd2/sda5-8] 8,0 0 492 87.397516476 267 A WS 327649608 + 8 <- (8,5) 159668552 8,0 0 493 87.397517710 267 Q WS 327649608 + 8 [jbd2/sda5-8] 8,0 0 494 87.397519259 267 M WS 327649608 + 8 [jbd2/sda5-8] 8,0 0 495 87.397521685 267 A WS 327649616 + 8 <- (8,5) 159668560 8,0 0 496 87.397522919 267 Q WS 327649616 + 8 [jbd2/sda5-8] 8,0 0 497 87.397524328 267 M WS 327649616 + 8 [jbd2/sda5-8] 8,0 0 498 87.397534383 267 I WS 327649544 + 80 [jbd2/sda5-8] 8,0 0 0 87.397545955 0 m N cfq267SN insert_request 8,0 0 0 87.397550511 0 m N cfq267SN add_to_rr 8,0 0 0 87.397561364 0 m N cfq267SN preempt 8,0 0 0 87.397563907 0 m N cfq1874SN slice expired t=1 8,0 0 0 87.397567678 0 m N cfq1874SN resid=99428376 8,0 0 0 87.397574615 0 m N served: vt=431018384670720 min_vt=431016027164672 8,0 0 0 87.397580110 0 m N cfq1874SN sl_used=575563 disp=1 charge=575563 iops=0 sect=8 8,0 0 0 87.397582795 0 m N cfq1874SN del_from_rr 8,0 0 0 87.397592043 0 m N cfq267SN set_active wl_class:0 wl_type:1 8,0 0 0 87.397596648 0 m N cfq267SN Not idling. st->count:1 8,0 0 0 87.397599399 0 m N cfq267SN dispatch_insert 8,0 0 0 87.397604952 0 m N cfq267SN dispatched a request 8,0 0 0 87.397607910 0 m N cfq267SN activate rq, drv=1 8,0 0 499 87.397609048 267 D WS 327649544 + 80 [jbd2/sda5-8] 8,0 0 500 87.397650402 267 U N [jbd2/sda5-8] 1 8,0 0 501 87.398359845 267 A FWFS 327649624 + 8 <- (8,5) 159668568 8,0 0 502 87.398366496 267 Q FWFS 327649624 + 8 [jbd2/sda5-8] 8,0 0 503 87.398383431 267 G FWFS 327649624 + 8 [jbd2/sda5-8] 8,0 0 504 87.398390275 267 I FWFS 327649624 + 8 [jbd2/sda5-8] 8,0 0 505 87.398396661 267 D FN [jbd2/sda5-8] 8,0 1 432 87.424264655 2823 C FN 0 [0] 8,0 1 433 87.424299921 2823 D WS 327649624 + 8 [blkparse] 8,0 1 434 87.424763377 2456 C WS 327649624 + 8 [0] 8,0 1 435 87.424788158 2456 D FN [sakura] 8,0 1 436 87.438554571 0 C FN 0 [0] 8,0 1 437 87.438570708 0 C WS 327649624 [0] 8,0 0 506 89.443537048 354 A W 168072344 + 8 <- (8,5) 91288 8,0 0 507 89.443542733 354 Q W 168072344 + 8 [kworker/u8:4] 8,0 0 508 89.443564170 354 G W 168072344 + 8 [kworker/u8:4] 8,0 0 509 89.443566824 354 P N [kworker/u8:4] 8,0 0 510 89.443596147 354 A W 169301160 + 8 <- (8,5) 1320104 8,0 0 511 89.443597537 354 Q W 169301160 + 8 [kworker/u8:4] 8,0 0 512 89.443605449 354 G W 169301160 + 8 [kworker/u8:4] 8,0 0 513 89.443652802 354 A W 273531120 + 8 <- (8,5) 105550064 8,0 0 514 89.443654282 354 Q W 273531120 + 8 [kworker/u8:4] 8,0 0 515 89.443663040 354 G W 273531120 + 8 [kworker/u8:4] 8,0 0 516 89.443674699 354 A W 189781784 + 8 <- (8,5) 21800728 8,0 0 517 89.443675906 354 Q W 189781784 + 8 [kworker/u8:4] 8,0 0 518 89.443682220 354 G W 189781784 + 8 [kworker/u8:4] 8,0 0 519 89.443693283 354 A W 189783192 + 8 <- (8,5) 21802136 8,0 0 520 89.443694475 354 Q W 189783192 + 8 [kworker/u8:4] 8,0 0 521 89.443702134 354 G W 189783192 + 8 [kworker/u8:4] 8,0 0 522 89.443713399 354 A W 189784408 + 8 <- (8,5) 21803352 8,0 0 523 89.443714609 354 Q W 189784408 + 8 [kworker/u8:4] 8,0 0 524 89.443724170 354 G W 189784408 + 8 [kworker/u8:4] 8,0 0 525 89.443754787 354 A W 189787248 + 40 <- (8,5) 21806192 8,0 0 526 89.443756147 354 Q W 189787248 + 40 [kworker/u8:4] 8,0 0 527 89.443764929 354 G W 189787248 + 40 [kworker/u8:4] 8,0 0 528 89.443785812 354 A W 189787536 + 24 <- (8,5) 21806480 8,0 0 529 89.443787124 354 Q W 189787536 + 24 [kworker/u8:4] 8,0 0 530 89.443794588 354 G W 189787536 + 24 [kworker/u8:4] 8,0 0 531 89.443806274 354 A W 189787704 + 8 <- (8,5) 21806648 8,0 0 532 89.443807601 354 Q W 189787704 + 8 [kworker/u8:4] 8,0 0 533 89.443814842 354 G W 189787704 + 8 [kworker/u8:4] 8,0 0 534 89.443831007 354 A W 189787784 + 8 <- (8,5) 21806728 8,0 0 535 89.443832289 354 Q W 189787784 + 8 [kworker/u8:4] 8,0 0 536 89.443840117 354 G W 189787784 + 8 [kworker/u8:4] 8,0 0 537 89.443868425 354 A W 189787872 + 16 <- (8,5) 21806816 8,0 0 538 89.443869878 354 Q W 189787872 + 16 [kworker/u8:4] 8,0 0 539 89.443877938 354 G W 189787872 + 16 [kworker/u8:4] 8,0 0 540 89.443883262 354 A W 189787984 + 8 <- (8,5) 21806928 8,0 0 541 89.443884285 354 Q W 189787984 + 8 [kworker/u8:4] 8,0 0 542 89.443890376 354 G W 189787984 + 8 [kworker/u8:4] 8,0 0 543 89.443932546 354 A WM 167981064 + 8 <- (8,5) 8 8,0 0 544 89.443934060 354 Q WM 167981064 + 8 [kworker/u8:4] 8,0 0 545 89.443943122 354 G WM 167981064 + 8 [kworker/u8:4] 8,0 0 546 89.443956521 354 A WM 172175384 + 8 <- (8,5) 4194328 8,0 0 547 89.443957953 354 Q WM 172175384 + 8 [kworker/u8:4] 8,0 0 548 89.443964523 354 G WM 172175384 + 8 [kworker/u8:4] Total (8,0): Reads Queued: 0, 0KiB Writes Queued: 181, 872KiB Read Dispatches: 24, 0KiB Write Dispatches: 107, 872KiB Reads Requeued: 0 Writes Requeued: 0 Reads Completed: 24, 0KiB Writes Completed: 119, 872KiB Read Merges: 0, 0KiB Write Merges: 74, 296KiB PC Reads Queued: 0, 0KiB PC Writes Queued: 0, 0KiB PC Read Disp.: 36, 5KiB PC Write Disp.: 0, 0KiB PC Reads Req.: 0 PC Writes Req.: 0 PC Reads Compl.: 36 PC Writes Compl.: 0 IO unplugs: 29 Timer unplugs: 0 Throughput (R/W): 0KiB/s / 9KiB/s Events (8,0): 1982 entries Skips: 0 forward (0 - 0.0%) I still do not understand why this is happening with the HDD. I have tried: sudo vi /etc/smartd.conf (changing -n mode) - Different numbers in
sudo hdparm -S 129 -B 120 /dev/sda None of this worked. Interestingly, even if I boot with an older kernel version, the HDD shutdown problem persists. At the same time, the Wi-FI adapter, the display driver does not work (the background image is simply stretched), but the problem with the constant shutdown of the disk remains. What is the problem that caused the HDD to instantly (without any timeout) turn off when it is idle? How can I fix this problem? |
My OBS Video recording is choppy Posted: 01 Jan 2022 05:17 AM PST I use OBS only for screen recording. But when I stop recording, I found My video is choppy. My System information: Operating System: Manjaro Linux KDE Plasma Version: 5.22.4 KDE Frameworks Version: 5.84.0 Qt Version: 5.15.2 Kernel Version: 5.10.53-1-MANJARO (64-bit) Graphics Platform: X11 Processors: 4 × Intel® Core™ i3-8100 CPU @ 3.60GHz Memory: 7.6 GiB of RAM Graphics Processor: Mesa Intel® UHD Graphics 630 You can see a screen recording of my computer: https://www.youtube.com/watch?v=F9HcUYbnkS8 How can I fix it, can anyone tell me please? |
Why do i get “Permission denied” errors from using Weston/Wayland Posted: 31 Dec 2021 11:19 PM PST I have built a Linux system with Buildroot (2021.05) to run on a raspberry pi 4. My graphics stack include using mesa (vc4, v3d, kmro), Wayland / Weston with a DRM back-end. Also installed kmscube, which runs perfectly with the rotating cube reporting a frame rate of 60fps The main application to be run in Weston is a wpewebkit application. So far, the application runs but without any hardware acceleration. The reported frame-rate of the embedded browser is about 5fps. When i exit from the application, i see the following messages displayed on the terminal atomic: couldn't commit new state: Permission denied repaint-flush failed: Permission denied atomic: couldn't commit new state: Permission denied repaint-flush failed: Permission denied atomic: couldn't commit new state: Permission denied repaint-flush failed: Permission denied ...... My system is setup to bypass any login prompts and start as root by editing my inittab file. When i run the who command, i get nothing on the terminal. If i run the command whoami , i get the output root . Can someone point me to why i am getting the "permission denied" errors from Weston / mesa. |
arch linux hdmi not detected Posted: 01 Jan 2022 05:00 AM PST today I started my laptop, but my external display was not working. I ran the command xrandr : Screen 0: minimum 8 x 8, current 1366 x 768, maximum 32767 x 32767 eDP1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 340mm x 190mm 1366x768 59.97*+ 1280x720 59.74 1024x768 60.00 1024x576 60.00 59.90 59.82 960x540 60.00 59.63 59.82 800x600 60.32 56.25 864x486 60.00 59.92 59.57 640x480 59.94 720x405 59.51 60.00 58.99 680x384 60.00 640x360 59.84 59.32 60.00 VIRTUAL1 disconnected (normal left inverted right x axis y axis) As you can see, there is no hdmi. When I run this exact same command on my other computer, it shows this: Screen 0: minimum 8 x 8, current 1366 x 768, maximum 32767 x 32767 eDP1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 340mm x 190mm 1366x768 59.97*+ 1280x720 59.74 1024x768 60.00 1024x576 60.00 59.90 59.82 960x540 60.00 59.63 59.82 800x600 60.32 56.25 864x486 60.00 59.92 59.57 640x480 59.94 720x405 59.51 60.00 58.99 680x384 60.00 640x360 59.84 59.32 60.00 DP1 disconnected (normal left inverted right x axis y axis) DP2 disconnected (normal left inverted right x axis y axis) HDMI1 disconnected (normal left inverted right x axis y axis) HDMI2 disconnected (normal left inverted right x axis y axis) VIRTUAL1 disconnected (normal left inverted right x axis y axis) my os: Linux acer-a515 5.7.12-arch1-1 #1 SMP PREEMPT Fri, 31 Jul 2020 17:38:22 +0000 x86_64 GNU/Linux Can someone help me? |
Curl FTPS error:1408F10B:SSL routines:ssl3_get_record:wrong version number Posted: 31 Dec 2021 11:01 PM PST I've looked at the related issues but none of them solved my issue. I'm trying to transfer files via ftp using curl to a server in my dmz from an FTPS server on an EC2 server running vsftpd. $ curl ftps://ec2-myserver.compute.amazonaws.com --verbose --tlsv1.1 * Rebuilt URL to: ftps://ec2-myserver.us-east-2.compute.amazonaws.com/ * Trying ip_addr... * TCP_NODELAY set * Connected to ec2-myserver.us-east-2.compute.amazonaws.com (ip_addr) port ---- (#0) * successfully set certificate verify locations: * CAfile: /etc/ssl/certs/ca-certificates.crt CApath: /etc/ssl/certs * TLSv1.1 (OUT), TLS handshake, Client hello (1): * error:1408F10B:SSL routines:ssl3_get_record:wrong version number * Closing connection 0 I am able to get the files connection FTPS from Filezilla on a windows server. I am getting the same error in every TLS version. I've tried enabling ssl3 on the vsfpd server but it didn't solve it. |
Wifi issue after sleep Posted: 31 Dec 2021 09:04 PM PST I am running Linux Mint 19 Tara. I cannot understand why but lately my wifi stop working after I resume it from sleep, the only way to make it work is either a reboot or sudo /etc/init.d/network-manager restart could you help me in fixing it or implementing a script with such code that would start everytime I resume the laptop? EDIT: -linux mint version -output of lspci -nnk | grep -i network -A 3 03:00.0 Network controller [0280]: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter [168c:0042] (rev 31) Subsystem: Dell QCA9377 802.11ac Wireless Network Adapter [1028:1810] Kernel driver in use: ath10k_pci Kernel modules: ath10k_pci -output of rfkill list 1: phy0: Wireless LAN Soft blocked: no Hard blocked: no 5: hci0: Bluetooth Soft blocked: no Hard blocked: no |
CentOS does not recognize compiled boost library Posted: 01 Jan 2022 12:00 AM PST I have built and installed boost using the following steps: # Boostrap and install JOBS=`grep -c ^processor /proc/cpuinfo` wget https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.bz2 tar xf boost_1_67_0.tar.bz2 cd boost_1_63_0 ./bootstrap.sh ./b2 -d1 -j${JOBS} --with-thread --with-filesystem --with-python --with-regex -sHAVE_ICU=1 --with-program_options --with-system link=shared release toolset=gcc stage ./b2 -d1 -j${JOBS} --with-thread --with-filesystem --with-python --with-regex -sHAVE_ICU=1 --with-program_options --with-system link=shared release toolset=gcc install sudo bash -c "echo '/usr/local/lib' > /etc/ld.so.conf.d/boost.conf" sudo ldconfig Then, I try to build mapnik which uses boost. I checkout mapnik and run ./bootstrap.sh and ./configure . I get the error "Could not find required header or shared library for boost filesystem". The boost section of configure is as follows: Searching for boost libs and headers... (cached) Found boost libs: mason_packages/.link/lib Found boost headers: mason_packages/.link/include Checking for C++ header file boost/version.hpp... yes Checking for Boost version >= 1.61... yes Found boost lib version... Checking for C++ library boost_system... no Could not find required header or shared library for boost system Checking for C++ library boost_filesystem... no Could not find required header or shared library for boost filesystem Checking for C++ library boost_regex... yes Checking for C++ library boost_program_options... yes ValueError: invalid literal for int() with base 10: '': File "/root/src/mapnik/SConstruct", line 1600: boost_version = [int(x) for x in env.get('BOOST_LIB_VERSION_FROM_HEADER').split('_')] (Build steps courtesy of keisan) Why doesn't the system find the boost library 1.67? I don't remember installing boost 1.63. I have compiled and installed 1.67, but the build system does not use it. Where does the system look for boost on the system? I deleted all libboost_* files in /usr/local/lib and /usr/lib64, but still don't know where the system looks for boost. Can someone give a tip on how to tell the system about the newly compiled software? |
apt-get Failing for all packages Posted: 01 Jan 2022 04:02 AM PST I'm running ubuntu 14.04, and I've recently started having issues with apt-get. I can't install or remove any package (error below). I tried reinstalling these packages, I tried deleting the deb files and I still get the same error. The following extra packages will be installed: python3-software-properties software-properties-common software-properties-gtk The following packages will be upgraded: python3-software-properties software-properties-common software-properties-gtk 3 upgraded, 0 newly installed, 0 to remove and 412 not upgraded. 108 not fully installed or removed. Need to get 0 B/126 kB of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y WARNING: The following packages cannot be authenticated! dh-python software-properties-common software-properties-gtk python3-software-properties Install these packages without verification? [y/N] y (Reading database ... 305261 files and directories currently installed.) Preparing to unpack .../software-properties-common_0.92.37.7_all.deb ... /var/lib/dpkg/info/software-properties-common.prerm: 6: /var/lib/dpkg/info/software-properties-common.prerm: py3clean: not found dpkg: warning: subprocess old pre-removal script returned error exit status 127 dpkg: trying script from the new package instead ... /var/lib/dpkg/tmp.ci/prerm: 6: /var/lib/dpkg/tmp.ci/prerm: py3clean: not found dpkg: error processing archive /var/cache/apt/archives/software-properties-common_0.92.37.7_all.deb (--unpack): subprocess new pre-removal script returned error exit status 127 /var/lib/dpkg/info/software-properties-common.postinst: 6: /var/lib/dpkg/info/software-properties-common.postinst: py3compile: not found dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 127 Preparing to unpack .../software-properties-gtk_0.92.37.7_all.deb ... /var/lib/dpkg/info/software-properties-gtk.prerm: 6: /var/lib/dpkg/info/software-properties-gtk.prerm: py3clean: not found dpkg: warning: subprocess old pre-removal script returned error exit status 127 dpkg: trying script from the new package instead ... /var/lib/dpkg/tmp.ci/prerm: 6: /var/lib/dpkg/tmp.ci/prerm: py3clean: not found dpkg: error processing archive /var/cache/apt/archives/software-properties-gtk_0.92.37.7_all.deb (--unpack): subprocess new pre-removal script returned error exit status 127 /var/lib/dpkg/info/software-properties-gtk.postinst: 6: /var/lib/dpkg/info/software-properties-gtk.postinst: py3compile: not found dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 127 Preparing to unpack .../python3-software-properties_0.92.37.7_all.deb ... /var/lib/dpkg/info/python3-software-properties.prerm: 6: /var/lib/dpkg/info/python3-software-properties.prerm: py3clean: not found dpkg: warning: subprocess old pre-removal script returned error exit status 127 dpkg: trying script from the new package instead ... /var/lib/dpkg/tmp.ci/prerm: 6: /var/lib/dpkg/tmp.ci/prerm: py3clean: not found dpkg: error processing archive /var/cache/apt/archives/python3-software-properties_0.92.37.7_all.deb (--unpack): subprocess new pre-removal script returned error exit status 127 /var/lib/dpkg/info/python3-software-properties.postinst: 6: /var/lib/dpkg/info/python3-software-properties.postinst: py3compile: not found dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 127 Errors were encountered while processing: /var/cache/apt/archives/software-properties-common_0.92.37.7_all.deb /var/cache/apt/archives/software-properties-gtk_0.92.37.7_all.deb /var/cache/apt/archives/python3-software-properties_0.92.37.7_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1) |
Print check/cross mark in shell script Posted: 01 Jan 2022 12:38 AM PST I would like to print a check mark and a cross mark in a shell script: #!/bin/bash echo -e "\xE2\x9C\x94 existing" echo -e "\xE2\x9D\x8C missing" Why isn't this working? |
Apache Multiple Domains and Multiple SSL to same IP and folder Posted: 01 Jan 2022 01:03 AM PST I am building a system and I need to use the same IP and same folder for a site with multiple domains and a seperate SSL certificate for each one. Also I do not want them to redirect or forward, because the site can handle the different domains on its own. so like site1.example.com 192.168.0.2:443 /var/www/html site2.example.com 192.168.0.2:443 /var/www/html site3.example.com 192.168.0.2:443 /var/www/html site4.example.com 192.168.0.2:443 /var/www/html I am using Ubuntu 14.04 with Apache2 I really have no idea on how the hosts file should look for this, can someone show me an example? |
Minimal installation of Oracle Java 8 on Debian - headless, with no GUI Posted: 01 Jan 2022 02:07 AM PST In another question here (Minimal Java installation for Linux with no GUI) I found some information about headless installation of OpenJDK, but I would need this with Oracle Java 8. I need Oracle Java, because I use an ARM architecture (Raspberry Pi 2) to run a Minecraft Spigot server, and red many times that ARM version of OpenJDK lacks critical optimalisation to provide suitable performance I want version 8, because Spigot also recommands to use this version for any Minecraft-related purpouses; OpenJDK does not have version 8 yet anyway I want it headless, since I run my Raspberry server in console mode, with all GUI/desktop environment components uninstalled, to save storage place and performance. My current system is the strongly Debian-based Raspbian Wheezy (Kernel ver. 3.18.; released 2015-05-05). This comes with a pre-installed Oracle Java 8, but it was deleted when I wiped out the GUI and desktop components (along with various other useless softwares) to make a minimal platfrom. Then I tried to re-install it using the following command: # apt-get install oracle-java8-jdk it provided me a huge list of packages to install, which, as I was able to recognize them, contained mostly fonts, icons, language files, and x11 (x-server-realted) libraries, all nice damned GUI staff, what I absolutely do not need - and cried for >200 MB storage space. Finally to my question: is there any way to install an Oracle Java Runtime Environment without these GUI conponents? Maybe I should manually sort out unwanted packages - but how could I know which ones are really need for Java to run on console, or may it cause instability if I miss packages which are in the dependancy list, but functionally would not need to Java? The list of required packages (maybe they will help): fontconfig fontconfig-config hicolor-icon-theme libatk1.0-0 libatk1.0-data libcairo2 libdatrie1 libfontconfig1 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libgraphite2-2.0.0 libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libharfbuzz0a libjasper1 libjpeg8 libpango-1.0-0 libpango1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpangox-1.0-0 libpangoxft-1.0-0 libpixman-1-0 libthai-data libthai0 libtiff4 libx11-6 libx11-data libxau6 libxcb-render0 libxcb-shm0 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxft2 libxi6 libxinerama1 libxrandr2 libxrender1 libxtst6 oracle-java8-jdk ttf-dejavu-core x11-common |
Match exact string using grep Posted: 01 Jan 2022 03:32 AM PST I have a text file: deiauk 1611516 afsdf 765 minkra 18415151 asdsf 4152 linkra sfsfdsfs sdfss 4555 deiauk1 sdfsfdsfs 1561 51 deiauk2 115151 5454 4 deiauk 1611516 afsdf ddfgfgd luktol1 4545 4 9 luktol 1 and I want to match exactly deiauk . When I do this: grep "deiauk" file.txt I get this result: deiauk 1611516 afsdf 765 deiauk1 sdfsfdsfs 1561 51 deiauk2 115151 5454 4 but I only need this: deiauk 1611516 afsdf 765 deiauk 1611516 afsdf ddfgfgd I know there's a -w option, but then my string has to mach whole line. |
Is there any way to know the size of L1, L2, L3 cache and RAM in Linux? Posted: 01 Jan 2022 12:34 AM PST Is there any way to know the size of L1, L2, L3 caches and RAM in Linux? |
Drivers for HP ScanJet 2400 on Linux Posted: 31 Dec 2021 10:05 PM PST I'm trying to install my scanner "HP ScanJet 2400". I followed the recipe from here: http://www.elcot.in/linuxdrivers_download.php, However, it was not possible at all to detect it, when working in CentOS, Fermi & OSuSE OS. Doess anyone have any suggestions on how to get this scanner working? |
No comments:
Post a Comment