Gentoo Archives: gentoo-user

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

Attachments

File name MIME type
signature.asc application/pgp-signature