Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] GRUB2 installation error
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Mon Oct 31, 2016 3:16 pm    Post subject: Reply with quote

pastebin failed, please rerun
Code:
lspci -k | wgetpaste -t # find the ethernet controller driver used by sysresccd
from just the booted sysresccd/usb or from the chroot. There should be 2 ethernet controllers listed one by realtek one by intel please post wgetpaste url and driver names
_________________
Defund the FCC.
Back to top
View user's profile Send private message
enrico68
Apprentice
Apprentice


Joined: 21 Oct 2016
Posts: 169

PostPosted: Mon Oct 31, 2016 3:31 pm    Post subject: Reply with quote

Code:
lspci -k | wgetpaste -t # find the ethernet controller driver used by sysresccd


https://paste.pound-python.org/show/Ikqq2b1I5fwFLaWVFZ8g

Driver names:

Communication Controller: Intel Corp. 8 Series/C220 Series Chipset family MEI Controller #1

Ethernet Controller: INTEL Corp. ethernet Connection I217-V (rev 04)
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Mon Oct 31, 2016 3:39 pm    Post subject: Reply with quote

Good work!
We crossed in the mail.
lshw says sysresccd only installed driver for intel NIC which is e1000e whick is not configured in your kernel.
Quote:
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=2.3.2-k duplex=full firmware=0.13-4 ip=192.168.1.129 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s

From the chroot with boot partition mounted at /boot:
Code:
cd /usr/src/linux;make menuconfig
edit menuconfig:
Quote:
Device Drivers --->
[*] Network device support --->
[*] Ethernet driver support --->
--- Ethernet driver support
[ ] 3Com devices
[ ] Adaptec devices
[ ] Agere devices
[ ] Alteon devices
< > Altera Triple-Speed Ethernet MAC support
[ ] AMD devices
[ ] ARC devices
[ ] Atheros devices
[ ] Aurora VLSI devices
[ ] Cadence devices
[ ] Broadcom devices
[ ] QLogic BR-series devices
[ ] Cavium ethernet drivers
[ ] Chelsio devices
[ ] Cisco devices
< > Beckhoff CX5020 EtherCAT master support
< > Dave ethernet support (DNET)
[ ] Digital Equipment devices
[ ] D-Link devices
[ ] Emulex devices
[ ] EZchip devices
[ ] Exar devices
[ ] HP devices
[*] Intel devices
< > Intel(R) PRO/100+ support
< > Intel(R) PRO/1000 Gigabit Ethernet support
<M> Intel(R) PRO/1000 PCI-Express Gigabit Ethernet support
[*] Support HW cross-timestamp on PCH devices
< > Intel(R) 82575/82576 PCI-Express Gigabit Ethernet support
< > Intel(R) 82576 Virtual Function Ethernet support
< > Intel(R) PRO/10GbE support
< > Intel(R) 10GbE PCI Express adapters support
< > Intel(R) 10GbE PCI Express Virtual Function Ethernet support
< > Intel(R) Ethernet Controller XL710 Family support
< > Intel(R) XL710 X710 Virtual Function Ethernet support
< > Intel(R) FM10000 Ethernet Switch Host Interface Support
[ ] Intel (82586/82593/82596) devices
< > JMicron(R) PCI-Express Gigabit Ethernet support
[ ] Marvell devices
[ ] Mellanox devices
[ ] Micrel devices
[ ] Myricom devices
< > Myson MTD-8xx PCI Ethernet support
[ ] National Semi-conductor devices
[ ] Netronome(R) devices
[ ] NVIDIA devices
[ ] OKI Semiconductor devices
< > OpenCores 10/100 Mbps Ethernet MAC support
[ ] Packet Engine devices
[ ] QLogic devices
[ ] Qualcomm devices
[ ] Realtek devices
[ ] Renesas devices
[ ] RDC devices
[ ] Rocker devices
[ ] Samsung Ethernet devices
[ ] SEEQ devices
[ ] Silan devices
[ ] Silicon Integrated Systems (SiS) devices
< > Solarflare SFC4000/SFC9000/SFC9100-family support
[ ] SMC (SMSC)/Western Digital devices
[ ] STMicroelectronics devices
[ ] Sun devices
[ ] Synopsys devices
[ ] Tehuti devices
[ ] Texas Instruments (TI) devices
[ ] VIA devices
[ ] WIZnet device
exit enough times to save configuration, then
Code:
make && make modules_install && make install
exit
reboot
the new gentoo system, then run
Code:
ifconfig
which should show an en<something> interface up
_________________
Defund the FCC.
Back to top
View user's profile Send private message
enrico68
Apprentice
Apprentice


