You are not logged in.

#1 2012-06-02 11:36:10

aduser
Member
From: Hong Kong
Registered: 2010-04-30
Posts: 10

[SOLVED]root partition read only after update systemd

After update systemd today, the systemd-remount-fs.service fail to start. Root filesystem is read only I tried add rw to fstab mount option, but the root parition is still  read only. I noticed that util-linux package are installed and udev package is dropped , Does it related to my problem?

Please advice me.

Sorry for my bad English.


Update
After downgard util-linux package, the system work again  big_smile


Update 2
UUID in grub.conf and fstab  are inconsistent, Thanks to  tomegun for point out this problem.

Last edited by aduser (2012-06-08 04:05:59)

Offline

#2 2012-06-02 16:06:28

aduser
Member
From: Hong Kong
Registered: 2010-04-30
Posts: 10

Re: [SOLVED]root partition read only after update systemd

bump

Offline

#3 2012-06-02 16:12:07

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: [SOLVED]root partition read only after update systemd

post the output of

systemctl status systemd-remount-fs.service

edit:
and your /etc/fstab

Last edited by 65kid (2012-06-02 16:13:22)

Offline

#4 2012-06-02 17:34:06

aduser
Member
From: Hong Kong
Registered: 2010-04-30
Posts: 10

Re: [SOLVED]root partition read only after update systemd

output of systemctl status systemd-remount-fs.service

systemd-remount-fs.service - Remount Root and Kernel File Systems
          Loaded: loaded (/usr/lib/systemd/system/systemd-remount-fs.service; static)
          Active: failed (Result: exit-code) since Sun, 03 Jun 2012 01:17:42 +0800; 5min ago
         Process: 132 ExecStart=/usr/lib/systemd/systemd-remount-fs (code=exited, status=1/FAILURE)
          CGroup: name=systemd:/system/systemd-remount-fs.service

fstab

UUID=55326b3a-eec9-498e-8e20-0a7ddd8daf9a / btrfs rw,compress=lzo,space_cache,autodefrag 0 1
UUID=54c17991-716b-496e-a89b-4e978f2d92a4 /boot ext2 defaults 0 1

systemctl

