View previous topic :: View next topic |
Author |
Message |
koschi Tux's lil' helper


Joined: 09 Oct 2004 Posts: 121 Location: Tianjin, CN
|
Posted: Tue Jan 05, 2016 1:36 pm Post subject: [solved] Move Gentoo installation |
|
|
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 |
|
 |
Syl20 Guru


Joined: 04 Aug 2005 Posts: 569 Location: France
|
Posted: Tue Jan 05, 2016 4:29 pm Post subject: |
|
|
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 |
|
 |
otakugeek n00b


Joined: 26 Jun 2014 Posts: 50
|
Posted: Wed Jan 06, 2016 3:22 am Post subject: |
|
|
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 |
|
 |
koschi Tux's lil' helper


Joined: 09 Oct 2004 Posts: 121 Location: Tianjin, CN
|
Posted: Wed Jan 06, 2016 4:15 am Post subject: |
|
|
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 |
|
 |
mrbassie l33t


Joined: 31 May 2013 Posts: 628
|
|
Back to top |
|
 |
Ant P. Watchman

Joined: 18 Apr 2009 Posts: 6921
|
Posted: Wed Jan 06, 2016 8:28 pm Post subject: |
|
|
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 |
|
 |
koschi Tux's lil' helper


Joined: 09 Oct 2004 Posts: 121 Location: Tianjin, CN
|
Posted: Thu Jan 07, 2016 11:11 am Post subject: |
|
|
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 |
|
 |
koschi Tux's lil' helper


Joined: 09 Oct 2004 Posts: 121 Location: Tianjin, CN
|
Posted: Thu Jan 14, 2016 1:34 am Post subject: |
|
|
Short update:
Got my data moved from / and /home via tar into 2 btrfs subvolumes. The new laptop is booting happily with it
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 |
|
 |
|