Joined: 21 Oct 2016
Posts: 169

PostPosted: Mon Oct 31, 2016 3:58 pm    Post subject: Reply with quote

All done, sir. The only item I could not find in the Linux menuconfig. file was:" [*] Support HW cross-timestamp on PCH devices" . Everything else checks.

What is the next step?


I forgot the last few steps....be right back.... :roll:
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Mon Oct 31, 2016 4:02 pm    Post subject: Reply with quote

also, edit menuconfig and recompile kernel for:
Quote:
Device Drivers --->
Misc devices --->
{*} Intel Management Engine Interface
<M> ME Enabled Intel Chipsets
<M> Intel Trusted Execution Environment with ME Interface


edit menuconfig is my sloppy slang for make changes to the dialog box that appears in response to make menuconfig
_________________
Defund the FCC.
Back to top
View user's profile Send private message
enrico68
Apprentice
Apprentice


Joined: 21 Oct 2016
Posts: 169

PostPosted: Mon Oct 31, 2016 4:05 pm    Post subject: Reply with quote

run

Code:
ifconfig


eno1. Internet works, straight away, as before it would take quite a few minutes to start!
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Mon Oct 31, 2016 4:07 pm    Post subject: Reply with quote

Hooray!! cross mail again. will look at your kernel graphics confog
_________________
Defund the FCC.
Back to top
View user's profile Send private message
enrico68
Apprentice
Apprentice


Joined: 21 Oct 2016
Posts: 169

PostPosted: Mon Oct 31, 2016 4:08 pm    Post subject: Reply with quote

...lol....that's funny.

Standing by for more instructions...
Back to top
View user's profile Send private message
enrico68
Apprentice
Apprentice


Joined: 21 Oct 2016
Posts: 169

PostPosted: Mon Oct 31, 2016 4:25 pm    Post subject: Reply with quote

Donahue,


I just ran startx to see whether I could see the GUI, and it works, pretty neat! I am letting you know, as you are checking my kernel graphics config.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Mon Oct 31, 2016 4:35 pm    Post subject: Reply with quote

hooray!!! ignore this crossmail. you can add a solved to the title of your first post.

do you want nouveau (open source) or nv (proprietary closed source)? follow one or the otherof the following: (more kernel work required)
https://wiki.gentoo.org/wiki/Nouveau
https://wiki.gentoo.org/wiki/NVidia/nvidia-drivers
does /etc/portage/make.conf contain VIDEO_CARDS="nouveau" (or "nv") and INPUT_DEVICES="evdev"?
When make.conf has your choices:
Code:
emerge -av xterm twm xclock xorg-server # simple GUI for testing purposes
qlist -IC x11-drivers # should show evdev and nouveau or nvidia-drivers
startx # should pop up 3 white windows
# escape by typing exit in  upper left window

_________________
Defund the FCC.
Back to top
View user's profile Send private message
enrico68
Apprentice
Apprentice


Joined: 21 Oct 2016
Posts: 169

PostPosted: Mon Oct 31, 2016 4:48 pm    Post subject: Reply with quote

/etc/portage/make.conf is actually empty...

Internet works, but I can't hear any sound...just tried some youtube channels...


The other instructions just ran files over files of items...but I do not understand what I should do...
Back to top
View user's profile Send private message
enrico68
Apprentice
Apprentice


Joined: 21 Oct 2016
Posts: 169

PostPosted: Mon Oct 31, 2016 4:53 pm    Post subject: Reply with quote

Pardon me.....one other issue: many youtube videos are blank, like the list shows a grey empty screen, and not all links I click on seem to work...
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Mon Oct 31, 2016 6:23 pm    Post subject: Reply with quote

