Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ====================================================
- The short short version (see full here http://pastebin.com/4NLFkdzQ)
- ====================================================
- parted /dev/sda mktable gpt
- parted /dev/sda mkpart root 1 -- -1
- mkfs.ext4 /dev/sda1
- mount /dev/sda1 /mnt/root
- # this only copies rootfs. If you have separate /home, /var, etc. then you need to run separate commands for those.
- rsync -avHPAXx sourceMachine:/ /mnt/root/
- cd /mnt/root
- mkdir dev proc sys media mnt
- # next 4 lines: general, non-arch based (works for arch too, but pacman won't work within chroot)
- mount -o rbind /dev dev
- mount -o rbind /proc proc
- mount -o rbind /sys sys
- chroot /mnt/root
- # next 1 line: archlinux based (requires arch-install-scripts package)
- arch-chroot /mnt/root
- blkid
- vim /etc/fstab
- make sure UUIDs are right
- vim /etc/udev/rules.d/70-persistent-net.rules
- (Optional) remove all lines from this file
- grub-install /dev/$disk
- grub-mkconfig -o /boot/grub/grub.cfg
- vim /boot/grub/grub.cfg
- make sure UUIDs are right
- #debian based: (not sure if it's -c or -u)
- update-initramfs -u
- #openSUSE:
- mkinitrd
- #arch/manjaro; replace "linux" with your kernel name. List first with ls.
- mkinitcpio -p /etc/mkinitcpio.d/linux.preset
- #arch/manjaro alternative; (add kernel version in there, based on filenames in /lib/modules/)
- mkinitramfs -g /boot/initramfs-...-x86_64.img -k ...
- #debian based:
- vim /etc/network/interfaces
- #openSUSE:
- vim /etc/sysconfig/network/ifcfg-eth0
- exit
Add Comment
Please, Sign In to add comment