Skip to content

u/rddime

In this archive from Oct 2019 to Dec 2024

1
posts
25
comments
0
media
60
score

This didn't work.

Two things I tried. First: curl -sS https://download.spotify.com/debian/pubkey.gpg | gpg --import -

This didn't fix the issue. From that post, someone posted that "Already did that, there are 2 different keys. This imports the first one but the 2nd one gives me that error". So perhaps I'll look into what possible other keys I need to manually import.

Then I tried adding keyserver hkp://pool.key-servers.net to /etc/pacman.d/gnupg/gpg.conf and /{root,home/$USER}/.gnupg/gpg.conf. It changed the error from "General error" to "No name".

Each step was done with a new --init and --populate. And I also tried running pacman-key with the --keyserver argument to specify. Same error.

If there's another post I somehow missed, please feel free to point it out.

-3 points

The "not supported" part of the error is a key term or it's a quirk?

I take no issue with your solution (because I am not terribly familiar with nvme, hence my reference to what would be the right thing to do with spinning rust) but the user should be free to test these things to learn about the error. He's not corrupting a filesystem he should just assume to be safe before investigating anyways.

I suggest a dd count=1 and you say that's too dangerous because the user is obviously a newbie but linking him to pci.c is the right answer...?

0 points

When a kernel responds with op not supp for an write zeroes operation, the next thing to test is a dd write to that sector from devzero.

Instead of your snarky one liners, give a suggestion of what you would do instead?

PS. I've worked with kernel stuff enough to know there are some errors that throw EOPNOTSUPP incorrectly. It's obvious that WRITE ZEROES is not an op that would be unsupported.

0 points

It's completely and utterly relevant. They need to understand if they can't write to that sector they need to replace their device.

Did you look at their original post? OP is doing a mkfs. What does a mkfs do? It writes the superblocks on the journal and the device reports to the kernel that there's an error on updating sectors on the device. If checking sectors is not relevant, is your advice to just go ahead and run a filesystem with its journal and superblocks on bad sectors?

1 points

This is a rather large question.

You can't.

With old spinning rust, there's a method to have the device try reallocation which would sometimes fix the issue.

You can try dd if=/dev/zero of=/dev/nvme0n1 seek=$SECTOR count=1.

Check smartctl -a /dev/nvme0. Check the lifetime writes on the device. You may be way over the useful lifetime writes the nvme is rated for. You can't fix bad sectors yourself.

2 points

As other people here have mentioned, Arch recently split off its kernel package (linux or linux-lts) from base. And you probably didn't install it if you're following an old guide (you should always use archwiki).

But you can literally ls /etc/mkinitcpio.d and whatever .preset file you find there is the name of your kernel preset depending on what you installed. Then you can mkinitcpio -p whatever.

3 points

There was no issue. You misunderstood something and neglected to learn about it.

You should reconsider and simply do some research next time if you'd like to have a more enjoyable Linux experience.

-12 points

If you have one of those usb to sata adapters, just connect a hard drive to usb port, and pass it to a kvm guest. You can mount arch image and install in the vm, do whatever you need to it, and then move the hard drive to your new system.

I haven't tested this with UEFI and assume it would be more work to make it work. But with legacy, it's fast and easy.

1 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.