As before, edit menuconfig, recompile, reboot
Quote:
Device Drivers --->
<M> Multimedia support --->
--- Multimedia support
*** Multimedia core support ***
[*] Cameras/video grabbers support
[ ] Analog TV support
[ ] Digital TV support
[ ] AM/FM radio receivers/transmitters support
[ ] Software defined radio support
[ ] Remote Controller support
[ ] Media Controller API
[ ] Enable advanced debug functionality on V4L2 drivers
[ ] Enable old-style fixed minor ranges on drivers/video devices
*** Media drivers ***
[*] Media USB Adapters --->
--- Media USB Adapters
*** Webcam devices ***
<M> USB Video Class (UVC)
[*] UVC input events device support
< > GSPCA based webcams ----
< > USB Philips Cameras
< > CPiA2 Video For Linux
< > USB ZR364XX Camera support
< > USB Syntek DC1125 Camera support
< > USB Sensoray 2255 video capture device
< > USBTV007 video capture support
*** Webcam, TV (analog/digital) USB devices ***
< > Empia EM28xx USB devices support
[ ] Media PCI Adapters ----
[ ] V4L platform devices ----
[ ] Memory-to-memory multimedia devices ----
[ ] Media test drivers ----
*** Supported MMC/SDIO adapters ***
< > Cypress firmware helper routines
*** Media ancillary drivers (tuners, sensors, i2c, frontends) ***
[*] Autoselect ancillary drivers (tuners, sensors, i2c, frontends)
Sensors used on soc_camera driver ----

