You are not logged in.

#1 2009-12-05 13:33:27

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

copied my Arch root partition to a new one but I can't boot [SOLVED]

I booted to my arch live cd and copied my Arch / partition (/dev/sda1) to an empty partition (/dev/sda9) via a cp -a command.  The new partition should now contains an exact copy of my old root partition.  I also modified the /etc/fstab in the new partition to reflect the new block device for the root filesystem.  I also added a line to my menu.lst to boot it.  I didn't do something right because I get a kernel panic when grub boots into the new partition.

menu.lst entry:

title           Arch Testing
root            (hd0,8)
kernel          /boot/vmlinuz26 root=/dev/sda9 ro quiet vga=773 acpi_enforce_resources=lax vga=773
initrd          /boot/kernel26.img

Ideas?

EDIT: Just read this wiki page

The fix as root:

 mount /dev/sda9 /mnt
cd /mnt/dev
rm console ; mknod -m 600 console c 5 1
rm null ; mknod -m 666 null c 1 3 
rm zero ; mknod -m 666 zero c 1 5 
mount -o bind /dev /mnt/dev
mount -t proc none /mnt/proc
mount -o bind /sys /mnt/sys
cd /
chroot /mnt /bin/bash
mkinitcpio -p kernel26

Last edited by graysky (2009-12-05 15:14:01)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB