LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Who's good in copying an installed distro from one HDD to another HDD? (https://www.linuxquestions.org/questions/linux-general-1/whos-good-in-copying-an-installed-distro-from-one-hdd-to-another-hdd-4175453406/)

Frank64 03-09-2013 10:44 AM

Who's good in copying an installed distro from one HDD to another HDD?
 
Hello,

I always use 2 identical HDDs in order to keep a true backup of my installed distro (all partitions) in case of a failure.

Such failure occurred recently and I was left with one HDD. So I bought 2 new, bigger than my originals.

I changed the partition sizes on the new HDDs and my root partition is now smaller.
So I try to migrate my installed Kubuntu 11.10 from my old backup HDD (primary failed) to my new primary bigger HDD (under a smaller partition than original HDD).

In order to copy my partitions I use
Code:

sudo cp -ax /[partition_on_old_disk]/* /[partition_on_new_disk]/
I booted from a live CD, then mkdir 2 dirs, mounted my old drive partition and new drive partition and then did the copy.

I seemed it copied everything with file attributes and whatnots.

Then I changed my grub config in order to support and boot from the new disk.

And lastly I booted using the new disk.

GRUB (legacy) loaded no problem, my menu entry was there and it did start up the kernel perfectly.
But in verbose mode I could see it was performing clean-ups especially on /tmp, not sure that was normal.

And at the point of loading XServer, kaboom. Reverted to text mode. I logged in under my user, tried to troubleshoot. I noticed /tmp was all empty, it deleted everything during the boot process. I then did
Code:

startx
And it didn't load, was still in text mode. I seems to fail to compile keymaps.
I also tried by copying /tmp content from my old disk to my new disk while I was in txt mode and I get the same XServer errors.

Here's the Xorg log file from the point where it starts to do stuff (skipped the help listing):

Code:

[  140.351]
X.Org X Server 1.10.4
Release Date: 2011-08-19
[  140.355] X Protocol Version 11, Revision 0
[  140.356] Build Operating System: Linux 2.6.24-29-server x86_64 Ubuntu
[  140.357] Current Operating System: Linux oskde64 3.0.0-14-generic #23-Ubuntu SMP Mon Nov 21 20:28:43 UTC 2011 x86_64
[  140.358] Kernel command line: root=/dev/disk/by-id/ata-WDC_WD10EZEX-60ZF5A0_WD-WMC1S2768534-part1 ro quiet splash showopts acpi_enforce_resources=lax vga=0x31b
[  140.359] Build Date: 19 October 2011  05:21:26AM
[  140.360] xorg-server 2:1.10.4-1ubuntu4.2 (For technical support please see http://www.ubuntu.com/support)
[  140.361] Current version of pixman: 0.22.2
[  140.362]        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[  140.365] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  140.368] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Mar  9 11:08:59 2013
[  140.369] (==) Using config file: "/etc/X11/xorg.conf"
[  140.370] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  140.372] (==) ServerLayout "Layout0"
[  140.372] (**) |-->Screen "Screen0" (0)
[  140.372] (**) |  |-->Monitor "Monitor0"
[  140.372] (**) |  |-->Device "Device0"
[  140.372] (**) |-->Input Device "Keyboard0"
[  140.372] (**) |-->Input Device "Mouse0"
[  140.372] (==) Automatically adding devices
[  140.372] (==) Automatically enabling devices
[  140.372] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[  140.372]        Entry deleted from font path.
[  140.372] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[  140.372]        Entry deleted from font path.
[  140.372] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[  140.372]        Entry deleted from font path.
[  140.372] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[  140.372]        Entry deleted from font path.
[  140.372] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[  140.372]        Entry deleted from font path.
[  140.372] (==) FontPath set to:
        /usr/share/fonts/X11/misc,
        /usr/share/fonts/X11/Type1,
        /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType,
        built-ins
[  140.372] (==) ModulePath set to "/usr/lib/x86_64-linux-gnu/xorg/extra-modules,/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules"
[  140.372] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[  140.372] (WW) Disabling Keyboard0
[  140.372] (WW) Disabling Mouse0
[  140.372] (II) Loader magic: 0x7e0220
[  140.372] (II) Module ABI versions:
[  140.372]        X.Org ANSI C Emulation: 0.4
[  140.372]        X.Org Video Driver: 10.0
[  140.372]        X.Org XInput driver : 12.3
[  140.372]        X.Org Server Extension : 5.0
[  140.373] (--) PCI:*(0:1:0:0) 10de:0402:10de:050e rev 161, Mem @ 0xfd000000/16777216, 0xc0000000/536870912, 0xfa000000/33554432, I/O @ 0x0000cc00/128, BIOS @ 0x????????/131072
[  140.373] (II) Open ACPI successful (/var/run/acpid.socket)
[  140.373] (II) LoadModule: "extmod"
[  140.373] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
[  140.373] (II) Module extmod: vendor="X.Org Foundation"
[  140.373]        compiled for 1.10.4, module version = 1.0.0
[  140.373]        Module class: X.Org Server Extension
[  140.373]        ABI class: X.Org Server Extension, version 5.0
[  140.373] (II) Loading extension MIT-SCREEN-SAVER
[  140.373] (II) Loading extension XFree86-VidModeExtension
[  140.373] (II) Loading extension XFree86-DGA
[  140.373] (II) Loading extension DPMS
[  140.373] (II) Loading extension XVideo
[  140.373] (II) Loading extension XVideo-MotionCompensation
[  140.373] (II) Loading extension X-Resource
[  140.373] (II) LoadModule: "dbe"
[  140.374] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
[  140.374] (II) Module dbe: vendor="X.Org Foundation"
[  140.374]        compiled for 1.10.4, module version = 1.0.0
[  140.374]        Module class: X.Org Server Extension
[  140.374]        ABI class: X.Org Server Extension, version 5.0
[  140.374] (II) Loading extension DOUBLE-BUFFER
[  140.374] (II) LoadModule: "glx"
[  140.374] (II) Loading /usr/lib/x86_64-linux-gnu/xorg/extra-modules/libglx.so
[  140.382] (II) Module glx: vendor="NVIDIA Corporation"
[  140.382]        compiled for 4.0.2, module version = 1.0.0
[  140.382]        Module class: X.Org Server Extension
[  140.382] (II) NVIDIA GLX Module  280.13  Wed Jul 27 17:12:07 PDT 2011
[  140.382] (II) Loading extension GLX
[  140.382] (II) LoadModule: "record"
[  140.382] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
[  140.382] (II) Module record: vendor="X.Org Foundation"
[  140.382]        compiled for 1.10.4, module version = 1.13.0
[  140.382]        Module class: X.Org Server Extension
[  140.382]        ABI class: X.Org Server Extension, version 5.0
[  140.382] (II) Loading extension RECORD
[  140.382] (II) LoadModule: "dri"
[  140.383] (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
[  140.383] (II) Module dri: vendor="X.Org Foundation"
[  140.383]        compiled for 1.10.4, module version = 1.0.0
[  140.383]        ABI class: X.Org Server Extension, version 5.0
[  140.383] (II) Loading extension XFree86-DRI
[  140.383] (II) LoadModule: "dri2"
[  140.383] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
[  140.383] (II) Module dri2: vendor="X.Org Foundation"
[  140.383]        compiled for 1.10.4, module version = 1.2.0
[  140.383]        ABI class: X.Org Server Extension, version 5.0
[  140.383] (II) Loading extension DRI2
[  140.383] (II) LoadModule: "nvidia"
[  140.383] (II) Loading /usr/lib/x86_64-linux-gnu/xorg/extra-modules/nvidia_drv.so
[  140.383] (II) Module nvidia: vendor="NVIDIA Corporation"
[  140.383]        compiled for 4.0.2, module version = 1.0.0
[  140.383]        Module class: X.Org Video Driver
[  140.383] (II) NVIDIA dlloader X Driver  280.13  Wed Jul 27 16:55:26 PDT 2011
[  140.383] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[  140.383] (--) using VT number 7

[  140.386] (II) Loading sub module "fb"
[  140.386] (II) LoadModule: "fb"
[  140.386] (II) Loading /usr/lib/xorg/modules/libfb.so
[  140.387] (II) Module fb: vendor="X.Org Foundation"
[  140.387]        compiled for 1.10.4, module version = 1.0.0
[  140.387]        ABI class: X.Org ANSI C Emulation, version 0.4
[  140.387] (II) Loading sub module "wfb"
[  140.387] (II) LoadModule: "wfb"
[  140.387] (II) Loading /usr/lib/xorg/modules/libwfb.so
[  140.387] (II) Module wfb: vendor="X.Org Foundation"
[  140.387]        compiled for 1.10.4, module version = 1.0.0
[  140.387]        ABI class: X.Org ANSI C Emulation, version 0.4
[  140.387] (II) Loading sub module "ramdac"
[  140.387] (II) LoadModule: "ramdac"
[  140.387] (II) Module "ramdac" already built-in
[  140.387] (II) Loading /usr/lib/x86_64-linux-gnu/xorg/extra-modules/nvidia_drv.so
[  140.387] (II) Loading /usr/lib/xorg/modules/libwfb.so
[  140.387] (II) Loading /usr/lib/xorg/modules/libfb.so
[  140.387] (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
[  140.387] (==) NVIDIA(0): RGB weight 888
[  140.387] (==) NVIDIA(0): Default visual is TrueColor
[  140.387] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[  140.387] (**) NVIDIA(0): Option "AddARGBGLXVisuals" "True"
[  140.859] (II) NVIDIA(GPU-0): Display (ViewSonic VA2226w-3 (DFP-0)) does not support NVIDIA
[  140.859] (II) NVIDIA(GPU-0):    3D Vision stereo.
[  140.862] (II) NVIDIA(0): NVIDIA GPU GeForce 8600 GT (G84) at PCI:1:0:0 (GPU-0)
[  140.862] (--) NVIDIA(0): Memory: 524288 kBytes
[  140.862] (--) NVIDIA(0): VideoBIOS: 60.84.54.00.00
[  140.862] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[  140.862] (--) NVIDIA(0): Interlaced video modes are supported on this GPU
[  140.862] (--) NVIDIA(0): Connected display device(s) on GeForce 8600 GT at PCI:1:0:0
[  140.862] (--) NVIDIA(0):    ViewSonic VA2226w-3 (DFP-0)
[  140.862] (--) NVIDIA(0): ViewSonic VA2226w-3 (DFP-0): 330.0 MHz maximum pixel clock
[  140.862] (--) NVIDIA(0): ViewSonic VA2226w-3 (DFP-0): Internal Dual Link TMDS
[  140.911] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID has been
[  140.911] (**) NVIDIA(0):    enabled on all display devices.
[  140.962] (II) NVIDIA(0): Assigned Display Device: DFP-0
[  140.962] (==) NVIDIA(0):
[  140.962] (==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
[  140.962] (==) NVIDIA(0):    will be used as the requested mode.
[  140.962] (==) NVIDIA(0):
[  140.962] (II) NVIDIA(0): Validated modes:
[  140.962] (II) NVIDIA(0):    "nvidia-auto-select"
[  140.962] (II) NVIDIA(0): Virtual screen size determined to be 1680 x 1050
[  140.997] (--) NVIDIA(0): DPI set to (87, 91); computed from "UseEdidDpi" X config
[  140.997] (--) NVIDIA(0):    option
[  140.997] (**) NVIDIA(0): Enabling 32-bit ARGB GLX visuals.
[  140.997] (--) Depth 24 pixmap format is 32 bpp
[  140.997] (II) NVIDIA: Using 768.00 MB of virtual memory for indirect memory access.
[  141.004] (II) NVIDIA(0): Setting mode "nvidia-auto-select"
[  141.040] (II) Loading extension NV-GLX
[  141.077] (==) NVIDIA(0): Disabling shared memory pixmaps
[  141.077] (==) NVIDIA(0): Backing store disabled
[  141.077] (==) NVIDIA(0): Silken mouse enabled
[  141.077] (**) NVIDIA(0): DPMS enabled
[  141.077] (II) Loading extension NV-CONTROL
[  141.078] (II) Loading extension XINERAMA
[  141.078] (II) Loading sub module "dri2"
[  141.078] (II) LoadModule: "dri2"
[  141.078] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
[  141.078] (II) Module dri2: vendor="X.Org Foundation"
[  141.078]        compiled for 1.10.4, module version = 1.2.0
[  141.078]        ABI class: X.Org Server Extension, version 5.0
[  141.078] (II) NVIDIA(0): [DRI2] Setup complete
[  141.078] (==) RandR enabled
[  141.078] (II) Initializing built-in extension Generic Event Extension
[  141.078] (II) Initializing built-in extension SHAPE
[  141.078] (II) Initializing built-in extension MIT-SHM
[  141.078] (II) Initializing built-in extension XInputExtension
[  141.078] (II) Initializing built-in extension XTEST
[  141.078] (II) Initializing built-in extension BIG-REQUESTS
[  141.078] (II) Initializing built-in extension SYNC
[  141.078] (II) Initializing built-in extension XKEYBOARD
[  141.078] (II) Initializing built-in extension XC-MISC
[  141.078] (II) Initializing built-in extension SECURITY
[  141.078] (II) Initializing built-in extension XINERAMA
[  141.078] (II) Initializing built-in extension XFIXES
[  141.078] (II) Initializing built-in extension RENDER
[  141.078] (II) Initializing built-in extension RANDR
[  141.078] (II) Initializing built-in extension COMPOSITE
[  141.078] (II) Initializing built-in extension DAMAGE
[  141.078] (II) Initializing built-in extension GESTURE
[  141.079] (II) Initializing extension GLX
[  141.095] (II) XKB: generating xkmfile /tmp/server-B20D7FC79C7F597315E3E501AEF10E0D866E8E92.xkm
[  141.110] (EE) Error compiling keymap (-)
[  141.110] (EE) XKB: Couldn't compile keymap
[  141.110] (EE) XKB: Failed to load keymap. Loading default keymap instead.
[  141.112] (II) XKB: generating xkmfile /tmp/server-B20D7FC79C7F597315E3E501AEF10E0D866E8E92.xkm
[  141.127] (EE) Error compiling keymap (-)
[  141.127] (EE) XKB: Couldn't compile keymap
[  141.127] XKB: Failed to compile keymap

[  141.127] Keyboard initialization failed. This could be a missing or incorrect setup of xkeyboard-config.
[  141.127]
Fatal server error:
[  141.127] Failed to activate core devices.
[  141.127]
Please consult the The X.Org Foundation support
        at http://wiki.x.org
 for help.
[  141.127] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  141.127]
[  141.565]  ddxSigGiveUp: Closing log

I can't understand what's going on.

Anyone has an idea?



My extended partition wasn't flagged as 'LBA', could that be the problem? I'll give a shot later on.

Here are my sfdidk of both drives:

Old working one:
Code:

Disk /dev/sda: 91201 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

  Device Boot Start    End  #cyls    #blocks  Id  System
/dev/sda1  *      0+  1108    1109-  8908011  83  Linux
/dev/sda2      1109  91200  90092  723663990    f  W95 Ext'd (LBA)
/dev/sda3          0      -      0          0    0  Empty
/dev/sda4          0      -      0          0    0  Empty
/dev/sda5      1109+  1363    255-  2048256  82  Linux swap / Solaris
/dev/sda6      1364+  19639  18276- 146801938+  83  Linux
/dev/sda7      19640+  20971    1332-  10699258+  83  Linux
/dev/sda8      20972+  27342    6371-  51175026  83  Linux
/dev/sda9      27343+  44312  16970- 136311493+  83  Linux
/dev/sda10    44313+  91200  46888- 376627828+  83  Linux

New one:
Code:

Disk /dev/sdb: 121601 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

  Device Boot Start    End  #cyls    #blocks  Id  System
/dev/sdb1  *      0+  1011    1012-  8128858+  83  Linux
/dev/sdb2      1012  121600  120589  968631142+  f  W95 Ext'd (LBA)
/dev/sdb3          0      -      0          0    0  Empty
/dev/sdb4          0      -      0          0    0  Empty
/dev/sdb5      1012+  1394    383-  3076416  83  Linux
/dev/sdb6      1395+  20976  19582- 157292383+  83  Linux
/dev/sdb7      20977+  21996    1020-  8193118+  83  Linux
/dev/sdb8      21997+  30920    8924-  71681998+  83  Linux
/dev/sdb9      30921+  53102  22182- 178176883+  83  Linux
/dev/sdb10    53103+ 121600  68498- 550210153+  83  Linux

Previously it was saying that some partitions weren't ending on the physical block. Maybe that's why, I gotta try.

tnx!

pingu 03-09-2013 12:15 PM

Did you also change /etc/fstab?
If not, you boot up with one partition for / but then switch to another. That could cause problems.

Abouth that "partitions weren't ending on the physical block", it's not an issue. This is caused by the way large disks are handled today, earlier a partition had to end on "cylinder boundary".

Could you also post your /etc/fstab from both installations.

Frank64 03-09-2013 12:27 PM

Quote:

Originally Posted by pingu (Post 4908067)
Did you also change /etc/fstab?

Yes I did and just double checked it before you posted, to make sure xxx-part7 was really my /tmp and I checked all the other partition assignments too. All good.

Quote:

Originally Posted by pingu (Post 4908067)
Abouth that "partitions weren't ending on the physical block", it's not an issue. This is caused by the way large disks are handled today, earlier a partition had to end on "cylinder boundary".

Exactly, I just rebooted with LBA flag and no change.
I am now changing my user permissions on /tmp, which has root all over the place at the moment. Since my other disk is disconnected, I cannot check if it should be root or user. No harm to try.


Quote:

Originally Posted by pingu (Post 4908067)
Could you also post your /etc/fstab from both installations.

Yes, I will reboot soon on the old disk.

EDIT:
fstab of new disk (old one still not connected as I am trying to figure out if it's a permission issue on the new disk):
Code:

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>  <type>  <options>      <dump>  <pass>
proc            /proc          proc    nodev,noexec,nosuid 0      0
/dev/disk/by-id/ata-WDC_WD10EZEX-60ZF5A0_WD-WMC1S2768534-part1 /              ext4    noatime,acl,user_xattr,errors=remount-ro 0      1
/dev/disk/by-id/ata-WDC_WD10EZEX-60ZF5A0_WD-WMC1S2768534-part9 /VM            xfs    noatime,logbufs=8        0      2
/dev/disk/by-id/ata-WDC_WD10EZEX-60ZF5A0_WD-WMC1S2768534-part6 /home          ext4    noatime,acl,user_xattr        0      2
/dev/disk/by-id/ata-WDC_WD10EZEX-60ZF5A0_WD-WMC1S2768534-part8 /img            ext4    noatime,data=writeback,acl,user_xattr        0      2
/dev/disk/by-id/ata-WDC_WD10EZEX-60ZF5A0_WD-WMC1S2768534-part10 /movies        xfs    noatime,logbufs=8        0      2
/dev/disk/by-id/ata-WDC_WD10EZEX-60ZF5A0_WD-WMC1S2768534-part7 /tmp            ext4    noatime,data=writeback,acl,user_xattr        0      2
/dev/disk/by-id/ata-WDC_WD10EZEX-60ZF5A0_WD-WMC1S2768534-part5 none            swap    sw              0      0

EDIT:
Old working disk's fstab:
Code:

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>  <type>  <options>      <dump>  <pass>
proc            /proc          proc    nodev,noexec,nosuid 0      0
/dev/disk/by-id/ata-WDC_WD7501AALS-00J7B0_WD-WMATV2933694-part1 /              ext4    noatime,acl,user_xattr,errors=remount-ro 0      1
/dev/disk/by-id/ata-WDC_WD7501AALS-00J7B0_WD-WMATV2933694-part9 /VM            xfs    noatime,logbufs=8        0      2
/dev/disk/by-id/ata-WDC_WD7501AALS-00J7B0_WD-WMATV2933694-part6 /home          ext4    noatime,acl,user_xattr        0      2
/dev/disk/by-id/ata-WDC_WD7501AALS-00J7B0_WD-WMATV2933694-part8 /img            ext4    noatime,data=writeback,acl,user_xattr        0      2
/dev/disk/by-id/ata-WDC_WD7501AALS-00J7B0_WD-WMATV2933694-part10 /movies        xfs    noatime,logbufs=8        0      2
/dev/disk/by-id/ata-WDC_WD7501AALS-00J7B0_WD-WMATV2933694-part7 /tmp            ext4    noatime,data=writeback,acl,user_xattr        0      2
/dev/disk/by-id/ata-WDC_WD7501AALS-00J7B0_WD-WMATV2933694-part5 none            swap    sw              0      0


Frank64 03-09-2013 12:33 PM

Hey that partially worked!!

/tmp now has user:user as permissions, I did not change recursively, only the root of /tmp and it works!

Interesting, I can't wait to check if I have root or user permissions on that folder on my old disk.

/home remains with root permissions and it loads fine. But /tmp needed to be set to user.

However when I reboot and let it load by itself it still doesn't load X. But I can load it manually after I login from text mode. weird...

pingu 03-09-2013 12:41 PM

I checked my /tmp, it has drwxrwxrwt so everybody has full permissions + sticky bit is set.

Are all your partitions the same file system? If not, defaults for mounting might be different.

When booting, check the logs - mainly /var/log/Xorg.0.log but also /var/log/messages and "dmesg" (all this taken from my LinuxMint13).

Frank64 03-09-2013 12:49 PM

Quote:

Originally Posted by pingu (Post 4908079)
I checked my /tmp, it has drwxrwxrwt so everybody has full permissions + sticky bit is set.

Are all your partitions the same file system? If not, defaults for mounting might be different.

When booting, check the logs - mainly /var/log/Xorg.0.log but also /var/log/messages and "dmesg" (all this taken from my LinuxMint13).

I just posted the fstab up. :)

It looks like KDM doesn't load. When I get prompted to tty1, I log in, then startx, it bypasses KDM log in screen.

There is no messages file in /var/log.
No errors in Xorg.0.log.

dmesg doesn't show anything weird to my eye. I will post it.

Frank64 03-09-2013 12:53 PM

dmesg is too big to post, so I have shorten it at the beginning:

Code:

[    0.847799] udevd[90]: starting version 173
[    0.873558] ahci 0000:00:1f.2: version 3.0
[    0.873585] ahci 0000:00:1f.2: PCI INT B -> GSI 22 (level, low) -> IRQ 22
[    0.873627] ahci 0000:00:1f.2: irq 43 for MSI/MSI-X
[    0.873674] ahci: SSS flag set, parallel bus scan disabled
[    0.873707] ahci 0000:00:1f.2: AHCI 0001.0200 32 slots 6 ports 3 Gbps 0x3f impl SATA mode
[    0.873710] ahci 0000:00:1f.2: flags: 64bit ncq sntf stag pm led clo pmp pio slum part ccc ems sxs
[    0.873714] ahci 0000:00:1f.2: setting latency timer to 64
[    0.874209] pata_jmicron 0000:02:00.1: PCI INT B -> GSI 17 (level, low) -> IRQ 17
[    0.874238] pata_jmicron 0000:02:00.1: setting latency timer to 64
[    0.877134] scsi0 : pata_jmicron
[    0.877984] scsi1 : pata_jmicron
[    0.878591] ata1: PATA max UDMA/100 cmd 0xdc00 ctl 0xd880 bmdma 0xd400 irq 17
[    0.878594] ata2: PATA max UDMA/100 cmd 0xd800 ctl 0xd480 bmdma 0xd408 irq 17
[    0.889901] via_rhine: v1.10-LK1.5.0 2010-10-09 Written by Donald Becker
[    0.889933] via-rhine 0000:04:02.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[    0.897181] via-rhine 0000:04:02.0: eth0: VIA Rhine III at 0xfebffc00, 00:21:91:21:d5:0d, IRQ 18
[    0.897890] via-rhine 0000:04:02.0: eth0: MII PHY found at address 1, status 0x786d advertising 05e1 Link cde1
[    0.912537] scsi2 : ahci
[    0.912605] scsi3 : ahci
[    0.912665] scsi4 : ahci
[    0.912722] scsi5 : ahci
[    0.912778] scsi6 : ahci
[    0.912832] scsi7 : ahci
[    0.912943] ata3: SATA max UDMA/133 abar m2048@0xf9ffe800 port 0xf9ffe900 irq 43
[    0.912946] ata4: SATA max UDMA/133 abar m2048@0xf9ffe800 port 0xf9ffe980 irq 43
[    0.912948] ata5: SATA max UDMA/133 abar m2048@0xf9ffe800 port 0xf9ffea00 irq 43
[    0.912951] ata6: SATA max UDMA/133 abar m2048@0xf9ffe800 port 0xf9ffea80 irq 43
[    0.912953] ata7: SATA max UDMA/133 abar m2048@0xf9ffe800 port 0xf9ffeb00 irq 43
[    0.912955] ata8: SATA max UDMA/133 abar m2048@0xf9ffe800 port 0xf9ffeb80 irq 43
[    0.912980] ahci 0000:02:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[    0.928041] ahci 0000:02:00.0: AHCI 0001.0000 32 slots 2 ports 3 Gbps 0x3 impl SATA mode
[    0.928044] ahci 0000:02:00.0: flags: 64bit ncq pm led clo pmp pio slum part
[    0.928050] ahci 0000:02:00.0: setting latency timer to 64
[    0.928285] scsi8 : ahci
[    0.928344] scsi9 : ahci
[    0.928406] ata9: SATA max UDMA/133 abar m8192@0xfeafe000 port 0xfeafe100 irq 16
[    0.928409] ata10: SATA max UDMA/133 abar m8192@0xfeafe000 port 0xfeafe180 irq 16
[    1.040499] ata1.00: ATAPI: ATAPI  iHAP122  9, 6L0F, max UDMA/66
[    1.056494] ata1.00: configured for UDMA/66
[    1.060244] scsi 0:0:0:0: CD-ROM            ATAPI    iHAP122  9      6L0F PQ: 0 ANSI: 5
[    1.063854] sr0: scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
[    1.063856] cdrom: Uniform CD-ROM driver Revision: 3.20
[    1.063963] sr 0:0:0:0: Attached scsi CD-ROM sr0
[    1.064026] sr 0:0:0:0: Attached scsi generic sg0 type 5
[    1.232019] ata3: SATA link down (SStatus 0 SControl 300)
[    1.248025] ata10: SATA link down (SStatus 0 SControl 300)
[    1.248056] ata9: SATA link down (SStatus 0 SControl 300)
[    1.420010] usb 7-2: new low speed USB device number 2 using uhci_hcd
[    1.444012] Refined TSC clocksource calibration: 2799.037 MHz.
[    1.444016] Switching to clocksource tsc
[    1.724014] ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    1.724799] ata4.00: ATA-9: WDC WD10EZEX-60ZF5A0, 80.00A80, max UDMA/100
[    1.724802] ata4.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32), AA
[    1.725609] ata4.00: configured for UDMA/100
[    1.725692] scsi 3:0:0:0: Direct-Access    ATA      WDC WD10EZEX-60Z 80.0 PQ: 0 ANSI: 5
[    1.725809] sd 3:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[    1.725812] sd 3:0:0:0: [sda] 4096-byte physical blocks
[    1.725839] sd 3:0:0:0: Attached scsi generic sg1 type 0
[    1.725854] sd 3:0:0:0: [sda] Write Protect is off
[    1.725857] sd 3:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    1.725875] sd 3:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.817071]  sda: sda1 sda2 < sda5 sda6 sda7 sda8 sda9 sda10 >
[    1.817403] sd 3:0:0:0: [sda] Attached SCSI disk
[    1.836010] usb 8-2: new full speed USB device number 2 using uhci_hcd
[    2.020235] hub 8-2:1.0: USB hub found
[    2.022211] hub 8-2:1.0: 3 ports detected
[    2.044011] ata5: SATA link down (SStatus 0 SControl 300)
[    2.301206] usb 8-2.2: new full speed USB device number 3 using uhci_hcd
[    2.364012] ata6: SATA link down (SStatus 0 SControl 300)
[    2.533211] usb 8-2.3: new full speed USB device number 4 using uhci_hcd
[    2.616097] generic-usb 0003:0764:0501.0001: hiddev0,hidraw0: USB HID v1.10 Device [CPS UPS CP1000AVRLCD] on usb-0000:00:1d.1-2/input0
[    2.621411] input: Logitech Logitech BT Mini-Receiver as /devices/pci0000:00/0000:00:1d.2/usb8/8-2/8-2.2/8-2.2:1.0/input/input2
[    2.621475] generic-usb 0003:046D:C71B.0002: input,hidraw1: USB HID v1.11 Keyboard [Logitech Logitech BT Mini-Receiver] on usb-0000:00:1d.2-2.2/input0
[    2.621488] usbcore: registered new interface driver usbhid
[    2.621489] usbhid: USB HID core driver
[    2.684015] ata7: SATA link down (SStatus 0 SControl 300)
[    2.696760] input: Logitech Logitech BT Mini-Receiver as /devices/pci0000:00/0000:00:1d.2/usb8/8-2/8-2.3/8-2.3:1.0/input/input3
[    2.696861] generic-usb 0003:046D:C71C.0003: input,hiddev0,hidraw2: USB HID v1.11 Mouse [Logitech Logitech BT Mini-Receiver] on usb-0000:00:1d.2-2.3/input0
[    3.004012] ata8: SATA link down (SStatus 0 SControl 300)
[    3.006400] firewire_ohci 0000:04:03.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
[    3.060056] firewire_ohci: Added fw-ohci device 0000:04:03.0, OHCI v1.0, 8 IR + 8 IT contexts, quirks 0x0
[    3.237180] vesafb: mode is 1280x1024x32, linelength=5120, pages=1
[    3.237183] vesafb: scrolling: redraw
[    3.237185] vesafb: Truecolor: size=8:8:8:8, shift=24:16:8:0
[    3.240814] vesafb: framebuffer at 0xfb000000, mapped to 0xffffc90011800000, using 10240k, total 14336k
[    3.240902] Console: switching to colour frame buffer device 160x64
[    3.243456] fb0: VESA VGA frame buffer device
[    3.560107] firewire_core: created device fw0: GUID 0011d80001831ca6, S400
[    8.559335] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[  12.041831] udevd[406]: starting version 173
[  12.047665] Adding 3076412k swap on /dev/sda5.  Priority:-1 extents:1 across:3076412k
[  12.073265] EXT4-fs (sda1): re-mounted. Opts: acl,user_xattr,errors=remount-ro
[  12.074305] lp: driver loaded but no devices found
[  12.076920] coretemp coretemp.0: Using relative temperature scale!
[  12.076928] coretemp coretemp.0: Using relative temperature scale!
[  12.076938] coretemp coretemp.0: Using relative temperature scale!
[  12.076949] coretemp coretemp.0: Using relative temperature scale!
[  12.078681] w83627ehf: Found W83627DHG chip at 0x290
[  12.078781] w83627ehf w83627ehf.656: VID pins in output mode, CPU VID not available
[  12.098942] nvidia: module license 'NVIDIA' taints kernel.
[  12.098945] Disabling lock debugging due to kernel taint
[  12.231061] HDA Intel 0000:00:1b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
[  12.231106] HDA Intel 0000:00:1b.0: irq 44 for MSI/MSI-X
[  12.231127] HDA Intel 0000:00:1b.0: setting latency timer to 64
[  12.308222] type=1400 audit(1362854722.977:2): apparmor="STATUS" operation="profile_load" name="/sbin/dhclient" pid=766 comm="apparmor_parser"
[  12.308230] type=1400 audit(1362854722.977:3): apparmor="STATUS" operation="profile_replace" name="/sbin/dhclient" pid=767 comm="apparmor_parser"
[  12.308424] type=1400 audit(1362854722.977:4): apparmor="STATUS" operation="profile_load" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=766 comm="apparmor_parser"
[  12.308434] type=1400 audit(1362854722.977:5): apparmor="STATUS" operation="profile_replace" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=767 comm="apparmor_parser"
[  12.308552] type=1400 audit(1362854722.977:6): apparmor="STATUS" operation="profile_load" name="/usr/lib/connman/scripts/dhclient-script" pid=766 comm="apparmor_parser"
[  12.308565] type=1400 audit(1362854722.977:7): apparmor="STATUS" operation="profile_replace" name="/usr/lib/connman/scripts/dhclient-script" pid=767 comm="apparmor_parser"
[  12.660152] SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled
[  12.661061] SGI XFS Quota Management subsystem
[  12.786405] nvidia 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[  12.786413] nvidia 0000:01:00.0: setting latency timer to 64
[  12.786417] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=none:owns=io+mem
[  12.786536] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  280.13  Wed Jul 27 16:53:56 PDT 2011
[  12.826280] XFS (sda10): Mounting Filesystem
[  13.091717] XFS (sda10): Ending clean mount
[  13.170805] EXT4-fs (sda6): mounted filesystem with ordered data mode. Opts: acl,user_xattr
[  13.230605] EXT4-fs (sda7): mounted filesystem with writeback data mode. Opts: data=writeback,acl,user_xattr
[  13.261400] EXT4-fs (sda8): mounted filesystem with writeback data mode. Opts: data=writeback,acl,user_xattr
[  13.265406] XFS (sda9): Mounting Filesystem
[  13.338790] XFS (sda9): Ending clean mount
[  13.392593] type=1400 audit(1362854724.061:8): apparmor="STATUS" operation="profile_load" name="/usr/sbin/mysqld-akonadi" pid=1059 comm="apparmor_parser"
[  13.392743] type=1400 audit(1362854724.061:9): apparmor="STATUS" operation="profile_load" name="/usr/sbin/mysqld-akonadi///usr/sbin/mysqld" pid=1059 comm="apparmor_parser"
[  13.393282] type=1400 audit(1362854724.061:10): apparmor="STATUS" operation="profile_load" name="/usr/lib/cups/backend/cups-pdf" pid=1058 comm="apparmor_parser"
[  13.393574] type=1400 audit(1362854724.061:11): apparmor="STATUS" operation="profile_load" name="/usr/sbin/cupsd" pid=1058 comm="apparmor_parser"
[  13.412266] ppdev: user-space parallel port driver
[  13.656399] init: failsafe main process (1008) killed by TERM signal
[  13.656972] init: apport pre-start process (1139) terminated with status 1
[  13.667483] init: apport post-stop process (1191) terminated with status 1
[  13.682694] via-rhine 0000:04:02.0: eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
[  13.924107] vboxdrv: Found 4 processor cores.
[  13.924500] vboxdrv: fAsync=0 offMin=0x240 offMax=0x1803
[  13.924784] vboxdrv: TSC mode is 'synchronous', kernel timer mode is 'normal'.
[  13.924786] vboxdrv: Successfully loaded version 4.1.2_Ubuntu (interface 0x00190000).
[  13.932458] vboxpci: IOMMU not found (not registered)
[  14.337297] EXT4-fs (sda1): re-mounted. Opts: acl,user_xattr,errors=remount-ro,commit=0
[  14.339454] EXT4-fs (sda6): re-mounted. Opts: acl,user_xattr,commit=0
[  14.568468] EXT4-fs (sda7): re-mounted. Opts: data=writeback,acl,user_xattr,commit=0
[  14.570156] EXT4-fs (sda8): re-mounted. Opts: data=writeback,acl,user_xattr,commit=0
[  23.968004] eth0: no IPv6 routers present
[  45.626235] EXT4-fs (sda1): re-mounted. Opts: acl,user_xattr,errors=remount-ro,commit=0
[  46.189185] EXT4-fs (sda6): re-mounted. Opts: acl,user_xattr,commit=0
[  46.333083] EXT4-fs (sda7): re-mounted. Opts: data=writeback,acl,user_xattr,commit=0
[  46.334804] EXT4-fs (sda8): re-mounted. Opts: data=writeback,acl,user_xattr,commit=0


pingu 03-09-2013 01:01 PM

What was the first error - the one that made you try to recover from the backup?
A real shot in the dark - what about AppArmor, could it be that it doesn't like the change of partitions?

What dm is loading at bootup - kdm, gdm, xdm... ?
Check if it's started at bootup (probably not), can you start it manually from terminal as root?
---
Edit:
Ah, it's kdm (of course - it's kubuntu!)
Sorry for my ignorance.

Frank64 03-09-2013 01:09 PM

Quote:

Originally Posted by pingu (Post 4908098)
What was the first error - the one that made you try to recover from the backup?
A real shot in the dark - what about AppArmor, could it be that it doesn't like the change of partitions?

What dm is loading at bootup - kdm, gdm, xdm... ?
Check if it's started at bootup (probably not), can you start it manually from terminal as root?

The first error seemed a write error, it was in Xorg.0.log:
Code:

[  141.095] (II) XKB: generating xkmfile /tmp/server-B20D7FC79C7F597315E3E501AEF10E0D866E8E92.xkm
[  141.110] (EE) Error compiling keymap (-)
[  141.110] (EE) XKB: Couldn't compile keymap
[  141.110] (EE) XKB: Failed to load keymap. Loading default keymap instead.
[  141.112] (II) XKB: generating xkmfile /tmp/server-B20D7FC79C7F597315E3E501AEF10E0D866E8E92.xkm
[  141.127] (EE) Error compiling keymap (-)
[  141.127] (EE) XKB: Couldn't compile keymap
[  141.127] XKB: Failed to compile keymap

I load KDM. Well, try to. :)

I don't think I have AppArmor, I'll check that.

KDM seems to be running, you're right.
Code:

sudo service kdm start
returns a "Job already running".



EDIT: I do have AppArmor, but don't know how to load it or troubleshoot it.

pingu 03-09-2013 01:20 PM

You do have Apparmor, it's in dmesg.
But skip that for now, I don't really believe it's causing the problem.

Now the first error, could it be caused by /tmp partition being full?
Seems to me it's exactly the same error as the one you get when booting from backup.

What if X / kdm actually works but is loaded on other teminal? That has happened to me with LinuxMint.
Try switching to tty6, tty8 and tty9 (that's hitting <Ctrl>+<Alt>+<F8> etc - just in case you don't already know).

--- Edit
Also, in terminal kill kdm and start it again.
Any more specific error messages?
If that doesn't give anything, you could try reinstalling kdm.

Frank64 03-09-2013 01:26 PM

Quote:

Originally Posted by pingu (Post 4908112)
You do have Apparmor, it's in dmesg.
But skip that for now, I don't really believe it's causing the problem.

Now the first error, could it be caused by /tmp partition being full?
Seems to me it's exactly the same error as the one you get when booting from backup.

What if X / kdm actually works but is loaded on other teminal? That has happened to me with LinuxMint.
Try switching to tty6, tty8 and tty9 (that's hitting <Ctrl>+<Alt>+<F8> etc - just in case you don't already know).

If that doesn't give anything, you could try reinstalling kdm.

It wasn't full (still almost 10G free), but not writable by user. That was fixed with the user permission change.

I have uninstalled AppArmor and same problem, so that's not it.

ctrl-alt-F8 does nothing.
ctrl-alt-F7 switches to some verbose mode of stuff which loaded before, then I did a ctrl-alt-f6 to come back.

I'll try reinstalling KDM, hoping I won't get hit with newer KDM versions which would require new KDE version which then impacts everything else. :)

pingu 03-09-2013 01:30 PM

Quote:

Originally Posted by Frank64 (Post 4908115)
I'll try reinstalling KDM, hoping I won't get hit with newer KDM versions which would require new KDE version which then impacts everything else. :)

Ooopps!
Careful now, THINK before you act!
It's your system not mine, I can just guess...

---------- Post added 9th Mar 2013 at 20:31 ----------

Start with killing kdm and start it again,see what error message you get.

Frank64 03-09-2013 01:45 PM

Absolutely. Since I have a working system on my other disk, I can screw that one up it doesn't work.

Uninstalling it was easy. Reinstalling was harder, but after a while I found only a few packages to be upgraded and only KDM to be installed.

Didn't think about killing it and restarting it first. :(

Ok same problem.

I have stopped it and restarted it. I see it tries to load the screen, but fails and reverts back to tty6.
No error in Xorg.0.log, nothing in dmesg either.

startx works as the usual.

Well, I guess I'll wait for Kubuntu 13.04 and reinstall from scratch. Or in the meantime I can startx manually all the time, which is usually once a week after I have backed up my root partition with g4l.

Feel free if you have any idea, otherwise thanks so much for the time, I progressed but didn't find it. :)

pingu 03-09-2013 01:45 PM

Maybe install some other dm instead, like xdm or mdm.
It might pull down some other stuff as well but it will not affect your KDE.

Frank64 03-09-2013 01:48 PM

Quote:

Originally Posted by pingu (Post 4908126)
Maybe install some other dm instead, like xdm or mdm.
It might pull down some other stuff as well but it will not affect your KDE.

Ok will try later on this w-e. If it works, I'll definitely post! :)


All times are GMT -5. The time now is 11:25 AM.