<M> Sound card support --->
--- Sound card support
<M> Advanced Linux Sound Architecture --->
--- Advanced Linux Sound Architecture
<M> Sequencer support
< > Sequencer dummy client
< > OSS Mixer API
< > OSS PCM (digital audio) API
[ ] OSS Sequencer API
< > HR-timer backend support
[ ] Dynamic device file minor numbers
[*] Support old ALSA API
-*- Sound Proc FS Support
[*] Verbose procfs contents
[ ] Verbose printk
[ ] Debug
[ ] Generic sound devices ----
[*] PCI sound devices --->
--- PCI sound devices
< > Analog Devices AD1889
< > Avance Logic ALS300/ALS300+
< > Avance Logic ALS4000
< > ALi M5451 PCI Audio Controller
< > AudioScience ASIxxxx
< > ATI IXP AC97 Controller
< > ATI IXP Modem
< > Aureal Advantage
< > Aureal Vortex
< > Aureal Vortex 2
< > Emagic Audiowerk 2
< > Aztech AZF3328 / PCI168
< > Bt87x Audio Capture
< > SB Audigy LS / Live 24bit
< > C-Media 8338, 8738, 8768, 8770
< > C-Media 8786, 8787, 8788 (Oxygen)
< > Cirrus Logic (Sound Fusion) CS4281
< > Cirrus Logic (Sound Fusion) CS4280/CS461x/CS462x/CS463x
< > Creative Sound Blaster X-Fi
< > (Echoaudio) Darla20
< > (Echoaudio) Gina20
< > (Echoaudio) Layla20
< > (Echoaudio) Darla24
< > (Echoaudio) Gina24
< > (Echoaudio) Layla24
< > (Echoaudio) Mona
< > (Echoaudio) Mia
< > (Echoaudio) 3G cards
< > (Echoaudio) Indigo
< > (Echoaudio) Indigo IO
< > (Echoaudio) Indigo DJ
< > (Echoaudio) Indigo IOx
< > (Echoaudio) Indigo DJx
< > Emu10k1 (SB Live!, Audigy, E-mu APS)
< > Emu10k1X (Dell OEM Version)
< > (Creative) Ensoniq AudioPCI 1370
< > (Creative) Ensoniq AudioPCI 1371/1373
< > ESS ES1938/1946/1969 (Solo-1)
< > ESS ES1968/1978 (Maestro-1/2/2E)
< > ForteMedia FM801
< > RME Hammerfall DSP Audio
< > RME Hammerfall DSP MADI/RayDAT/AIO
< > ICEnsemble ICE1712 (Envy24)
< > ICE/VT1724/1720 (Envy24HT/PT)
<M> Intel/SiS/nVidia/AMD/ALi AC97 Controller
<M> Intel/SiS/nVidia/AMD MC97 Modem
< > Korg 1212 IO
< > Digigram Lola
< > Digigram LX6464ES
< > ESS Allegro/Maestro3
< > Digigram miXart
< > NeoMagic NM256AV/ZX
< > Digigram PCXHR
< > Conexant Riptide
< > RME Digi32, 32/8, 32 PRO
< > RME Digi96, 96/8, 96/8 PRO
< > RME Digi9652 (Hammerfall)
< > Studio Evolution SE6X
< > S3 SonicVibes
< > Trident 4D-Wave DX/NX; SiS 7018
< > VIA 82C686A/B, 8233/8235 AC97 Controller
< > VIA 82C686A/B, 8233 based Modems
< > Asus Virtuoso 66/100/200 (Xonar)
< > Digigram VX222
< > Yamaha YMF724/740/744/754
HD-Audio ---><M> HD Audio PCI
[*] Build hwdep interface for HD-audio driver
-*- Allow dynamic codec reconfiguration
[*] Support digital beep via input layer
(1) Digital beep registration mode (0=off, 1=on)
[*] Support initialization patch loading for HD-audio
<M> Build Realtek HD-audio codec support
<M> Build Analog Device HD-audio codec support
<M> Build IDT/Sigmatel HD-audio codec support
<M> Build VIA HD-audio codec support
<M> Build HDMI/DisplayPort HD-audio codec support
<M> Build Cirrus Logic codec support
<M> Build Conexant HD-audio codec support
<M> Build Creative CA0110-IBG codec support
<M> Build Creative CA0132 codec support
[*] Support new DSP code for CA0132 codec
<M> Build C-Media HD-audio codec support
<M> Build Silicon Labs 3054 HD-modem codec support
-M- Enable generic HD-audio codec parser
(256) Pre-allocated buffer size for HD-audio driver
[*] USB sound devices --->
--- USB sound devices
<M> USB Audio/MIDI driver
< > Edirol UA-101/UA-1000 driver
< > Tascam US-122, US-224 and US-428 USB driver
< > Native Instruments USB audio devices
< > Tascam US-122L USB driver
< > TerraTec DMX 6Fire USB
< > M2Tech hiFace USB-SPDIF driver
< > Behringer BCD2000 MIDI driver
< > Line 6 POD USB support
< > Line 6 POD HD300/400/500 USB support
< > TonePort GX, UX1 and UX2 USB support
< > Variax Workbench USB support
<M> ALSA for SoC audio support ----
--- ALSA for SoC audio support
< > AMD Audio Coprocessor support (NEW)
< > SoC Audio for the Atmel System-on-Chip (NEW)
SoC Audio for Freescale CPUs --->
[ ] Audio support for Imagination Technologies designs (NEW)
< > ASoC Audio driver for Broxton with DA7219 and MAX98357A in I2
< > ASoC Audio driver for Broxton with RT298 I2S mode (NEW)
<M> ASoC Audio driver for Intel Baytrail and Baytrail-CR with RT5640 codec
<M> ASoC Audio driver for Intel Baytrail and Baytrail-CR with RT5651 codec
< > ASoC Audio driver for SKL with RT286 I2S mode (NEW)
Allwinner SoC Audio support --->
< > XTFPGA I2S master (NEW)
CODEC drivers --->
< > ASoC Simple sound card support (NEW)
< > Open Sound System (DEPRECATED) ----

_________________
Defund the FCC.
Back to top
View user's profile Send private message
enrico68
Apprentice
Apprentice


Joined: 21 Oct 2016
Posts: 169

PostPosted: Mon Oct 31, 2016 9:55 pm    Post subject: Reply with quote

Hi Donahue,

I did the menuconfig as per your instructions. I am having the same issues as before. I use youtube as my test bed, as it involves both video and sound. Videos do not open, or open with a black screen and never start, there is no sound, and I can't click on many buttons...

FYI: I am working as chroot with sysrescuecd, although I do not think that is an issue...
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Mon Oct 31, 2016 11:47 pm    Post subject: Reply with quote

sysresccd will not provide much audio support if any so you should boot the newly installed gentoo system's newly compiled computer. what GUI are you using? what browser?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
enrico68
Apprentice
Apprentice