UNIT                      LOAD   ACTIVE SUB       JOB DESCRIPTION
proc-sys...misc.automount loaded active waiting       Arbitrary Executable File Formats File System Automount Point
sys-devi...d-card1.device loaded active plugged       RV630 audio device [Radeon HD 2600 Series]
sys-devi...d-card0.device loaded active plugged       82801I (ICH9 Family) HD Audio Controller
sys-devi...et-eth0.device loaded active plugged       RTL8111/8168B PCI Express Gigabit Ethernet controller
sys-devi...dd-sdd1.device loaded active plugged       ST3120213A
sys-devi...dd-sdd2.device loaded active plugged       ST3120213A
sys-devi...ock-sdd.device loaded active plugged       ST3120213A
sys-devi...da-sda1.device loaded active plugged       WDC_WD6400AAKS-22A7B0
sys-devi...da-sda2.device loaded active plugged       WDC_WD6400AAKS-22A7B0
sys-devi...da-sda3.device loaded active plugged       WDC_WD6400AAKS-22A7B0
sys-devi...da-sda5.device loaded active plugged       WDC_WD6400AAKS-22A7B0
sys-devi...ock-sda.device loaded active plugged       WDC_WD6400AAKS-22A7B0
sys-devi...db-sdb1.device loaded active plugged       WDC_WD1002FAEX-00Z3A0
sys-devi...db-sdb2.device loaded active plugged       WDC_WD1002FAEX-00Z3A0
sys-devi...db-sdb3.device loaded active plugged       WDC_WD1002FAEX-00Z3A0
sys-devi...db-sdb4.device loaded active plugged       WDC_WD1002FAEX-00Z3A0
sys-devi...db-sdb5.device loaded active plugged       WDC_WD1002FAEX-00Z3A0
sys-devi...ock-sdb.device loaded active plugged       WDC_WD1002FAEX-00Z3A0
sys-devi...dc-sdc1.device loaded active plugged       ST980811AS
sys-devi...dc-sdc2.device loaded active plugged       ST980811AS
sys-devi...ock-sdc.device loaded active plugged       ST980811AS
sys-devi...y-ttyS1.device loaded active plugged       /sys/devices/platform/serial8250/tty/ttyS1
sys-devi...y-ttyS2.device loaded active plugged       /sys/devices/platform/serial8250/tty/ttyS2
sys-devi...y-ttyS3.device loaded active plugged       /sys/devices/platform/serial8250/tty/ttyS3
sys-devi...y-ttyS0.device loaded active plugged       /sys/devices/pnp0/00:07/tty/ttyS0
-.mount                   loaded active mounted       /
boot.mount                loaded active mounted       /boot
dev-hugepages.mount       loaded active mounted       Huge Pages File System
dev-mqueue.mount          loaded active mounted       POSIX Message Queue File System
sys-kernel-debug.mount    loaded active mounted       Debug File System
tmp.mount                 loaded active mounted       /tmp
xs-big.mount              loaded active mounted       /xs/big
xs-dev-\...pace\x5d.mount loaded active mounted       /xs/dev/[workspace]
xs-dev.mount              loaded active mounted       /xs/dev
xs-dl.mount               loaded active mounted       /xs/dl
xs-file.mount             loaded active mounted       /xs/file
systemd-...d-console.path loaded active waiting       Dispatch Password Requests to Console Directory Watch
systemd-...word-wall.path loaded active waiting       Forward Password Requests to Wall Directory Watch
console-...daemon.service loaded active running       Console Manager
console-...-start.service loaded failed failed        Console System Startup Logging
dbus.service              loaded active running       D-Bus System Message Bus
dhcpcd@eth0.service       loaded active running       dhcpcd on eth0
gdm.service               loaded active running       Gnome Display Manager
getty@tty1.service        loaded active running       Getty on tty1
systemd-journald.service  loaded active running       Journal Service
systemd-logind.service    loaded active running       Login Service
systemd-...unt-fs.service loaded failed failed        Remount Root and Kernel File Systems
systemd-sysctl.service    loaded active exited        Apply Kernel Variables
systemd-...-setup.service loaded active exited        Recreate Volatile Files and Directories
systemd-...rigger.service loaded active exited        udev Coldplug all Devices
systemd-udev.service      loaded active running       udev Kernel Device Manager
systemd-...nlevel.service loaded failed failed        Update UTMP about System Runlevel Changes
systemd-...ssions.service loaded active exited        Permit User Sessions
systemd-...-setup.service loaded active exited        Setup Virtual Console
dbus.socket               loaded active running       D-Bus System Message Bus Socket
systemd-initctl.socket    loaded active listening     /dev/initctl Compatibility Named Pipe
systemd-journald.socket   loaded active running       Journal Socket
systemd-shutdownd.socket  loaded active listening     Delayed Shutdown Socket
systemd-...control.socket loaded active listening     udev Control Socket
systemd-...-kernel.socket loaded active running       udev Kernel Socket
basic.target              loaded active active        Basic System
cryptsetup.target         loaded active active        Encrypted Volumes
getty.target              loaded active active        Login Prompts
graphical.target          loaded active active        Graphical Interface
local-fs-pre.target       loaded active active        Local File Systems (Pre)
local-fs.target           loaded active active        Local File Systems
multi-user.target         loaded active active        Multi-User
network.target            loaded active active        Network
remote-fs.target          loaded active active        Remote File Systems
sockets.target            loaded active active        Sockets
sound.target              loaded active active        Sound Card
swap.target               loaded active active        Swap
sysinit.target            loaded active active        System Initialization
systemd-...es-clean.timer loaded active waiting       Daily Cleanup of Temporary Directories

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
JOB    = Pending job for the unit.

74 units listed. Pass --all to see inactive units, too.

grub2 conf

menuentry 'Broken' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-ck kernel-true-852c733e-be0d-4375-8668-d7ae049295a9' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  54c17991-716b-496e-a89b-4e978f2d92a4
	else
	  search --no-floppy --fs-uuid --set=root 54c17991-716b-496e-a89b-4e978f2d92a4
	fi
	echo	'Loading Linux ck kernel ...'
	linux	/vmlinuz-linux-ck root=UUID=852c733e-be0d-4375-8668-d7ae049295a9 ro rootflags=subvol=broken  quiet add_efi_memmap elevator=bfq 
	echo	'Loading initial ramdisk ...'
	initrd	/initramfs-linux-ck.img
}

The update packages

core/btrfs-progs                 0.19.20120328-2    2 -> 3
core/device-mapper               2.02.95-4          4 -> 6
core/cryptsetup                  1.4.2-1            1 -> 2
core/gpm                         1.20.6-7           7 -> 8
core/lvm2                        2.02.95-4          4 -> 6
extra/libglapi                   8.0.3-1            1 -> 2
extra/libgl                      8.0.3-1            1 -> 2
extra/ati-dri                    8.0.3-1            1 -> 2
extra/bluez                      4.99-2             2 -> 6
extra/consolekit                 0.4.6-3            3 -> 4
extra/gvfs                       1.12.3-1           1 -> 2
extra/gvfs-obexftp               1.12.3-1           1 -> 2
extra/libatasmart                0.18-1             1 -> 2
extra/libcanberra                0.28-4             4 -> 5
extra/libpulse                   2.0-1              1 -> 2
extra/libcanberra-pulse          0.28-4             4 -> 5
extra/mesa                       8.0.3-1            1 -> 2
extra/pulseaudio                 2.0-1              1 -> 2
extra/xf86-video-ati             6.14.99-0.20120517 0.20120517 -> 1.20120517
community/libvirt                0.9.12-7           7 -> 8
community/ttf-ubuntu-font-family 0.80-2             2 -> 3
multilib/lib32-libglapi          8.0.3-3            3 -> 3.1
multilib/lib32-libgl             8.0.3-3            3 -> 3.1

