LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Arch (https://www.linuxquestions.org/questions/arch-29/)
-   -   gdm-binary: /var/run/dbus/system_bus_socket: No such file or directory (https://www.linuxquestions.org/questions/arch-29/gdm-binary-var-run-dbus-system_bus_socket-no-such-file-or-directory-839885/)

Kenny_Strawn 10-22-2010 08:53 PM

gdm-binary: /var/run/dbus/system_bus_socket: No such file or directory
 
Update: Now, I *CAN* get the installation to boot, but I can't get it to load past twm despite having a full desktop environment (GNOME), GDM, and even non-standard apps installed.

As for the error message that GDM is putting out, it's something like:

Code:

***(gdm-binary)***: /var/run/dbus/system_bus_socket: No such file or directory
I'm still trying to figure out how to hook dbus into the initrd.

linus72 10-22-2010 09:04 PM

needs to be sdb1 sdb2, etc right?
not /dev/sdb

change the fstab and grub boot line manually for /dev/sdb1 /, root=/dev/sdb1, etc

did you DD it to the drive?

Kenny_Strawn 10-22-2010 09:10 PM

Yeah, my mistake, I did try that. It still caused the same problem.

Kenny_Strawn 10-22-2010 09:19 PM

Also tried editing /etc/fstab. No change. :banghead:

linus72 10-22-2010 09:30 PM

how did you transfer it to the drive, unsquashfs'd it and then copied it?
does the drive have a sdb1?
whats the output of fdisk -l as root?

Kenny_Strawn 10-22-2010 09:45 PM

I decided to 'unsquashfs' it directly to the drive, using
Code:

unsquashfs root-image.sqfs -fd /mnt
with the drive mounted in /mnt. Then, I installed the needed and wanted packages on the drive, installed GRUB, and updated GRUB. Yet, I've run into these roadblocks every time I tried to boot it!

Kenny_Strawn 10-22-2010 09:47 PM

And yes, it does have an sdb1; I specifically created it in GParted so that I could use GRUB on it.

sandman 10-22-2010 10:21 PM

i forget the command, but you need to delay mounting root, which is your external drive, to allow archlinux time to discover it first. I used to use 6 seconds which was fine for my external.

here is the command you need to put on your kernel line in grub
rootdelay=6
change the 6 to however many seconds you feel is needed.

Kenny_Strawn 10-22-2010 10:24 PM

The default is 10 seconds, and the kernel still isn't finding it. How do you modify that value?

sandman 10-22-2010 10:33 PM

you need to edit /boot/grub/menu.lst as root and look for your kernel line. here is an example with the rootdelay=6 added to it

kernel /vmlinuz26 root=/dev/sdb10 rootdelay=6 ro

Kenny_Strawn 10-22-2010 10:34 PM

Actually, that's for legacy GRUB. I have GRUB 2.

Kenny_Strawn 10-22-2010 10:38 PM

I decided to edit my /etc/default/grub and include "rootdelay=30" in the "GRUB_CMDLINE_LINUX" variable, then update GRUB. Hopefully, this will solve the problem. At 10 seconds, it still isn't working.

sandman 10-22-2010 10:39 PM

you can still add kernel options in grub.cfg using grub 2
here is wiki page for grub 2
http://wiki.archlinux.org/index.php/GRUB2

Kenny_Strawn 10-22-2010 10:43 PM

Still, 30 seconds doesn't fly.

I wonder if it registers as a different device, say /dev/sda1, on the external device? I will try to see if that is the case.

sandman 10-22-2010 10:48 PM

try labeling the drive and then boot by-label instead of by-uuid or by device. info here

Kenny_Strawn 10-23-2010 12:19 AM

I tried that:

Code:

GRUB_CMDLINE_LINUX="root=/dev/disk/by-id/usb-Hitachi_HDS721050CLA362_1521033AFFFF-0:0-part1 rootfstype=ext4 rootdelay=30"
Still, no success. I wonder if there's any drivers installed by default in Arch for it. If not, how do I get them?

sandman 10-23-2010 05:47 AM

actually I meant to use the "by-label" part from that link, not by-id or by-uuid. what you need to do is label your drive using one of the commands depending on your file system you used. label it anything you want like "arch_usb" or whatever. then in your command use
Code:

GRUB_CMDLINE_LINUX="root=/dev/disk/by-label/arch_usb rootfstype=ext4 rootdelay=30"
or whatever you decide to label the drive. then it won't matter what the actual /dev/sXX is because it will look for the drive label "arch_usb" and boot that drive.

linus72 10-23-2010 06:14 AM

wait a minute

when you made the new kernel26.img, how did you do it?

OH!
also, see this about adding "usb" as one of the hooks
http://wiki.archlinux.org/index.php/...x_on_a_USB_key

Quote:

* Regenerate the initrd image, kernel26.img. Edit /etc/mkinitcpio.conf, changing the hooks to include (at a minimum): "base udev ide usb filesystems" (Note: if using the 7.2 CD, and installing from the CD, you will have mkinitrd instead of mkinitcpio. During the configuration, you will be asked to edit mkinitrd.conf; simply change REMOVE_USB=1 to REMOVE_USB=0 and ignore the following command). Then rebuild the image by issuing:

# mkinitcpio -k 2.6.25-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26.img.

Note: The kernel version (-k) must be the kernel version in the USB key, not the live cd's kernel version.
mine looks like this
HOOKS="base udev usb autodetect pata scsi sata filesystems"

hope that helps

Kenny_Strawn 10-23-2010 05:56 PM

Code:

[root@kenny-AOA110 /]# mkinitcpio 2.6.35-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26.img
:: Begin dry run
:: Parsing hook [base]
:: Parsing hook [udev]
:: Parsing hook [usb]
:: Parsing hook [autodetect]
FATAL: Could not load /lib/modules/2.6.35-22-generic/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/2.6.35-22-generic/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/2.6.35-22-generic/modules.dep: No such file or directory
find: `/lib/modules/2.6.35-22-generic': No such file or directory
FATAL: Could not load /lib/modules/2.6.35-22-generic/modules.dep: No such file or directory
find: `/lib/modules/2.6.35-22-generic': No such file or directory
FATAL: Could not load /lib/modules/2.6.35-22-generic/modules.dep: No such file or directory
find: `/lib/modules/2.6.35-22-generic': No such file or directory
:: Parsing hook [pata]
:: Parsing hook [scsi]
:: Parsing hook [sata]
:: Parsing hook [filesystems]
:: Dry run complete, use -g IMAGE to generate a real image
[root@kenny-AOA110 /]#

And this is from a chroot jail with /proc, /sys, and /dev/pts mounted.

Still needing help.

Kenny_Strawn 10-23-2010 05:59 PM

Also: Trying to 'nano /proc/version' returns an input/output error from the chroot. I will try copying /proc/version to the clipboard and unmounting /proc, then copying the version back into /proc, seeing if that will help when I edit it.

Kenny_Strawn 10-23-2010 06:16 PM

Still no luck.

Kenny_Strawn 10-23-2010 06:20 PM

And here's the big gig: How come mkinitcpio is looking for Ubuntu's kernel?! I specifically specified the kernel version in the mkinitcpio command line!

linus72 10-23-2010 06:23 PM

your doing it from an ubuntu 10.10 install
you might have to do it from a arch livecd
Quote:

FATAL: Could not load /lib/modules/2.6.35-22-generic/modules.dep: No such file or directory
its looking for the kernel modules your running off of

you got a arch livecd/usb?

you may be able to use fake-uname from salixos
http://enialis.net/~jrd/salix/fake-u....1-noarch-1cp/

http://www.salixos.org/forum/viewtopic.php?f=20&t=275

so before or after you chroot do

fake-uname-activate 2.6.35-ARCH or whatever

just decompress it and put everything where it goes,etc
Code:

tar xJvf fake-uname-0.1-noarch-1cp.txz

./
usr/
usr/src/
usr/src/fake-uname-0.1/
usr/src/fake-uname-0.1/SLKBUILD
usr/src/fake-uname-0.1/build-fake-uname.sh
usr/doc/
usr/doc/fake-uname-0.1/
install/
install/slack-desc
sbin/
sbin/fake-uname
sbin/fake-uname-disactivate
sbin/fake-uname-activate

works on debian sid, etc

Kenny_Strawn 10-23-2010 07:00 PM

Sorry, forgot '-k'. Now it works perfectly. After my GNOME Shell installation on Ubuntu is finished, I will reboot and try out my Arch to see if it boots.

Kenny_Strawn 10-23-2010 07:02 PM

Also: I was chrooted into the external 500GB drive from the Ubuntu installation on my main SSD.

Kenny_Strawn 10-23-2010 10:29 PM

At least now I am able to boot to a shell. But I still can't figure out why I can't get GDM to start! Every time I try to copy /var/run/dbus/system_bus_socket to the drive, it's always lost on reboot. Any commands I have to type in the chroot or hooks I have to add to mkinitcpio to make GDM autostart during the boot process (and me being able to log into my chroot-installed GNOME)? If so, what?

Kenny_Strawn 10-23-2010 10:40 PM

Yes, I have GDM installed, in case you're wondering. I installed it when I chrooted into the basic Arch installation on the external 500GB SimpleTech drive from Ubuntu and installed GNOME, Shotwell, Firefox, LibreOffice, and many other packages.

Kenny_Strawn 10-23-2010 11:09 PM

For any of you who are wondering, GDM's error message reads something like:

Code:

***(GLib-GObject CRITICAL)***: /var/run/dbus/system-bus-socket: No such file or directory
And I still have DBus installed.

Kenny_Strawn 10-24-2010 03:44 AM

I was getting help, and now no help at all? Why?! Just how do I get dbus to run at startup so that GDM can also run?

Please, I'm begging here. Just what hooks do I pass to mkinitcpio to load X and GNOME at startup?!

Kenny_Strawn 10-24-2010 11:57 PM

/!\bump/!\

Kenny_Strawn 10-25-2010 05:21 PM

!!!!!!!<bump>!!!!!!!

Jesus93 11-22-2010 04:46 AM

DBus
 
I had the same problem, but when I put dbus in /etc/rc.conf in the daemons section, gdm started normaly.


All times are GMT -5. The time now is 03:19 AM.