Joined: 21 Oct 2016
Posts: 169

PostPosted: Tue Nov 01, 2016 9:23 am    Post subject: Reply with quote

Hi DONAHUE,

Today I am having a problem with the boot of the PC. It won't let me boot from the sdb (the Linux one), and it shows a message " Disc check..." and then it sends me back to Windows 10. I will now list the options my system has for booting, that should help you understand what right settings to use.

I am in the UEFI BIOS Utility;

1) CSM (Compatibility Support Module); it can be either Enabled or Disabled. If enabled:

Boot Device Control -------------------->>> UEFI and Legacy OPROM/ Legacy Oprom only/ UEFI only
Boot from Network Devices ----------->>>Legacy OPROM First/ UEFI Driver first/ Ignore
Boot from storage devices ------------>>>Both, Legay OPROM first/ Both, EUFI first/ Legacy OPROM first/ UEFI driver first/ Ignore
Boot from PCI-E/PCI Expansion Device>>Legacy OPROM first/ UEFI driver first.

2) Secure Boot Windows UEFI first/ Other OS.

No matter what combination I tried, that worked yesterday, the system boots into Windows 10, or it gives me a message to hit [F1] and to reset the CSM, as the one I set is not valid, or something. Since we are at it, how do I set the boot specs to have a dual boot system?

I am sorry I am having this problem, I know we are that close to be up and running...

Ok, I think I found out what happened: I booted from sysresccd, and I get an error message: '/newroot/sbin/init': no such file, /sbin/init not found on root file system. I kind of guessed it had something to do with the init file, as I could not boot Linux anymore, no matter what setting I would use in the boot section...that might mean I have to start all over again from scratch. If that is the case, I do not want to waste anymore of your time and patience. All I know is that last night I was testing the system, via the rescue cd, for video and sound, and then I just shut it down, and today I see this friendly message...oh well....so be it...

enrico
Back to top
View user's profile Send private message
enrico68
Apprentice
Apprentice


Joined: 21 Oct 2016
Posts: 169

PostPosted: Tue Nov 01, 2016 2:14 pm    Post subject: Reply with quote

Now, that's weird...if I load Gentoo into RAM, it works, and I can get into startx, same as last night. I am kind of lost...
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Tue Nov 01, 2016 3:03 pm    Post subject: Reply with quote

Quote:
if I load Gentoo into RAM, it works, and I can get into startx, same as last night.
Does this mean something like: you boot sysresccd and choose the (rough quote) "boot a system from the hard drive" from the menu?

First a disclaimer: I do not have a sabertooth z97 motherboard. Is yours a mark 1 or mark 2?

Read this: https://www.asus.com/support/faq/1013015/ may help beat the windows only reboot.

Quote:
"Disc check..."
was there any further information presented where the dots are? My guess is Windows sees the ESP vfat partition on the gentoo disk and is checking it.
Quote:
CSM (Compatibility Support Module)
refer to http://www.rodsbooks.com/efi-bootloaders/csm-good-bad-ugly.html
if disabled you should be able to boot grub but not windows.
if enabled:
UEFI and Legacy OPROM - should put both windows and grub into the boot options menu and sysresccd as uefi and non uefi choice
Legacy Oprom only - should put only windows and not grub into the boot options menu and sysresccd only as non uefi choice
UEFI only - should put only grub and not windows into the boot options menu and sysresccd only as uefi choice

Quote:
Secure Boot Windows UEFI first/ Other OS.
Leave this in Other OS.

Which version of windows are you running?

In windows open a CLI terminal as administrator and execute:
Code:
powercfg /h off
This should turn off windows fast boot which can cause file system corruption.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
enrico68
Apprentice
Apprentice


Joined: 21 Oct 2016
Posts: 169

PostPosted: Tue Nov 01, 2016 9:31 pm    Post subject: Reply with quote

Hello Donahue,

you have to excuse me, but today it was a busy day at work. I will have a thorough look into it. I will come back within the next few days, let's see what I can get done, hopefully there is a way out...lol....wait for some news from me, I might have a few questions about your last post, we'll see...

