Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Moving 32bit to 64bits keeping old one on same hdd
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
mahdi1234
Guru
Guru


Joined: 19 Feb 2005
Posts: 559
Location: Being There

PostPosted: Fri Jan 12, 2018 7:29 pm    Post subject: Moving 32bit to 64bits keeping old one on same hdd Reply with quote

Hi,

I am thinking about upgrading from 32bit to 64bit gentoo installation and had idea about resizing one of the existing partitions and install 64bit on this space so I would have

/dev/sda1 - boot (used for both archs)
/dev/sda2 - current 32bits
/dev/sda3 - new 64bit install from Gentoo DVD
..
/dev/sda6 - swap (used for both archs)

Then I would

- copy over .config from kernel, enable 64bits and re-compile, re-boot
- copy over make.conf with local overlays
- copy over world file
- copy over /etc (and adjust package.keywords arch)
- copy over ~ (or maybe just selected folders like .mozilla)

Compile everything.

Did I miss something to have identical 64bit system to my existing 32bit? Is there better way to achieve this?
_________________
http://gentoo.mahdi.cz <-- gentoo package search engine
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9646
Location: almost Mile High in the USA

PostPosted: Fri Jan 12, 2018 9:51 pm    Post subject: Reply with quote

Definitely need to watch your kernel config carefully, a lot of the x86 options may not translate over to amd64 options.

I might need to straight copy my 32-bit install and dump a 64-bit stage3 over it minus world and make.conf and start from there. I have too many customizations that it will be tough to convert to 64-bit, mostly webserver and other services I setup on it... *sigh*

Maybe it'd be easier for me to just to dig out an old computer that's not susceptible to spectre/meltdown...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sat Jan 13, 2018 12:43 pm    Post subject: Reply with quote

you could have a common /home form sda2 with sda3 as home, you just need to mount sda2 somewhere, and bind /sda2/home to /home
ie:
Code:
/dev/sda2                                  /somewhere_on_sda3          fstype      noatime   0 0
/somewhere_on_sda3/home   /home      none   bind

Because of this, you also don't need to copy local overlay, but set local overlay to /somewhere_on_sda3/usr/local/portage, or bind /somwhere_on_sda3/usr/local/portage with /usr/local/portage
Same for everything that could be common: either bind /somewhere_on_sda2/usr/portage with /usr/portage, or set PORTDIR="/somwhere_on_sda2/usr/portage", however do not forget to set PKGDIR because it will be really a bad idea to use /usr/portage/packages to hold binaries for 32 and 64bits.

Or if you don't feel "secure" to have /sda2 mount somewhere on sda3, you could create another partition, move /sda2/home content to it, and use that partition as /home on your 32 and 64bits.
Back to top
View user's profile Send private message
mahdi1234
Guru
Guru


Joined: 19 Feb 2005
Posts: 559
Location: Being There

PostPosted: Wed Jan 17, 2018 7:57 pm    Post subject: Reply with quote

Thanks guys, since I'm sick in the bed I went ahead and have now working 64bits system (well not completely, but most thing do work). It was easier/faster than I expected and I still have 32bits on hand in case...
_________________
http://gentoo.mahdi.cz <-- gentoo package search engine
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