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.
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...?
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.
I can only assume this you're talking about the mount error while being completely oblivious to the kernel errors about the sectors not writing correctly while doing the mkfs.
For what it's worth. Googled this a bit and it might be a uefi issue specific to kernel.
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?
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.
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.
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.
What in the leaded gasoline...
Boot from usb key with iso. Then set password on root and give it network, ssh in and try to cryptsetup luksopen from there.
It's not creepy at all. OP has been owned.
Nuke the system.
Have you tried
blockdev --getsize64 /dev/sdcandblockdev --getsize64 /dev/sdc1?Does reading device directly via
ddrescue -d /dev/sdc1 /tmp/sc1.imgwork?Yep. 2.
I use mate and I've never had any of these issues before. So it might be relevant.
Why waste time say lot word when few word do trick?
ip a addadds the ip to the interface but does not set it up.ip link set $INTF upis probably needed.Then you'll need to add the route,
ip r add default via $GATEWAYYou say you checked
fdisk -l, but have you checked the number of blocks on those drives?grep . /sys/class/block/sd[ad]/sizeThis 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.netto/etc/pacman.d/gnupg/gpg.confand/{root,home/$USER}/.gnupg/gpg.conf. It changed the error from "General error" to "No name".Each step was done with a new
--initand--populate. And I also tried running pacman-key with the--keyserverargument to specify. Same error.If there's another post I somehow missed, please feel free to point it out.
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...?
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.
I can only assume this you're talking about the mount error while being completely oblivious to the kernel errors about the sectors not writing correctly while doing the mkfs.
For what it's worth. Googled this a bit and it might be a uefi issue specific to kernel.
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?
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.RPi's greatest weakness is its lack of a disk controller. There are so many things wrong with using USB as a bandaid.
What does it matter if the tutorials are on vms?
Please read the link, which is the arch wiki. Perhaps if you did, you would understand what it means to install something "into the chroot". :)
One of the main things that was attractive about arch to me was that it was the only distro that didn't shove it's logos down my throat.
Thanks, I hate it.
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.dand whatever .preset file you find there is the name of your kernel preset depending on what you installed. Then you can mkinitcpio -p whatever.If those don't work, use nouveau.blacklist=1
I've always used that for installs whenever I was doing anything on enterprise systems.
There's a big tracker for Arch. That's be a good place I think.
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.
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.
End of this list.
Back to top