==> Software upgrade (new version) :
core/util-linux                  2.21.1-2           -> 2.21.2-1
core/e2fsprogs                   1.42.2-2           -> 1.42.3-1
core/libpipeline                 1.2.0-2            -> 1.2.1-1
core/libsystemd                  44-7               -> 184-2
core/procps-ng                   3.3.2-2            -> 3.3.3-1
core/systemd                     44-7               -> 184-2
core/systemd-sysvcompat          3-1                -> 184-2
extra/pixman                     0.24.4-1           -> 0.26.0-1
extra/xorg-server-common         1.12.1.902-1       -> 1.12.2-1
extra/xorg-server                1.12.1.902-1       -> 1.12.2-1
community/libuser                0.57.1-2           -> 0.57.6-1
community/os-prober              1.49-3             -> 1.53-1
community/systemd-arch-units     20120412-6         -> 20120528-3
repo-ck/linux-ck-corex           3.3.7-1            -> 3.4-1
repo-ck/linux-ck-corex-headers   3.3.7-1            -> 3.4-1

==> New package :
core/systemd-tools               184-2              (required by systemd)

Does the systemd not support btrfs subvolume as root partition??

Last edited by aduser (2012-06-02 17:45:39)

Offline

#5 2012-06-03 12:04:50

imraro
Member
From: NewPath
Registered: 2009-11-06
Posts: 21

Re: [SOLVED]root partition read only after update systemd

Same here.

Offline

#6 2012-06-03 17:20:37

demizer
Member
From: Gilroy, CA
Registered: 2010-03-03
Posts: 116
Website

Re: [SOLVED]root partition read only after update systemd

I had the same problem. For some reason unknown to me, the UUID of my root filesystem changed. I have no idea why that happened. In any case, I had to rewrite my /etc/fstab, creating a new file and all. After that no problems with booting. Hope this helps.

Offline

#7 2012-06-04 05:02:09

aduser
Member
From: Hong Kong
Registered: 2010-04-30
Posts: 10

Re: [SOLVED]root partition read only after update systemd

Downgard util-linux package, it works big_smile

Offline

#8 2012-06-05 03:30:55

imraro
Member
From: NewPath
Registered: 2009-11-06
Posts: 21

Re: [SOLVED]root partition read only after update systemd

That's right. The mount command from util-linux 2.21.2-1 unable to do:

mount / -o remount

Offline

#9 2012-06-06 22:01:41

89c51
Member
Registered: 2012-06-05
Posts: 741

Re: [SOLVED]root partition read only after update systemd

Sorry for bumping this but has anyone filed a bug or informed the package maintainer??

I am new to arch and all but downgrading doesn't seem like the "best way" -whatever that means- to solve a problem

Offline

#10 2012-06-06 22:27:17

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: [SOLVED]root partition read only after update systemd

aduser wrote:

fstab

UUID=55326b3a-eec9-498e-8e20-0a7ddd8daf9a / btrfs rw,compress=lzo,space_cache,autodefrag 0 1
UUID=54c17991-716b-496e-a89b-4e978f2d92a4 /boot ext2 defaults 0 1

grub2 conf

menuentry 'Broken' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-ck kernel-true-852c733e-be0d-4375-8668-d7ae049295a9' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  54c17991-716b-496e-a89b-4e978f2d92a4
	else
	  search --no-floppy --fs-uuid --set=root 54c17991-716b-496e-a89b-4e978f2d92a4
	fi
	echo	'Loading Linux ck kernel ...'
	linux	/vmlinuz-linux-ck root=UUID=852c733e-be0d-4375-8668-d7ae049295a9 ro rootflags=subvol=broken  quiet add_efi_memmap elevator=bfq 
	echo	'Loading initial ramdisk ...'
	initrd	/initramfs-linux-ck.img
}

Is it intentional that your UUID in your grub config and in your fstab for your root partition is different? Surely this can't work?

Could you attach your blkid output?

Offline

#11 2012-06-07 05:07:58

89c51
Member
Registered: 2012-06-05
Posts: 741

Re: [SOLVED]root partition read only after update systemd

