Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Root filesystem could not be mounted read/write [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
kris
n00b
n00b


Joined: 12 Oct 2009
Posts: 30
Location: Thorn Polska

PostPosted: Sun Apr 14, 2024 5:13 pm    Post subject: Root filesystem could not be mounted read/write [SOLVED] Reply with quote

Hi

When starting the system I get this error:

Code:
* Checking local filesystems  ...
/dev/sda1: clean, 356/65536 files, 37216/262144 blok
 [ ok ]
 * Remounting root filesystem read/write ...
error: unexpected argument '-n' found

  tip: to pass '-n' as a value, use '-- -n'

Usage: mount.bcachefs [OPTIONS] <DEV> [MOUNTPOINT]

For more information, try '--help'.
 * Root filesystem could not be mounted read/write
 [ !! ]
 * Remounting filesystems ...
 [ ok ]

my file /etc/fstab
Code:
/dev/sda1      /boot      ext4      noauto,noatime,discard   0 2
/dev/sda2                /              bcachefs        defaults                  0 0
/dev/zram0              swap              swap        pri=16383             0 0

Where to add - change -n to -- -n to use the hint:
Quote:
tip: to pass '-n' as a value, use '-- -n'


Thank you for all your support


Last edited by kris on Sun Apr 14, 2024 6:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1667

PostPosted: Sun Apr 14, 2024 5:25 pm    Post subject: Reply with quote

This is a problem with mount.bcachefs not supporting standard mount options.
Upstream has a bug on it already

As a workaround, it is possible to change /etc/init.d/root to remove the -n (aka --no-mtab) option, but the real issue should be fixed upstream.
Back to top
View user's profile Send private message
kris
n00b
n00b


Joined: 12 Oct 2009
Posts: 30
Location: Thorn Polska

PostPosted: Sun Apr 14, 2024 6:10 pm    Post subject: Reply with quote

Thank you @grknight,

this frustrating error is finally gone
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum