Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

1 votes
1 answers
97 views
mySQL failed to be set-up
I'm running Gentoo Linux and recently needed to install mySQL (older version). The compilation was successful, however setting up the server failed. I'm on this step: https://wiki.gentoo.org/wiki/MySQL#Preliminary_configuration The complete log follows: WaylandGnome /home/igor/dbhandler/Debug # cat...
I'm running Gentoo Linux and recently needed to install mySQL (older version). The compilation was successful, however setting up the server failed. I'm on this step: https://wiki.gentoo.org/wiki/MySQL#Preliminary_configuration The complete log follows: WaylandGnome /home/igor/dbhandler/Debug # cat /var/tmp/portage/dev-db/mysql-5.7.41/temp/build.log * Detected settings: * ================== * MySQL User: mysql * MySQL Group: mysql * MySQL DATA directory: /var/lib/mysql * MySQL TMP directory: /tmp * PID DIR: /run/mysqld * Install db log: /tmp/install_db.221119222.log * Install server log: /tmp/install_mysqld.633921321.log * Trying to get password for mysql 'root' user from 'mysql' section ... * Trying to get password for mysql 'root' user from 'client' section ... * No password for mysql 'root' user was specified via environment * variable MYSQL_ROOT_PASSWORD and no password was found in config * file like '/root/.my.cnf'. * To continue please provide a password for the mysql 'root' user * now on console: * NOTE: Please avoid ["'\_%] characters in the password! > * Retype the password > * Initializing mysql data directory: /usr/sbin/mysqld --loose-skip-host-cache --loose-skip-name-resolve --loose-skip-networking --loose-skip-slave-start --loose-skip-federated --loose-skip-ssl --loose-skip-log-bin --loose-skip-relay-log --loose-skip-slow-query-log --loose-skip-external-locking --loose-skip-log-slave-updates --initialize-insecure --init-file='/tmp/tz.222211327.sql' --basedir='/usr' --datadir='/var/lib/mysql' --tmpdir='/tmp' --log-error='/tmp/install_db.221119222.log' --user=mysql /var/tmp/portage/dev-db/mysql-5.7.41/temp/environment: line 3774: /tmp/install_db.221119222.log: Permission denied * ERROR: dev-db/mysql-5.7.41::gentoo failed (config phase): * Failed to initialize mysql data directory. Please review '/tmp/install_db.221119222.log'! * * Call stack: * ebuild.sh, line 136: Called pkg_config * environment, line 3777: Called die * The specific snippet of code: * die "Failed to initialize ${PN} data directory. Please review '${mysql_install_log}'!"; * * If you need support, post the output of emerge --info '=dev-db/mysql-5.7.41::gentoo', * the complete build log and the output of emerge -pqv '=dev-db/mysql-5.7.41::gentoo'. * The complete build log is located at '/var/tmp/portage/dev-db/mysql-5.7.41/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-db/mysql-5.7.41/temp/environment'. * Working directory: '/var/tmp/portage/dev-db/mysql-5.7.41/empty' * S: '/var/tmp/portage/dev-db/mysql-5.7.41/work/mysql-5.7.41' WaylandGnome /home/igor/dbhandler/Debug # How do I identify the issue? I'm trying this at home - for the development/testing purposes. The info is in the original post above. EDIT: WaylandGnome /home/igor/dbhandler/Debug # ls -la / total 202248 drwxr-xr-x 21 root root 4096 Aug 21 2021 . drwxr-xr-x 21 root root 4096 Aug 21 2021 .. drwxr-xr-x 2 root root 4096 Apr 3 2024 bin drwxr-xr-x 3 root root 4096 Jun 16 2024 boot drwxr-xr-x 16 root root 3580 Jul 16 21:07 dev drwxr-xr-x 79 root root 4096 Jul 22 19:54 etc drwxr-xr-x 3 root root 4096 Aug 16 2021 home drwxr-xr-x 12 root root 4096 Jun 24 2024 lib drwxr-xr-x 6 root root 4096 Dec 8 2024 lib64 drwx------ 2 root root 16384 Aug 9 2021 lost+found drwxr-xr-x 2 root root 4096 Aug 8 2021 media drwxr-xr-x 4 root root 4096 Aug 29 2021 mnt -rw-r--r-- 1 root root 9865 Aug 21 2021 modules_loaded drwxr-xr-x 2 root root 4096 Aug 8 2021 opt dr-xr-xr-x 278 root root 0 Jul 16 16:07 proc drwx------ 6 root root 4096 Jul 21 20:08 root drwxr-xr-x 20 root root 680 Jul 16 21:08 run drwxr-xr-x 2 root root 4096 Jun 24 2024 sbin -rw-r--r-- 1 root root 207004312 Aug 9 2021 stage3-amd64-openrc-20210808T170546Z.tar.xz dr-xr-xr-x 13 root root 0 Jul 16 21:25 sys drwxrwxrwt 10 root root 4096 Jul 23 22:47 tmp drwxr-xr-x 12 root root 4096 Aug 8 2021 usr drwxr-xr-x 10 root root 4096 Dec 8 2024 var WaylandGnome /home/igor/dbhandler/Debug # As you can see, the /tmp directory have the right rights and its owned by root (the user who tries to write the log). EDIT2: WaylandGnome /home/igor/dbhandler/Debug # ls -la /tmp/ total 1696 drwxrwxrwt 10 root root 4096 Jul 27 10:57 . drwxr-xr-x 21 root root 4096 Aug 21 2021 .. srw-rw-rw- 1 root root 0 Jul 16 21:07 dbus-LrgQbbHE srw-rw-rw- 1 root root 0 Jul 16 21:07 dbus-PLcQRTxs srwxrwxrwx 1 igor igor 0 Jul 16 21:08 dbus-SUXCQJk4lu drwx------ 2 igor igor 4096 Jul 27 10:57 dhcpcd-igor drwxrwxrwt 2 root root 4096 Jul 16 21:07 .font-unix drwxrwxrwt 2 root root 4096 Jul 16 21:08 .ICE-unix -rw-r--r-- 1 mysql root 0 Jul 16 21:10 install_db.221119222.log -rw-r--r-- 1 mysql root 0 Jul 16 21:10 install_mysqld.633921321.log drwxrwxr-x 2 portage portage 4096 Jul 16 21:07 portage drwx------ 2 igor igor 4096 Jul 16 21:08 ssh-XXXXXXjJPiXO drwx------ 2 igor igor 4096 Jul 16 21:09 Temp-204e4dce-7ae7-4061-98a7-02c745548045 -rw-r--r-- 1 igor igor 11409 Jul 17 19:57 tmpaddon -rw-r--r-- 1 igor igor 11409 Jul 20 14:41 tmpaddon-1 -rw-r--r-- 1 igor igor 11409 Jul 21 14:41 tmpaddon-2 -rw-r--r-- 1 igor igor 11409 Jul 22 20:23 tmpaddon-3 -rw-r--r-- 1 igor igor 11409 Jul 25 22:33 tmpaddon-4 -rw-r--r-- 1 igor igor 11409 Jul 26 22:33 tmpaddon-5 -rw-r--r-- 1 root root 1620537 Jul 16 21:10 tz.222211327.sql srwxr-xr-x 1 root root 0 Jul 16 21:07 wpa_ctrl_1714-1 drwxrwxrwt 2 root root 4096 Jul 16 21:08 .X11-unix drwxrwxrwt 2 root root 4096 Jul 16 21:07 .XIM-unix WaylandGnome /home/igor/dbhandler/Debug # As you can see the configure log file is there - but its size is 0. Something is definite wrong here... EDIT3: This is my mount results: WaylandGnome /home/igor/dbhandler/Debug # mount | grep tmp devtmpfs on /dev type devtmpfs (rw,nosuid,noexec,relatime,size=10240k,nr_inodes=950062,mode=755) tmpfs on /run type tmpfs (rw,nosuid,nodev,size=1520712k,nr_inodes=819200,mode=755) shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime) tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=760352k,nr_inodes=190088,mode=700,uid=1000,gid=1000) WaylandGnome /home/igor/dbhandler/Debug # And this is the full mount result: WaylandGnome /home/igor/dbhandler/Debug # mount /dev/sda3 on / type ext4 (rw,noatime) devtmpfs on /dev type devtmpfs (rw,nosuid,noexec,relatime,size=10240k,nr_inodes=950062,mode=755) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) tmpfs on /run type tmpfs (rw,nosuid,nodev,size=1520712k,nr_inodes=819200,mode=755) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime) efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime) none on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate) mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime) tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=760352k,nr_inodes=190088,mode=700,uid=1000,gid=1000) tracefs on /sys/kernel/debug/tracing type tracefs (rw,nosuid,nodev,noexec,relatime) EDIT3: I tried to run that command manually using my own home directory, but... /usr/sbin/mysqld --loose-skip-host-cache --loose-skip-name-resolve --loose-skip-networking --loose-skip-slave-start --loose-skip-federated --loose-skip-ssl --loose-skip-log-bin --loose-skip-relay-log --loose-skip-slow-query-log --loose-skip-external-locking --loose-skip-log-slave-updates --initialize-insecure --init-file='/home/igor/tz.222211327.sql' --basedir='/usr' --datadir='/var/lib/mysql' --tmpdir='/tmp' --log-error='/home/igor/install_db.221119222.log' --user=mysql 2025-08-01T19:22:05.565679Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2025-08-01T19:22:05.573910Z 0 [ERROR] Could not open file '/home/igor/install_db.221119222.log' for error logging: Permission denied 2025-08-01T19:22:05.574057Z 0 [ERROR] Aborting I presume this is some kind of compatibility issue as I also did this: WaylandGnome /home/igor/dbhandler/Debug # touch /home/igor/install_db.221119222.log WaylandGnome /home/igor/dbhandler/Debug # WaylandGnome /home/igor/dbhandler/Debug # and as you can see it finish successfully. I guess I will need to abandon the idea of using the mySQL 5 - at least for nnw... Thank you.
Igor (253 rep)
Jul 23, 2025, 01:07 AM • Last activity: Aug 1, 2025, 07:29 PM
0 votes
2 answers
3348 views
Gentoo: cannot install sys-kernel/gentoo-sources-4.4.6, no error message
I am trying to install Gentoo on an old laptop following the online handbook. I got as far as installing the kernel sources (see [here][1]): the installation with emerge --ask sys-kernel/gentoo-sources seems to run fine, until it fails with no precise error message. The log file /var/tmp/portage/sys...
I am trying to install Gentoo on an old laptop following the online handbook. I got as far as installing the kernel sources (see here ): the installation with emerge --ask sys-kernel/gentoo-sources seems to run fine, until it fails with no precise error message. The log file /var/tmp/portage/sys-kernel/gentoo-sources-4.4.6/temp/build.log contains no error message. The last lines in this file read * Final size of build directory: 1 KiB * Final size of installed tree: 623669 KiB ecompressdir: bzip2 -9 /usr/share/doc I also looked at /var/log/emerge.log which also does not contain any error message: 1473188561: Started emerge on: set 06, 2016 21:02:40 1473188561: *** emerge --ask sys-kernel/gentoo-sources 1473188622: >>> emerge (1 of 1) sys-kernel/gentoo-sources-4.4.6 to / 1473188622: === (1 of 1) Cleaning (sys-kernel/gentoo-sources-4.4.6::/usr/portage/sys-kernel/gentoo-sources/gentoo-sources-4.4.6.ebuild) 1473188698: === (1 of 1) Compiling/Merging (sys-kernel/gentoo-sources-4.4.6::/usr/portage/sys-kernel/gentoo-sources/gentoo-sources-4.4.6.ebuild) 1473189553: === (1 of 1) Merging (sys-kernel/gentoo-sources-4.4.6::/usr/portage/sys-kernel/gentoo-sources/gentoo-sources-4.4.6.ebuild) 1473190741: *** Finished. Cleaning up... 1473190743: *** exiting unsuccessfully with status '1'. 1473190751: *** terminating. I do not know what I should check next. Any idea? **EDIT** Here is the content of /var/tmp/portage/sys-kernel/gentoo-sources-4.4.6/temp/build.log (I have removed some non-printable characters that appeared at the beginning of each line): Package: sys-kernel/gentoo-sources-4.4.6 Repository: gentoo Maintainer: kernel@gentoo.org USE: abi_x86_32 elibc_glibc kernel_linux userland_GNU x86 FEATURES: preserve-libs sandbox userpriv usersandbox >>> Preparing to unpack ... >>> Unpacking source... >>> Unpacking linux-4.4.tar.xz to /var/tmp/portage/sys-kernel/gentoo-sources-4.4.6/work >>> Unpacking genpatches-4.4-8.base.tar.xz to /var/tmp/portage/sys-kernel/gentoo-sources-4.4.6/work/patches >>> Unpacking genpatches-4.4-8.extras.tar.xz to /var/tmp/portage/sys-kernel/gentoo-sources-4.4.6/work/patches Excluding Patch #5000_enable-additional-cpu-optimizations-for-gcc.patch ... Excluding Patch #5015_kdbus*.patch ... Applying 1000_linux-4.4.1.patch (-p1) ... Applying 1001_linux-4.4.2.patch (-p1) ... Applying 1002_linux-4.4.3.patch (-p1) ... Applying 1003_linux-4.4.4.patch (-p1) ... Applying 1004_linux-4.4.5.patch (-p1) ... Applying 1005_linux-4.4.6.patch (-p1) ... Applying 1500_XATTR_USER_PREFIX.patch (-p1) ... Applying 1510_fs-enable-link-security-restrictions-by-default.patch (-p1) ... Applying 2700_ThinkPad-30-brightness-control-fix.patch (-p1) ... Applying 2900_dev-root-proc-mount-fix.patch (-p1) ... Applying 4200_fbcondecor-3.19.patch (-p1) ... Applying 4567_distro-Gentoo-Kconfig.patch (-p1) ... >>> Source unpacked in /var/tmp/portage/sys-kernel/gentoo-sources-4.4.6/work >>> Preparing source in /var/tmp/portage/sys-kernel/gentoo-sources-4.4.6/work/linux-4.4.6-gentoo ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/sys-kernel/gentoo-sources-4.4.6/work/linux-4.4.6-gentoo ... >>> Source configured. >>> Compiling source in /var/tmp/portage/sys-kernel/gentoo-sources-4.4.6/work/linux-4.4.6-gentoo ... >>> Source compiled. >>> Test phase [not enabled]: sys-kernel/gentoo-sources-4.4.6 >>> Install gentoo-sources-4.4.6 into /var/tmp/portage/sys-kernel/gentoo-sources-4.4.6/image/ category sys-kernel >>> Copying sources ... >>> Completed installing gentoo-sources-4.4.6 into /var/tmp/portage/sys-kernel/gentoo-sources-4.4.6/image/ Final size of build directory: 1 KiB Final size of installed tree: 623669 KiB ecompressdir: bzip2 -9 /usr/share/doc
Giorgio (847 rep)
Sep 6, 2016, 08:00 PM • Last activity: Jul 29, 2025, 05:08 AM
3 votes
0 answers
81 views
Hibernation does not work under normal user
I have a problem with hibernating my computer. Everything was working before an update. The update installed Plasma 6.3.5. Hibernating from the start menu doesn't work either. After the update, the following command reports an error under normal user: ``` $ loginctl hibernate Error registering authe...
I have a problem with hibernating my computer. Everything was working before an update. The update installed Plasma 6.3.5. Hibernating from the start menu doesn't work either. After the update, the following command reports an error under normal user:
$ loginctl hibernate
Error registering authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject (polkit-error-quark, 0)
However, under root, the
$ loginctl hibernate
works as expected. A normal user is a member of these groups:
$ id
uid=1000(ibarina) gid=1000(ibarina) groups=1000(ibarina),6(disk),7(lp),10(wheel),18(audio),27(video),85(usb),100(users),106(lpadmin),250(portage),272(plugdev),377(pcap)
Moreover,
grep loginctl /var/log/everything/current
gives
Jul 17 17:22:49 [loginctl] Failed to hibernate system via elogind: Interactive authentication required.
Installed versions: sys-auth/polkit-126-r1 sys-auth/elogind-255.5-r2
DaBler (101 rep)
Jul 23, 2025, 10:16 AM • Last activity: Jul 28, 2025, 10:10 AM
5 votes
2 answers
2009 views
ACPId suspend-to-ram: can you specify waking up using keyboard events?
This is Gentoo Linux with OpenRC (updated to systemd later on), and [ACPI][1] + some power management features in the kernel for Intel. ACPId is up and running. I can suspend to ram [using][2]: echo -n "mem" > /sys/power/state This works, but I need to use the power button to wake up. Is there a way...
This is Gentoo Linux with OpenRC (updated to systemd later on), and ACPI + some power management features in the kernel for Intel. ACPId is up and running. I can suspend to ram using : echo -n "mem" > /sys/power/state This works, but I need to use the power button to wake up. Is there a way to wake up from keyboard events like pressing the space bar? The keyboard is a wireless USB keyboard. I've looked at the content of the script in /etc/acpi and it offers no insight into doing this. Most of the information I find is usually geared at laptop users. Do I really need something like the old pm-utils to accomplish this and is there anything wrong with just using acpid? cat /proc/acpi/wakeup Device S-state Status Sysfs node P0P2 S4 *disabled P0P3 S4 *disabled pci:0000:00:06.0 P0P1 S4 *disabled pci:0000:00:1e.0 PS2K S4 *enabled pnp:00:0b EUSB S4 *enabled pci:0000:00:1d.7 USBE S4 *enabled pci:0000:00:1a.7 P0P4 S4 *disabled pci:0000:00:1c.0 P0P5 S4 *disabled P0P6 S4 *disabled pci:0000:00:1c.2 P0P7 S4 *disabled P0P8 S4 *disabled P0P9 S4 *disabled GBEC S4 *disabled USB0 S4 *enabled pci:0000:00:1d.0 USB1 S4 *enabled pci:0000:00:1d.1 USB2 S4 *enabled pci:0000:00:1d.2 USB3 S4 *disabled USB4 S4 *enabled pci:0000:00:1a.0 USB5 S4 *enabled pci:0000:00:1a.1 USB6 S4 *enabled pci:0000:00:1a.2 MBT4 S4 *disabled Seemingly relevant kernel options used (3.10.25-gentoo SMP, 64bit, IA32emul=off, no-multilib): - CONFIG_HOTPLUG_CPU=y and with cpu0_hotplug by default - Suspend to ram and standby Hibernation - Power mgmt debug support - Suspend/resume event tracing - ACPI support - CPU idle PM support - Cpuidle Driver for Intel Processors - Support for systemd through Gentoo option in kernel was enabled BIOS setup is pretty standard: - I've enabled ACPI2.0 extra tables - Not seeing any wake events for USB but I've tried wake up events from PCI/PCIe/PS2 etc but indeed this is a wireless usb keyboard - Board is old school winner Maximus Formula with Q6600 Core2quad OpenRC was updated to systemd and the kernel was recompiled to support that. Configuration was also updated like so . With systemd, apcid is not required in all instances. For instance without running you can issue systemctl suspend and the behavior is... the same as before i.e. wake up only from power button... pstree output: systemd ├─acpid -f ├─at-spi-bus-laun │ ├─dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork--print-addres │ └─2*[{at-spi-bus-laun}] ├─at-spi2-registr --use-gnome-session │ └─{at-spi2-registr} ├─dbus-daemon --system --address=systemd: --nofork --nopidfile--systemd-activation ├─dbus-daemon --fork --print-pid 5 --print-address 7 --session ├─dbus-launch --sh-syntax --exit-with-session ├─dhcpcd -q --nobackground ├─login -- │ └─bash │ └─startx /usr/bin/startx │ └─xinit /etc/X11/xinit/xinitrc -- /etc/X11/xinit/xserverrc :0 -auth... │ ├─X -nolisten tcp :0 -auth /home/user/.serverauth.3329 │ └─openbox --startup /usr/libexec/openbox-autostart OPENBOX │ ├─firefox │ │ ├─plugin-containe ... │ │ │ └─6*[{plugin-containe}] │ │ └─35*[{firefox}] │ └─vlc │ └─4*[{vlc}] ├─lxterminal │ ├─bash │ │ └─htop │ ├─bash │ │ └─su │ │ └─bash │ │ └─grc /usr/lib/python-exec/python2.7/grc tail -f ... │ │ ├─grcat /usr/lib/python-exec/python2.7/grcat conf.log │ │ └─tail -f /var/log/emerge.log │ ├─bash │ ├─gnome-pty-helpe │ └─{lxterminal} ├─mount.ntfs /dev/sdb1 /mnt/div -o rw ├─roxterm │ ├─bash │ │ └─su │ │ └─bash │ │ └─pstree -a │ ├─gnome-pty-helpe │ └─{roxterm} ├─systemd --user │ └─(sd-pam) ├─systemd-journal ├─systemd-logind ├─systemd-udevd ├─wbar --pos bot-right --taskbar --isize 24 └─xcompmgr -c -C -t-5 -l-5 -r4.2 -o.55
user44370
Jan 10, 2014, 09:50 PM • Last activity: Jul 27, 2025, 11:03 PM
7 votes
2 answers
3387 views
setxkbmap switches between 2 out of 3 layouts
Issuing that command: setxkbmap -layout "us,ua,ru" -variant ",winkeys" -option "grp:shift_caps_toggle,grp_led:scroll" -model pc105 -rules xorg When hitting Caps Lock + Shift I'm switching between English (us) and Ukrainian (ua) layouts, but not Russian (ru). I've tried to reset it with the following...
Issuing that command: setxkbmap -layout "us,ua,ru" -variant ",winkeys" -option "grp:shift_caps_toggle,grp_led:scroll" -model pc105 -rules xorg When hitting Caps Lock+Shift I'm switching between English (us) and Ukrainian (ua) layouts, but not Russian (ru). I've tried to reset it with the following command: setxkbmap -layout "us,ua,ru" -option "" and played with many different options - nothing helps. My system is Gentoo Linux and window manager wmii.
archer (171 rep)
Jan 31, 2013, 06:11 PM • Last activity: Jul 22, 2025, 07:05 PM
3 votes
2 answers
3947 views
Capstone for Python not working
I'm unable to get [Capstone][1] for Python to work. I have attempted to install capstone both using pip and compiling and installing from source. Both are successful, no errors, but neither works. I've tried this on Gentoo and Ubuntu. On Gentoo stable: >>> import capstone Traceback (most recent call...
I'm unable to get Capstone for Python to work. I have attempted to install capstone both using pip and compiling and installing from source. Both are successful, no errors, but neither works. I've tried this on Gentoo and Ubuntu. On Gentoo stable: >>> import capstone Traceback (most recent call last): File "", line 1, in File "/usr/lib64/python3.3/site-packages/capstone/__init__.py", line 1, in from capstone import Cs, CsError, cs_disasm_quick, cs_disasm_lite, cs_version, cs_support, version_bind, debug, CS_API_MAJOR, CS_API_MINOR, CS_ARCH_ARM, CS_ARCH_ARM64, CS_ARCH_MIPS, CS_ARCH_X86, CS_ARCH_PPC, CS_ARCH_ALL, CS_MODE_LITTLE_ENDIAN, CS_MODE_ARM, CS_MODE_THUMB, CS_OPT_SYNTAX, CS_OPT_SYNTAX_DEFAULT, CS_OPT_SYNTAX_INTEL, CS_OPT_SYNTAX_ATT, CS_OPT_SYNTAX_NOREGNAME, CS_OPT_DETAIL, CS_OPT_ON, CS_OPT_OFF, CS_MODE_16, CS_MODE_32, CS_MODE_64, CS_MODE_BIG_ENDIAN, CS_MODE_MICRO, CS_MODE_N64, CS_SUPPORT_DIET ImportError: cannot import name Cs >>> Contents of the file /usr/lib64/python3.3/site-packages/capstone/__init__.py: from capstone import Cs, CsError, cs_disasm_quick, cs_disasm_lite, cs_version, cs_support, version_bind, debug, CS_API_MAJOR, CS_API_MINOR, CS_ARCH_ARM, CS_ARCH_ARM64, CS_ARCH_MIPS, CS_ARCH_X86, CS_ARCH_PPC, CS_ARCH_ALL, CS_MODE_LITTLE_ENDIAN, CS_MODE_ARM, CS_MODE_THUMB, CS_OPT_SYNTAX, CS_OPT_SYNTAX_DEFAULT, CS_OPT_SYNTAX_INTEL, CS_OPT_SYNTAX_ATT, CS_OPT_SYNTAX_NOREGNAME, CS_OPT_DETAIL, CS_OPT_ON, CS_OPT_OFF, CS_MODE_16, CS_MODE_32, CS_MODE_64, CS_MODE_BIG_ENDIAN, CS_MODE_MICRO, CS_MODE_N64, CS_SUPPORT_DIET This seems a bit strange to me. On Ubuntu 14.04 LTS: >>> import capstone Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.4/dist-packages/capstone/__init__.py", line 184, in raise ImportError("ERROR: fail to load the dynamic library.") ImportError: ERROR: fail to load the dynamic library. >>>
AttributedTensorField (373 rep)
Sep 17, 2014, 01:04 AM • Last activity: Jul 7, 2025, 09:04 PM
0 votes
1 answers
1890 views
Unable to boot on gentoo: GRUB2 - xfs - NVME SSD
I am currently configuring gentoo on a new machine using an NVME 500Gb SSD. I reboot my computer, select the disk I want to boot off of, grub2 initializes, **and then**, the error I get is the following: !!Block device UUID="9a89bdb4-8f36-4aa6-a4c7-831943b0985c" is not a valid root device... !!Could...
I am currently configuring gentoo on a new machine using an NVME 500Gb SSD. I reboot my computer, select the disk I want to boot off of, grub2 initializes, **and then**, the error I get is the following: !!Block device UUID="9a89bdb4-8f36-4aa6-a4c7-831943b0985c" is not a valid root device... !!Could not find the root block device in UUID="9a89bdb4-8f36-4aa6-a4c7-831943b0985c" Please specify another value or: Press Enter for the same, type "shell" for a shell, or q to skip..." root block device() :: Here is my current partition scheme: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT nvme0n1 259:0 0 465.8G 0 disk ├─nvme0n1p1 259:1 0 2M 0 part /boot/efi ├─nvme0n1p2 259:2 0 128M 0 part /boot ├─nvme0n1p3 259:3 0 5G 0 part [SWAP] ├─nvme0n1p4 259:4 0 200G 0 part / └─nvme0n1p5 259:5 0 260.6G 0 part /home Here is my blkid: /dev/nvme0n1p1: SEC_TYPE="msdos" UUID="DC09-2FD7" TYPE="vfat" PARTLABEL="grub" PARTUUID="2d5991fd-18ac-1148-a4d8-deb02f744ecb" /dev/nvme0n1p2: UUID="6070-07C6" TYPE="vfat" PARTLABEL="boot" PARTUUID="5dba49e5-03cc-744e-bd47-a7570e83b08c" /dev/nvme0n1p3: UUID="db229aaf-ddb4-4a86-8075-e7f035bfbf19" TYPE="swap" PARTLABEL="swap" PARTUUID="fdc303cc-e54e-c049-899a-e26286b5ec47" /dev/nvme0n1p4: UUID="9a89bdb4-8f36-4aa6-a4c7-831943b0985c" TYPE="xfs" PARTLABEL="root" PARTUUID="da6232eb-58ab-9948-a3f6-8a7f14eebde4" /dev/nvme0n1p5: UUID="e3237966-1b71-44b3-9d96-1ed7cc6f4d84" TYPE="xfs" PARTLABEL="home" PARTUUID="5b294354-fc3b-3148-bba2-418acfbb32bc" This is part of my config in /etc/default/grub GRUB_CMDLINE_LINUX="rootfstype=xfs init=/usr/lib/systemd/systemd" And this is my /boot/grub/grub.cfg # # DO NOT EDIT THIS FILE # # It is automatically generated by grub-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; then load_env fi if [ "${next_entry}" ] ; then set default="${next_entry}" set next_entry= save_env next_entry set boot_once=true else set default="0" fi if [ x"${feature_menuentry_id}" = xy ]; then menuentry_id_option="--id" else menuentry_id_option="" fi export menuentry_id_option if [ "${prev_saved_entry}" ]; then set saved_entry="${prev_saved_entry}" save_env saved_entry set prev_saved_entry= save_env prev_saved_entry set boot_once=true fi function savedefault { if [ -z "${boot_once}" ]; then saved_entry="${chosen}" save_env saved_entry fi } function load_video { if [ x$feature_all_video_module = xy ]; then insmod all_video else insmod efi_gop insmod efi_uga insmod ieee1275_fb insmod vbe insmod vga insmod video_bochs insmod video_cirrus fi } if [ x$feature_default_font_path = xy ] ; then font=unicode else insmod part_gpt insmod xfs if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root 9a89bdb4-8f36-4aa6-a4c7-831943b0985c else search --no-floppy --fs-uuid --set=root 9a89bdb4-8f36-4aa6-a4c7-831943b0985c fi font="/usr/share/grub/unicode.pf2" fi if loadfont $font ; then set gfxmode=auto load_video insmod gfxterm set locale_dir=$prefix/locale set lang=en_CA insmod gettext fi terminal_output gfxterm if [ x$feature_timeout_style = xy ] ; then set timeout_style=menu set timeout=5 # Fallback normal timeout code in case the timeout_style feature is # unavailable. else set timeout=5 fi ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/10_linux ### menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-9a89bdb4-8f36-4aa6-a4c7-831943b0985c' { load_video if [ "x$grub_platform" = xefi ]; then set gfxpayload=keep fi insmod gzio insmod part_gpt insmod fat if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root 6070-07C6 else search --no-floppy --fs-uuid --set=root 6070-07C6 fi echo 'Loading Linux x86_64-4.19.44-gentoo ...' linux /kernel-genkernel-x86_64-4.19.44-gentoo root=/dev/nvme0n1p4 ro rootfstype=xfs init=/usr/lib/systemd/systemd echo 'Loading initial ramdisk ...' initrd /initramfs-genkernel-x86_64-4.19.44-gentoo } submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-9a89bdb4-8f36-4aa6-a4c7-831943b0985c' { menuentry 'Gentoo GNU/Linux, with Linux x86_64-4.19.44-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-4.19.44-gentoo-advanced-9a89bdb4-8f36-4aa6-a4c7-831943b0985c' { load_video if [ "x$grub_platform" = xefi ]; then set gfxpayload=keep fi insmod gzio insmod part_gpt insmod fat if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root 6070-07C6 else search --no-floppy --fs-uuid --set=root 6070-07C6 fi echo 'Loading Linux x86_64-4.19.44-gentoo ...' linux /kernel-genkernel-x86_64-4.19.44-gentoo root=/dev/nvme0n1p4 ro rootfstype=xfs init=/usr/lib/systemd/systemd echo 'Loading initial ramdisk ...' initrd /initramfs-genkernel-x86_64-4.19.44-gentoo } menuentry 'Gentoo GNU/Linux, with Linux x86_64-4.19.44-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-4.19.44-gentoo-recovery-9a89bdb4-8f36-4aa6-a4c7-831943b0985c' { load_video if [ "x$grub_platform" = xefi ]; then set gfxpayload=keep fi insmod gzio insmod part_gpt insmod fat if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root 6070-07C6 else search --no-floppy --fs-uuid --set=root 6070-07C6 fi echo 'Loading Linux x86_64-4.19.44-gentoo ...' linux /kernel-genkernel-x86_64-4.19.44-gentoo root=/dev/nvme0n1p4 ro single rootfstype=xfs init=/usr/lib/systemd/systemd echo 'Loading initial ramdisk ...' initrd /initramfs-genkernel-x86_64-4.19.44-gentoo } menuentry 'Gentoo GNU/Linux, with Linux 4.19.44-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.44-gentoo-advanced-9a89bdb4-8f36-4aa6-a4c7-831943b0985c' { load_video if [ "x$grub_platform" = xefi ]; then set gfxpayload=keep fi insmod gzio insmod part_gpt insmod fat if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root 6070-07C6 else search --no-floppy --fs-uuid --set=root 6070-07C6 fi echo 'Loading Linux 4.19.44-gentoo ...' linux /vmlinuz-4.19.44-gentoo root=/dev/nvme0n1p4 ro rootfstype=xfs init=/usr/lib/systemd/systemd echo 'Loading initial ramdisk ...' initrd /initramfs-genkernel-x86_64-4.19.44-gentoo } menuentry 'Gentoo GNU/Linux, with Linux 4.19.44-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.44-gentoo-recovery-9a89bdb4-8f36-4aa6-a4c7-831943b0985c' { load_video if [ "x$grub_platform" = xefi ]; then set gfxpayload=keep fi insmod gzio insmod part_gpt insmod fat if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root 6070-07C6 else search --no-floppy --fs-uuid --set=root 6070-07C6 fi echo 'Loading Linux 4.19.44-gentoo ...' linux /vmlinuz-4.19.44-gentoo root=/dev/nvme0n1p4 ro single rootfstype=xfs init=/usr/lib/systemd/systemd echo 'Loading initial ramdisk ...' initrd /initramfs-genkernel-x86_64-4.19.44-gentoo } } ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/20_linux_xen ### ### END /etc/grub.d/20_linux_xen ### ### BEGIN /etc/grub.d/30_os-prober ### ### END /etc/grub.d/30_os-prober ### ### BEGIN /etc/grub.d/40_custom ### # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. ### END /etc/grub.d/40_custom ### ### BEGIN /etc/grub.d/41_custom ### if [ -f ${config_directory}/custom.cfg ]; then source ${config_directory}/custom.cfg elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then source $prefix/custom.cfg; fi ### END /etc/grub.d/41_custom ### Finally, here is the content of my etc/fstab: # /etc/fstab: static file system information. # # noatime turns off atimes for increased performance (atimes normally aren't # needed); notail increases performance of ReiserFS (at the expense of storage # efficiency). It's safe to drop the noatime options if you want and to # switch between notail / tail freely. # # The root filesystem should have a pass number of either 0 or 1. # All other filesystems should have a pass number of 0 or greater than 1. # # See the manpage fstab(5) for more information. # # # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts. # # NOTE: Even though we list ext4 as the type here, it will work with ext2/ext3 # filesystems. This just tells the kernel to use the ext4 driver. # # NOTE: You can use full paths to devices like /dev/sda3, but it is often # more reliable to use filesystem labels or UUIDs. See your filesystem # documentation for details on setting a label. To obtain the UUID, use # the blkid(8) command. #LABEL=boot /boot ext4 noauto,noatime 1 2 #UUID=58e72203-57d1-4497-81ad-97655bd56494 / ext4 noatime 0 1 #LABEL=swap none swap sw 0 0 #/dev/cdrom /mnt/cdrom auto noauto,ro 0 0 # /dev/nvme0n1p4 UUID=9a89bdb4-8f36-4aa6-a4c7-831943b0985c / xfs rw,relatime,attr2,inode64,noquota 0 1 # /dev/nvme0n1p2 UUID=6070-07C6 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 2 # /dev/nvme0n1p1 UUID=DC09-2FD7 /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 2 # /dev/nvme0n1p5 UUID=e3237966-1b71-44b3-9d96-1ed7cc6f4d84 /home xfs rw,relatime,attr2,inode64,noquota 0 2 # /dev/nvme0n1p3 UUID=3128bf96-71f7-4a95-a81c-f82788c37f4f none swap defaults 0 0 I also did the following for troubleshooting: - enable nvme support in the kernel - enable xfs filesystem support in the kernel - load grub without the rootfstype=xfs - substitute the UUID with /dev/nvme0n1p4 in my fstab file - drown my sorrows in liquor [This issue](https://unix.stackexchange.com/questions/343056/could-not-find-the-root-block-device-in-gentoo) does not apply as it was a USB driver problem. And [this one](https://forums.gentoo.org/viewtopic-t-919588-start-0.html) was not of any help either.
Benjamin Chausse (107 rep)
Jun 1, 2019, 09:15 AM • Last activity: Jun 28, 2025, 02:05 AM
0 votes
0 answers
40 views
Gentoo install Gnome and GDM?
I have a fresh installation of Gentoo to which I would like to add the Gnome desktop and the GDM display manager. Installing Gnome works, but installing GDM results in errors I am having a hard time to get usable knowledge out of. My question is simple. What must be done to have Gnome 3 start at boo...
I have a fresh installation of Gentoo to which I would like to add the Gnome desktop and the GDM display manager. Installing Gnome works, but installing GDM results in errors I am having a hard time to get usable knowledge out of. My question is simple. What must be done to have Gnome 3 start at boot together with GDM? For installing Gnome I use this command: sudo emerge gnome-base/gnome And for trying to install GDM I use this command, which shows me errors with opus (some audio codec library) and ninja (some build system with a lower footprint than make): sudo emerge gnome-base/gdm This is the error I get: ninja: build stopped: subcommand failed. * ERROR: media-libs/opus-1.5.2::gentoo failed (compile phase): * ninja -v -j17 -l0 failed * * Call stack: * ebuild.sh, line 136: Called src_compile * environment, line 2924: Called meson-multilib_src_compile * environment, line 1623: Called multilib-minimal_src_compile * environment, line 1817: Called multilib_foreach_abi 'multilib-minimal_abi_src_compile' * environment, line 2084: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile' * environment, line 1777: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile' * environment, line 1775: Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_compile' * environment, line 486: Called multilib-minimal_abi_src_compile * environment, line 1811: Called multilib_src_compile * environment, line 2304: Called meson_src_compile * environment, line 1690: Called eninja * environment, line 1195: Called die * The specific snippet of code: * "$@" || die -n "${*} failed" * * If you need support, post the output of emerge --info '=media-libs/opus-1.5.2::gentoo', * the complete build log and the output of emerge -pqv '=media-libs/opus-1.5.2::gentoo'. * The complete build log is located at '/var/tmp/portage/media-libs/opus-1.5.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-libs/opus-1.5.2/temp/environment'. * Working directory: '/var/tmp/portage/media-libs/opus-1.5.2/work/opus-1.5.2-abi_x86_64.amd64' * S: '/var/tmp/portage/media-libs/opus-1.5.2/work/opus-1.5.2' >>> Failed to emerge media-libs/opus-1.5.2, Log file: >>> '/var/tmp/portage/media-libs/opus-1.5.2/temp/build.log' * Messages for package media-libs/opus-1.5.2: * ERROR: media-libs/opus-1.5.2::gentoo failed (compile phase): * ninja -v -j17 -l0 failed * * Call stack: * ebuild.sh, line 136: Called src_compile * environment, line 2924: Called meson-multilib_src_compile * environment, line 1623: Called multilib-minimal_src_compile * environment, line 1817: Called multilib_foreach_abi 'multilib-minimal_abi_src_compile' * environment, line 2084: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile' * environment, line 1777: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile' * environment, line 1775: Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_compile' * environment, line 486: Called multilib-minimal_abi_src_compile * environment, line 1811: Called multilib_src_compile * environment, line 2304: Called meson_src_compile * environment, line 1690: Called eninja * environment, line 1195: Called die * The specific snippet of code: * "$@" || die -n "${*} failed" * * If you need support, post the output of emerge --info '=media-libs/opus-1.5.2::gentoo', * the complete build log and the output of emerge -pqv '=media-libs/opus-1.5.2::gentoo'. * The complete build log is located at '/var/tmp/portage/media-libs/opus-1.5.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-libs/opus-1.5.2/temp/environment'. * Working directory: '/var/tmp/portage/media-libs/opus-1.5.2/work/opus-1.5.2-abi_x86_64.amd64' * S: '/var/tmp/portage/media-libs/opus-1.5.2/work/opus-1.5.2'
Socrates (143 rep)
Jun 18, 2025, 01:37 PM
2 votes
2 answers
2489 views
gcc: fail sanity check error, I suppose due to cxx USE flag missed
Recently I've done `emerge -e world` and then found that `gcc` was compiled without `cxx` flag. Now I can't compile any C++ package due to configure: error: C++ preprocessor "/lib/cpp" fails sanity check I'm thinking on copying files returned by `equery f gcc|grep -v share ` from stage3. Will it hel...
Recently I've done emerge -e world and then found that gcc was compiled without cxx flag. Now I can't compile any C++ package due to configure: error: C++ preprocessor "/lib/cpp" fails sanity check I'm thinking on copying files returned by `equery f gcc|grep -v share ` from stage3. Will it help? Is there any simpler way? **UPDATE 1** Here's my [config.log](http://pastebin.com/MaHyg5bq) **UPDATE 2** Here's my [make.conf](http://pastebin.com/s0sjU7eL) Please, note there's cxx flag in USE. I've added it recently, but it does not help as I can't rebuild packages. **UPDATE 3** I have tried to reinstall gcc-4.6.3 from binary package via emerge -avK gcc:4.6 It completed successfully but error didn't go. Also, I've noticed that: configure:11955: /lib/cpp conftest.cpp cpp: error: conftest.cpp: C++ compiler not installed on this system configure:11955: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "expat" | #define PACKAGE_TARNAME "expat" | #define PACKAGE_VERSION "2.1.0" | #define PACKAGE_STRING "expat 2.1.0" | #define PACKAGE_BUGREPORT "expat-bugs@libexpat.org" | #define PACKAGE_URL "" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | /* end confdefs.h. */ | #ifdef __STDC__ | # include | #else | # include | #endif | Syntax error Looks like it claims that C++ compiler is not installed on my system. But this sounds like rubbish, since gcc:4.6 was installed from bin-package and I assume it's compiled with C++ support. **UPDATE 4** Indeed there's a problem with g++ uhradio ~ # g++ queue.cpp gcc-config: error: could not run/locate 'g++' uhradio ~ # cpp queue.cpp cpp: error: queue.cpp: C++ compiler not installed on this system The output from gcc-config -l is: x86_64-pc-linux-gnu-4.6.3 *
archer (171 rep)
Jan 25, 2013, 09:56 AM • Last activity: Jun 17, 2025, 12:05 AM
2 votes
1 answers
3037 views
Grub reboots PC after showing only "Grub loading."
I have this old computer I use for the more experimental OSes, and about a month ago I installed Gentoo on it, with GRUB2 as boot loader. Everything worked fine, but every boot it would show an error about /dev/sda2 (my grub boot partition), that it couldn't be mounted because of something bad (bad...
I have this old computer I use for the more experimental OSes, and about a month ago I installed Gentoo on it, with GRUB2 as boot loader. Everything worked fine, but every boot it would show an error about /dev/sda2 (my grub boot partition), that it couldn't be mounted because of something bad (bad super block, wrong fs type, etc...) EDIT: I should mention the order of partitions (due to repartitioning) is: /dev/sda2 (/boot) /dev/sda1 (/) /dev/sda3 (swap) Yesterday I decided to get rid of this error by running e2fsck /dev/sda2. There were a lot of wrong things, but they repeated for many, if not all, inodes, so I decided to let e2fsck do its work and skipped through all by holding the enter key. There were no anomalous things at the end, it might have mentioned how many things it fixed. Then I tried to reboot, because I had been trying to get sound to work by recompiling the kernel with the right drivers. When it booted, it showed the usual bios boot screen (with the loading bar), followed by the also usual text screen, at which I always have to press the F1 key to continue (I think it is because my only HDD is connected via SATA instead of the then (2004) common IDE). It showed the text "Grub loading.", and then rebooted, into an infinite loop (were it not that I have to press F1 during each boot sequence). I haven't been able to fix this. I have booted with the Gentoo install disk and reinstalled GRUB2, I have reformatted /dev/sda2 and reconfigured GRUB2, I have reordened my partitions so that /dev/sda1 is the GRUB boot partition and is also located at the beginning of the disk and reconfigured GRUB, I have moved all partitions 10 GiB to the back of the disk to make sure the first partition isn't at a bad spot of the HDD and reconfigured GRUB2, I have changed and tried all BIOS options concerning booting, I have googled the living shit out of my main laptop about similar issues, I have considered setting the computer on fire, getting a false passport and disapearing to Belgium... EDIT: I found out that in some way, GRUB (when it still worked) had installed to the folder /boot instead of the partition, because the partition couldn't be mounted. EDIT(2): Here is /etc/fstab: # /etc/fstab: static file system information. # # noatime turns off atimes for increased performance (atimes normally aren't # needed); notail increases performance of ReiserFS (at the expense of storage # efficiency). It's safe to drop the noatime options if you want and to # switch between notail / tail freely. # # The root filesystem should have a pass number of either 0 or 1. # All other filesystems should have a pass number of 0 or greater than 1. # # See the manpage fstab(5) for more information. # # # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts. /dev/sda2 /boot ext4 noauto,noatime 1 2 /dev/sda1 / ext4 noatime 0 1 /dev/sda3 none swap sw 0 0 /dev/cdrom /mnt/cdrom auto noauto,ro,user 0 0 /dev/fb0 /mnt/floppy auto noauto,user 0 0 I now notice it still has sda1 and sda2 switched around, but I don't think it causes a crash during GRUB loading. EDIT(2.1): I fixed the fstab, but the problem persists. EDIT(3): Here's the updated fstab: # /etc/fstab: static file system information. # # noatime turns off atimes for increased performance (atimes normally aren't # needed); notail increases performance of ReiserFS (at the expense of storage # efficiency). It's safe to drop the noatime options if you want and to # switch between notail / tail freely. # # The root filesystem should have a pass number of either 0 or 1. # All other filesystems should have a pass number of 0 or greater than 1. # # See the manpage fstab(5) for more information. # # # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts. /dev/sda1 /boot ext4 noauto,noatime 1 2 /dev/sda2 / ext4 noatime 0 1 /dev/sda3 none swap sw 0 0 /dev/cdrom /mnt/cdrom auto noauto,ro,user 0 0 /dev/fb0 /mnt/floppy0 auto noauto,user 0 0 ls /boot/ yielded no output, strangely - maybe I've made a mistake and the GRUB partition was mounted after all. After mounting /dev/sda1 to /boot/, this was the output of ls -Al /boot/: root@lubuntu 20:52:29 / # ls -al /boot total 8941 -rw-r--r-- 1 root root 96280 Jul 29 19:09 config-4.0.5-gentoo-2015-07-29-14-09 drwxr-xr-x 5 root root 1024 Jul 29 19:09 grub drwx------ 2 root root 12288 Jul 29 15:52 lost+found -rw-r--r-- 1 root root 2720318 Jul 29 19:09 System.map-4.0.5-gentoo-2015-07-29-14-09 -rw-r--r-- 1 root root 6319104 Jul 29 19:09 vmlinuz-4.0.5-gentoo-2015-07-29-14-09
theFlyingDutchman (33 rep)
Jul 29, 2015, 05:55 PM • Last activity: May 23, 2025, 03:02 AM
5 votes
1 answers
2783 views
How to check if If i2c-hid and hid-rmi are not used for touchpad?
I'm seeing the following warning in `dmesg`: [ 2.631179] psmouse serio2: synaptics: Your touchpad (PNP: SYN1218 PNP0f13) says it can support a different bus. If i2c-hid and hid-rmi are not used, you might want to try setting psmouse.synaptics_intertouch to 1 and report this to linux-input@vger.kerne...
I'm seeing the following warning in dmesg: [ 2.631179] psmouse serio2: synaptics: Your touchpad (PNP: SYN1218 PNP0f13) says it can support a different bus. If i2c-hid and hid-rmi are not used, you might want to try setting psmouse.synaptics_intertouch to 1 and report this to linux-input@vger.kernel.org. ... [ 2.819449] input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio2/input/input10 The touchpad works, but I feel that it is not working as well as it used to. I'm on Gentoo with a custom configured kernel. I've recently switched to other distros and came back to Gentoo and reconfigured the kernel from the ground up. I don't believe I did something out of the ordinary with regards to the input devices, so this *might* be a bug as suggested in dmesg. $ uname -r 5.1.4-gentoo $ grep -E 'INPUT|I2C_HID|HID_RMI' .config CONFIG_RFKILL_INPUT=y CONFIG_INPUT=y CONFIG_INPUT_LEDS=m CONFIG_INPUT_FF_MEMLESS=y CONFIG_INPUT_POLLDEV=y CONFIG_INPUT_SPARSEKMAP=m # CONFIG_INPUT_MATRIXKMAP is not set # CONFIG_INPUT_MOUSEDEV is not set # CONFIG_INPUT_JOYDEV is not set CONFIG_INPUT_EVDEV=y # CONFIG_INPUT_EVBUG is not set CONFIG_INPUT_KEYBOARD=y CONFIG_INPUT_MOUSE=y CONFIG_INPUT_JOYSTICK=y CONFIG_INPUT_TABLET=y CONFIG_INPUT_TOUCHSCREEN=y CONFIG_INPUT_MISC=y # CONFIG_INPUT_AD714X is not set # CONFIG_INPUT_BMA150 is not set # CONFIG_INPUT_E3X0_BUTTON is not set # CONFIG_INPUT_MSM_VIBRATOR is not set # CONFIG_INPUT_PCSPKR is not set # CONFIG_INPUT_MMA8450 is not set # CONFIG_INPUT_APANEL is not set # CONFIG_INPUT_ATLAS_BTNS is not set # CONFIG_INPUT_ATI_REMOTE2 is not set # CONFIG_INPUT_KEYSPAN_REMOTE is not set # CONFIG_INPUT_KXTJ9 is not set # CONFIG_INPUT_POWERMATE is not set # CONFIG_INPUT_YEALINK is not set # CONFIG_INPUT_CM109 is not set # CONFIG_INPUT_UINPUT is not set # CONFIG_INPUT_PCF8574 is not set # CONFIG_INPUT_ADXL34X is not set # CONFIG_INPUT_IMS_PCU is not set # CONFIG_INPUT_CMA3000 is not set # CONFIG_INPUT_IDEAPAD_SLIDEBAR is not set # CONFIG_INPUT_DRV2665_HAPTICS is not set # CONFIG_INPUT_DRV2667_HAPTICS is not set CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y CONFIG_USB_PWC_INPUT_EVDEV=y CONFIG_SND_JACK_INPUT_DEV=y # CONFIG_SND_HDA_INPUT_BEEP is not set CONFIG_HID_RMI=y CONFIG_I2C_HID=y > If i2c-hid and hid-rmi are not used **My question**: how do I check if those are not used? > you might want to try setting psmouse.synaptics_intertouch to 1 $ sudo sysctl -a | grep "psmouse.synaptics_intertouch" Returns nothing, so nothing to set there.
Tim (1104 rep)
May 25, 2019, 09:22 AM • Last activity: May 20, 2025, 05:06 PM
6 votes
2 answers
3972 views
Why is mount.cifs not installed suid by default?
I am using Gentoo, and on my machine at least `mount.cifs` is not installed suid root by default. In particular, this means that I can't use the `user` mount option with CIFS shares. I noticed that `mount.nfs` has suid set. Is there some reason in particular that this is done for CIFS/samba, or is i...
I am using Gentoo, and on my machine at least mount.cifs is not installed suid root by default. In particular, this means that I can't use the user mount option with CIFS shares. I noticed that mount.nfs has suid set. Is there some reason in particular that this is done for CIFS/samba, or is it just Gentoo being overly cautious? If it matters, I am using net-fs/samba and not net-fs/mount-cifs. **More Information:** It seems that historically it was very insecure , however as far back as 2010 the Samba team themselves were happy to reallow suid root access, so is this still an issue? I've tried adding suid to mount.cifs, and it works but I want to get some more information about this if someone is in the know.
Matthew Scharley (664 rep)
Jun 16, 2012, 03:59 AM • Last activity: Apr 18, 2025, 05:51 PM
0 votes
1 answers
378 views
Gentoo Linux halted at boot, (udev-worker, stack depth)
the PC running Gentoo Linux was working fine until yesterday. Today he begins the boot checkup until he arrives at: ``` [ ok ] Reached target multi-user.target. [ ok ] Reached target graphical.target. [ 17.218749] (udev-worker) (293) used greatest stack depth: 12504 bytes left ``` And then it halts....
the PC running Gentoo Linux was working fine until yesterday. Today he begins the boot checkup until he arrives at:
[   ok   ] Reached target multi-user.target.
[   ok   ] Reached target graphical.target.
[   17.218749] (udev-worker) (293) used greatest stack depth: 12504 bytes left
And then it halts. Here is a photo of the full screen when this happens: enter image description here this seems to be a problem with udev-worker using all the memory available to it, does this means that I should free more disk memory for the system or for the swap partition? Any answers that do not involve formatting the system and installing Gentoo (or some other distro) are welcomed ( I really want to leave formatting this PC as a last resort.).
Felipe Dilho (101 rep)
Jun 5, 2024, 01:18 PM • Last activity: Apr 7, 2025, 08:02 PM
0 votes
1 answers
189 views
How to install PFL (e-file) on Gentoo (in Docker)
I can't seem to figure out how to install `pfl` in order to get the `e-file` command. It was mentioned [here][1] that the `pfl` package would install the `e-file` command. So started a Gentoo Docker container and gave it a try: $ docker run -ti gentoo/stage3 bash $ emerge --sync ... $ emerge app-por...
I can't seem to figure out how to install pfl in order to get the e-file command. It was mentioned here that the pfl package would install the e-file command. So started a Gentoo Docker container and gave it a try: $ docker run -ti gentoo/stage3 bash $ emerge --sync ... $ emerge app-portage/pfl ... $ e-file bash: e-file: command not found The output mentioned somehting about use --autounmask-write, so I tried again: emerge --autounmask-write app-portage/pfl $ e-file bash: e-file: command not found The output also mentiond something about sys-apps/util-linux, so I installed that too and tried again: $ emerge sys-apps/util-linux ... $ emerge --autounmask-write app-portage/pfl ... $ e-file bash: e-file: command not found I also tried simply running emerge pfl: $ emerge pfl ... $ e-file bash: e-file: command not found Then I started a new bash session and tried again: $ bash ... $ emerge --autounmask-write app-portage/pfl ... $ e-file bash: e-file: command not found Nothing seems to work... It also mentions IMPORTANT: 5 config files in '/etc/portage' need updating.. I'm not sure what to make out of this. I just want to install a simple package on a fresh docker container. Surely this shouldn't involve manually changing config files, right? Full output of emerge --autounmask-write app-portage/pfl:
* IMPORTANT: 9 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


 * IMPORTANT: 4 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.
Calculating dependencies... done!
[ebuild  N     ] sys-libs/libcap-ng-0.8.2-r1  USE="-python -static-libs" PYTHON_TARGETS="python3_9 -python3_8" 
[ebuild   R    ] sys-apps/util-linux-2.36.2-r1  USE="caps*" 
[ebuild  N     ] app-portage/pfl-3.1-r1  USE="network-cron" PYTHON_TARGETS="python3_9 -python3_8" 

The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by app-portage/pfl-3.1-r1::gentoo[network-cron]
# required by app-portage/pfl (argument)
>=sys-apps/util-linux-2.36.2-r1 caps

Autounmask changes successfully written.

 * IMPORTANT: 5 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.
Content of /etc/portage
$ tree /etc/portage
/etc/portage
|-- make.conf
|-- make.profile -> ../../var/db/repos/gentoo/profiles/default/linux/amd64/17.1
|-- package.use
|   `-- zz-autounmask
|-- repo.postsync.d
|   `-- example
`-- savedconfig
    `-- sys-apps
        `-- busybox-1.32.1-r1
Installing other packages like emerge app-text/tree worked just fine btw.
Forivin (1193 rep)
Aug 24, 2021, 11:53 AM • Last activity: Feb 11, 2025, 08:57 PM
1 votes
1 answers
85 views
prevent moon key on a Sun keyboard from shutting down my gentoo PC
I have a Sun keyboard attached to my gentoo PC. If I accidentally touch the key with the moon symbol on it (happens once or twice a week as I am reaching for my mouse), it triggers an orderly shutdown of my PC. I want to stop it from doing that. My first attempt was to deactivate the `ca` entry in `...
I have a Sun keyboard attached to my gentoo PC. If I accidentally touch the key with the moon symbol on it (happens once or twice a week as I am reaching for my mouse), it triggers an orderly shutdown of my PC. I want to stop it from doing that. My first attempt was to deactivate the ca entry in /etc/inittab by changing it to ca:12345:ctrlaltdel:/bin/true /sbin/shutdown -h now "Fist of Bob" but the moon key still shuts down the PC. This PC does not have an /etc/acpi directory as referenced in https://unix.stackexchange.com/questions/59179/have-sun-keyboard-moon-key-116-not-shut-down-my-computer , nor does it have systemd. I have no idea what chain of events is triggered by pressing the moon key, so I have no idea what software I should be reconfiguring to prevent the shutdown.
Mutant Bob (169 rep)
Aug 18, 2021, 12:03 AM • Last activity: Jan 23, 2025, 09:54 PM
0 votes
0 answers
109 views
Blocked packages problem in gentoo
I want to install xfce on gentoo but after running ```root #emerge --ask xfce-base/xfce4-meta``` there is error that the packages are blocked and I tried many things but none of them work.
I want to install xfce on gentoo but after running
#emerge --ask xfce-base/xfce4-meta
there is error that the packages are blocked and I tried many things but none of them work.
Crazegi Contact (31 rep)
Dec 3, 2023, 06:06 PM • Last activity: Dec 30, 2024, 05:21 PM
0 votes
1 answers
162 views
Hibernate Gentoo after update does not work
I have a problem with hibernating my computer. Everything was working before an update. The update installed Plasma 6 and =x11-drivers/nvidia-drivers-550.127.05-r1. The kernel has not been updated. After the update, the following command does nothing: $ loginctl hibernate When I trace it using ltrac...
I have a problem with hibernating my computer. Everything was working before an update. The update installed Plasma 6 and =x11-drivers/nvidia-drivers-550.127.05-r1. The kernel has not been updated. After the update, the following command does nothing: $ loginctl hibernate When I trace it using ltrace, I get the following output: $ ltrace loginctl hibernate setlocale(LC_ALL, "") = "C" elogind_set_program_name(0x7fffb8445a2d, 0x7f266b11bde0, 1, 0) = 0x7f266b135e08 log_setup(0x7fffb8445a2d, 0x7f266b11bde0, 1, 0) = 0 rlimit_nofile_bump(0x80000, 0x7fffb84452c0, 11, 0x7f266b0a9874) = 0 sigbus_install(0, 7, 0, 0x8000000000000000) = 0 getopt_long(2, 0x7fffb8445538, "hp:P:als:H:M:n:o:ci", 0x55aa2480b200, nil) = -1 bus_connect_transport(0, 0, 0, 0x7fffb84453e0) = 0 sd_bus_set_allow_interactive_authorization(0x55aa2482a2a0, 1, 128, 0x7f266b0a928b) = 0 dispatch_verb(2, 0x7fffb8445538, 0x55aa2480b560, 0x55aa2482a2a0 strcmp("halt", "hibernate") = -8 strcmp("poweroff", "hibernate") = 8 strcmp("reboot", "hibernate") = 10 strcmp("kexec", "hibernate") = 3 strcmp("suspend", "hibernate") = 11 strcmp("hibernate", "hibernate") = 0 geteuid() = 1000 on_tty(0x55aa248068c5, 0x7fffb8445a36, 0x55aa2482a2a0, 0x7f266b07986b) = 1 sd_bus_call_method(0x55aa2482a2a0, 0x55aa24806046, 0x55aa2480602e, 0x55aa24807968) = 0xffffff92 polkit_agent_open_if_enabled(0, 1, 0x55aa24808270, 785) = 0 log_get_max_level(5, 0, 0, 0x7f266b096094) = 6 sd_bus_call_method(0x55aa2482a2a0, 0x55aa24806046, 0x55aa2480602e, 0x55aa24807968) = 0xffffff92 log_get_max_level(0x55aa2482a010, 0x55aa2482cd40, 0, 785) = 6 memset(0x7fffb8444f90, '\0', 1024) = 0x7fffb8444f90 _bus_error_message(0x7fffb8444f70, 0xffffff92, 0x7fffb8444f90, 0x7fffb8444f90) = 0x7f266b13520d log_internal(3, 0xffffff92, 0x55aa24807b89, 366) = 0xffffff92 sd_bus_error_free(0x7fffb8444f70, 0x7fffb84443c0, 0, 0x7fffb8444f68) = 0 ) = 0xffffff92 polkit_agent_close(0x7fffb8444f70, 0x7fffb84443c0, 0, 0x7fffb8444f68 --- SIGCHLD (Child exited) --- ) = 0 strv_free(0, 0xfd6b, 0, 0x7f266b091343) = 0 sd_bus_flush_close_unref(0x55aa2482a2a0, 0xfd6b, 0, 0x7f266b091343) = 0 sd_notifyf(0, 0x55aa24806720, 110, 0x7f266b172b20) = 0 polkit_agent_close(0x55aa2482a010, 0x55aa2482bf80, 0x55af7e20817b, 33) = 0 pager_close(0, 0x55aa2482bf80, 0x55af7e20817b, 33) = 0 mac_selinux_finish(0, 0x55aa2482bf80, 0x55af7e20817b, 33) = 0 +++ exited (status 1) +++ Any idea where the problem might be? Everything was working before that update. Hibernating from the start menu doesn't work either. Syslog prints this: # grep loginctl /var/log/everything/current Nov 17 09:47:44 [loginctl] Failed to hibernate system via elogind: Connection timed out What currently goes wrong? The computer does not hibernate. **EDIT**: The command echo disk > /sys/power/state also does not hibernate, although cat /sys/power/state prints freeze mem disk.
DaBler (101 rep)
Nov 17, 2024, 08:50 AM • Last activity: Dec 5, 2024, 10:00 PM
1 votes
2 answers
814 views
Gentoo invalid profile
So. Been going at the gentoo install without proper instructions until very recently. After `emerge-webrsync` stage of the install a message pops up saying "your current profile is invalid". It appears to be a blocker on emerging to kick off the rest of the install. This doesn't seem to be an issue...
So. Been going at the gentoo install without proper instructions until very recently. After emerge-webrsync stage of the install a message pops up saying "your current profile is invalid". It appears to be a blocker on emerging to kick off the rest of the install. This doesn't seem to be an issue with the laptop (NIC is working and changing ssd does nothing for this issue) and I've validated the SHA-512 against the DIGEST.asc associated with the downloaded tarball. It seems unlikely the livecd I'm using to install would have been rewritten over this network connection. eselect is functioning, and experimentation with the 35 defaults yields no results. Have created a custom profile but am having issues having it appear on eselect. Confused somewhat on the documentation for this, continuing to experiment. Suggestions welcome. Have already run eselect profile list and eselect profile set for the default profiles. The issue persists after an emerge --sync. In fact the issue first occurred after an emerge --sync. Have readlink'd the make.profile in portage and tried a few different symlinks. Resources: * https://wiki.gentoo.org/wiki/Profile_(Portage) * https://wiki.gentoo.org/wiki/Project:Eselect/User_guide * https://wiki.gentoo.org/wiki/User:Sakaki/Sakaki%27s_EFI_Install_Guide/Installing_the_Gentoo_Stage_3_Files
Linuxn00b (11 rep)
Jul 8, 2021, 08:33 AM • Last activity: Nov 27, 2024, 07:13 PM
2 votes
1 answers
6196 views
emerge /etc/portage/make.profile is not a symlink during Gentoo installation?
I cannot run `emerge-webrsync` because it says that snapshots are not found. Nor can I execute `mirrorselect`, since I get command not found. Finally, I tried to run: $ emerge --ask app-portage/mirrorselect but this returns the following error: !!! Repository 'x-portage' is missing masters attribute...
I cannot run emerge-webrsync because it says that snapshots are not found. Nor can I execute mirrorselect, since I get command not found. Finally, I tried to run: $ emerge --ask app-portage/mirrorselect but this returns the following error: !!! Repository 'x-portage' is missing masters attribute in '/usr/portage/metadata/layout.conf' !!! Set 'masters = gentoo' in this file for future compatibility !!! /etc/portage/make.profile is not a symlink and will probably prevent most merges. !!! It should point into a profile within /usr/portage/profiles/ !!! (You can safely ignore this message when syncing. It's harmless.) !!! Your current profile is invalid. If you have just changed your profile !!! configuration, you should revert back to the previous configuration. !!! Allowed actions are limited to --help, --info, --search, --sync, and !!! --version.
user9385563 (21 rep)
Mar 2, 2018, 02:50 PM • Last activity: Nov 27, 2024, 04:29 PM
0 votes
1 answers
167 views
Gentoo linux -- add uinput module to kernel
I am trying to implement copy/paste from host openSUSE to guest Gentoo VM. I have installed `spice-vdagent` on the host and the guest. `vdagent` will not start on the Gentoo guest as it says `uinput` kernel module is needed. Cannot find detailed instructions needed to install `uinput` either as buil...
I am trying to implement copy/paste from host openSUSE to guest Gentoo VM. I have installed spice-vdagent on the host and the guest. vdagent will not start on the Gentoo guest as it says uinput kernel module is needed. Cannot find detailed instructions needed to install uinput either as builtin to kernel or as a separate accessible module. Any advice?
tckosvic (105 rep)
Nov 19, 2024, 06:57 PM • Last activity: Nov 22, 2024, 12:50 AM
Showing page 1 of 20 total questions