Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Old PC -> New PC ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Gregoire
Apprentice
Apprentice


Joined: 15 Apr 2006
Posts: 292

PostPosted: Sun Apr 22, 2012 9:49 pm    Post subject: Old PC -> New PC ? Reply with quote

Hello,

I have ordered new components for a new PC (this one is now 5 years old and still more or less good but really too noisy and a little bit slow even with my core 2 duo @2.4 Ghz).
The new system will be Ivy Bridge based and with a 4 TB hard disc (no I don't like SSD and as I don't powerdown my computer and have my applications open it won't run faster with one) replacing my "raid" of 4 400Gb hard discs (with lvm2).

For me the "best" solution could be to prepare the new system on the old one.

Would there be a major problem to plug the new disc on the old motherboard and partition it here (GPT, I thought of 100Gb for / ext4, small swap partition and the rest for /data with xfs) then do a
mount /dev/sde1 /mnt/newHD
rsync -avPx / /mnt/newHD
mount /dev/sde3 /mnt/newHD/data
do some magick (?) for the needed entries in dev
rsync -avPx /data /mnt/newHD/data
then install grub on the newHD.

Change the newHD to the new system, remove the nvidia use flags, add the needed (?) for HD4000 and do the emerge upgrade (some things won't work out of the box but I use gentoo for quiet long so it's certainly fixable).

What do you htink ?
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1945
Location: Zurich, Switzerland

PostPosted: Sun Apr 22, 2012 10:12 pm    Post subject: Reply with quote

sounds reasonable. 100GB for the entire system is ok. what are you doing about you home? same partition? or is it on data? (just curious)

the cloning steps could have one (possibly fatal) problem: recursion. (or would that only happen in subsequent runs?)
to be on the safe side, I would add one step, which would also cover your /dev problem.
Code:
mount /dev/sde1 /mnt/newHD
mount -o bind / /mnt/oldsystem
rsync -avx /mnt/oldsystem/. /mnt/newHD
mount /dev/sde3 /mnt/newHD/data
rsync -avPx /data/. /mnt/newHD/data
mount -o bind /dev /mnt/newHD/dev
mount proc -t proc /mnt/newHD/proc

chroot /mnt/newHD /bin/bash
env-update
grub-install /dev/sde
exit


some other things to thing about:
* fstab
* drivers (--> rebuild kernel)
* grub.cfg/menu.lst
* clean out /usr/portage/distfiles
* purge some old packages (emerge -avc)

V.

PS. if you are preparing, why aren't building everything from scratch? removing some old stuff you no longer need?
_________________
read the portage output!
If my answer is too concise, ask for an explanation.
Back to top
View user's profile Send private message
platojones
Veteran
Veteran


Joined: 23 Oct 2002
Posts: 1602
Location: Just over the horizon

PostPosted: Sun Apr 22, 2012 10:24 pm    Post subject: Reply with quote

I made the big upgrade a few weeks ago. I went from a 4 year old Core2 based Q9550 to the new X78 platform and a Sandy Bridge E. Since I got a new drive, I just copied the last backup onto the new disk and that was it...the kernel and rootfs just worked.

One big difference with the newest MBs though...they've begun to transition from traditional BIOS to UEFI and that is a whole new world (and a whole new GRUB). So, depending on the MB you get, better start studying up on UEFI/GPT/GRUB2.
Back to top
View user's profile Send private message
Gregoire
Apprentice
Apprentice


Joined: 15 Apr 2006
Posts: 292

PostPosted: Mon Apr 23, 2012 6:19 am    Post subject: Reply with quote

I thought of putting home into the system (know I use 9Gb for home which is really enough).

Thanks for the extra step and I wasn't sure if I had to go to GRUB2 but it seems so (will be UEFI based board).
Back to top
View user's profile Send private message
Gregoire
Apprentice
Apprentice


Joined: 15 Apr 2006
Posts: 292

PostPosted: Mon Apr 30, 2012 7:00 am    Post subject: Reply with quote

platojones wrote:
I made the big upgrade a few weeks ago. I went from a 4 year old Core2 based Q9550 to the new X78 platform and a Sandy Bridge E. Since I got a new drive, I just copied the last backup onto the new disk and that was it...the kernel and rootfs just worked.

One big difference with the newest MBs though...they've begun to transition from traditional BIOS to UEFI and that is a whole new world (and a whole new GRUB). So, depending on the MB you get, better start studying up on UEFI/GPT/GRUB2.


I have ordered the CPU which shall arrive about tomorrow...

So I have to prepare the Hard Disc.

Regarding GRUB 2 Guide I should use something like gdisk and create one "small" vfat partition on the HD and then (order don't matter) my other partitions.

I don't know if I should make a small ext2 (or other) /boot and then another small vfat for efi related files (like a little bit implied (well maybe not) at GRUB2 - Gentoo Wiki or I should be fine with /boot being only a directory on my main / ?

Any recommendation for the size of the "boot" partition(s) ?

Thank you very much for all help !!!
Back to top
View user's profile Send private message
platojones
Veteran
Veteran


Joined: 23 Oct 2002
Posts: 1602
Location: Just over the horizon

PostPosted: Wed May 02, 2012 12:19 am    Post subject: Reply with quote

Congrats on the new build...

First, I cheated a little bit...I dual boot windows 7 on this machine and windows created the small (100 mb) vfat EFI partition for me. Nevertheless, that is correct...gdisk to create a small 100 mb vfat GPT partion. I also created a 10 GB ext2 boot partition to store my kernels which I mount the smaller 100 mb EFI partition on. Then, just create all of your other GPT partitions sized to you requirements.

I really don't know if there are any size restriction on the vfat EFI partition, but 100 mb seems fine...the EFI files don't take very much space, even for a dual boot system. The /boot partition can be any size you want (depending on how many kernel images you want to keep around). 10GB was about right for my tastes...and that's still a lot of room for kernels and the there is no 'grub' directory anymore.
Back to top
View user's profile Send private message
keet
Guru
Guru


Joined: 09 Sep 2008
Posts: 568

PostPosted: Thu May 03, 2012 6:18 pm    Post subject: Reply with quote

I used to have a separate boot partition for Gentoo, but not anymore. Maybe some will consider it a bad idea, but I just point GRUB to /usr/src/linux/arch/x86/boot/bzImage. GRUB is installed on my EFI partition, and it works very nicely. I found boot times to be a few seconds faster with EFI and GPT than than were with BIOS and MBR.
Back to top
View user's profile Send private message
Gregoire
Apprentice
Apprentice


Joined: 15 Apr 2006
Posts: 292

PostPosted: Thu May 03, 2012 8:32 pm    Post subject: Reply with quote

I finally got it with booting from grub2 in UEFI from ubuntu 12.04 cd but with my complete system : so nice to finally have a 2560x1600 console at boot !!!

I have gone for one 250Mb /boot partition in vfat and one other 150Gb for the system (ext4) and the rest for data in xfs.

It took me some time to understand grub2/UEFI and also how to use intel HD4000 (I have still to achieve to compil a vaapi's mplayer).

Thanks for all !!!
Back to top
View user's profile Send private message
katafitos
n00b
n00b


Joined: 22 Nov 2006
Posts: 56
Location: Greece

PostPosted: Sat May 26, 2012 5:22 am    Post subject: Reply with quote

I have to upgrade from Athlon XP (nvidia2) to Ivy Bridge 3770 (H77) which I believe I should change nearly the whole Kernel.

Any insights for the Kernel options?
Back to top
View user's profile Send private message
Gregoire
Apprentice
Apprentice


Joined: 15 Apr 2006
Posts: 292

PostPosted: Sat May 26, 2012 7:15 am    Post subject: Reply with quote

It took me some time to understand the option for framebuffer and X11, I put my in case that help anyone config (for 3.4.0) in case that help anyone.

I didn't enable hyperthreading and I see 8 cores so I think it's right but I am not certain.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum