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 |