linux

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

Joseph_Boom, in Yet Another Distro Recommend request

Arch btw: it is much stable that many Linux users think, there are a ton of guide to do/repair things thanks to Arch Wiki, and, last but not least, it has the AUR repository in which you can find basically all software you will ever need; the only malus the AUR repository has is that you have to compile every software you install with it (even if sometimes they are precompiled).

P.S. if you want a “ready-to-go” arch distro, install EndevourOs and set the btrfs file system with timeshift. Here’s a guide.

0x4E4F, in How can I make a smart TV streaming device (Chromecast, Kodi, etc) use speakers connected to my Linux computer?

Do you have a second aux on that audio setup? That would be the easiest way IMO.

flashgnash, in What's the difference between package manager and why are there so many?

Oh no, there are 5 package managers out there and they’re all wildly different

I know! I’ll make a standard, universal package manager that’ll be better than all the others that everyone will use!

There are now 6 different package managers

Pantherina,

Packagekit. Its a mess

recarsion, in What's the difference between package manager and why are there so many?

Because people will never agree on a single one, and it’s FOSS so nothing is forced. I for one am glad I don’t have to use apt because I prefer pacman, just as I am glad someone who doesn’t want to use an Arch-derivative has Debian and apt to fall back on.

digger,
@digger@lemmy.ca avatar

Hi, that’s me! I’ve been using apt and Debian derivatives for 17 years. Bookworm is fantastic!

Decker108,

Same here, but lately I’ve also been pushed towards Snap and Flatpak. I miss the old visual Synaptic tool though…

digger,
@digger@lemmy.ca avatar

I like Flatpak and Appimage. I won’t touch Snaps.

Camilo, in Why can't I play H.265 videos on Fedora 38 even though I have the codec installed

I just installed fedora a couple of days ago and this happens to me too…

I guess I’ll try a different distro 🤷‍♂️ it was being a nice experience until I tried to play a video

Silejonu,
@Silejonu@kbin.social avatar

See my comment for the solution.

penquin, in What's the difference between package manager and why are there so many?

Imagine having only one option, and that option is dnf. I’m out. I don’t want Linux anymore.

GnomeComedy,

Ok I’ll bite. What’s so bad about dnf? I would take it anyday over apt.

penquin,

Not much really. It is great, but slow as shit and makes me want to toss my computer across the room. I just want to install one tiny 5 kb package, I don’t want you to take 10 minutes checking all the RPM fusions repos and go to the moon and back then install my package. No, just install the damn thing. I’ll ask you when I need you to check that long list of repos. 😂

andruid,

Dnf-5 was/is supposed to be a big speed improvement, no?

penquin,

Not sure. I have fedora 38 in a VM and it’s still very slow.

andruid,

Not targeted to be default until Fedora 41. So if you wanted to try it out you would have to install it your self.

penquin,

Ok then, I’ll search it up and install it.

andruid,

Sweet I hope it really is better for you then!

penquin,

I actually did install it. I hate to judge it in a virtual machine, but I’ve noticed a small difference. It’s still slow, but not as slow as the other one. Fun fact, the only reason why I don’t use fedora is that I hate their installer. I have 3 drives on my PC, and I’m so scared that I’d mess things up and lose my photos/videos/games etc 😂 The installer is so confusing. I remember figuring it out once then just forgot it again.

andruid,

I custom install every time, partially to preserve my user data partition, partially because I don’t like the defaults (I like mirroring my disks and leaving space to grow into later if I want)

penquin,

Same here, that’s why I have 3 different drives in my PC, 512GB nvme ssd for root, 1TB SATA SSD for home, and 2 TB SATA SSD just for games/emulation and steam

loaExMachina, in Systemd Working On "Storage Target Mode" Feature - Inspired By Apple macOS

Soon we’ll be debating whether we call it systemd/linux or gnu/systemd.

bjoern_tantau, in Possible to import Flatpak libraries
@bjoern_tantau@swg-empire.de avatar

The flatpaks should be in /var/lib/flatpak/. man7.org/linux/…/flatpak-installation.5.html#:~:t….

Edit: I don’t know if it’s enough, but you could try copying the files with cp -a.

Artemis_Mystique,

Thank you for the answer i did this and it worked(I only copied the necessary runtimes not the whole folder)

possiblylinux127, in Possible to import Flatpak libraries

I wouldn’t recommended it. It would be better to delete the old stuff and download fresh

Artemis_Mystique,

I cant, my data limit wont be enough: the official fedora rpms dont have the necessary codecs and i need flatpaks

possiblylinux127,

This might sound silly, but couldn’t you just get a better connection? You are using bandwidth for lemmy so your internet can’t be that bad. In the worst case you can just go to your local library.

stockRot,

What an awfully myopic understanding of the world lmao

possiblylinux127,

Possibly, that’s why I said “silly”. I’m just curious what there internet access looks like

lnxtx, in 30 Linux System Monitoring Tools Every SysAdmin Should Know
@lnxtx@feddit.nl avatar
yote_zip, in Weird error copying MKV file
@yote_zip@pawb.social avatar

Seems like there’s some bitrot in the middle of the file, and whatever you’re using to play back the original file just skips it and doesn’t care enough to halt playback. You might try looking for ways to restore as much of the file as possible with something like this, assuming the mkv is a unique copy that you can’t get anywhere else.

Edit: I’m also curious if this file lives on an XFS/BTRFS/ZFS filesystem. The reflink property of these filesystems may be the reason that you can copy within the same folder without it throwing an error.

