tech log on gentoo, linux, and random stuff

Posts Tagged ‘unable to open an initial console

migrating gentoo to a new partition

leave a comment »

quick note to myself, copy with caution..

mkfs.ext4 /dev/sda2
mount /dev/sda2 /mnt/newgentoo
cp -xavv / /mnt/newgentoo/
# -x is used b/c I have some dirs as mount points of fs on other disks
cd /mnt/newgentoo/dev
# need /dev/console and /dev/null for a successful boot
# otherwise will get an error of "unable to open an initial console"
# cf. http://www.gentoo.org/doc/en/udev-guide.xml, 3. Known issues
mknod -m 660 console c 5 1
mknod -m 660 null c 1 3

and finally, don’t forget to change /boot/grub/menu.lst and /mnt/newgentoo/etc/fstab

Written by zsh

December 5, 2010 at 8:28 pm