View previous topic :: View next topic |
Author |
Message |
Torain n00b
Joined: 03 Mar 2014 Posts: 6
|
Posted: Thu Mar 27, 2014 7:01 pm Post subject: btrfs readonly |
|
|
Hey,
i have a little problem using btrfs as my root file system. My boot partition has an ext2 file system while / uses btrfs. The problem is that it is mounted read only while booting.
This is the relevant part of dmesg after booting.
Code: |
[ 1.557967] btrfs: device fsid a95ca047-cd66-4fa1-9cd1-8d67c251b63e devid 1 transid 246 /dev/vda3
[ 1.560619] btrfs: disk space caching is enabled
[ 1.620106] VFS: Mounted root (btrfs filesystem) readonly on device 0:15.
[ 1.630598] devtmpfs: mounted
[ 1.632496] Freeing unused kernel memory: 1092K (ffffffff81ccb000 - ffffffff81ddc000)
[ 1.633975] Write protecting the kernel read-only data: 12288k
[ 1.634941] Freeing unused kernel memory: 4K (ffff8800017ff000 - ffff880001800000)
[ 1.640746] Freeing unused kernel memory: 1504K (ffff880001a88000 - ffff880001c00000)
[ 2.185786] kbd_mode (883) used greatest stack depth: 4232 bytes left
[ 2.187147] init-early.sh (882) used greatest stack depth: 3720 bytes left
[ 2.814627] systemd-udevd[1039]: starting version 208
[ 2.830903] random: udevd urandom read with 12 bits of entropy available
[ 2.945753] btrfs: device fsid a95ca047-cd66-4fa1-9cd1-8d67c251b63e devid 1 transid 246 /dev/vda3
[ 60.168735] random: nonblocking pool is initialized
[ 66.749382] btrfs: disk space caching is enabled |
It is possible to remount it as rw after login so i guess the file system isn't broken.
In the fstab i just used it like i would use an ext4 one.
Code: | /dev/vda3 / btrfs defaults,noatime 0 1
|
Has anyone an idea how i could fix this problem? |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
vaxbrat l33t
Joined: 05 Oct 2005 Posts: 731 Location: DC Burbs
|
Posted: Fri Mar 28, 2014 2:47 am Post subject: Is your bootloader mounting it readonly? |
|
|
Do you have an "ro" on the kernel command line of grub or whatever bootloader you are using? That would probably be a default setting to allow fsck to happen as necessary, but we don't really do fsck on btrfs yet. |
|
Back to top |
|
|
Torain n00b
Joined: 03 Mar 2014 Posts: 6
|
Posted: Fri Mar 28, 2014 1:09 pm Post subject: |
|
|
hey,
thanks for the answers. I already tried fsck and i changed the grub.cfg so no ro but still same problem. |
|
Back to top |
|
|
sebB l33t
Joined: 02 Mar 2011 Posts: 806 Location: S.O. France
|
Posted: Fri Mar 28, 2014 1:37 pm Post subject: |
|
|
Can you post your grub.cfg |
|
Back to top |
|
|
Torain n00b
Joined: 03 Mar 2014 Posts: 6
|
Posted: Fri Mar 28, 2014 1:45 pm Post subject: |
|
|
Here the entry of the grub.cfg i also tried without ro but same result
Code: |
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-a95ca047-cd66-4fa1-9cd1-8d67c251b63e' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root ff2fb61a-9369-415e-85e7-174d71368ee3
else
search --no-floppy --fs-uuid --set=root ff2fb61a-9369-415e-85e7-174d71368ee3
fi
echo 'Loading Linux 3.13.7-gentoo ...'
linux /kernel-3.13.7-gentoo root=/dev/vda3 ro
}
|
|
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
Torain n00b
Joined: 03 Mar 2014 Posts: 6
|
Posted: Sat Mar 29, 2014 3:48 pm Post subject: |
|
|
I also tried without, was just to lazy to change it permanently so i did it directly in the grub menu |
|
Back to top |
|
|
|