Re: Trouble/bug with initramfs-tools adding encrypted swap partition
Am Dienstag, 23. April 2024, 22:26:17 CEST schrieb Richard: Hi Richard, this is, what I am doing when this happens: 1. booting into a live system (any new is working, I prefer kali-linux) 2. If you are using encrypted filesystems, open it. But you have to name it like it is named in / etc/crypttab of the defective system 3. Now mount the device with root-filesystem to /mnt 4. If you have /boot as a separated partition, mount it to /mnt/boot 5. Now mount needed system directories to /mnt mount --bind /sys /mnt/sys mount --bind /proc /mnt/proc mount --bind /dev /mnt/dev 6. If everything is mounted correct, you can chroot into the mounted system chroot /mnt 7. Now you can create a new initrd update-initramfs -u 8. exit the chroot and reboot. Note: 1. if you have encrypted filesystems, check in the chroot the files /etc/crypttab /etc/cryptsetup-initramfs/conf-hook In conf-hook check the last line, the parm "ASKPASS=Y" should be commented out. 2. You can check the UUID of every partition with the command blkid /dev/sda1 and compare it with the entries in /etc/fstab, /etc/crypttab and everywhere else it is used. 3. In chroot, you can of course also create a new initrd, using update-initramfs -c -k all 4. Please remember, when you have encrypted partitions, then the UUID of the device is other, than the partitions, you later mount. Example: blkid /dev/sda3 UUID=1234556-dfre-3456. Now cryptsetup luksOpen /dev/sda3 crypt_sda3 blkid /dev/mapper/crypt_sda3 UUID=9876g54-765g-87hg Watch this, when changing any UUIDs in /etc/fstab or anywhere else. Last but not least: Hope this helps, good luck! Best Hans
Re: SOLVED: Re: Glitchy sound in Steam games after hard drive upgrade
On 4/24/24 00:46, Charlie Gibbs wrote: On 2024-04-22 16:50, Jeffrey Walton wrote: What are the old and new hard drive model numbers and specs? Correction: the 4TB drive is a Western Digital WD40EFPX. I was reading it by shining a flashlight through a gap in the frame and squinting from a wide angle because I didn't want to take the box apart yet again. Note for the future: hdparm -i can give you that info. If you think that's changed since boot, hdparm -I reads it from the drive.
SOLVED: Re: Glitchy sound in Steam games after hard drive upgrade
On 2024-04-22 16:50, Jeffrey Walton wrote: What are the old and new hard drive model numbers and specs? Correction: the 4TB drive is a Western Digital WD40EFPX. I was reading it by shining a flashlight through a gap in the frame and squinting from a wide angle because I didn't want to take the box apart yet again. I've trying several of the suggestions people have kindly posted here. The /etc directory on the new drive was getting messed up badly enough that I decided to try copying the 500GB drive's root partition to the 4TB drive using dd. The machine hung partway through the subsequent boot. So I wiped the root partition and re-installed Debian from scratch, leaving the /home partition intact. But the real magic was the re-installation of the Steam launcher. Since my Portal icons were on my desktop, and clicking them made it run (sort of), I was fooled into thinking everything was still there. But I found a detailed set of instructions for installing Steam at https://wiki.debian.org/Steam and followed them. This installed or overlaid the missing or broken parts and presto! my sound is now clean. Many thanks to everyone for your help. This a good lesson to not take too many things for granted, and also to be a bit more adventurous. (A full Debian re-install really doesn't take that long...) -- /~\ Charlie Gibbs | You can't save the earth \ /| unless you're willing to X I'm really at ac.dekanfrus | make other people sacrifice. / \ if you read it the right way. |-- Dogbert the green consultant
Re: youtube-dl blocked?
Am 23.04.2024 um 23:15:17 Uhr schrieb Markos: > The site https://ytdl-org.github.io/youtube-dl/download.html > > is blocked? Please specify that more precisely. Run host ytdl-org.github.io -- Gruß Marco Send unsolicited bulk mail to 1713906917mu...@cartoonies.org
Re: youtube-dl blocked?
Am 23.04.2024 um 20:40:25 Uhr schrieb Charles Curley: > It does not appear to be blocked from here (North America). By DNS? -- Gruß Marco Send unsolicited bulk mail to 1713897625mu...@cartoonies.org
Re: [OFFTOPIC] youtube-dl blocked?
On Tue 23 Apr 2024 at 23:19:48 (-0400), Stefan Monnier wrote: > > The site https://ytdl-org.github.io/youtube-dl/download.html > > is blocked? > > Now that you got answers, a question: what made you post this here? > AFAICT this has nothing to do with Debian (if you use Debian, you'd > more naturally install that tool from `apt` which won't fetch it from > Github). Possibly they just searched for youtube-dl on google, and got something like what I saw in the topright corner: Cheers, David.
Re: youtube-dl blocked?
On Tue 23 Apr 2024 at 23:15:17 (-0300), Markos wrote: > The site https://ytdl-org.github.io/youtube-dl/download.html > > is blocked? > > Is there any other alternative to download videos from Youtube in > Linux command line? That site works here, but I don't think that's important. It appears to offer youtube-dl 2021.12.17, which is /ancient/. You'd be better off just installing Debian's yt-dlp in the usual manner. And you can do better than that at the moment, by using the backports version, 2024.04.09-1~bpo12+1. If the backports version falls behind, you can usually install the version from unstable (now trixie), because yt-dlp's dependencies are all unversioned. The medium term disadvantage of this approach is that it won't be upgraded automatically when a new version appears: you have to keep an eye out. Cheers, David.
Re: [OFFTOPIC] youtube-dl blocked?
> The site https://ytdl-org.github.io/youtube-dl/download.html > is blocked? Now that you got answers, a question: what made you post this here? AFAICT this has nothing to do with Debian (if you use Debian, you'd more naturally install that tool from `apt` which won't fetch it from Github). Stefan
Re: youtube-dl blocked?
On Wed, Apr 24, 2024 at 10:23 AM Markos wrote: > Dear > > The site https://ytdl-org.github.io/youtube-dl/download.html > > is blocked? > Nope. All clear from Malaysia. > > Is there any other alternative to download videos from Youtube in Linux > command line? > GitHub directly - https://github.com/yt-dlp/yt-dlp/releases/tag/2024.04.09 yt-dlp is a currently maintained version via forking compared to ytdl. Regards, Holloway
Re: youtube-dl blocked?
On Tue, 23 Apr 2024 23:15:17 -0300 Markos wrote: > The site https://ytdl-org.github.io/youtube-dl/download.html > > is blocked? It does not appear to be blocked from here (North America). > > Is there any other alternative to download videos from Youtube in > Linux command line? root@jhegaala:~# apt-cache search youtube-dl haruna - Video player built with Qt/QML on top of libmpv youtube-dl - download videos from YouTube and other sites (transitional package) youtubedl-gui - GUI on yt-dlp (ie, youtube-dl) to download videos from a variety of sites yt-dlp - downloader of videos from YouTube and other sites ytfzf - script to find and watch youtube videos from the terminal root@jhegaala:~# -- Does anybody read signatures any more? https://charlescurley.com https://charlescurley.com/blog/
Re: youtube-dl blocked?
On Tue, Apr 23, 2024 at 11:15:17PM -0300, Markos wrote: > The site https://ytdl-org.github.io/youtube-dl/download.html > > is blocked? Nope. Works for me.
Re: youtube-dl blocked?
Package: yt-dlp Version: 2024.04.09-1 Installed-Size: 10294 Maintainer: Unit 193 Architecture: all Depends: python3-brotli, python3-certifi, python3-mutagen, python3-pycryptodome, python3-requests, python3-urllib3, python3-websockets, python3:any, python3-pkg-resources Recommends: aria2 | wget | curl, ca-certificates, ffmpeg Suggests: libfribidi-bin | bidiv, phantomjs Description-en: downloader of videos from YouTube and other sites yt-dlp is a youtube-dl fork based on the now inactive youtube-dlc. The main focus of this project is adding new features and patches while also keeping up to date with the original project. . yt-dlp is a small command-line program to download videos from YouTube.com and other sites that don't provide direct links to the videos served. -- John Hasler j...@sugarbit.com Elmwood, WI USA
youtube-dl blocked?
Dear The site https://ytdl-org.github.io/youtube-dl/download.html is blocked? Is there any other alternative to download videos from Youtube in Linux command line? Thanks, Markos
Re: Debian@IBMx3550
On Tue, Apr 23, 2024 at 5:35 PM Greg wrote: > Hi there, > > I got refurb IBM x3550 M3 7944 server and I'm a bit lost. Is there any > Linux/Debian software (some gui would be nice) to monitor fan speed, > temperatures, voltages, disks.. ? > KDE has a bunch of monitoring widgets. Do you have a GUI Installed? > Thanks in advance for any help > Greg > > -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/ ⠈⠳⣄⠀⠀
Re: Debian@IBMx3550
On 4/23/24 14:35, Greg wrote: Hi there, I got refurb IBM x3550 M3 7944 server and I'm a bit lost. Is there any Linux/Debian software (some gui would be nice) to monitor fan speed, temperatures, voltages, disks.. ? Thanks in advance for any help Greg If you installed the Xfce desktop, add the "Sensor" plug-in/ applet to the Panel. Panel can display various temperatures, fan speeds, etc.. Note that you may to set the SUID bit on /usr/sbin/hddtemp for disk drive readings to be available: # chmod u+s /usr/sbin/hddtemp David
Re: Debian@IBMx3550
On Tue, Apr 23, 2024 at 5:35 PM Greg wrote: > Hi there, > > I got refurb IBM x3550 M3 7944 server and I'm a bit lost. Is there any > Linux/Debian software (some gui would be nice) to monitor fan speed, > temperatures, voltages, disks.. ? > I believe the package you are looking for is lm-sensors. Jeff
Re: Subject: Glitchy sound in Steam games after hard drive upgrade
> I doubt the new drive is slower than the old drive: Overall, agreed. Tho AFAICT the new drive spins slower (5400rpm vs 7200rpm), so it has a slightly higher rotational latency. This means that in *some* cases it can be slower. Now, I have no idea whether that's the cause of the glitches. Stefan
Debian@IBMx3550
Hi there, I got refurb IBM x3550 M3 7944 server and I'm a bit lost. Is there any Linux/Debian software (some gui would be nice) to monitor fan speed, temperatures, voltages, disks.. ? Thanks in advance for any help Greg
Re: Subject: Glitchy sound in Steam games after hard drive upgrade
On 4/23/24 09:02, debian-u...@howorth.org.uk wrote: Charlie Gibbs wrote: On 2024-04-22 16:50, Jeffrey Walton wrote: What are the old and new hard drive model numbers and specs? The old drive is a Western Digital WD5000YS (500GB SATA). The new drive is a Western Digital Red, WF40EFPX (4TB SATA). According to my searches, there's no such disk as a WF40EFPX. Are you sure that's what it is? If by any chance it is a WD40EFRX then that is certainly slower than your old drive, so may cause some problems as suggested. I doubt the new drive is slower than the old drive: - https://www.harddrivebenchmark.net/hdd.php?hdd=WDC%20WD5000YS WDC WD5000YS 425 - https://www.harddrivebenchmark.net/hdd.php?hdd=WDC%20WD40EFRX WDC WD40EFRX1,943 David
Trouble/bug with initramfs-tools adding encrypted swap partition
Hi, I've just set up a new computer with Debian Testing. I initially set it up without a swap partition, but I want to add it now. The partition has already been created as a LUKS2 partition, but I can't get update-initramfs to add it so it will automatically be decrypted at boot (both have same passphrase, but opposed to using the bootup passphrase or ask for a separate one, I'm only asked much later by grub. Running update-initramfs -ck all gives me this error: update-initramfs: Generating /boot/initrd.img-6.6.15-amd64 cryptsetup: WARNING: target 'luks-78362aa3-760c-41de-b911-6531b684e3f7' not found in /etc/crypttab but /etc/crypttab has these two lines, just like I did on my old device: luks-775ea946-6797-4c4d-a042-72924309f3d2 UUID=775ea946-6797-4c4d-a042-72924309f3d2 /crypto_keyfile.bin luks,keyscript=/bin/cat luks-78362aa3-760c-41de-b911-6531b684e3f7 UUID=78362aa3-760c-41de-b911-6531b684e3f7 /crypto_keyfile.bin luks,keyscript=/bin/cat So it clearly doesn't miss from the crypttab. Though I can'ft check if the second partition has a crypto_keyfile.bin, as it is a swap partition and I have no idea how to look inside. For completeness, that's the fstab: UUID=F5D8-8C91/boot/efi vfat defaults,noatime 0 2 /dev/mapper/luks-775ea946-6797-4c4d-a042-72924309f3d2 / btrfs subvol=/@,defaults,noatime,space_cache=v2,autodefrag,discard,compress=zstd:4 0 0 /dev/mapper/luks-775ea946-6797-4c4d-a042-72924309f3d2 /home btrfs subvol=/@home,defaults,noatime,space_cache=v2,autodefrag,discard,compress=zstd:4 0 0 /dev/mapper/luks-78362aa3-760c-41de-b911-6531b684e3f7 swap swap defaults,noatime,discard 0 0 tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0 and this is the command line in /etc/default/grub (of course I did run update-grub afterward): GRUB_CMDLINE_LINUX_DEFAULT="quiet cryptdevice=UUID=775ea946-6797-4c4d-a042-72924309f3d2:luks-775ea946-6797-4c4d-a042-72924309f3d2 root=/dev/mapper/luks-775ea946-6797-4c4d-a042-72924309f3d2 splash resume=/dev/mapper/luks-78362aa3-760c-41de-b911-6531b684e3f7" I even created the file /etc/initramfs-tools/conf.d/resume containing the line "RESUME=UUID=luks-78362aa3-760c-41de-b911-6531b684e3f7", also no change. In the meantime, I also tried adding the initramfs option in crypttab, yet no change. Upon inspecting the created initramfs by unpacking it with unmkinitramfs, I can see the initramfs does contain crypttab twice. The one in main/etc/crypttab is identical to the one in my system, but the one in main/cryptroot/crypttab is missing the second entry of the swap partition. Also, since then I've done a reboot and now when gdm would load I'm only greeted by a strange white screen telling my something happened the system can't recover from and that I should talk to my admin (or something like that). I was still able to switch tty. So while I'm not sure if that's even related, I tried to remove the swap partition from fstab, crypttab, grub and the resume file. But the same error kept happening over and over again. So I booted to a live USB (of 12.5), chrooted into the system without mounting the swap partition to try to run "update-initramfs -ck all" from there. But now it even refuses to find the root partition in crypttab. Now, is this a bug in the package or am I missing something? And how do I create a working initramfs now? Best Richard
Re: Subject: Glitchy sound in Steam games after hard drive upgrade
On 4/22/24 21:26, Charlie Gibbs wrote: On 2024-04-22 16:50, Jeffrey Walton wrote: What are the old and new hard drive model numbers and specs? The old drive is a Western Digital WD5000YS (500GB SATA). https://www.newegg.com/western-digital-re2-wd5000ys-500gb/p/N82E16822136032?Item=N82E16822136032 The new drive is a Western Digital Red, WF40EFPX (4TB SATA). https://www.westerndigital.com/products/internal-drives/wd-red-plus-sata-3-5-hdd?sku=WD40EFPX Both drives are spinning rust. I'm upgrading for the increased capacity, i.e. to store more MP3s and videos. Many thanks to all who have replied. When my schedule permits me to continue experimenting, I'm going to try copying /etc from the old drive to the new one. I've already learned how _not_ to do this: Boot from the new drive $ su root # cd / # mv etc etc.ori # rsync -av /mnt/backup/etc . The second line makes the system fall over and makes logins impossible. It took a boot from the rescue CD to undo the damage, which fortunately was easy since the deadly step at least succeeded in backing up /etc. Next time I'll do it while booted from the old drive. Copying an entire /etc directory from one machine to another requires a highly controlled environment and lot of engineering. I have always migrated /etc settings from one OS instance to another OS instance by hand, one service/ configuration file at a time. Can you leave the 500 GB HDD operational and use the 4 TB HDD for data? David
Re: Subject: Glitchy sound in Steam games after hard drive upgrade
Charlie Gibbs wrote: > On 2024-04-22 16:50, Jeffrey Walton wrote: > > > What are the old and new hard drive model numbers and specs? > > The old drive is a Western Digital WD5000YS (500GB SATA). > The new drive is a Western Digital Red, WF40EFPX (4TB SATA). According to my searches, there's no such disk as a WF40EFPX. Are you sure that's what it is? If by any chance it is a WD40EFRX then that is certainly slower than your old drive, so may cause some problems as suggested.
Re: Debian non-free-firmware policy making OS misleading and Free Software unfriendly
On Tue, Apr 23, 2024 at 6:26 AM Curt wrote: > > On 2024-04-22, Reid wrote: > > > > I'm sorry I irked you so much Curt, but you don't have to be rude. > > I'm Curt. Let's be serious. You be Frank and I'll be Earnest.
Re: Debian non-free-firmware policy making OS misleading and Free Software unfriendly
On 2024-04-22, Reid wrote: > > I'm sorry I irked you so much Curt, but you don't have to be rude. I'm Curt.