Because i seem to be hitting the same "bug" (or whatever that is) on a fresh install could you please take a look and to my stuff?? (i wasn't able to set it up so i am writing from another computer hence the lack of pastes)

systemctl reports  4 failed services. The systemd-remount-fs.service fails exactly with the same message as aduser.

In my fstab the / partition is ext4 and with option defaults,noatime.

My system is bootloaderless and uses an entry made with efibootmgr (https://wiki.archlinux.org/index.php/UE … tmgr_entry).

Any ideas would be more than welcome.

Edit:

also when i check the journalctl messages i get a line

systemd-remount-fs[136]: /bin/mount for / exited with exit status 1
systemd-remount-fs[136]: mount: /: mount failed: invalid argument

Last edited by 89c51 (2012-06-07 10:36:29)

Offline

#12 2012-06-07 09:51:35

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED]root partition read only after update systemd

89c51 wrote:

@tomegun

Because i seem to be hitting the same "bug" (or whatever that is) on a fresh install could you please take a look and to my stuff?? (i wasn't able to set it up so i am writing from another computer hence the lack of pastes)

systemctl reports  4 failed services. The systemd-remount-fs.service fails exactly with the same message as aduser.

In my fstab the / partition is ext4 and with option defaults,noatime.

My system is bootloaderless and uses an entry made with efibootmgr (https://wiki.archlinux.org/index.php/UE … tmgr_entry).

Any ideas would be more than welcome.

Edit:

also when i check the journalctl messages i get a line

systemd-remount-fs[136]: /bin/mount for / exited with exit status 1
systemd-remount-fs[136]: mount: /: mount failed: invalid argument

Sorry, but this post is useless without your "stuff" aka config.

Offline

#13 2012-06-07 10:36:05

89c51
Member
Registered: 2012-06-05
Posts: 741

Re: [SOLVED]root partition read only after update systemd

apologies i solved it and it boots


good ol PEBCAK and fat fingers

Offline

#14 2012-06-08 03:41:25

aduser
Member
From: Hong Kong
Registered: 2010-04-30
Posts: 10

Re: [SOLVED]root partition read only after update systemd

tomegun wrote:
aduser wrote:

fstab

UUID=55326b3a-eec9-498e-8e20-0a7ddd8daf9a / btrfs rw,compress=lzo,space_cache,autodefrag 0 1
UUID=54c17991-716b-496e-a89b-4e978f2d92a4 /boot ext2 defaults 0 1

grub2 conf

menuentry 'Broken' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-ck kernel-true-852c733e-be0d-4375-8668-d7ae049295a9' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  54c17991-716b-496e-a89b-4e978f2d92a4
	else
	  search --no-floppy --fs-uuid --set=root 54c17991-716b-496e-a89b-4e978f2d92a4
	fi
	echo	'Loading Linux ck kernel ...'
	linux	/vmlinuz-linux-ck root=UUID=852c733e-be0d-4375-8668-d7ae049295a9 ro rootflags=subvol=broken  quiet add_efi_memmap elevator=bfq 
	echo	'Loading initial ramdisk ...'
	initrd	/initramfs-linux-ck.img
}

Is it intentional that your UUID in your grub config and in your fstab for your root partition is different? Surely this can't work?

Could you attach your blkid output?

My UUID output

/dev/sdc1: LABEL="DL" UUID="fa63436d-c80c-4aa0-8d84-f6dbd842a835" UUID_SUB="8853cf10-babd-4708-9b0a-b6431defc8b8" TYPE="btrfs" 
/dev/sdc2: UUID="aef058f1-df5a-4838-b3a1-0ff6a4fd21ee" TYPE="swap" 
/dev/sda1: UUID="54c17991-716b-496e-a89b-4e978f2d92a4" TYPE="ext2" 
/dev/sda2: UUID="852c733e-be0d-4375-8668-d7ae049295a9" UUID_SUB="e6d48845-bbb9-42f3-a3a9-610cd84213c3" TYPE="btrfs" 
/dev/sda5: UUID="dc56d538-4247-4021-aec1-6e0cad0a618b" UUID_SUB="9afcb297-c59b-41a0-a41a-8ad26ca32419" TYPE="btrfs" 
/dev/sdb1: UUID="5bb9a869-0e08-48e4-b7d4-9a34bc310ca9" UUID_SUB="d6c0c9c3-7fb9-41bc-88af-d60cfbb63f45" TYPE="btrfs" 
/dev/sdb5: LABEL="Big" UUID="4052076f-6d0e-43b1-b086-72dddd114d5e" UUID_SUB="356e7343-7cd4-4e6c-86fb-e66b8f6bc65d" TYPE="btrfs"

I install Arch on sda2

Thanks

Edit: I change fstab UUID ,and it work again, Thanks to tomegun

Last edited by aduser (2012-06-08 04:00:17)

Offline

Board footer

Powered by FluxBB