enrico :wink:
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Tue Nov 01, 2016 10:14 pm    Post subject: Reply with quote

Just don't start over, this is too much fun.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
enrico68
Apprentice
Apprentice


Joined: 21 Oct 2016
Posts: 169

PostPosted: Wed Nov 02, 2016 1:11 pm    Post subject: Reply with quote

Quote:
if I load Gentoo into RAM, it works, and I can get into startx, same as last night.


Does this mean something like: you boot sysresccd and choose the (rough quote) "boot a system from the hard drive" from the menu?

I can't remember, but it is the second choice from above when booting the sysresccd, it should say something about loading the system into RAM

First a disclaimer: I do not have a sabertooth z97 motherboard. Is yours a mark 1 or mark 2?

I have a Sabertooth Z87. I don't think there is a mark1/2 for the Z87.

Read this: https://www.asus.com/support/faq/1013015/ may help beat the windows only reboot.

Quote:
"Disc check..."
was there any further information presented where the dots are? My guess is Windows sees the ESP vfat partition on the gentoo disk and is checking it.

I remeber now the exact Windows message: "Disc Recovery...", which lasted a few seconds, and then I was back into Windows.

Quote:
CSM (Compatibility Support Module)
refer to http://www.rodsbooks.com/efi-bootloaders/csm-good-bad-ugly.html
if disabled you should be able to boot grub but not windows.
if enabled:
UEFI and Legacy OPROM - should put both windows and grub into the boot options menu and sysresccd as uefi and non uefi choice
Legacy Oprom only - should put only windows and not grub into the boot options menu and sysresccd only as non uefi choice
UEFI only - should put only grub and not windows into the boot options menu and sysresccd only as uefi choice

I tried the EUFI only option, and the system tries to start Linux only, but then it kicks me back into the Boot menu...But, when I boot from the sysrescd, it fires up and I can get into startx.

Quote:
Secure Boot Windows UEFI first/ Other OS.
Leave this in Other OS.

Ok.

Which version of windows are you running?

Windows 10-64bit

In windows open a CLI terminal as administrator and execute:
Code:
powercfg /h off
This should turn off windows fast boot which can cause file system corruption.[/quote]

Ok.

Tonight, when I get home, I'll start working on my system, and applying the suggestions and workarounds you posted. Hopefully, I will be done by tomorrow night (CET), if not, I'll let you know as soon as I am done testing. So far, I have left my Linux setup on the sdb without any changes, let's see if I still get the /sbin/init error again...will keep you posted as soon as I am done!

enrico :wink:


Last edited by enrico68 on Wed Nov 02, 2016 2:07 pm; edited 1 time in total
Back to top
View user's profile Send private message
enrico68
Apprentice
Apprentice


Joined: 21 Oct 2016
Posts: 169

PostPosted: Wed Nov 02, 2016 1:16 pm    Post subject: Reply with quote

DONAHUE wrote:
Just don't start over, this is too much fun.


I won't, unless and until you say so...lol...
Back to top
View user's profile Send private message
enrico68
Apprentice
Apprentice


Joined: 21 Oct 2016
Posts: 169

PostPosted: Thu Nov 03, 2016 8:53 am    Post subject: Reply with quote

Hello DONAHUE,

last night I managed to run some tests, and tried some things, the results of which I am posting here. First off, I disabled Fast boot; then I tried to play around with CSM, and found out that if I disable it, the system won't boot; I left the Secure boot Windows option as "Other OS".

Having done this, I ran a few of the options given by sysrsccd:

1) Sysresccd default boot options: I get to the root prompt, and with startx I can enter the GUI environment.

2) Sysyrsccd (all files cashed to Memory): I get the root prompt with startx working.

3) Sysrsccd Boot an existing Linux system installed on disk: this is where I get the following error messages:

-Checking /sbin/init can be executed by the current kernel
-readelf: ERROR:'/newroot/sbin/init': No such file
-/sbin/init on the root filesystem is in a binary
-mount: mounting /dev on /netroot/dev failed: no such file or directory
-!! /sbin/init not found on root filesystem
-|| Running a minishell (cannot complete the boot process)
-/bin/bash: can't access tty: job control turned off

