Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
(Solved) Gentoo install on an USB
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Wed Feb 21, 2018 5:25 pm    Post subject: Reply with quote

element432,

Post your grub.cfg please. I'm fairly convinced its not finding the root filesystem when its connected to the lab PCs
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
element432
n00b
n00b


Joined: 16 Dec 2016
Posts: 61

PostPosted: Wed Feb 21, 2018 5:35 pm    Post subject: Reply with quote

Here is the grub.cfg:

Code:
https://paste.pound-python.org/show/o8ag7pI1bkUwsOdzIFX4/
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Wed Feb 21, 2018 6:05 pm    Post subject: Reply with quote

element432,

The filesystem UUID is supposed to be unique.
Code:
root=UUID=b1dc361f-3909-4f66-87b4-6f1cc0c77db9
so thats good.
Using root=/dev/... can lead to confusion.

I don't see either rootwait or rootdelay there.

Try rootwait and see if it waits forever.
If that stops the panic, even though it doesn't boot, we know that the root filesystem never appears.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
element432
n00b
n00b


Joined: 16 Dec 2016
Posts: 61

PostPosted: Wed Feb 21, 2018 6:19 pm    Post subject: Reply with quote

I tried rootdelay by hitting e to edit grub once it booted. Ill try rootwait tomorrow and update this once I get back on campus. Thanks for your help!
Back to top
View user's profile Send private message
element432
n00b
n00b


Joined: 16 Dec 2016
Posts: 61

PostPosted: Wed Feb 21, 2018 6:39 pm    Post subject: Reply with quote

It just kills me that I can't get it to boot here haha. I've used a persistent Kali USB and an Arch install on a USB and they had no problems.
Back to top
View user's profile Send private message
element432
n00b
n00b


Joined: 16 Dec 2016
Posts: 61

PostPosted: Thu Feb 22, 2018 5:15 pm    Post subject: Reply with quote

So I tried to boot with rootdelay, with no success. Then I decided I would just try to make a kernel quick with make localyesconfig to see if maybe it was the initrd causing problems. So I booted with the live dvd, and tried with the minimal-cd. Both, when chrooting, gave me the error: illegal instruction, for chroot /mnt/gentoo /bin/bash. I did try to use systemrescue cd, but I couldn't actually get that to even boot.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Thu Feb 22, 2018 5:19 pm    Post subject: Reply with quote

element432,

What are your CFLAGS set to?
Post
Code:
emerge --info
output.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
element432
n00b
n00b


Joined: 16 Dec 2016
Posts: 61

PostPosted: Thu Feb 22, 2018 5:29 pm    Post subject: Reply with quote

Code:
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--ask --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.rit.edu/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Thu Feb 22, 2018 5:42 pm    Post subject: Reply with quote

element432,

Ahhh ...

Code:
CFLAGS="-march=native
that built your USB install to run on the CPU that did the building. It will therefore only run on instruction set compatible CPUs.
Run anywhere distros, like binary distros, SystemRescueCD, the Gentoo liveCD and stage3 are built with

Code:
CFLAGS="-mtune=generic"
and -march unset.

You can ask gcc what "-march=native actually means.
Code:
gcc -### -E - -march=native 2>&1 | sed -r '/cc1/!d;s/(")|(^.* - )|( -mno-[^\ ]+)//g'

My AMD system shows
Code:
$ gcc -### -E - -march=native 2>&1 | sed -r '/cc1/!d;s/(")|(^.* - )|( -mno-[^\ ]+)//g'
-march=amdfam10 -mmmx -m3dnow -msse -msse2 -msse3 -msse4a -mcx16 -msahf -mpopcnt -mabm -mlzcnt -mprfchw -mfxsr --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=amdfam10


The 64 bit Raspberry Pi says
Code:
 -mlittle-endian -mabi=lp64 -march=armv8-a+crc
and my Intel server says
Code:
 -march=ivybridge -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -maes -mpclmul -mpopcnt -mavx -msse4.2 -msse4.1 -mrdrnd -mf16c -mfsgsbase -mfxsr -mxsave -mxsaveopt --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=ivybridge -fstack-check

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
element432
n00b
n00b


Joined: 16 Dec 2016
Posts: 61

PostPosted: Thu Feb 22, 2018 5:48 pm    Post subject: Reply with quote

Haha, once you asked for that, I instantly thought, "I probably shouldn't have basically of copied my laptops make.conf. I'm going to change that and see what happens.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Thu Feb 22, 2018 5:57 pm    Post subject: Reply with quote

element432,

You changed the spec. That's scope creep. :)

You will need to rebuild everything to be safe. If grub runs, you are just lucky.

Also revisit your
Code:
CPU_FLAGS_X86=

That need not be empty as all 64 bit CPUs had some CPU_FLAGS_X86 in common,
Use whatever the stage3 uses.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
element432
n00b
n00b


Joined: 16 Dec 2016
Posts: 61

PostPosted: Thu Feb 22, 2018 6:01 pm    Post subject: Reply with quote

So, when you say rebuild everything, you mean emerge -e world?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Thu Feb 22, 2018 6:01 pm    Post subject: Reply with quote

element432,

That's it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
element432
n00b
n00b


Joined: 16 Dec 2016
Posts: 61

PostPosted: Thu Feb 22, 2018 6:08 pm    Post subject: Reply with quote

Alright, thanks. Ill be back... eventually with an update haha.

Edit - I left the CPU_FLAGS_X86 out, with the other use flags to save some room.
Back to top
View user's profile Send private message
element432
n00b
n00b


Joined: 16 Dec 2016
Posts: 61

PostPosted: Fri Feb 23, 2018 4:25 pm    Post subject: Reply with quote

That solved it! Thanks!! Just had to rebuild everything haha.
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
Page 2 of 2

 
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