z·eeki·sh

tech log on gentoo, linux, and random stuff

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

Advertisements

Written by zsh

December 5, 2010 at 8:28 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: