Gentoo Archives: gentoo-amd64

From: Drake Donahue <donahue95@×××××××.net>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] Chroot problem
Date: Fri, 08 Aug 2014 16:06:36
Message-Id: 1407513992.18004.1.camel@comcast.net
In Reply to: [gentoo-amd64] Chroot problem by mr_L4N
1 On Fri, 2014-08-08 at 17:39 +0200, mr_L4N wrote:
2 > For a kernel problem i can't boot my system, then i would like to
3 > chroot for repair.
4 >
5 > I use 6 HD with systemd and grub2; when i try to mount my root partition
6 > "can't find /dev/sdc3 in /etc/fstab".
7 >
8 > With fdisk -l i see it and with live DVD i can mount it and enter in.
9
10
11 boot livecd/usb to a network connection, mount the gentoo partitions,
12 enter the chroot, nominally:
13 mount /dev/sdc3 /mnt/gentoo
14 mount /dev/sdc1 /mnt/gentoo/boot
15 cp -L /etc/resolv.conf /mnt/gentoo/etc/
16 mount -t proc none /mnt/gentoo/proc
17 mount --rbind /sys /mnt/gentoo/sys
18 mount --rbind /dev /mnt/gentoo/dev
19 chroot /mnt/gentoo /bin/bash
20
21 source /etc/profile
22 export PS1="(chroot) $PS1"
23
24 when done working in the chroot, make a graceful exit:
25 exit
26 cd
27 umount -l /mnt/gentoo/dev{/shm,/pts,}
28 umount -l /mnt/gentoo{/boot,/proc,sys,}
29 reboot

Replies

Subject Author
[gentoo-amd64] Re: Chroot problem mr_L4N <serverplus@×××××.com>