View previous topic :: View next topic |
Author |
Message |
lalebarde Guru
Joined: 03 Sep 2006 Posts: 464 Location: France, Haute-Garonne
|
Posted: Mon Nov 28, 2011 11:08 pm Post subject: udev does not start at boot time |
|
|
Please, go directly to post #6
Initial title : cloning a system with duplicate hardware fails. How to do it
New title : udev does not start at boot time
Hi,
I need to clone my gentoo desktop on a second identical hardware - not completely identical :
- one hard disk instead of two - so I adapted the fstab
- video card from same vendor (nvidia), same family, just more RAM - I did nothing
- CPU with a bit higher fraquency - I did nothing
I used rsync -a from the boot DVD to clone my system on an external storage, and another rsync -a on the new hardware - after having prepared the disk of course.
I changed the network configuration and the hostname. I wrote the MBR from Grub. That's all, and reboot.
I have some errors during booting, then I get xdm and I can enter my username & password, and finally press OK to login. Then, the X server freezes.
Any clue ?
What would be the best way / protocol to clone a system ?
Last edited by lalebarde on Wed Dec 07, 2011 5:33 pm; edited 1 time in total |
|
Back to top |
|
|
albright Advocate
Joined: 16 Nov 2003 Posts: 2588 Location: Near Toronto
|
Posted: Tue Nov 29, 2011 1:02 am Post subject: |
|
|
what are the boot errors?
you might try rebuilding the nvidia-drivers ... _________________ .... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme) |
|
Back to top |
|
|
cwr Veteran
Joined: 17 Dec 2005 Posts: 1969
|
Posted: Tue Nov 29, 2011 8:34 am Post subject: |
|
|
A straight copy, with tar or rsync, has always worked for me. At a guess it's
some small change in the new hardware.
Will |
|
Back to top |
|
|
lalebarde Guru
Joined: 03 Sep 2006 Posts: 464 Location: France, Haute-Garonne
|
Posted: Tue Nov 29, 2011 9:56 am Post subject: |
|
|
Thanks cwr, but it does not solve the problem.
I checked the video card :
PC1 (nominal) : Code: | *-display
description: VGA compatible controller
produit: G92 [GeForce GTS 240]
fabriquant: nVidia Corporation
identifiant matériel: 0
information bus: pci@0000:01:00.0
version: a2
bits: 64 bits
horloge: 33MHz
fonctionnalités: pm msi pciexpress vga_controller bus_master cap_list rom
configuration: driver=nvidia latency=0
ressources: irq:16 mémoire:fa000000-faffffff mémoire:d0000000-dfffffff mémoire:f8000000-f9ffffff portE/S:dc00(taille=128) mémoire:fbde0000-fbdfffff |
PC2 (duplicate) : Code: | *-display UNCLAIMED
description: VGA compatible controller
product: nVidia Corporation
vendor: nVidia Corporation
physical id: 0
bus info: pci@0000:01:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list
configuration: latency=0 |
from the Vendor, PC2 has a "PCI Express Nvidia GeForce GTS 240 1024 Mb". So the only difference are the version : a1 versus a2, and one less capability : rom. BTW,
is it normal to have : "display UNCLAIMED" ?
Here are the :
- dmesg : http://pastebin.com/EzpExdEf
- Xorg.0.log : http://pastebin.com/K8Fuw2C0
- lshw : http://pastebin.com/SYuqRb4x
- lspci : http://pastebin.com/5HaGkj3w
Code: | # cat /media/0506-2F16/PCCARO/uname-a.txt
Linux livecd 2.6.30-gentoo-r5 #1 SMP Fri Oct 9 19:28:18 UTC 2009 x86_64 Intel(R) Core(TM) i7 CPU 870 @ 2.93GHz GenuineIntel GNU/Linux |
Note : 2.6.30 is the version of the kernel of the live DVD, the one of the two PC is 2.6.37 |
|
Back to top |
|
|
lalebarde Guru
Joined: 03 Sep 2006 Posts: 464 Location: France, Haute-Garonne
|
Posted: Wed Dec 07, 2011 3:32 pm Post subject: |
|
|
I rebuilt everything. No change. It seems the problem does not come from the video drivers : xdm is waiting for cupsdxdm, tty1 is waiting as tty7, tty2 to 4 are not available.
Code: | xdm: waiting for cupsd (5 seconds)
xdm |local |nfs | * * * local: timed out waiting for cupsdxdm: timed out waiting for cupsdnfs: timed out waiting for cupsd |
|
|
Back to top |
|
|
lalebarde Guru
Joined: 03 Sep 2006 Posts: 464 Location: France, Haute-Garonne
|
Posted: Wed Dec 07, 2011 5:06 pm Post subject: |
|
|
If you start reading this thread, you may skip the previous posts as the problem resolution has refined
When I analyse the boot, udev does not start.
Here is my rc.log Code: | rc shutdown logging stopped at Sun Nov 27 15:23:32 2011
rc boot logging started at Wed Dec 7 17:30:24 2011
hwclock | * Setting system clock using the hardware clock [UTC] ...
[ ok ]
modules | * Loading module tg3 ...
hostname | * Setting hostname to VENUS ...
[ ok ]
sysctl | * Configuring kernel parameters ...
[ ok ]
[ ok ]
modules | * Loading module nvidia ...
[ ok ]
modules | * Loading module vboxdrv ...
[ ok ]
modules | * Autoloaded 3 module(s)
hibernate-cleanup | * Invalidating stale software suspend images ...
[ ok ]
lvm | * Setting up the Logical Volume Manager ...
lvm | No volume groups found
lvm | No volume groups found
lvm | No volume groups found
[ ok ]
fsck | * Checking local filesystems ...
fsck |racine: clean, 33680/256512 files, 303852/1024135 blocks
fsck |boot: clean, 286/66264 files, 80075/265008 blocks
fsck |var: clean, 233160/4104000 files, 12229774/16384000 blocks
fsck |usr: clean, 1136958/3268608 files, 11938287/13056820 blocks
fsck |home: recovering journal
fsck |home: clean, 212202/8200192 files, 27719494/32768583 blocks
fsck |Data: recovering journal
fsck |Data: clean, 1043198/43589632 files, 173241154/174335371 blocks
[ ok ]
root | * Remounting root filesystem read/write ...
[ ok ]
mtab | * Updating /etc/mtab ...
[ ok ]
localmount | * Mounting local filesystems ...
[ ok ]
procfs | * Mounting USB device filesystem [usbfs] ...
swap | * Activating swap devices ...
urandom | * Initializing random number generator ...
[ ok ]
procfs | * Mounting misc binary format filesystem ...
[ ok ]
[34m[ ok ]
bootmisc | * Creating user login records ...
[ ok ]
[ ok ]
bootmisc | * Cleaning /var/run ...
[ ok ]
bootmisc | * Wiping /tmp directory ...
[ ok ]
termencoding | * Setting terminal encoding [UTF-8] ...
alsasound | * Loading ALSA modules ...
[ ok ]
keymaps | * Setting keyboard mode [UTF-8] ...
consolefont | * Setting console font [lat9w-16] ...
net.lo | * Bringing up interface lo
net.lo | * Caching network module dependencies
alsasound | * Loading: snd-mixer-oss ...
[ ok ]
keymaps | * Loading key mappings [fr-latin9] ...
[ ok ]
alsasound | * Loading: snd-pcm-oss ...
[ ok ]
alsasound | * Loading: snd-seq-oss ...
[ ok ]
[ ok ]
[ ok ]
alsasound | * Restoring Mixer Levels ...
alsasound |No state is present for card Creative
alsasound |Found hardware: "HDA-Intel" "Creative SB0880 X-Fi" "HDA:1102000d,11020044,00100000" "0x1102" "0x0044"
alsasound |Hardware is initialized using a generic method
[ ok ]
alsasound |No state is present for card Creative
alsasound | * Errors while restoring defaults, ignoring
[ ok ]
net.lo | * 127.0.0.1/8 ...
[ ok ]
net.lo | * Adding routes
net.lo | * 127.0.0.0/8 via 127.0.0.1 ...
[ ok ]
rc boot logging stopped at Wed Dec 7 17:30:28 2011
rc default logging started at Wed Dec 7 17:30:28 2011
dbus | * Starting D-BUS system messagebus ...
net.qtap0 | * Bringing up interface qtap0
net.eth0 | * Bringing up interface eth0
net.qtap0 | * Creating Tun/Tap interface qtap0 ...
net.eth0 | * ERROR: interface eth0 does not exist
net.eth0 | * Ensure that you have loaded the correct kernel module for your hardware
net.eth0 | * ERROR: net.eth0 failed to start
[ ok ]
net.qtap0 | * Changing MAC address of qtap0 ...
[ ok ]
net.qtap0 | * changed to 02:5A:4B:3C:2D:1E
net.qtap0 | * null ...
[ ok ]
net.br0 | * Bringing up interface br0
net.br0 | * Creating bridge br0 ...
net.br0 | * Adding ports to br0
net.br0 | * qtap0 ...
[ ok ]
net.br0 | * 192.168.98.1/24 ...
[ ok ]
net.br0 | * Waiting for IPv6 addresses ...
[ ok ]
udev-postmount | * Doing udev cleanups
bluetooth | * Starting Bluetooth ...
[ ok ]
bluetooth | * Starting rfcomm ...
syslog-ng | * Starting syslog-ng ...
[ ok ]
[ ok ]
acpid | * Starting acpid ...
gpm | * Starting gpm ...
dcron | * Starting dcron ...
[ ok ]
[ ok ]
keytouch | * Running keytouch-init ...
[ ok ]
keytouch |keytouch-init: Failed to set keycode:
keytouch |keycode 140 to scancode 786 (0x312)
keytouch |keytouch-init: Failed to set keycode:
keytouch |keycode 155 to scancode 786 (0x312)
keytouch |keytouch-init: Failed to set keycode:
keytouch |keycode 172 to scancode 786 (0x312)
keytouch |keytouch-init: Failed to set keycode:
keytouch |keycode 114 to scancode 786 (0x312)
keytouch |keytouch-init: Failed to set keycode:
keytouch |keycode 115 to scancode 786 (0x312)
keytouch |keytouch-init: Failed to set keycode:
keytouch |keycode 164 to scancode 786 (0x312)
keytouch |keytouch-init: Failed to set keycode:
keytouch |keycode 166 to scancode 786 (0x312)
keytouch |keytouch-init: Failed to set keycode:
keytouch |keycode 113 to scancode 786 (0x312)
keytouch |keytouch-init: Failed to set keycode:
keytouch |keycode 165 to scancode 786 (0x312)
keytouch |keytouch-init: Failed to set keycode:
keytouch |keycode 163 to scancode 786 (0x312)
keytouch |keytouch-init: Failed to set keycode:
keytouch |keycode 171 to scancode 786 (0x312)
[ ok ]
keytouch | * Starting keytouch-acpid ...
[ ok ]
[ ok ]
netmount | * ERROR: cannot start netmount as net.eth0 would not start
kvm | * ERROR: cannot start kvm as net.eth0 would not start
samba | * ERROR: cannot start samba as net.eth0 would not start
xdm | * Setting up gdm ...
bridge_forward | * Turning on forwarding for bridge interface ...
[ ok ]
postgresql-8.4 | * The following file(s) were not found in /etc/postgresql-8.4/:
postgresql-8.4 | * postgresql.conf
postgresql-8.4 | * pg_hba.conf
postgresql-8.4 | * pg_ident.conf
postgresql-8.4 | * HINT: Try:
postgresql-8.4 | * mv /Data/postgresql/8.4/data/*.conf /etc/postgresql-8.4/
postgresql-8.4 | * ERROR: postgresql-8.4 failed to start
[ ok ]
local | * Starting local
[ ok ]
rc default logging stopped at Wed Dec 7 17:30:34 2011 |
From the chrooted environment (but I am not sure this is relevant from chroot since boot is from live DVD) : Code: | # rc-status sysinit
Runlevel: sysinit
dmesg [ stopped ]
udev [ stopped ]
devfs [ stopped ] |
Otherwise : Code: | (chroot) livecd / # /etc/init.d/dmesg status
* status: stopped
(chroot) livecd / # /etc/init.d/udev status
* status: stopped
(chroot) livecd / # /etc/init.d/devfs status
* status: stopped |
Let's try to start them : Code: | (chroot) livecd / # /etc/init.d/devfs start
devfs | * Mounting /dev/shm ... [ ok ]
(chroot) livecd / # /etc/init.d/udev start
udev-mount | * /dev is already mounted
udev | * Starting udevd ...
udev | * start-stop-daemon: /sbin/udevd is already running [ !! ]
udev | * ERROR: udev failed to start
(chroot) livecd / # /etc/init.d/dmesg start
(chroot) livecd / # rc-status sysinit
Runlevel: sysinit
dmesg [ started ]
udev [ stopped ]
devfs [ started ] |
That looks right - udev does not start here for good reasons.
So why does udev refuse to start on boot ?
EDIT : Code: | # cat /media/0506-2F16/PCCARO/uname-a.txt
Linux livecd 2.6.30-gentoo-r5 #1 SMP Fri Oct 9 19:28:18 UTC 2009 x86_64 Intel(R) Core(TM) i7 CPU 870 @ 2.93GHz GenuineIntel GNU/Linux |
Code: | (chroot) livecd / # grep -i inotify /usr/src/linux/.config
CONFIG_INOTIFY_USER=y
(chroot) livecd / # grep -i sysfs_deprecated /usr/src/linux/.config
# CONFIG_SYSFS_DEPRECATED is not set |
Code: | (chroot) livecd ~ # mkdir test
(chroot) livecd ~ # mount --bind / test
(chroot) livecd ~ # cd test/dev
(chroot) livecd dev # ls | egrep "null|console"
console
null |
|
|
Back to top |
|
|
|
|
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
|
|