Gentoo Archives: gentoo-amd64

From: Drake Donahue <donahue95@×××××××.net>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] Re: Chroot problem
Date: Fri, 08 Aug 2014 17:11:49
Message-Id: 1407517904.18004.3.camel@comcast.net
In Reply to: [gentoo-amd64] Re: Chroot problem by mr_L4N
1 On Fri, 2014-08-08 at 18:17 +0200, mr_L4N wrote:
2 > Probably it's better to read questions before give an answer.
3 >
4 > I can't mount the gentoo partition; when i try i see "mount: can't find
5 > /dev/sdc3 in /etc/fstab"
6 >
7 > Il venerdì 8 agosto 2014, Drake Donahue <donahue95@×××××××.net> ha scritto:
8 >
9 > > On Fri, 2014-08-08 at 17:39 +0200, mr_L4N wrote:
10 > > > For a kernel problem i can't boot my system, then i would like to
11 > > > chroot for repair.
12 > > >
13 > > > I use 6 HD with systemd and grub2; when i try to mount my root partition
14 > > > "can't find /dev/sdc3 in /etc/fstab".
15 > > >
16 > > > With fdisk -l i see it and with live DVD i can mount it and enter in.
17 > >
18 > >
19 > > boot livecd/usb to a network connection, mount the gentoo partitions,
20 > > enter the chroot, nominally:
21 > > mount /dev/sdc3 /mnt/gentoo
22 > > mount /dev/sdc1 /mnt/gentoo/boot
23 > > cp -L /etc/resolv.conf /mnt/gentoo/etc/
24 > > mount -t proc none /mnt/gentoo/proc
25 > > mount --rbind /sys /mnt/gentoo/sys
26 > > mount --rbind /dev /mnt/gentoo/dev
27 > > chroot /mnt/gentoo /bin/bashProbably it's better to read questions before give an answer.
28 > >
29 > > source /etc/profile
30 > > export PS1="(chroot) $PS1"
31 > >
32 > > when done working in the chroot, make a graceful exit:
33 > > exit
34 > > cd
35 > > umount -l /mnt/gentoo/dev{/shm,/pts,}
36 > > umount -l /mnt/gentoo{/boot,/proc,sys,}
37 > > reboot
38 > >
39 > >
40 > >
41 Top posting is discouraged on this list.
42 Actually, I read your email several times. I found it lacking detail and
43 substance and so I guessed for your problem. If you "boot livecd/usb to
44 a network connection" and then run "mount /dev/sdc3 /mnt/gentoo" you
45 should not receive "can't find /dev/sdc3 in /etc/fstab". Most reasonable
46 explanation for that response is running "mount /dev/sdc3" from the
47 livemedia which specifies the partition only and results in mount
48 looking for mountpoint and options in /etc/fstab on the livemedia. The
49 livemedia has no listing for /dev/sdc3 in /etc/fstab.
50
51 example:(sda2 is not in my fstab) ~ # mount /dev/sda2
52 mount: can't find /dev/sda2 in /etc/fstab
53
54 example: ~ # mount /mnt/gentoo
55 mount: can't find /mnt/gentoo in /etc/fstab
56
57 example: ~ # mount /dev/sda2 /mnt/gentoo
58 ~ # mount | grep -i sda2
59 /dev/sda2 on /mnt/gentoo type vfat
60 (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
61
62 specifying device and mount point without information on either in fstab
63 causes mount to probe for information and use defaults.