Gentoo Archives: gentoo-user

From: symack <symack@×××××.com>
To: gentoo-user <gentoo-user@l.g.o>
Subject: [gentoo-user] mount: Permission Denied in CHROOT
Date: Tue, 15 Aug 2017 03:32:57
Message-Id: CAGWRaZZ-Dqw-vLScEve3G9kXHva=pLEBeEcpsHVpsrL_uizt-g@mail.gmail.com
1 Hello Everyone,
2
3 New installation on an older x346 system that has a HW raid serveraid7k. I
4 have the appropriate kernel driver compiled `aic79xx`.
5
6 lscpi:
7
8 00:00.0 Host bridge: Intel Corporation E7520 Memory Controller Hub (rev 0c)
9 00:00.1 Unassigned class [ff00]: Intel Corporation E7525/E7520 Error
10 Reporting Registers (rev 0c)
11 00:02.0 PCI bridge: Intel Corporation E7525/E7520/E7320 PCI Express Port A
12 (rev 0c)
13 00:04.0 PCI bridge: Intel Corporation E7525/E7520 PCI Express Port B (rev
14 0c)
15 00:05.0 PCI bridge: Intel Corporation E7520 PCI Express Port B1 (rev 0c)
16 00:06.0 PCI bridge: Intel Corporation E7520 PCI Express Port C (rev 0c)
17 00:08.0 System peripheral: Intel Corporation E7525/E7520/E7320 Extended
18 Configuration Registers (rev 0c)
19 00:1d.0 USB controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI
20 Controller #1 (rev 02)
21 00:1d.1 USB controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI
22 Controller #2 (rev 02)
23 00:1d.7 USB controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI
24 Controller (rev 02)
25 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2)
26 00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface
27 Bridge (rev 02)
28 00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE
29 Controller (rev 02)
30 00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller
31 (rev 02)
32 01:06.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI]
33 RV100 [Radeon 7000 / Radeon VE]
34 02:00.0 PCI bridge: Intel Corporation 6700PXH PCI Express-to-PCI Bridge A
35 (rev 09)
36 02:00.2 PCI bridge: Intel Corporation 6700PXH PCI Express-to-PCI Bridge B
37 (rev 09)
38 03:03.0 Network controller: MYRICOM Inc. Myrinet 2000 Scalable Cluster
39 Interconnect (rev 06)
40 05:00.0 Ethernet controller: Broadcom Limited NetXtreme BCM5721 Gigabit
41 Ethernet PCI Express (rev 11)
42 06:00.0 Ethernet controller: Broadcom Limited NetXtreme BCM5721 Gigabit
43 Ethernet PCI Express (rev 11)
44 07:00.0 PCI bridge: Intel Corporation 80332 [Dobson] I/O processor
45 (A-Segment Bridge) (rev 07)
46 07:00.2 PCI bridge: Intel Corporation 80332 [Dobson] I/O processor
47 (B-Segment Bridge) (rev 07)
48 08:0e.0 RAID bus controller: Adaptec ServeRAID Controller (rev 07)
49
50
51
52 emerge --info
53
54
55 Portage 2.3.6 (python 3.4.5-final-0, hardened/linux/amd64, gcc-5.4.0,
56 glibc-2.23-r4, 4.8.17-hardened-r2 x86_64)
57 =================================================================
58 System uname:
59 Linux-4.8.17-hardened-r2-x86_64-Intel-R-_Xeon-TM-_CPU_3.60GHz-with-gentoo-2.3
60 KiB Mem: 8061620 total, 6539044 free
61 KiB Swap: 0 total, 0 free
62 Timestamp of repository gentoo: Mon, 07 Aug 2017 15:30:01 +0000
63 sh bash 4.3_p48-r1
64 ld GNU ld (Gentoo 2.28 p1.2) 2.28
65 app-shells/bash: 4.3_p48-r1::gentoo
66 dev-lang/perl: 5.24.1-r2::gentoo
67 dev-lang/python: 2.7.12::gentoo, 3.4.5::gentoo
68 dev-util/pkgconfig: 0.28-r2::gentoo
69 sys-apps/baselayout: 2.3::gentoo
70 sys-apps/openrc: 0.28::gentoo
71 sys-apps/sandbox: 2.10-r3::gentoo
72 sys-devel/autoconf: 2.69::gentoo
73 sys-devel/automake: 1.15-r2::gentoo
74 sys-devel/binutils: 2.28-r2::gentoo
75 sys-devel/gcc: 5.4.0-r3::gentoo
76 sys-devel/gcc-config: 1.7.3::gentoo
77 sys-devel/libtool: 2.4.6-r3::gentoo
78 sys-devel/make: 4.2.1::gentoo
79 sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
80 sys-libs/glibc: 2.23-r4::gentoo
81 Repositories:
82
83 gentoo
84 location: /usr/portage
85 sync-type: rsync
86 sync-uri: rsync://rsync.gentoo.org/gentoo-portage
87 priority: -1000
88
89 ACCEPT_KEYWORDS="amd64"
90 ACCEPT_LICENSE="* -@EULA"
91 CBUILD="x86_64-pc-linux-gnu"
92 CFLAGS="-march=core2 -msse4.1 -msse4.2 -mtune=generic -O2 -pipe"
93 CHOST="x86_64-pc-linux-gnu"
94 CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc
95 /usr/share/gnupg/qualified.txt"
96 CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf
97 /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
98 CXXFLAGS="-march=core2 -msse4.1 -msse4.2 -mtune=generic -O2 -pipe"
99 DISTDIR="/usr/portage/distfiles"
100 FCFLAGS="-O2 -pipe"
101 FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks
102 ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs
103 protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs
104 unmerge-orphans userfetch userpriv usersandbox usersync xattr"
105 FFLAGS="-O2 -pipe"
106 GENTOO_MIRRORS="http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/
107 ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
108 LANG="en_US.utf8"
109 LDFLAGS="-Wl,-O1 -Wl,--as-needed"
110 MAKEOPTS="-j2"
111 PKGDIR="/usr/portage/packages"
112 PORTAGE_CONFIGROOT="/"
113 PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
114 --omit-dir-times --compress --force --whole-file --delete --stats
115 --human-readable --timeout=180 --exclude=/distfiles --exclude=/local
116 --exclude=/packages --exclude=/.git"
117 PORTAGE_TMPDIR="/var/tmp"
118 USE="acl amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri gdbm
119 hardened iconv ipv6 justify modules multilib ncurses nls nptl openmp pam
120 pax_kernel pcre pie readline seccomp session ssl ssp tcpd unicode urandom
121 xattr xtpax zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp
122 atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968
123 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx
124 via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb
125 unixd actions alias auth_basic authn_alias authn_anon authn_dbm
126 authn_default authn_file authz_dbm authz_default authz_groupfile authz_host
127 authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate
128 dir disk_cache env expires ext_filter file_cache filter headers include
129 info log_config logio mem_cache mime mime_magic negotiation rewrite
130 setenvif speling status unique_id userdir usertrack vhost_alias"
131 CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon
132 braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool
133 swap syslog" CPU_FLAGS_X86="mmx sse sse2" ELIBC="glibc"
134 GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt
135 gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore
136 rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox
137 ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux"
138 LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb
139 ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console
140 presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice"
141 PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5"
142 PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4"
143 RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel
144 nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock
145 lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee
146 tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
147 Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK,
148 LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
149 PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
150
151
152
153 When I try to mount the partitions outside of chroot everything mounts
154 fine. Within chroot, I get a "permission denied" when trying to mount. I am
155 kind of stuck because when trying to install grub, I am getting:
156
157 grub-install /dev/sda
158 Installing for i386-pc platform.
159 grub-install: warning: disk does not exist, so falling back to partition
160 device /dev/sda4.
161 grub-install: warning: disk does not exist, so falling back to partition
162 device /dev/sda4.
163 grub-install: warning: disk does not exist, so falling back to partition
164 device /dev/sda4.
165 grub-install: error: disk `hostdisk//dev/sda4' not found.
166
167
168 Your help is greatly appreciated.
169
170 Mike

Replies

Subject Author
Re: [gentoo-user] mount: Permission Denied in CHROOT Jigme Datse Yli-RAsku <jigme.datse@×××××××××××××××.com>
Re: [gentoo-user] mount: Permission Denied in CHROOT "J. Roeleveld" <joost@××××××××.org>