Gentoo Archives: gentoo-amd64

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

Replies

Subject Author
Re: [gentoo-amd64] Re: Chroot problem Drake Donahue <donahue95@×××××××.net>