Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/mnt/gentoo/etc/portage does not exist
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
kronos3051
n00b
n00b


Joined: 05 Oct 2019
Posts: 5

PostPosted: Sat Oct 05, 2019 4:16 pm    Post subject: /mnt/gentoo/etc/portage does not exist Reply with quote

Hello, I'm installing gentoo for the first time.

Im on the "configuring compile options" but when i use the code written:

Code:
nano -w /mnt/gentoo/etc/portage/make.conf


It gives me an error saying file does not exist, even /mnt/gentoo/etc/ does not exist as i tried going there.. can anyone help me out with this?

Also, when i finish creating my partitions with parted and procced to quit, i get the next message:

Code:
Information: You may need to update etc/fstab


Could this be something I'm doing wrong?

My partitions:

1 size 2.00mib grub bios_grub
2 size 128mib boot boot,esp
3 size 512mib swap
4 size 19836mib rootfs


Last edited by kronos3051 on Sat Oct 05, 2019 4:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10353
Location: Somewhere over Atlanta, Georgia

PostPosted: Sat Oct 05, 2019 4:24 pm    Post subject: Reply with quote

Hi kronos3051,

Welcome to Gentoo! :)

That directory will not exist until (a) your new root partition is mounted and (b) you have unpacked the stage tarball onto that mounted partition (mounted at /mnt/gentoo).

Let me know if you think you completed those steps. Also, to help figure out what's actually going on, what's the output of
Code:
mount
- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
kronos3051
n00b
n00b


Joined: 05 Oct 2019
Posts: 5

PostPosted: Sat Oct 05, 2019 4:29 pm    Post subject: Reply with quote

I've updated my original post with more information. I'm going to try what you said and will come back with the results. Thanks for your help!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Oct 05, 2019 4:38 pm    Post subject: Reply with quote

kronos3051,

That looks like so far, so good.

Now you need to make filesystems on your new partitions.
Then you can mount them at /mnt/gentoo and /mnt/gentoo/boot
Then untar your stage3 to /mnt/gentoo.

I think you have missed a few steps in the handbook.
_________________
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
kronos3051
n00b
n00b


Joined: 05 Oct 2019
Posts: 5

PostPosted: Sat Oct 05, 2019 4:47 pm    Post subject: Reply with quote

Yes, i've downloaded and unpacked the stage tarball correctly, the next step from there (nano -w /mnt/gentoo/etc/portage/make.conf) gives me the error.

mount gives me this:

Code:
proc on /proc type proc
udev on /dev type devtmpfs
devpts on /dev/pts type devpts
sysfs on /sys type sysfs
tmpfs on / type tmpfs
/dev/sr0 on /mnt/cdrom type iso9660
/mnt/cdrom/image.squashfs on /mnt/livecd type squashfs
tmpfs on /run type tmpfs
debugfs on /sys/kernel/debug type debugfs
configfs on /sys/kernel/config type configfs
fusect1 on /sys/fs/fuse/connections type fusect1
cgroup_root on /sys/fs/cgroup type tmpfs
openrc on /sys/fs/cgroup type cpgroup
none on /sys/fs/cgroup/openrc type cgroup
shm on /dev/shm type tmpfs
/dev/sda4 on /mnt/gentoo type ext4 (rw, relatime)


[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
kronos3051
n00b
n00b


Joined: 05 Oct 2019
Posts: 5

PostPosted: Sat Oct 05, 2019 4:51 pm    Post subject: Reply with quote

NeddySeagoon wrote:
kronos3051,

That looks like so far, so good.

Now you need to make filesystems on your new partitions.
Then you can mount them at /mnt/gentoo and /mnt/gentoo/boot
Then untar your stage3 to /mnt/gentoo.

I think you have missed a few steps in the handbook.


By file system i believe you mean the

Code:
mkfs.ext2 /dev/sda2
mkfs.ext4 /dev/sda4


I've done that too.. Sorry, I'm doing this because of a school assignment and how they had explained in class not all the steps are necessary (for example, verifying and validating the stage tarball) The thing is that i did the same in class and it did work, but now it isn't.. i don't know what is wrong :(
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Oct 05, 2019 5:11 pm    Post subject: Reply with quote

kronos3051,

Code:
mkfs.ext2 /dev/sda2
mkfs.ext4 /dev/sda4
is correct too.

Your Gentoo install goes here
Code:
/dev/sda4 on /mnt/gentoo type ext4 (rw, relatime)

Its mounted already too. Good.

The stage3 goes into /mnt/gentoo. That's the binaries of all the 'must have' packages and some set up files too.
After you have unpacked the stage3 to /mnt/gentoo /mnt/gentoo/etc/portage/make.conf will exist.
Until you do that unpack, /mnt/gentoo will be empty. Well, it will contain lost+found but that belongs to the filesystem.
_________________
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
kronos3051
n00b
n00b


Joined: 05 Oct 2019
Posts: 5

PostPosted: Sat Oct 05, 2019 5:29 pm    Post subject: Reply with quote

NeddySeagoon wrote:
kronos3051,

Code:
mkfs.ext2 /dev/sda2
mkfs.ext4 /dev/sda4
is correct too.

Your Gentoo install goes here
Code:
/dev/sda4 on /mnt/gentoo type ext4 (rw, relatime)

Its mounted already too. Good.

The stage3 goes into /mnt/gentoo. That's the binaries of all the 'must have' packages and some set up files too.
After you have unpacked the stage3 to /mnt/gentoo /mnt/gentoo/etc/portage/make.conf will exist.
Until you do that unpack, /mnt/gentoo will be empty. Well, it will contain lost+found but that belongs to the filesystem.


Thanks! I'm stupid and I wasnt on /mnt/gentoo while unpacking the stage tarball.

For anyone having the same issue:
Code:
cd mnt/gentoo/
then use the code to unpack the stage 3.

Thanks you both for taking your time to help me!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Oct 05, 2019 5:35 pm    Post subject: Reply with quote

kronos3051,

Stupid is doing the same thing over and over and expecting a different result.

You are experienced.
Experience is what you get just after you needed it :)
Your error and learning from it is a good example of how you learn more fixing the problems that you do following the process and having it just work.
_________________
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
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7195

PostPosted: Sun Oct 06, 2019 9:56 am    Post subject: Reply with quote

NeddySeagoon wrote:
Stupid is doing the same thing over and over and expecting a different result.

Now i know i am! :D
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
Page 1 of 1

 
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