4) Sysrsccd Alternate Kernel with default boot options: root prompt with startx working

5) Sysrsccd Standard 64bit Kernel (rescue64) with more choices: 1) With default options: root prompt withh startx working

* Boot from first hard disk: the system boots into Windows 10.

* Boot from second hard disk: Welcome to GRUB! ERROR :file'GRUB/i386-pc/normal.mod' not found. The system, then, gets to the grub prompt: grub rescue>

edit: after doing some search, I found a likely solution, which could mean reinstalling GRUB:

mount /dev/sda2 /mnt >>>/sda2 is my boot partition
grub-install --boot-directory=/mnt /dev/sda>>> here, though, I believe it should be grub2
reboot

What do you think? Would a grub2 reinstall solve the problem?


enrico
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Thu Nov 03, 2016 2:55 pm    Post subject: Reply with quote

Seems as though grub is passing the wrong partition to the kernel to use as root.
Reinstall of grub should be harmless.
boot sysresccd in uefi mode, mount gentoo partitions, enter chroot, then:
Code:
emerge ntfs3g os-prober 
echo "/dev/sda2 /mnt/win2 ntfs-3g defaults,noauto 0 0"  >> /etc/fstab
mkdir /mnt/win2
cd /usr/src/linux;make menuconfig
edit menuconfig to include
Quote:
File systems --->
[*] Dnotify support
[*] Inotify support for userspace
[*] Filesystem wide access notification
<M> FUSE (Filesystem in Userspace) support
then
Code:
make && make modules_install && make install
exit
reboot
boot sysresccd uefi mode, mount gentoo partitions, enter chroot, then:
Code:

mount /dev/sda2 /mnt/win2
mount | wgetpaste -t
# should show /dev/sda2 on /mnt/win2 type fuseblk (<stuff>), /dev/sdb1  on /boot
GRUB_PLATFORMS="efi-64 pc" emerge =sys-boot/grub-2.02_beta3-r1:2
grub-install --target=x86_64-efi --efi-directory=/boot
os-prober | wgetpaste -t
grub-mkconfig -o /boot/grub/grub.cfg
ls -R /boot | wgetpaste -t
wgetpaste -t /boot/grub/grub.cfg
blkid | wgetpaste -t # want PARTUUID for /dev/sda4
ls /sbin/*init* | wgetpaste -t
exit
reboot
post url's returned by wgetpaste as ocurring, try to boot grub/gentoo

Edited to remove attempts to mount windows recovery partition that did not work for OP
_________________
Defund the FCC.


Last edited by DONAHUE on Fri Nov 04, 2016 10:57 pm; edited 4 times in total
Back to top
View user's profile Send private message
enrico68
Apprentice
Apprentice


Joined: 21 Oct 2016
Posts: 169

PostPosted: Thu Nov 03, 2016 8:22 pm    Post subject: Reply with quote

I am stuck here, as the command
Code:
mount /dev/sda1 /mnt/win1

gives me: mount:/dev/sdb1 is write-protected, mounting read-only
NTFS signature is missing
Failed to mount '/dev/sdb1': invalid argument
The device '/dev/sdb1' does not seem to have a valid NTFS.

Quote:
Code:
mount /dev/sda1 /mnt/win1
mount /dev/sda2 /mnt/win2
mount | wgetpaste -t
# should show /dev/sda1 on /mnt/win1 type fuseblk (<stuff>), /dev/sda2 on /mnt/win2 type fuseblk (<stuff>), /dev/sdb1  on /boot
GRUB_PLATFORMS="efi-64 pc" emerge =sys-boot/grub-2.02_beta3-r1:2
rub-install --target=x86_64-efi --efi-directory=/boot
os-prober | wgetpaste -t
grub-mkconfig -o /boot/grub/grub.cfg
ls -R /boot | wgetpaste -t
wgetpaste -t /boot/grub/grub.cfg
blkid | wgetpaste -t # want PARTUUID for /dev/sda4
ls /sbin/*init* | wgetpaste -t
exit
reboot
post url's returned by wgetpaste as ocurring, try to boot grub/gentoo


This one went fine...maybe I have enter the wrong input before...let me try again...
Code:
mount /dev/sda2 /mnt/win2
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum