Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Resolved] My system stopped booting
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
ngorelen
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jan 2019
Posts: 85
Location: Princeton, NJ

PostPosted: Thu May 23, 2024 8:31 pm    Post subject: [Resolved] My system stopped booting Reply with quote

Hi all, after recent update of my gentoo PC i could not boot it and am getting the following when booting:
Quote:

a start job is running for /dev/sdb1 --- 1min 30sec boot time


PC was booting fine over ~ 1year. After recent emerge upgrade it is giving me this trouble.
I am not sure what i did wrong, maybe changed some set up files.
Anyways here is potentially usefull information which i am collecting after i chroot-ed
from the emergency usb disk.

I am suspecting that PC does not recongnize some of my partitions. I was reading on the forum that
it is possible that swap is not recognized, i am not sure i understand why.

Basically after the upgrades i was doing 2 steps:
Quote:

genkernel --menuconfig all
and
grub-mkconfig -o /boot/grub/grub.cfg


I am using uefi. The rest of informations follows.

emerge --info gives:
Quote:

Portage 3.0.63 (python 3.11.9-final-0, default/linux/amd64/23.0/desktop/plasma/systemd, gcc-13, glibc-2.38-r13, 6.1.41-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-6.1.41-gentoo-x86_64-x86_64-12th_Gen_Intel-R-_Core-TM-_i7-12700K-with-glibc2.38
KiB Mem: 32636868 total, 31951604 free
KiB Swap: 33554428 total, 33554428 free
Timestamp of repository gentoo: Tue, 14 May 2024 16:00:00 +0000
Head commit of repository gentoo: 91ffd81683c0d502ca75475066b29a98e781eeef
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.42 p3) 2.42.0
app-misc/pax-utils: 1.3.7::gentoo
app-shells/bash: 5.1_p16-r6::gentoo
dev-build/autoconf: 2.13-r8::gentoo, 2.71-r7::gentoo
dev-build/automake: 1.16.5-r2::gentoo
dev-build/cmake: 3.28.5::gentoo
dev-build/libtool: 2.4.7-r4::gentoo
dev-build/make: 4.4.1-r1::gentoo
dev-build/meson: 1.4.0-r1::gentoo
dev-lang/perl: 5.38.2-r3::gentoo
dev-lang/python: 3.11.9::gentoo, 3.12.3::gentoo
dev-lang/rust: 1.77.1::gentoo
dev-lang/rust-bin: 1.77.1::gentoo
sys-apps/baselayout: 2.15::gentoo
sys-apps/sandbox: 2.38::gentoo
sys-apps/systemd: 255.4::gentoo
sys-devel/binutils: 2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang: 15.0.7-r3::gentoo, 17.0.6::gentoo
sys-devel/gcc: 12.3.1_p20240209::gentoo, 13.2.1_p20240210::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-devel/lld: 15.0.7::gentoo
sys-devel/llvm: 15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo
sys-kernel/linux-headers: 6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.38-r13::gentoo
Repositories:

gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
volatile: False
sync-rsync-verify-metamanifest: yes
sync-rsync-verify-max-age: 24
sync-rsync-extra-opts:
sync-rsync-verify-jobs: 1

Binary Repositories:

gentoobinhost
priority: 1
sync-uri: https://gentoo.osuosl.org/releases/amd64/23.0/desktop/plasma/systemd

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=alderlake -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=alderlake -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=alderlake -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=alderlake -O2 -pipe"
GENTOO_MIRRORS="http://www.gtlib.gatech.edu/pub/gentoo rsync://rsync.gtlib.gatech.edu/gentoo rsync://mirrors.mit.edu/gentoo-distfiles/"
LANG="en_US.utf-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j16"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities alsa amd64 bluetooth branding bzip2 cairo cdda cdr cet crypt cups dbus declarative dri dts dvd dvdr encode exif flac fortran gdbm gif gpm gui iconv icu ipv6 jpeg kde kwallet lcms libnotify libtirpc mad mmx mng mp3 mp4 mpeg multilib ncurses networkmanager nls ogg opengl openmp pam pango pcre pdf pipewire plasma png policykit ppds pulseaudio python qml qt5 readline screencast sdl seccomp semantic-desktop sound spell sse sse2 ssl startup-notification svg systemd test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wayland widgets wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput evdev" KERNEL="linux" L10N="en en-US ru ru-RU" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PERL_FEATURES="quadmath ithreads" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="nvidia intel i915" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS


The following file contains grub setup, /etc/default/grub:

Quote:

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
#
# To populate all changes in this file you need to regenerate your
# grub configuration file afterwards:
# 'grub-mkconfig -o /boot/grub/grub.cfg'
#
# See the grub info page for documentation on possible variables and
# their associated values.

GRUB_DISTRIBUTOR="Gentoo"

# Default menu entry
#GRUB_DEFAULT=0

# Boot the default entry this many seconds after the menu is displayed
#GRUB_TIMEOUT=5
#GRUB_TIMEOUT_STYLE=menu

# Append parameters to the linux kernel command line
#GRUB_CMDLINE_LINUX="rootfstype=ext4 real_init=/lib/systemd/systemd"
GRUB_CMDLINE_LINUX="real_init=/lib/systemd/systemd"
# real= ...?
# Examples:
#
# Boot with network interface renaming disabled
# GRUB_CMDLINE_LINUX="net.ifnames=0"
#
# Boot with systemd instead of sysvinit (openrc)
# GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd"

# Append parameters to the linux kernel command line for non-recovery entries
# next one turns off i915
#GRUB_CMDLINE_LINUX_DEFAULT='root=UUID=b46a4eac-d0c5-421b-beb6-08ed2a7c593f ibt=off nomodeset splash'
# following does not work either
#GRUB_CMDLINE_LINUX_DEFAULT='root=UUID=b46a4eac-d0c5-421b-beb6-08ed2a7c593f quite splash i915.force_probe=4680'
# following works since i915 is nomodeset; should works with nvidia only
#GRUB_CMDLINE_LINUX_DEFAULT='root=UUID=b46a4eac-d0c5-421b-beb6-08ed2a7c593f ibt=off i915.modeset=0 nouveau.modeset=1 drm_kms_helper.edid_firmware=edid/1920x1080_clevo_W670SR.bin'
# this works for both video cards, turning it off to see
GRUB_CMDLINE_LINUX_DEFAULT='root=UUID=b46a4eac-d0c5-421b-beb6-08ed2a7c593f ibt=off i915.modeset=1 nouveau.modeset=0 drm_kms_helper.edid_firmware=edid/monitor.bin'

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal.
# Note that you can use only modes which your graphic card supports via VBE.
# You can see them in real GRUB with the command `vbeinfo'.
#GRUB_GFXMODE=640x480
GRUB_GFXMODE=1920x1080

# Set to 'text' to force the Linux kernel to boot in normal text
# mode, 'keep' to preserve the graphics mode set using
# 'GRUB_GFXMODE', 'WIDTHxHEIGHT'['xDEPTH'] to set a particular
# graphics mode, or a sequence of these separated by commas or
# semicolons to try several modes in sequence.
#GRUB_GFXPAYLOAD_LINUX=

# Path to theme spec txt file.
# The starfield is by default provided with use truetype.
# NOTE: when enabling custom theme, ensure you have required font/etc.
#GRUB_THEME="/boot/grub/themes/starfield/theme.txt"

# Background image used on graphical terminal.
# Can be in various bitmap formats.
#GRUB_BACKGROUND="/boot/grub/mybackground.png"

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to kernel
# doing what it says
#GRUB_DISABLE_LINUX_UUID=true

# Comment if you don't want GRUB to pass "root=PARTUUID=xxx" parameter to kernel
#GRUB_DISABLE_LINUX_PARTUUID=false

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY=true

# Uncomment to disable generation of the submenu and put all choices on
# the top-level menu.
# Besides the visual affect of no sub menu, this makes navigation of the
# menu easier for a user who can't see the screen.
#GRUB_DISABLE_SUBMENU=y

# Uncomment to play a tone when the main menu is displayed.
# This is useful, for example, to allow users who can't see the screen
# to know when they can make a choice on the menu.
#GRUB_INIT_TUNE="60 800 1"


The content of my /etc/fstab:

Quote:

# <fs> <mountpoint> <type> <opts> <dump> <pass>

#UUID=58e72203-57d1-4497-81ad-97655bd56494 / xfs defaults 0 1
#skip this line and move to the end for /boot prtn /dev/nvme0n1p2
UUID="566F-2779" /boot vfat noauto,noatime 1 2
#LABEL=boot /boot ext4 defaults 1 2
#/dev/nvme1n1p7
#UUID="b9960f08-fdfb-4361-8a97-95f06f8330f7" /boot ext4 noauto,noatime 1 2
#/dev/nvme1n1p1
# old??? UUID="bd039822-050e-413a-b53b-6b64a4e42e14" none swap sw 0 0
UUID="65146fcc-14cf-47eb-92d5-570ca5955249" none swap sw 0 0
#/dev/nvme1n1p2
UUID="b46a4eac-d0c5-421b-beb6-08ed2a7c593f" / ext4 noatime 0 1
#/dev/nvme1n1p3
UUID="ce17f8a6-ef58-462b-81ca-5baff5277996" /u ext4 noatime 0 1
#/dev/nvme1n1p5
UUID="7d8c9ccb-b422-403a-ae35-76b4124c3a46" /Dropbox ext4 noatime,user 0 1
#/dev/nvme1n1p6
UUID="d9602eaf-6c4e-4e4f-aeb5-4a91e2bc227d" /gstuff ext4 noatime 0 1
#/dev/cdrom /mnt/cdrom auto noauto,ro 0 0
/dev/sdb1 /mnt/usb auto defaults,users 0 0


Last edited by ngorelen on Thu May 30, 2024 9:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


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

PostPosted: Fri May 24, 2024 5:07 pm    Post subject: Reply with quote

If anything I really hate systemd because of this : it seems to want to force wait out fscking disks that don't work/aren't working properly.

It looks like you have /dev/sdb1 mounted or usermounted at /mnt/usb in your fstab. After using systemd/udisks I prefer the automount system in the gui instead of editing fstab for all USB sticks and temporarily mounted disks - is this working properly for you? If not, this needs to be fixed; if it's working, really need a good reason to add these devices in /etc/fstab ... was it meant to be permanently mounted and you have a udev rule for it?
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1847

PostPosted: Fri May 24, 2024 5:15 pm    Post subject: Reply with quote

Code:
/dev/sdb1 /mnt/usb auto defaults,users 0 0

should be:
Code:
/dev/sdb1 /mnt/usb auto defaults,user,nofail 0 0
Back to top
View user's profile Send private message
ngorelen
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jan 2019
Posts: 85
Location: Princeton, NJ

PostPosted: Tue May 28, 2024 3:54 pm    Post subject: Reply with quote

Thank you, grknight and eccerr0r. I removed that line from fstab and my gentoo box works but not to full capacity.

One problem came up which is now I can not resolve the name of the machines whereas I can
ping them successfully by the ip number. I might have deleted some resolve file, /etc/resolve.conf is fine. It is the same as before.

Please point me which file i need to look at.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


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

PostPosted: Tue May 28, 2024 9:08 pm    Post subject: Reply with quote

probably good for a different topic

but what machines, external (which should work fine) or user defined that should be in /etc/hosts ?
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
ngorelen
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jan 2019
Posts: 85
Location: Princeton, NJ

PostPosted: Tue May 28, 2024 9:19 pm    Post subject: Reply with quote

@eccerr0r
it is for external machine/sites, i.e. google.com, yahoo.com etc.
Back to top
View user's profile Send private message
ngorelen
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jan 2019
Posts: 85
Location: Princeton, NJ

PostPosted: Thu May 30, 2024 9:46 pm    Post subject: Reply with quote

To all, this is to resolve an issue i had with the ssh to any external site by either ping or ssh to it.
The solution can be found here:
Quote:
https://forums.gentoo.org/viewtopic-p-8785081.html?sid=ead7b5f4609a514764558c5515e5696b


In my case it amounted to two steps:
Quote:
systemctl stop systemd-resolved && systemctl disable systemd-resolved


Quote:
systemctl enable NetworkManager && systemctl start NetworkManager


Please read the rest of that thread. I am marking this thread as resolve.
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