View previous topic :: View next topic |
Author |
Message |
shuuraj n00b
Joined: 13 Jan 2014 Posts: 38
|
Posted: Tue Jan 14, 2014 3:03 pm Post subject: [SOLVED] LVM2 + MDRAID chroot |
|
|
Kann mir jemand sagen, wie ich mich richtig in mein System chroote?
Irgendetwas mache ich falsch. Ich konnte meine Laufwerke zwar mounten jedoch konnte ich bspw. die grub config nicht öffnen. Es erscheint eine Fehlermeldung, diese werde ich später posten sobald ich zu Hause bin.
Last edited by shuuraj on Wed Jan 29, 2014 9:38 am; edited 1 time in total |
|
Back to top |
|
|
frostschutz Advocate
Joined: 22 Feb 2005 Posts: 2977 Location: Germany
|
Posted: Wed Jan 15, 2014 12:22 am Post subject: |
|
|
https://wiki.gentoo.org/wiki/Chroot#Configuration
Bei Root auf LVM / MDRAID wirst das vorher scharfschalten müssen (mdadm --assemble --scan, vgchange -a y). Bei Verschlüsselung noch cryptsetup luksOpen.
Mounten, proc dev sys dazu, chrooten... |
|
Back to top |
|
|
shuuraj n00b
Joined: 13 Jan 2014 Posts: 38
|
Posted: Wed Jan 29, 2014 9:38 am Post subject: |
|
|
Code: |
mount /dev/mdxyz /mnt/gentoo
mount /devmdxyz /mnt/gentoo/boot
cd /
mount -t proc none /mnt/gentoo/proc && mount --rbind /sys /mnt/gentoo/sys && mount --rbind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update && source /etc/profile && export PS1="(chroot) $PS1" |
[/code]- solved |
|
Back to top |
|
|
|