Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
moving working installation
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
apiaio
Apprentice
Apprentice


Joined: 04 Dec 2008
Posts: 208

PostPosted: Sat Dec 01, 2018 5:16 pm    Post subject: moving working installation Reply with quote

I need move existing installation from sdb6 (100G) into sda3 (90G) so that the system was bootable. Is it possible?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7092
Location: Saint Amant, Acadiana

PostPosted: Sat Dec 01, 2018 5:26 pm    Post subject: Reply with quote

I use 'cp -a' when I upgrade hard drives. But I like living simple. I'm sure there are beautiful sophisticated methods to do it.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Muso
l33t
l33t


Joined: 22 Oct 2002
Posts: 980
Location: The Holy city of Honolulu

PostPosted: Sat Dec 01, 2018 5:47 pm    Post subject: Reply with quote

Jaglover wrote:
I use 'cp -a' when I upgrade hard drives. But I like living simple. I'm sure there are beautiful sophisticated methods to do it.


rsync -avx is my method.
_________________
Time is a great teacher, but unfortunately it kills all its pupils.
Back to top
View user's profile Send private message
apiaio
Apprentice
Apprentice


Joined: 04 Dec 2008
Posts: 208

PostPosted: Sat Dec 01, 2018 6:05 pm    Post subject: Reply with quote

Well.
To copy files and directories is only part of the work. Main question is: how to make copied system bootable.
I use grub of another distro.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43198
Location: 56N 3W

PostPosted: Sat Dec 01, 2018 6:07 pm    Post subject: Reply with quote

apiaio,

However you do the filesystem copy, update your boot loader to point to the new home and update /etc/fstab once its in its new home.

Its quite safe as you can briefly have two entries in grub.conf one for the old install and one for the new install.
If the boot partition or the boot HDD are going to change too, there are a few extra steps.

You cannot copy the live filesystem, so boot from your install media for the copy.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Muso
l33t
l33t


Joined: 22 Oct 2002
Posts: 980
Location: The Holy city of Honolulu

PostPosted: Sat Dec 01, 2018 6:08 pm    Post subject: Reply with quote

apiaio wrote:
Well.
To copy files and directories is only part of the work. Main question is: how to make copied system bootable.
I use grub of another distro.


Edit the grub.conf.

https://wiki.gentoo.org/wiki/GRUB2
_________________
Time is a great teacher, but unfortunately it kills all its pupils.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7092
Location: Saint Amant, Acadiana

PostPosted: Sat Dec 01, 2018 7:23 pm    Post subject: Reply with quote

There is /boot/grub/grub.cfg and it is OK to edit it if Gentoo is your only distro. However, here we have another distro managing Grub, meaning all edits there will be lost sooner or later.
_________________
Please learn how to denote units correctly!
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