Skip to content

Formatting main system partition outputs error in journal but completes the process then has an error when mounting. Any help is greatly appreciated.

Not downloaded yet
151 points58 comments
Open on Reddit
About this post
Posted
Archived
Score
151 Β· 95% up
Kind
Image
ID
hhbfet

Author

2
posts
22
comments
2
media
View profile

58 comments

specify a mount point.
preferably to /mnt, as it seems like you are trying to mount the root partition.

mount /dev/nvme0n1p6 /mnt

54 points

To 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 datatargetfolder so you can find your data.

P.S.: Highly simplified explanation; could call it a metaphor to help understanding.

22 points

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.

11 points

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.

2 points

You can ignore the errors from partitioning writing fs. If you mount correctly it will most likely work

7 points

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.

1 points

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!

2 points

2 different errors.

  1. is likely your NVMe has bad sectors

  2. you haven't specified a mountpoint so it's checking for a pre-configured one in /etc/fstab.

24 points

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

6 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

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...)

3 points

How do you expect to mount to nothing

14 points

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.

2 points

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

1 points

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.

7 points

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?

1 points

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.

2 points

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

4 points

RTFM πŸ˜‚ add /mnt

1 points

Would've sufficed to say the second part. The rtfm was just uncalled-for.

0 points

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.

0 points

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.

1 points

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.

1 points

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.

0 points

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?

0 points

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.

1 points

you first need to create partitions

  • cfdisk -z /dev/nvme0whatever
  • make partitions you need
  • then you use mkfs on those partitions, not on the whole drive
-7 points

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!

-8 points

if they are following the official Installation Guide, they should first mount all partitions to /mnt then run genfstab

4 points

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!

1 points

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.