Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Move Gentoo 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
koschi
Tux's lil' helper
Tux's lil' helper


Joined: 09 Oct 2004
Posts: 118
Location: Tianjin, CN

PostPosted: Tue Jan 05, 2016 1:36 pm    Post subject: [solved] Move Gentoo installation Reply with quote

Hi,

I need some troubleshooting help for moving my Gentoo installation to a new laptop.

Partition layout:
/boot as ext2
/ as btrfs
/home as btrfs

My plan is the following:

  • configure kernel on existing laptop for hardware on new laptop - done
  • clone partitions with clonezilla - done
  • restore partitions on new laptop with clonezilla - done
  • adapt necessary paths on new laptop (e.g. /etc/fstab) - partly done since / cannot be mounted
  • boot happily on the new laptop - to be done

I can mount the /boot partition (ext2) using sysrescuecd. The / and /home partition cannot be mounted. I got the following message:
Code:
BTRFS (/dev/sda6): bad tree block start 0 10984570880
BTRFS: failed to read block groups: -5
BTRFS: open_ctree failed


Did I miss something?

Edit: added more failure message lines
_________________
Der Digitalrechner ist ein Vollidiot mit einer einseitigen Begabung im schnellen Addieren.


Last edited by koschi on Thu Jan 14, 2016 1:35 am; edited 2 times in total
Back to top
View user's profile Send private message
Syl20
Guru
Guru


Joined: 04 Aug 2005
Posts: 564
Location: France

PostPosted: Tue Jan 05, 2016 4:29 pm    Post subject: Reply with quote

Maybe you'd better recreate the partitions and filesystems from scratch, and just rsync or tar/untar your data. If your new disk has a different "way of adressing its blocks" (I don't know how to explicit that clearly in english), such problems can occur.
Back to top
View user's profile Send private message
otakugeek
n00b
n00b


Joined: 26 Jun 2014
Posts: 50

PostPosted: Wed Jan 06, 2016 3:22 am    Post subject: Reply with quote

you just need make a backup with tar gz or xz keeping the permission

1º make backup all disk with permission using a livecd(for security)
2º on new disk manager the partitions and mount
3º uncompress the backup

done!

this process is as the stage3 works, but in your case is stage 4, read about stage 4 too.
Back to top
View user's profile Send private message
koschi
Tux's lil' helper
Tux's lil' helper


Joined: 09 Oct 2004
Posts: 118
Location: Tianjin, CN

PostPosted: Wed Jan 06, 2016 4:15 am    Post subject: Reply with quote

otakugeek wrote:
you just need make a backup with tar gz or xz keeping the permission
[...]


Hi,

I'm not familiar with tar and permissions. Would this fit?

Backup root:
# tar -cSp --numeric-owner --atime-preserve -f /target/root.tar.gz .

Restore root:
# tar -xSpv --atime-preserve -f /source/root.tar.gz


Backup home:
# tar -cSpv --atime-preserve -f /target/home.tar .

Restore home:
# tar -xSpv --atime-preserve -f /source/home.tar

Remark: All executed in the source/target folder.
_________________
Der Digitalrechner ist ein Vollidiot mit einer einseitigen Begabung im schnellen Addieren.
Back to top
View user's profile Send private message
mrbassie
Guru
Guru


Joined: 31 May 2013
Posts: 535

PostPosted: Wed Jan 06, 2016 9:36 am    Post subject: Reply with quote

http://www.gentoo-wiki.info/HOWTO_Custom_Stage4
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5761

PostPosted: Wed Jan 06, 2016 8:28 pm    Post subject: Reply with quote

Don't split / and /home into different partitions unless you have them on separate physical disks; that negates the whole advantage of having btrfs subvolumes.
Back to top
View user's profile Send private message
koschi
Tux's lil' helper
Tux's lil' helper


Joined: 09 Oct 2004
Posts: 118
Location: Tianjin, CN

PostPosted: Thu Jan 07, 2016 11:11 am    Post subject: Reply with quote

Ant P. wrote:
Don't split / and /home into different partitions unless you have them on separate physical disks; that negates the whole advantage of having btrfs subvolumes.

This has a historical background since I was using ext4 before with this partition layout. If i use the stage 4 approach to move my system to the new laptop it has the charming side effect to migrate /home and / as subvolumes on the same btrfs partition. I will give it a try this weekend.
_________________
Der Digitalrechner ist ein Vollidiot mit einer einseitigen Begabung im schnellen Addieren.
Back to top
View user's profile Send private message
koschi
Tux's lil' helper
Tux's lil' helper


Joined: 09 Oct 2004
Posts: 118
Location: Tianjin, CN

PostPosted: Thu Jan 14, 2016 1:34 am    Post subject: Reply with quote

Short update:
Got my data moved from / and /home via tar into 2 btrfs subvolumes. The new laptop is booting happily with it :D

Got some driver issues with the new hardware but that's not a topic for here.

[solved]
_________________
Der Digitalrechner ist ein Vollidiot mit einer einseitigen Begabung im schnellen Addieren.
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