Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] systemd-232 fails to mount rootfs read-write
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
fr3aker
n00b
n00b


Joined: 07 Nov 2008
Posts: 14

PostPosted: Mon Nov 07, 2016 1:53 pm    Post subject: [solved] systemd-232 fails to mount rootfs read-write Reply with quote

After updating systemd from 231 to 232 systemd fails to re-mount the rootfs read-write (or seemingly almost any mounts). The file system is intact and no errors in dmesg except the systemd fails. I don't use an initramfs.

Code:
# systemctl --failed
  UNIT                           LOAD   ACTIVE SUB    DESCRIPTION
● dev-mqueue.mount               loaded failed failed POSIX Message Queue File System
● tmp.mount                      loaded failed failed Temporary Directory
● systemd-remount-fs.service     loaded failed failed Remount Root and Kernel File Systems
● systemd-tmpfiles-setup.service loaded failed failed Create Volatile Files and Directories
● systemd-update-utmp.service    loaded failed failed Update UTMP about System Boot/Shutdown


Code:
# mount
/dev/mmcblk0p2 on / type btrfs (ro,relatime,ssd,space_cache,subvolid=5,subvol=/)
devtmpfs on /dev type devtmpfs (rw,relatime,size=513760k,nr_inodes=128440,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
[snip cgroups]
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=102852k,mode=700,uid=1000,gid=1000)


Code:
grep -v '^#' /etc/fstab
UUID=XXX               /boot           ext4            noauto,noatime  1 2
UUID=YYY               /               btrfs           noatime         0 0


Code:
# journalctl -u dev-mqueue.mount
Nov 03 18:43:06 host systemd[1]: Mounting POSIX Message Queue File System...
Nov 03 18:43:06 host systemd[1]: dev-mqueue.mount: Mount process exited, code=exited status=1
Nov 03 18:43:06 host systemd[1]: Failed to mount POSIX Message Queue File System.
Nov 03 18:43:06 host systemd[1]: dev-mqueue.mount: Unit entered failed state.


Code:
# journalctl -u systemd-remount-fs.service
Nov 03 18:16:43 host systemd-remount-fs[159]: mount: only root can use "--options" option (effective UID is 250)


Code:
# uname -a
Linux host 4.7.10-hardened-r2 #1 SMP Sat Nov 5 03:01:59 CET 2016 armv7l ARMv7 Processor rev 4 (v7l) Allwinner sun7i (A20) Family GNU/Linux
# id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),26(tape),27(video)
# mount -o remount,ro /
mount: only root can use "--options" option (effective UID is 250)
# mount /boot
mount: only root can mount UUID=XXX on /boot
# systemd-mount /boot
Discovery only supported for block devices, don't know what to do.


Anyone has an idea what's going on and how to fix it?


Last edited by fr3aker on Mon Nov 07, 2016 11:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
fr3aker
n00b
n00b


Joined: 07 Nov 2008
Posts: 14

PostPosted: Mon Nov 07, 2016 11:01 pm    Post subject: Reply with quote

apparently for some reason my permissions for several recently installed packages got modified and executable files where owned by portage:portage instead of root:root, including the util-linux package. Fixed permissions and everything works now.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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