Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
root fs mounted as read only (using btrfs)
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
kerrhau
n00b
n00b


Joined: 20 Jul 2017
Posts: 3

PostPosted: Thu Jul 20, 2017 8:50 pm    Post subject: root fs mounted as read only (using btrfs) Reply with quote

Hi, I just finished installing gentoo and booted using EFI but whenever I boot, I cannot create files because the file system is mounted as read only, but in my fstab I mount with read/write permissions, here are the contents of my fstab:
Code:

/dev/sda1               /boot           vfat    etime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2

/dev/sda4               /               btrfs           rw,noatime,compress=lzo,space_cache,subvolid=257,subvol=/@root,subvol=@root     0 0

/dev/sda4               /var            btrfs           rw,noatime,compress=lzo,space_cache,subvolid=258,subvol=/@var,subvol=@var       0 0

/dev/sda4               /home           btrfs           rw,noatime,compress=lzo,space_cache,subvolid=259,subvol=/@home,subvol=@home     0 0

/dev/sda4               /.snapshots     btrfs           rw,noatime,compress=lzo,space_cache,subvolid=260,subvol=/@snapshots,subvol=@snapshots   0 0


I was thinking it had something to do with my initramfs, but I'm not sure.

[Moderator edit: changed [quote] tags to [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7127
Location: almost Mile High in the USA

PostPosted: Thu Jul 20, 2017 11:16 pm    Post subject: Reply with quote

You'll have to look carefully during boot for any errors that may have stopped it from remounting readwrite.
By default the disk is mounted readonly and only if conditions are right, will it remount as readwrite.

Perhaps there's some data in your

Code:
$ dmesg


that indicates a problem with your hard disk or options while it's booting? Look for anything with "sda4" - perhaps there's some clues there.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Fri Jul 21, 2017 1:22 am    Post subject: Reply with quote

you only need one subvol= on each line in your fstab. remove all other spurious ones.
_________________
"Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3684
Location: Hamburg

PostPosted: Fri Jul 21, 2017 9:57 am    Post subject: Reply with quote

I'm not a BTRFS expert, but you defined always /dev/sda4 for different FS ?
Back to top
View user's profile Send private message
kerrhau
n00b
n00b


Joined: 20 Jul 2017
Posts: 3

PostPosted: Fri Jul 21, 2017 4:32 pm    Post subject: Reply with quote

Sorry for the late reply, I fixed it by supplying
Code:
dobtrfs,rootfstype=btrfs
in the kernel cl parameters.
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Sun Jul 23, 2017 4:07 pm    Post subject: Reply with quote

kerrhau wrote:
Sorry for the late reply, I fixed it by supplying
Code:
dobtrfs,rootfstype=btrfs
in the kernel cl parameters.

you might have noticed such a warning message after compiling. i didn't need to use these kernel parameters, and still works fine.
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