[SOLVED] Gentoo's read only root fs after installing from live image
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Gentoo's read only root fs after installing from live image
Hello!
Recently I discovered Gentoo. It's a beautiful distro to explore! So I did try to install it alongside my Fedora 27. It's UEFI laptop so both linux distros use /boot/efi partition. Fedora's Grub2 does boot process.
I built Gentoo from live image. It took me about a day. I did installation in according to amd64 Handbook with systemd and KDE Plasma.
After that, I tried boot new system. Then I found out that root fs was in the read only mode and host name was just "(none)". So no Xorg, KDE and otherseven after remount with "rw". Journalctl shows me none of boot records, dmesg shows:
Code:
[ 0.083613] ACPI Error: [\_SB_.PCI0.PEG0.PEGP.NHDA] Namespace lookup failure, AE_NOT_FOUND (20170728/psargs-364)
[ 0.083620] ACPI Error: Method parse/execution failed \_SB.PCI0.PEG0.PG00._ON, AE_NOT_FOUND (20170728/psparse-550)
[ 5.625851] abrt-dump-journ[887]: segfault at 7ffca468c000 ip 00007f60c72999c2 sp 00007ffca467ad98 error 6 in libc-2.26.so[7f60c71ea000+1da000]
[ 26.984549] wlp2s0: failed to remove key (1, ff:ff:ff:ff:ff:ff) from hardware (-22)
savedefault
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 ccf6661a-0c63-427c-a285-9f0f1aca5dbc
else
search --no-floppy --fs-uuid --set=root ccf6661a-0c63-427c-a285-9f0f1aca5dbc
fi
linuxefi /boot/kernel-genkernel-x86_64-4.9.72-gentoo root=/dev/sda4
initrdefi /boot/initramfs-genkernel-x86_64-4.9.72-gentoo
Also there is some probs with @world:
Code:
* Messages for package app-text/iso-codes-3.75:
* ERROR: app-text/iso-codes-3.75::gentoo failed (prepare phase):
* USE Flag 'linguas_ar' not in IUSE for app-text/iso-codes-3.75
*
* Call stack:
* ebuild.sh, line 124: Called src_prepare
* environment, line 3044: Called use 'linguas_ar'
* phase-helpers.sh, line 200: Called die
* The specific snippet of code:
* die "USE Flag '${u}' not in IUSE for ${CATEGORY}/${PF}"
*
* If you need support, post the output of `emerge --info '=app-text/iso-codes-3.75::gentoo'`,
* the complete build log and the output of `emerge -pqv '=app-text/iso-codes-3.75::gentoo'`.
* The complete build log is located at '/var/tmp/portage/app-text/iso-codes-3.75/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-text/iso-codes-3.75/temp/environment'.
* Working directory: '/var/tmp/portage/app-text/iso-codes-3.75/work/iso-codes-3.75/iso_15924'
* S: '/var/tmp/portage/app-text/iso-codes-3.75/work/iso-codes-3.75'
Pls give me some suggestions or ways to fix this... I'd really like to do further Gentoo explorations :>
I can offer this link for the iso-codes: https://forums.gentoo.org/viewtopic-...ighlight-.html
Apart from that I would join the Gentoo forum because there are some guys/girls on the forum who really know what they are doing(much more than myself). I hope the link helps though.
** Edit **
Seems you are already on the Gentoo forums. Sometimes it may take a bit for people to respond but there is a wealth of information.
I see the emerge problem has been answered. Do you still have problem with read-only root filesystem?
Consider following. Kernel mounts root read-only during boot. It is up to the init system to remount it rw. Either your systemd does not run properly or the filesystem is corrupted - Linux mounts damaged filesystems ro to avoid further damage. Sometimes there is just the dirty bit set as a result of no umount during poweroff and the filesystem itself is OK.
I can offer this link for the iso-codes: https://forums.gentoo.org/viewtopic-...ighlight-.html
Apart from that I would join the Gentoo forum because there are some guys/girls on the forum who really know what they are doing(much more than myself). I hope the link helps though.
** Edit **
Seems you are already on the Gentoo forums. Sometimes it may take a bit for people to respond but there is a wealth of information.
Yeah, thanks for the advice, it's like a old habit to ask Qs here c:
Thanks for the reply!
Unfortunately it doesn't solve mount probs as it happens (in my opinion) during boot time. Handbook describes mount preps before system is being installed. Mount options during boot are inside /etc/fstab which I posted earlier.
Nevertheless, I will look through Gentoo's Handbook again. I might miss something :c
I see the emerge problem has been answered. Do you still have problem with read-only root filesystem?
Consider following. Kernel mounts root read-only during boot. It is up to the init system to remount it rw. Either your systemd does not run properly or the filesystem is corrupted - Linux mounts damaged filesystems ro to avoid further damage. Sometimes there is just the dirty bit set as a result of no umount during poweroff and the filesystem itself is OK.
Thanks for the reply!
Yeah, simple tree sync solved it.
I also did "Check and repair" on that partition from GParted. No success :c
btw I noticed after system boots, /dev/sda1 is not mounted in /boot/efi. "mount" command shows a couple pseudo fs like "proc" and "sys" and /dev/sda4 which is root. Although inside /etc/fstab it's clearly defined how both partitions should be handled.
It's might be a hit for prob resolution...
Looks like it was my mistake.
After I switched profiles with eselect, I forgot to clearly point to boot Gentoo with systemd. "init=/usr/lib/systemd/systemd" should be appended to GRUB_CMDLINE_LINUX inside /etc/default/grub and to grub's menuentry.
Hostname issue was also solved after that string was placed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.