Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Common problems with Gentoo installation.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
trickygnome
n00b
n00b


Joined: 17 May 2017
Posts: 12

PostPosted: Wed May 17, 2017 8:02 pm    Post subject: Common problems with Gentoo installation. Reply with quote

Simple Gentoo installation.
Simple partitions for new Desktop users. Common problems with Gentoo installation.


I am not super nerd. I spend several days for sex with UEFI and GTP.
We will create partition table "dos" with MBR and with no-so-legacy "Legacy BIOS".


Here is simplest partitions:

a) "Legacy BIOS boot" in BIOS. Switch off UEFI.

b) You don't need SWAP partition if you have 4GB RAM or more.

c) The end structure:
Code:

/dev/sda1   /boot   ext2      defaults,noatime   0 2
/dev/sda2   /      ext4      noatime         0 1
/dev/sda3   /home   ext4      noatime         0 2
# and you left 1 partition for swap and everything.

d) doing partitions:
fdisk -t dos /dev/sda

1)
Code:

Command (m for help):n
Command action
  e   extended
  p   primary partition (1-4)
p
Partition number (1-4): 1
First sector (64-10486533532, default 64): +128M

mkfs.ext2 -T small /dev/sda1


2)
Code:
Command (m for help):n
Command action
  e   extended
  p   primary partition (2-4)
p
Partition number (2-4): 2
First sector : +31000M

mkfs.ext4 -j /dev/sda2



3)
Code:

Command (m for help):n
Command action
  e   extended
  p   primary partition (3-4)
p
Partition number (3-4): 3
First sector (64-10486533532, default 64): +25000M

mkfs.ext4 -j -T small /dev/sda3



Kernel:
Code:
genkernel all
- not working. Error: -fstack-protector not supported. Instead use:
Code:
genkernel --menuconfig all


Kernel recompile:
Code:

make --menuconfig
make -j4                                      (4 - cpu count)
make install
cp .config /.config_saved
genkernel --kernel-config=/.config_saved initrafs


Last edited by trickygnome on Sat Mar 10, 2018 5:45 am; edited 5 times in total
Back to top
View user's profile Send private message
ndan
n00b
n00b


Joined: 13 Sep 2013
Posts: 4

PostPosted: Sat May 20, 2017 6:01 am    Post subject: Reply with quote

You do need 4GB+ (or swap) if you plan to compile large programs like chromium (last time I looked at it was 3GB RAM + 5GB disk), but yes, swap is not a requirement nowadays. If you have enough RAM, make a big tmpfs - I have 6GB for browser profile/portage tmp dir - this will keep your ssd in shape (or your hdd from spinning like crazy)

If you recompile the same kernel with genkernel --kernel-config=/path/to/your/old/config then genkernel will rename your old config (backup) and complain there is no config.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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