You are not logged in.

#1 2012-12-12 23:14:45

llawwehttam
Member
From: United Kingdom
Registered: 2010-01-19
Posts: 180
Website

Run into issues moving an installation.

A few months ago I put a fresh install of arch on my laptop. I used an lvm in an extended partition, and used luks.

I have a dual boot with windows 8.

As I needed to give windows 8 more space I decided to backup my install and repartition the drive. I have now copied the backup to the new partition layout (not encrypted and using regular mbr partitions), used the livecd to change the fstab, the mkinitcpio, rebuilt initramfs and fix grub.

On booting I get dropped to the emergency shell with a few systemd errors, mostly about systemd-udevd, worker did not accept message.

Any ideas? Is this recoverable?

EDIT: I've managed to get at least some of the exact messages that show up:

[FAILED] Failed to start Remount Root and Kernel File Systems.
See 'systemctl status systemd-remount-fs.service' for details.
[FAILED] Failed to mount Huge Pages File System.
See 'systemctl status sdev-hugepages.mount' for details.
[FAILED] Failed to mount Debug File System.
See 'systemctl status sdev-hugepages.mount' for details.
[FAILED] Failed to mount POSIX Message Queue File System
See 'systemctl status dev-mqueue.mount' for details.
[OK] Started Setup Virtual Console.
[OK] Reached target Local File Systems (Pre).
Mounting /tmp...
Started Local Random Seed...
[OK] Started udev Kernel Device Manager
[FAILED] Failed to mount /tmp.
See 'systemctl status tmp.mount' for details.
[DEPEND] Dependency failed for Local File Systems.
Welcome to emergency mode! .......

EDIT2: Ok, this is getting stranger.

If I run cfdisk I get: FATAL ERROR: Bad logical partition 6: enlarged logical partitions overlap.

I'm going to delete and re-create the partitions that I've changed and see what happens.

EDIT3: Ok, so I've re-created the partitions, synced from the backups again and made the necessary changes.

I get the same errors as above. I managed to get hold of some of the journald output:

From journalctl the main errors are now:

systemd-udevd cdrom_id --lock-media /dev/sr0 terminated by signal 15
systemd-udevd ata_id --export /dev/sda terminated by signal 15
systemd Failed at step EXEC spawning /bin/plymouth: No such file or directory
systemd-udevd timeout, giving up waiting for workers to finish
Unit systemd-udevd.service entered failed state

Any help would be appreciated. I'll probably reinstall if I can't get it fixed by tomorrow afternoon.

Last edited by llawwehttam (2012-12-13 00:49:50)


NERD in Training :: Please be Gentle tongue

Offline

#2 2012-12-13 02:32:50

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,675

Re: Run into issues moving an installation.

Do you still get the cfdisk error?

Post fstab, listing from cfdisk (e.g. fdisk -l /dev/sda or whatever) as relevant and boot loader config file. Also mkinitcpio.conf.


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Offline

#3 2012-12-13 16:00:29

llawwehttam
Member
From: United Kingdom
Registered: 2010-01-19
Posts: 180
Website

Re: Run into issues moving an installation.

cfr wrote:

Do you still get the cfdisk error?

Post fstab, listing from cfdisk (e.g. fdisk -l /dev/sda or whatever) as relevant and boot loader config file. Also mkinitcpio.conf.

As I deleted and re-created the partitions I no longer get the cfdisk error.

fdisk -l /dev/sda/ :

Disk /dev/sda: 500.1 GB, 500107862016 bytes, 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xa8a8a8a8

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      718847      358400    7  HPFS/NTFS/exFAT
/dev/sda2          718848   779448319   389364736    7  HPFS/NTFS/exFAT
/dev/sda3       779450368   779642879       96256   83  Linux
/dev/sda4       779642880   976773167    98565144    5  Extended
/dev/sda5       779642943   809636234    14996646   83  Linux
/dev/sda6       809636298   959635139    74999421   83  Linux
/dev/sda7       959635203   976773167     8568982+  83  Linux

grub.cfg:

### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"

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_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  cfd61216-cc8b-400c-975c-029388644762
else
  search --no-floppy --fs-uuid --set=root cfd61216-cc8b-400c-975c-029388644762
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_US
  insmod gettext
fi
terminal_input console
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch GNU/Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-cfd61216-cc8b-400c-975c-029388644762' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  3ebea9c2-4d93-4247-a593-334917b91391
	else
	  search --no-floppy --fs-uuid --set=root 3ebea9c2-4d93-4247-a593-334917b91391
	fi
	echo	'Loading Linux core repo kernel ...'
	linux	/vmlinuz-linux root=UUID=cfd61216-cc8b-400c-975c-029388644762 ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/initramfs-linux.img
}
menuentry 'Arch GNU/Linux (Fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-fallback-cfd61216-cc8b-400c-975c-029388644762' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  3ebea9c2-4d93-4247-a593-334917b91391
	else
	  search --no-floppy --fs-uuid --set=root 3ebea9c2-4d93-4247-a593-334917b91391
	fi
	echo	'Loading Linux core repo kernel ...'
	linux	/vmlinuz-linux root=UUID=cfd61216-cc8b-400c-975c-029388644762 ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/initramfs-linux-fallback.img
}
menuentry "Windows 8 Pro" {
	set root=(hd0,1)
	chainloader (hd0,1)+1
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### 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 ###

mkinitcpio.conf (onkly showing the hooks, the rest are empty)

HOOKS="base autodetect block udev filesystems usbinput fsck"

EDIT: Just to clarify, I still get the errors in the first post. I haven't needed to use the arch install on the machine in the last few days as I'm working almost purely on my desktop at the moment. I'll need the install working by Christmas though so I'll wipe and re-install then if I still haven't found a solution.

Last edited by llawwehttam (2012-12-16 03:13:33)


NERD in Training :: Please be Gentle tongue

Offline

#4 2012-12-21 16:10:02

llawwehttam
Member
From: United Kingdom
Registered: 2010-01-19
Posts: 180
Website

Re: Run into issues moving an installation.

OK, I'm probably just going to re-install later today or tomorrow. And last minute help would be appreciated.


NERD in Training :: Please be Gentle tongue

Offline

Board footer

Powered by FluxBB