Everything in Linux is a file and folders are just parts of filenames. So to make sure all files no your mounted drive are found, it prefixes the path to your mounted disk to all the files in it and remembers how to resolve that.
So you have to do mount datasourcedisk datatargetfolder so you can find your data.
P.S.: Highly simplified explanation; could call it a metaphor to help understanding.
I love that you always end up kicking yourself for missing something like this when you figure it out but damn you learn a lot just from doing a vanilla install. If itβs not working, itβs almost a certainty the user has made a mistake somewhere.
I'm not really sure as to what might be causing those.
However, searching through the internet points to it possibly being a existing bug with nvme drives.
A possible work around is in one of the replies here. You could check this out.
and this seems like a replication of the same error.
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.
And when it checks for (2) it checks the other way around - i.e. it checks where its being mounted to (/mnt/myawesomessd) as opposed to the device itself (/dev/nvme0n1p1 / UUID / Label...)
Nice attitude. I think it's fairly understandable and likely in this case that OP does not fully grasp the mounting process or whatever, and thinks that it should just work. Just like it normally does for other OSes like Windows or macOS.
Your rude reply seems to be based on the assumption that OP knows just as much as you do, which is a scenario so common that it looks a lot more silly on your part to assume such a thing, than does OPs lack of knowledge.
It's a valuable life skill to be able to put yourself in the thought process of another person. Helps with making friends, being nice and helpful, showing and receiving respect, etc. π
The io error here is a bug in the drive's firmware - a mismatch between the features it advertises and those it implements. This is not uncommon and the kernel simply does not yet have specific support for that particular model's idiosyncrasies.
I suspect it will work fine; I don't think it's an operation relied upon by the day-to-day function of the filesystem.
It's probably worth reporting as per this guide. You should include the text of the error and context, the pci id of that drive, its model information, and your kernel version.
as other users have said, specify your mount points when using the mount command. you might need to create some directories to mount different partitions, something like mkdir mnt/efi for efi boot partition, of course add reasonable mount points for all your partitions. the stack of errors look like bad sectors but iβve never gotten anything like that
No it wasn't, telling someone to RTFM is a valid point. If you cannot handle being told to read the guide and just expect people to repeat the contents of the guide to you without you ever reading it then you need to get off the internet.
I get people want to use arch and I like it too, however we get pictures of failed boots every day and so often they are dumb issues that could be solved with at least a minimal amount of effort.
I did do a lot of searching actually and tried a few other things but always got the error in the journal. I've never used Linux before so I wasn't sure if this was general or specific so thank you for clarifying.
Not if you don't know what's going on. If you don't like the content here, unsubscribe, call out to the mods to create new rules, or just accept it. No need to be rude, calling people's questions dumb. There are no dumb serious questions. OP just doesn't know.
You have two separate processes going on here so let me divide them accordingly.
Partitioning and Formatting - Drives must be umounted before they can be partitioned and formatted. Then they are dealt with through "/dev/foo". Personally I only create the base requited Fat32 GPT partition with gdisk and then do the rest in an up-to-date gparted. I like visuals with partitions and all the option commands in one place as well as test commands with a final "commit". If you like you can verify with gdisk afterward if you try this.
The mounting issue is easily solved by creating an entries in "/etc/fstab" if yuou want to later use a simplified mount command. Mine looks liker this
[code] ### /etc/fstab
/dev/nvme0n1p2 / ext4 defaults 1 1
/dev/nvme0n1p1 /boot ext2 defaults 1 1
[/code]
β
If you don't want to create the entries in fstab you can mount by an explicit command like
[code] mount -t ext4 /dev/nvme0n1p2 /mnt/foo (where "foo" is any name you choose and create as a mount spot in /mnt like /mnt/SSD or /mnt/NVME) [/code]
β
BTW what interface is your SSD? .M2? .U2? SATA? and is it on a sled?
I got it mounted properly the second time around but still had the operation not supported error in the journal. Others suggest it's a few bad sectors. I'm not really sure if there's anything I could do about that or how that might affect things down the line, so if you know something I'd appreciate the additional input.
My SSD is .M2 attached directly to the connector in my laptop.
With the command OP ran it looked in fstab and could not find entry, Yes I know the correct part of the install method but OP didn't state he was doing an install!
With the command he ran it looked in fstab and could not find entry, Yes I know the correct part of the install method but OP didn't state he was doing an install!
58 comments
specify a mount point.
preferably to /mnt, as it seems like you are trying to mount the root partition.
mount /dev/nvme0n1p6 /mntTo add to that:
Everything in Linux is a file and folders are just parts of filenames. So to make sure all files no your mounted drive are found, it prefixes the path to your mounted disk to all the files in it and remembers how to resolve that.
So you have to do
mount datasourcedisk datatargetfolderso you can find your data.P.S.: Highly simplified explanation; could call it a metaphor to help understanding.
I love that you always end up kicking yourself for missing something like this when you figure it out but damn you learn a lot just from doing a vanilla install. If itβs not working, itβs almost a certainty the user has made a mistake somewhere.
Thanks, but I don't think that solves the errors in the journal. What's up with those? I thought that's why it wouldn't mount.
You can ignore the errors from partitioning writing fs. If you mount correctly it will most likely work
I'm not really sure as to what might be causing those.
However, searching through the internet points to it possibly being a existing bug with nvme drives.
A possible work around is in one of the replies here. You could check this out.
and this seems like a replication of the same error.
Other users might know of a better solution.
Good luck.
This solved it. Just installed and I can't now boot into Arch!
I'm a little embarrassed it was something so simple but thank you very much anyways!
Glad it worked out.
Wait, so you are able to boot or you're not?
2 different errors.
is likely your NVMe has bad sectors
you haven't specified a mountpoint so it's checking for a pre-configured one in /etc/fstab.
How would I fix #1? I think that might be the case as I couldn't boot into windows after this occurred.
Also yeah I should specify a mount point... The other comments have made that stupid mistake clear to me now, thanks
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.And when it checks for (2) it checks the other way around - i.e. it checks where its being mounted to (/mnt/myawesomessd) as opposed to the device itself (/dev/nvme0n1p1 / UUID / Label...)
You need to specify a mountpoint.
How do you expect to mount to nothing
Nice attitude. I think it's fairly understandable and likely in this case that OP does not fully grasp the mounting process or whatever, and thinks that it should just work. Just like it normally does for other OSes like Windows or macOS.
Your rude reply seems to be based on the assumption that OP knows just as much as you do, which is a scenario so common that it looks a lot more silly on your part to assume such a thing, than does OPs lack of knowledge.
It's a valuable life skill to be able to put yourself in the thought process of another person. Helps with making friends, being nice and helpful, showing and receiving respect, etc. π
All the best to you.
If OP can't be bothered to read the guide properly that's his problem.
I remember being in OP's, and I'm just saying comments like mum were far more useful then people just giving me the answer
The io error here is a bug in the drive's firmware - a mismatch between the features it advertises and those it implements. This is not uncommon and the kernel simply does not yet have specific support for that particular model's idiosyncrasies.
Ok, so should I just install it on my hard drive instead? Nothing I can do to get it working on my SSD?
Side note: is this a bug I should be reporting?
I suspect it will work fine; I don't think it's an operation relied upon by the day-to-day function of the filesystem.
It's probably worth reporting as per this guide. You should include the text of the error and context, the pci id of that drive, its model information, and your kernel version.
as other users have said, specify your mount points when using the mount command. you might need to create some directories to mount different partitions, something like mkdir mnt/efi for efi boot partition, of course add reasonable mount points for all your partitions. the stack of errors look like bad sectors but iβve never gotten anything like that
RTFM π add /mnt
Would've sufficed to say the second part. The rtfm was just uncalled-for.
No it wasn't, telling someone to RTFM is a valid point. If you cannot handle being told to read the guide and just expect people to repeat the contents of the guide to you without you ever reading it then you need to get off the internet.
What does the error say? Look at example mount commands, what'\s different?
Do some basic trouble shooting before taking a photo of your screen to show to us.
Far from arch specific so it should be in /r/linuxquestions
I get people want to use arch and I like it too, however we get pictures of failed boots every day and so often they are dumb issues that could be solved with at least a minimal amount of effort.
I did do a lot of searching actually and tried a few other things but always got the error in the journal. I've never used Linux before so I wasn't sure if this was general or specific so thank you for clarifying.
Not if you don't know what's going on. If you don't like the content here, unsubscribe, call out to the mods to create new rules, or just accept it. No need to be rude, calling people's questions dumb. There are no dumb serious questions. OP just doesn't know.
You have two separate processes going on here so let me divide them accordingly.
Partitioning and Formatting - Drives must be umounted before they can be partitioned and formatted. Then they are dealt with through "/dev/foo". Personally I only create the base requited Fat32 GPT partition with gdisk and then do the rest in an up-to-date gparted. I like visuals with partitions and all the option commands in one place as well as test commands with a final "commit". If you like you can verify with gdisk afterward if you try this.
The mounting issue is easily solved by creating an entries in "/etc/fstab" if yuou want to later use a simplified mount command. Mine looks liker this
[code] ### /etc/fstab
/dev/nvme0n1p2 / ext4 defaults 1 1
/dev/nvme0n1p1 /boot ext2 defaults 1 1
[/code]
β
If you don't want to create the entries in fstab you can mount by an explicit command like
[code] mount -t ext4 /dev/nvme0n1p2 /mnt/foo (where "foo" is any name you choose and create as a mount spot in /mnt like /mnt/SSD or /mnt/NVME) [/code]
β
BTW what interface is your SSD? .M2? .U2? SATA? and is it on a sled?
I got it mounted properly the second time around but still had the operation not supported error in the journal. Others suggest it's a few bad sectors. I'm not really sure if there's anything I could do about that or how that might affect things down the line, so if you know something I'd appreciate the additional input.
My SSD is .M2 attached directly to the connector in my laptop.
hey enorbet ... still love the name :)
Seems that you still did not learned how to screenshot from a TTY... ;-)
Why did you format, you had a working system just a few hours ago ?
https://www.reddit.com/r/linuxmasterrace/comments/hh5gye/so_i_havent_updated_my_arch_installation_for_18/
Different person lol
you first need to create partitions
cfdisk -z /dev/nvme0whateverThey ran
mkfs.ext4 /dev/nvme0n1p6which is partition 6 on the nvme drive.ah, right
Add entry to fstab, then Mount.
Not sure about the errors, check smartctl.
Thanks for the downvotes.
With the command OP ran it looked in fstab and could not find entry, Yes I know the correct part of the install method but OP didn't state he was doing an install!
if they are following the official Installation Guide, they should first mount all partitions to /mnt then run genfstab
With the command he ran it looked in fstab and could not find entry, Yes I know the correct part of the install method but OP didn't state he was doing an install!