Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] LVM2 + MDRAID chroot
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
shuuraj
n00b
n00b


Joined: 13 Jan 2014
Posts: 26

PostPosted: Tue Jan 14, 2014 3:03 pm    Post subject: [SOLVED] LVM2 + MDRAID chroot Reply with quote

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
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2424
Location: Germany

PostPosted: Wed Jan 15, 2014 12:22 am    Post subject: Reply with quote

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...
_________________
Linux-User @ VServer (Debian), Desktop (Gentoo), Netbook (Ubuntu), Router (OpenWRT), PDA (Cacko), Smartphone (Android)
Back to top
View user's profile Send private message
shuuraj
n00b
n00b


Joined: 13 Jan 2014
Posts: 26

PostPosted: Wed Jan 29, 2014 9:38 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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