Artemis_Mystique,

Yes it lives on BTRFS, I tried a few solutions but some gave this Read error Error demuxing input file 0: Input/output error video1.mkv: Input/output errorand other things i tried said that i dont have hevc support(Yay Fedora) I might be wasting more time than necessary on the file.so i might just give up

yote_zip,
@yote_zip@pawb.social avatar

Fair enough. I would at least try to get the damaged file off of the disk so you can potentially fix it later, or just have it available to play in its broken state. For the future you should probably be running monthly BTRFS scrubs to detect bitrot sooner, and potentially you should have some backups or data redundancy so you can repair the bitrot when it’s detected.

Artemis_Mystique,

I did a BTRFS scrub on the partiton and this is what came up Duration: 0:17:54 Total to scrub: 63.82GiB Rate: 60.85MiB/s Error summary: read=528 csum=48 Corrected: 570 Uncorrectable: 6 Unverified: 0 I dont know what else to do from here

yote_zip,
@yote_zip@pawb.social avatar

It goes without saying but the number of errors you should get on a scrub is ideally 0. Bitrot happens from time to time which is why you should keep some data redundancy/backups so you can repair it when it’s detected, but that number seems higher than normal. Your disk may be going bad if you’re getting that many read errors; I’m not sure. I believe you’re already backing up data off this drive but yeah I would get everything important off the drive ASAP, then run a SMART short test and a SMART long test to see if that reports that anything is wrong. The disk may be fine but better to be safe than sorry.

Back to the video file, I’m assuming it was not one of the ones that BTRFS fixed automatically? The only real options for data recovery are to rescue the file minus the bad blocks with e.g. ddrescue (which I don’t personally have familiarity with) or something similar, or to encode through the errors with ffmpeg if it will let you.

Artemis_Mystique,

A SMART Test showed 6 bad sectors but overall disk assessment was ok(I dont think there is any connection between the file and the HDD), yes that file has not been fixed, the disk in question used to be my main bootdrive a few days ago, I shrunk the partition and created a new EXt4 and i am slowly copying files that are worth keeping, i removed the ODD from my laptop and installed a caddy, intend to use it as a second drive(The file in question has no sentimental value)

yote_zip,
@yote_zip@pawb.social avatar

Okay cool. I would be wary of that drive just in case, and I would definitely schedule weekly SMART short tests and monthly BTRFS scrubs on it if you go with BTRFS in the future. EXT4/XFS/etc do not have a concept of data checksums, which means they can’t scrub and check for bitrot - this might be problematic if you find that your disk starts causing bitrot because you won’t know where it’s happening.

I follow Backblaze’s rules on detecting impending drive failure:

  • SMART 5: Reallocated_Sector_Count.
  • SMART 187: Reported_Uncorrectable_Errors.
  • SMART 188: Command_Timeout.
  • SMART 197: Current_Pending_Sector_Count.
  • SMART 198: Offline_Uncorrectable.

If any of these SMART metrics are higher than 0 I’d expect failure soon and take precautions.

Artemis_Mystique,

Thank you Id 197 and 198 reported 5 & 6 respectively(bad sectors decreased from 6 to 5), Is it possible to copy a file non sequentially; say back to front so i can just join those 2 parts together?

yote_zip,
@yote_zip@pawb.social avatar

Try this answer. I guarantee there is a way to read the file front to back while skipping errors, but I run so much data redundancy that I don’t have any experience with it.

jbk,

i dont have hevc support(Yay Fedora)

Can’t you install RPMFusion codecs and “fix” that?

davefischer, in Connection to external drives sometimes breaks on reboot
@davefischer@beehaw.org avatar

Are the usb disk device names changing?

Aarkon,
@Aarkon@feddit.de avatar

Not that I know of, but I can’t recall exactly anymore how I set up ZFS a year an a half back. I’ll investigate!

cygnus, in Introducing Mozilla’s Firefox Nightly .deb Package for Debian-based Linux Distributions
@cygnus@lemmy.ca avatar

My god, the day has actually come, finally.

qwesx, in Connection to external drives sometimes breaks on reboot
@qwesx@kbin.social avatar

Do you mount the drives using their /dev/sdX entries or via UUID? Because it sounds like you're using /dev/sdX entries (which you really shouldn't, because their names can randomly change, by design). Use /dev/disk/by-id/... directly for mounting or, alternatively, fill /etc/zfs/vdev_id.conf (see example below) and define the pool using their aliases.

alias Bay1 /dev/disk/by-id/ata-XXXXXXXXXXX1-YYYYY1_ZZZZZZZ4
alias Bay2 /dev/disk/by-id/ata-XXXXXXXXXXX2-YYYYY2_ZZZZZZZ4
alias Bay3 /dev/disk/by-id/ata-XXXXXXXXXXX3-YYYYY3_ZZZZZZZ4
alias Bay4 /dev/disk/by-id/ata-XXXXXXXXXXX4-YYYYY3_ZZZZZZZ4

Aarkon,
@Aarkon@feddit.de avatar

I use the ZFS mechanism exclusively today, so I’ll have a look at the vdev_id.conf file as soon as I find the time, thank you!

Also, sorry for not responding earlier, I’ve had some busy days.

db2, in 30 Linux System Monitoring Tools Every SysAdmin Should Know

nice

I mean that both as a general appreciation of the post and as another tool suggestion.

Also they really ought to update those nearly 15 year old screenshots.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #